2 $(document).ready(function() {
4 $('.toggle-section-content').hide();
5 $('.js-section-toggler').click(function(){
6 $('.toggle-section-content').hide();
7 $(this).next('.toggle-section-content').toggle();
15 <div id="profile-edit-links">
17 <li><a class="btn" href="profile/{{$profile_id}}/view?tab=profile" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></li>
18 {{if $multi_profiles}}
19 <li><a class="btn" href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof}}">{{$cl_prof}}</a></li>
20 <li><a class="btn" href="{{$profile_drop_link}}" id="profile-edit-drop-link" title="{{$del_prof}}" {{$disabled}} >{{$del_prof}}</a></li>
24 <div id="profile-edit-links-end"></div>
28 <div id="profile-edit-wrapper" >
30 <form enctype="multipart/form-data" action="profile_photo" method="post">
31 <input type='hidden' name='form_security_token' value='{{$form_security_token_photo}}'>
32 <input type="hidden" name="profile" value="{{$profile_name}}" />
34 <!-- Profile picture -->
35 {{if $detailled_profile}}
36 <div class="toggle-section js-toggle-section">
37 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_picture_section}} »</a>
38 <div class="js-section toggle-section-content hidden">
41 <div id="profile-photo-upload-wrapper">
42 <label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
43 <input name="userfile" type="file" id="profile-photo-upload" size="48" />
46 <div class="profile-edit-submit-wrapper" >
47 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
49 <div class="profile-edit-submit-end"></div>
51 {{if $detailled_profile}}
57 <form id="profile-edit-form" name="form1" action="profiles/{{$profile_id}}" method="post" >
58 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
60 {{if $detailled_profile}}
61 <!-- Basic information -->
62 <div class="toggle-section js-toggle-section">
63 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_basic_section}} »</a>
64 <div class="js-section toggle-section-content hidden">
66 {{include file="field_yesno.tpl" field=$details}}
68 {{if $multi_profiles}}
69 <div id="profile-edit-profile-name-wrapper" >
70 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
71 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" /><div class="required">*</div>
73 <div id="profile-edit-profile-name-end"></div>
75 <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" />
78 <div id="profile-edit-name-wrapper" >
79 <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
80 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name}}" />
82 <div id="profile-edit-name-end"></div>
84 <div id="profile-edit-gender-wrapper" >
85 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
88 <div id="profile-edit-gender-end"></div>
90 <div id="profile-edit-pdesc-wrapper" >
91 <label id="profile-edit-pdesc-label" for="profile-edit-pdesc" >{{$lbl_title}} </label>
92 <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
94 <div id="profile-edit-pdesc-end"></div>
96 <div id="profile-edit-homepage-wrapper" >
97 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
98 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
100 <div id="profile-edit-homepage-end"></div>
102 <div id="profile-edit-dob-wrapper" >
103 <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}}</label>
104 <div id="profile-edit-dob" >
108 <div id="profile-edit-dob-end"></div>
112 <div id="about-jot-wrapper">
113 <div id="about-jot-desc">{{$lbl_about}}</div>
114 <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about}}</textarea>
116 <div id="about-jot-end"></div>
118 <div id="contact-jot-wrapper" >
119 <div id="contact-jot-desc">{{$lbl_social}}</div>
120 <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact}}</textarea>
122 <div id="contact-jot-end"></div>
124 <div id="profile-edit-pubkeywords-wrapper" >
125 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
126 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords}}" />
128 <div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
129 <div id="profile-edit-pubkeywords-end"></div>
131 <div id="profile-edit-prvkeywords-wrapper" >
132 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
133 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords}}" />
135 <div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
136 <div id="profile-edit-prvkeywords-end"></div>
138 <div class="profile-edit-submit-wrapper" >
139 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
141 <div class="profile-edit-submit-end"></div>
147 <div class="toggle-section js-toggle-section">
148 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} »</a>
149 <div class="js-section toggle-section-content hidden">
151 <div><b>{{$lbl_location_section}}</b></div>
153 <div id="profile-edit-address-wrapper" >
154 <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
155 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address}}" />
157 <div id="profile-edit-address-end"></div>
159 <div id="profile-edit-locality-wrapper" >
160 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
161 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality}}" />
163 <div id="profile-edit-locality-end"></div>
165 <div id="profile-edit-postal-code-wrapper" >
166 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
167 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code}}" />
169 <div id="profile-edit-postal-code-end"></div>
171 <div id="profile-edit-country-name-wrapper" >
172 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
173 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
174 <option selected="selected" >{{$country_name}}</option>
177 <div id="profile-edit-country-name-end"></div>
179 <div id="profile-edit-region-wrapper" >
180 <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
181 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
182 <option selected="selected" >{{$region}}</option>
185 <div id="profile-edit-region-end"></div>
187 <div id="profile-edit-hometown-wrapper" >
188 <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$lbl_hometown}} </label>
189 <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
191 <div id="profile-edit-hometown-end"></div>
195 <div><b>{{$lbl_preferences_section}}</b></div>
197 <div id="profile-edit-sexual-wrapper" >
198 <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
201 <div id="profile-edit-sexual-end"></div>
203 <div id="profile-edit-politic-wrapper" >
204 <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$lbl_politic}} </label>
205 <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic}}" />
207 <div id="profile-edit-politic-end"></div>
209 <div id="profile-edit-religion-wrapper" >
210 <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$lbl_religion}} </label>
211 <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion}}" />
213 <div id="profile-edit-religion-end"></div>
215 <div id="likes-jot-wrapper">
216 <div id="likes-jot-desc">{{$lbl_likes}}</div>
217 <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes}}</textarea>
219 <div id="likes-jot-end"></div>
221 <div id="dislikes-jot-wrapper">
222 <div id="dislikes-jot-desc">{{$lbl_dislikes}}</div>
223 <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes}}</textarea>
225 <div id="dislikes-jot-end"></div>
227 <div class="profile-edit-submit-wrapper" >
228 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
230 <div class="profile-edit-submit-end"></div>
236 <div class="toggle-section js-toggle-section">
237 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} »</a>
238 <div class="js-section toggle-section-content hidden">
240 <div id="profile-edit-marital-wrapper" >
241 <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
244 <label id="profile-edit-with-label" for="profile-edit-with" > {{$lbl_with}} </label>
245 <input type="text" size="32" name="with" id="profile-edit-with" title="{{$lbl_ex1}}" value="{{$with}}" />
246 <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$lbl_howlong}} </label>
247 <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$lbl_howlong}}" value="{{$howlong}}" />
248 <div id="profile-edit-marital-end"></div>
250 <div id="romance-jot-wrapper" >
251 <div id="romance-jot-desc">{{$lbl_love}}</div>
252 <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance}}</textarea>
254 <div id="romance-jot-end"></div>
256 <div id="work-jot-wrapper">
257 <div id="work-jot-desc">{{$lbl_work}}</div>
258 <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work}}</textarea>
260 <div id="work-jot-end"></div>
262 <div id="education-jot-wrapper" >
263 <div id="education-jot-desc">{{$lbl_school}}</div>
264 <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education}}</textarea>
266 <div id="education-jot-end"></div>
268 <div class="profile-edit-submit-wrapper" >
269 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
271 <div class="profile-edit-submit-end"></div>
277 <div class="toggle-section js-toggle-section">
278 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} »</a>
279 <div class="js-section toggle-section-content hidden">
281 <div id="interest-jot-wrapper">
282 <div id="interest-jot-desc">{{$lbl_hobbies}}</div>
283 <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest}}</textarea>
285 <div id="interest-jot-end"></div>
287 <div id="music-jot-wrapper">
288 <div id="music-jot-desc">{{$lbl_music}}</div>
289 <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music}}</textarea>
291 <div id="music-jot-end"></div>
293 <div id="book-jot-wrapper">
294 <div id="book-jot-desc">{{$lbl_book}}</div>
295 <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book}}</textarea>
297 <div id="book-jot-end"></div>
299 <div id="tv-jot-wrapper">
300 <div id="tv-jot-desc">{{$lbl_tv}}</div>
301 <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv}}</textarea>
303 <div id="tv-jot-end"></div>
305 <div id="film-jot-wrapper">
306 <div id="film-jot-desc">{{$lbl_film}}</div>
307 <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film}}</textarea>
309 <div id="film-jot-end"></div>
311 <div class="profile-edit-submit-wrapper" >
312 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
314 <div class="profile-edit-submit-end"></div>
320 {{if $personal_account}}
321 {{include file="field_yesno.tpl" field=$details}}
323 <div id="profile-edit-profile-name-wrapper" >
324 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
325 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name|escape:'html'}}" /><div class="required">*</div>
327 <div id="profile-edit-profile-name-end"></div>
329 <div id="profile-edit-name-wrapper" >
330 <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
331 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name|escape:'html'}}" />
333 <div id="profile-edit-name-end"></div>
335 {{if $personal_account}}
336 <div id="profile-edit-gender-wrapper" >
337 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
340 <div id="profile-edit-gender-end"></div>
342 <div id="profile-edit-dob-wrapper" >
343 <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}} </label>
344 <div id="profile-edit-dob" >
348 <div id="profile-edit-dob-end"></div>
351 <div id="profile-edit-homepage-wrapper" >
352 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
353 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
355 <div id="profile-edit-homepage-end"></div>
359 <div id="profile-edit-address-wrapper" >
360 <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
361 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address|escape:'html'}}" />
363 <div id="profile-edit-address-end"></div>
365 <div id="profile-edit-locality-wrapper" >
366 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
367 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality|escape:'html'}}" />
369 <div id="profile-edit-locality-end"></div>
372 <div id="profile-edit-postal-code-wrapper" >
373 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
374 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code|escape:'html'}}" />
376 <div id="profile-edit-postal-code-end"></div>
378 <div id="profile-edit-country-name-wrapper" >
379 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
380 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
381 <option selected="selected" >{{$country_name}}</option>
382 <option>temp</option>
385 <div id="profile-edit-country-name-end"></div>
386 <div id="profile-edit-region-wrapper" >
387 <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
388 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
389 <option selected="selected" >{{$region}}</option>
390 <option>temp</option>
393 <div id="profile-edit-region-end"></div>
395 <div id="profile-edit-pubkeywords-wrapper" >
396 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
397 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords|escape:'html'}}" />
398 </div><div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
399 <div id="profile-edit-pubkeywords-end"></div>
401 <div id="profile-edit-prvkeywords-wrapper" >
402 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
403 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords|escape:'html'}}" />
404 </div><div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
405 <div id="profile-edit-prvkeywords-end"></div>
407 <div id="about-jot-wrapper" >
408 <p id="about-jot-desc" >
412 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about}}</textarea>
415 <div id="about-jot-end"></div>
417 <div class="profile-edit-submit-wrapper" >
418 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
420 <div class="profile-edit-submit-end"></div>
422 <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
423 <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact}}" />
424 <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
425 <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic}}" />
426 <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion}}" />
427 <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes}}" />
428 <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes}}" />
429 <input type="hidden" name="with" id="profile-edit-with" value="{{$with}}" />
430 <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong}}" />
431 <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance}}" />
432 <input type="hidden" id="work-jot-text" name="work" value="{{$work}}" />
433 <input type="hidden" id="education-jot-text" name="education" value="{{$education}}" />
434 <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest}}" />
435 <input type="hidden" id="music-jot-text" name="music" value="{{$music}}" />
436 <input type="hidden" id="book-jot-text" name="book" value="{{$book}}" />
437 <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv}}" />
438 <input type="hidden" id="film-jot-text" name="film" value="{{$film}}" />
444 <script type="text/javascript">Fill_Country('{{$country_name}}');Fill_States('{{$region}}');</script>