home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / profile.tmpl < prev    next >
Text File  |  2009-11-06  |  26KB  |  702 lines

  1. # FILE: profile.tmpl
  2. # DESCRIPTION: Edit your profile (or someone else's profile)
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5. # Translation note: This file is drawn from language_pro.conf and should not itself need
  6. # to be translated (except for certain administrative parts)
  7.  
  8. <!--BEGIN-->
  9. <#define array @alternating_colors (_index, color)#>
  10. 1    $color->{alt_9}
  11. 2    $color->{alt_10}
  12. <#/define#>
  13.  
  14. <html>
  15. <head>
  16. <title>$L{PROFEDIT_TITLE}</title>
  17. <style>
  18. <!--
  19. body { font-family: $color->{face}; line-spacing: 0 }
  20. td.b { font: 8pt $color->{face}; font-weight: bold; }
  21. td.s { font: 8pt $color->{face} }
  22. td.nb { font: 10pt $color->{face} }
  23. td.bb { font: 10pt $color->{face}; font-weight: bold; }
  24. p.sect { font: 12pt $color->{face}; font-weight: bold; }
  25. .bbg { background: #0000ff; }
  26. -->
  27. </style>
  28. <script language="JavaScript">
  29. <!--
  30. function m (topic, page, post, action) {
  31.     if (typeof screen != 'undefined') {
  32.         var avLeft = parseInt(screen.availLeft); 
  33.         var avTop = parseInt(screen.availTop);
  34.         if (isNaN(avLeft)) {var avLeft = 0}
  35.         if (isNaN(avTop)) {var avTop = 0}
  36.         var myWidth = screen.availWidth - 50;
  37.         var myHeight = screen.availHeight - 100;
  38.     } else {
  39.         var myWidth = 640;
  40.         var myHeight = 480;
  41.         var avLeft = 0;
  42.         var avTop = 0;
  43.     }    
  44.     var windowprops = "top=" + avTop + ",left=" + avLeft + ",width=" + myWidth + ",outerwidth=" + myWidth + ",height=" + myHeight + ",outerheight=" + myHeight + ",scrollbars";
  45.     var url = "";
  46.     if (action == "e") {
  47.         url = "$script_url/board-profile.$cgi_extension?action=editpost&postid=" + post + "&page=" + topic + "/" + page;
  48.     } else {
  49.         url = "$script_url/board-profile.$cgi_extension?action=delpost&postid=" + post + "&page=" + topic + "/" + page;
  50.     }
  51.     window.open(url, 'EditDelWin', windowprops);
  52. }
  53. function isformloaded () {
  54.     if (check_required() == false) {
  55.         return false;
  56.     }
  57.     if (typeof document.mainform.loaded != 'undefined') {
  58.         return true;
  59.     } else {
  60.         return confirm("$L{PROFILE_EDITOR_NOT_LOADED}");
  61.     }
  62. }
  63. function check_required () {
  64.     <#if $general->{editing} == 0#>
  65.         <#if pro#>
  66.             <#foreach $field (@fields)#>
  67.                 <#if $field->{require} == 1#>
  68.                     <#define $l = "$L{PROFILE_NOT_FILLED_IN_REQUIRED}"#>
  69.                     <#replace "%fieldname" with "$field->{descr}" in $l#>
  70.                     <#replace "'" with "\'" in $l#>
  71.                     if ( document.mainform.field$field->{var}_value.value == "" ) {
  72.                         alert('$l');
  73.                         return false;
  74.                     }
  75.                 <#endif#>
  76.             <#endloop#>
  77.         <#endif#>
  78.     <#endif#>
  79.     return true;
  80. }
  81. function toggle_checkbox (l) {
  82.     var x = document.mainform.notify[l];
  83.     if (x.style) {
  84.         x.style.backgroundColor = "$color->{bgcolor}";
  85.     }
  86.     var j = document.mainform.bysub[l];
  87.     var i = j.value.indexOf(':');
  88.     if (i <= 0) {
  89.         j.value = '';
  90.     } else {
  91.         j.value = j.value.substring(0, i-1);
  92.     }
  93. }
  94.  
  95. // -->
  96. </script>
  97.  
  98. <#define $pagetitle = "$L{PROFEDIT_TITLE}"#>
  99.  
  100. <#if $general->{adminprog} == 1#>
  101.     <#define $skip_nav_bar = "1"#>
  102. <#endif#>
  103. <#insert part () "dynamic_top"#>
  104. <#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
  105.  
  106. <#if $stuff->{saved} == 1 || $stuff->{editsave} == 1#>
  107.     <p>
  108.     <table width=100% border=0 bgcolor="$GLOBAL_OPTIONS{COLOR_text}">
  109.     <tr><td class="bb"><font color="$color->{bgcolor}">$L{PROFILE_NOTE_SAVED}</td></tr>
  110.     </table>
  111.     </p>
  112. <#endif#>
  113.  
  114. <#if $general->{editing} > 0#>
  115.     <b>
  116.     <#if $general->{editing} == 1#>
  117.         <a href="$cgiurl?action=user_mgr_1&username=$general->{self}">User Manager</a>:
  118.         <a href="$cgiurl?action=user_mgr_2&username=$general->{self}&group=$general->{group}">\u$general->{group}</a>:
  119.         Edit $general->{username}
  120.     <#endif#>
  121.     <#if $general->{editing} == 2#>
  122.         <a href="$cgiurl?action=mod_mgr&username=$general->{self}">Moderator Manager</a>:
  123.         Edit $general->{username}
  124.     <#endif#>
  125.     </b>
  126.     <hr>
  127. <#endif#>
  128.  
  129. <#if pro#>
  130. <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_OPTIONS}</p>
  131.     <ul>
  132.     <#if $general->{editing} == 0 && $#messages > 0#><li><a href="#posts">$L{PRED_LASTPOSTS}</a>
  133.     <li><a href="#info">$L{PROFEDIT_INFO}</a>
  134.     <#if $general->{email_notification}#><li><a href="#notify">$L{PROFEDIT_EMAILNOTIFY}</a>
  135.     <#if $general->{editing} > 0#><li><a href="#stposts">Account Properties</a>
  136.     <li><a href="#personal">$L{PRED_PERSONALINFO}</a>
  137.     <li><a href="#prefs">$L{PRED_PREFERENCES}</a>
  138.     <li><a href="#favorites">$L{PROFILE_EDITOR_FAVORITES_HEADER}</a>
  139.     <#if $GLOBAL_OPTIONS{user_picts} == 1 || option_defined: "user_picts" == 0#><li><a href="#picture">$L{PRED_PICTURE}</a>
  140.     <#define $signature_on = "0"#>
  141.     <#if $general->{account_type} eq "user" && $GLOBAL_OPTIONS->{signature_user}#>
  142.         <#define $signature_on = "1"#>
  143.     <#endif#>
  144.     <#if $general->{account_type} eq "moderator" && $GLOBAL_OPTIONS->{signature_mod}#>
  145.         <#define $signature_on = "1"#>
  146.     <#endif#>
  147.     <#if $general->{editing} == 1 && $GLOBAL_OPTIONS->{signature_user}#>
  148.         <#define $signature_on = "1"#>
  149.     <#endif#>
  150.     <#if $general->{editing} == 2 && $GLOBAL_OPTIONS->{signature_mod}#>
  151.         <#define $signature_on = "1"#>
  152.     <#endif#>
  153.     <#if $signature_on == 1#>
  154.         <li><a href="#sig">$L{PROFILE_EDITOR_SIGNATURE_HEADER}</a>
  155.     <#endif#>
  156.     <#if $GLOBAL_OPTIONS{pwchange} == 1 || $general->{editing} > 0 || $general->{account_type} eq "moderator"#><li><a href="#password">$L{PROFEDIT_CHANGEPASSWORD}</a>
  157.     <#if $general->{editing} >= 1#><li><a href="#edit">Editing Privileges</a></li>
  158.     <#if $GLOBAL_OPTIONS{user_selfdel} == 1 && $general->{editing} == 0#><li><a href="#del">$L{PROFILE_EDITOR_DELETE_ACCOUNT}</a></li>
  159.     <li><a href="$script_url/board-profile.$cgi_extension?action=view_profile&profile=$general->{profile}">{#if $L{VIEW_PROFILE} eq ""#}$L{PD_TITLE}{#else#}$L{VIEW_PROFILE}{#endif#}</a></li>
  160.     </ul>
  161. <#endif#>
  162.  
  163. <#if pro && $general->{editing} == 0 && $#messages > 0#>
  164.     <a name="posts"></a>
  165.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_LASTPOSTS}</p>
  166.     <ul>
  167.     <table border=0><tr><td bgcolor="$GLOBAL_OPTIONS{COLOR_text}" >
  168.     <table border=0 cellspacing=1 cellpadding=0 width=100%>
  169.     <tr align=center bgcolor="$color->{bgcolor}">
  170.     <#if $general->{allow_delete_posts}#>
  171.         <td class="b">$L{PROFILE_EDITOR_DELETE}</td>
  172.     <#endif#>
  173.     <#if $general->{allow_edit_posts}#>
  174.         <td class="b">$L{PROFILE_EDITOR_EDIT}</td>
  175.     <#endif#>
  176.     <td class="b">$L{PROFILE_EDITOR_VIEW}</td>
  177.     <td class="b" align=left>$L{PROFILE_EDITOR_MESSAGE}</td>
  178.     </tr>
  179.     <#foreach $message (@messages)#>
  180.         <tr bgcolor="<#pick color $message->{_iteration} from @alternating_colors(1,2)#>">
  181.         <#if $general->{allow_delete_posts}#>
  182.             <#if $message->{deleting} == 1#>
  183.                 <td align=center valign=top><a href="#" onClick="m($message->{topic}, $message->{page}, $message->{postindex}, 'd'); return false;"><img src="$icon_url/delete_icon.gif" border=0 height=25 width=25 alt="$L{PROFILE_EDITOR_DELETE}"></a></td>
  184.             <#else#>
  185.                 <td> </td>
  186.             <#endif#>
  187.         <#endif#>
  188.         <#if $general->{allow_edit_posts}#>
  189.             <#if $message->{editing} == 1#>
  190.                 <td align=center valign=top><a href="#" onClick="m($message->{topic}, $message->{page}, $message->{postindex}, 'e'); return false;"><img src="$icon_url/edit_icon.gif" border=0 height=25 width=25 alt="$L{PROFILE_EDITOR_EDIT}"></a></td>
  191.             <#else#>
  192.                 <td> </td>
  193.             <#endif#>
  194.         <#endif#>
  195.         <td align=center valign=top><a href="$script_url/show.$cgi_extension?tpc=$message->{topic}&post=$message->{postindex}#POST$message->{postindex}" target=_blank><img src="$icon_url/view_icon.gif" border=0 height=25 width=25 alt="$L{PROFILE_EDITOR_VIEW}"></a></td>
  196.         <td valign=top nowrap class="s"><#unescape "$message->{poststr}"#> (<#date $message->{time} format "$L{LONGDATE}"#>)<br><#unescape "$message->{firstchars}"#></td>
  197.         </tr>
  198.     <#endloop#>
  199.     </table>
  200.     </td></tr></table>
  201.     </ul>
  202. <#endif#>
  203.  
  204. <form action="$general->{action_url}" method=post enctype="multipart/form-data" name="mainform" onSubmit="return isformloaded()">
  205. <input type=hidden name="adminprog" value="$general->{adminprog}">
  206. <#if $general->{editing} >= 1#>
  207.     <input type=hidden name="user" value="$general->{username}">
  208.     <input type=hidden name="username" value="$general->{self}">
  209.     <input type=hidden name="group" value="$general->{group}">
  210. <#else#>
  211.     <input type=hidden name="username" value="$general->{username}">
  212.     <input type=hidden name="password" value="$general->{password}">
  213.     <input type=hidden name="encpass" value="$general->{encpass}">
  214. <#endif#>
  215. <input type=hidden name="action" value="$general->{action}">
  216. <input type=hidden name="loaded" value="0">
  217.  
  218. <a name="info"></a>
  219. <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_INFO}</p>
  220. <ul>
  221. <table>
  222. <tr>
  223. <td class="bb">$L{PROFEDIT_YOURUSERNAME}</td>
  224. <td class="nb">\
  225. <#if $GLOBAL_OPTIONS{capitalize_username} == 1 || $GLOBAL_OPTIONS{capitalize_username} eq ""#>
  226.     \u$general->{username}
  227. <#else#>
  228.     $general->{username}
  229. <#endif#>
  230. </td>
  231. </tr>
  232. <tr>
  233. <td class="bb">$L{PROFEDIT_YOURFULLNAME}</td>
  234. <td><input type=text name="fullname" size=40<#if $GLOBAL_OPTIONS{name_length_limit}#> maxlength=$GLOBAL_OPTIONS{name_length_limit_number}<#endif#> value="\
  235.     <#if $ffield->{fullname} eq "" || $ffield->{fullname} eq "fullname"#><#else#><#form escape "$ffield->{fullname}"#><#endif#>"></td>
  236. </tr>
  237. <tr>
  238. <td class="bb">$L{PROFEDIT_YOUREMAIL}</td>
  239. <#if $general->{prevent_change_email} == 0#>
  240.     <td><input type=text name="email" size=40 value="\
  241.     <#if $ffield->{email} eq "" || $ffield->{email} eq "email"#><#else#><#form escape "$ffield->{email}"#><#endif#>"></td>
  242. <#else#>
  243.     <td class="nb">$ffield->{email}</td>
  244. <#endif#>
  245. </tr>
  246. <#if $general->{changed_email}#>
  247.     <tr>
  248.     <td class="bb"> </td>
  249.     <td class="nb">$L{PROFILE_CHANGED_EMAIL_INSTR}</td>
  250.     </tr>
  251.     <tr>
  252.     <td class="bb">$L{PROFILE_FORGOT_VALIDATION_KEY}</td>
  253.     <td class="nb">$L{CHECK_THIS_BOX}<input type=text name="email_activation" value="" size=15></td>
  254.     </tr>
  255.     <tr>
  256.     <td class="bb">$L{PROFILE_RESEND_KEY}</td>
  257.     <td><input type=checkbox name="force_resend_key" value=1></td>
  258.     </tr>
  259. <#endif#>
  260.  
  261.  
  262. </table>
  263. <p>
  264. <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  265. </p>
  266. </ul>
  267.  
  268. <#if $general->{email_notification}#>
  269.     <a name="notify"></a>
  270.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_EMAILNOTIFY}</p>
  271.     <ul>
  272.     <p>$L{EMAIL_NOTIFY_PROFILE_INSTRUCTIONS}</p>
  273.     <table border=1 width=550>
  274.     <tr align=center>
  275.     <td class="b" width=50>$L{EMAIL_NOTIFY_PROFILE_NEW_POST}</td>
  276.     <#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#>
  277.         <td class="b">$L{EMAIL_NOTIFY_BY_SUBTOPIC}</td>
  278.     <#endif#>
  279.     <td class="b" align=left>$L{EMAIL_NOTIFY_PROFILE_TOPICS}</td>
  280.     </tr>
  281.     <#define $subselect = "0"#>
  282.     <#foreach $topic (@notify_topics)#>
  283.         <tr align=center>
  284.         <td class="s"><input type=checkbox name="notify" value="$topic->{number}"\
  285.             {#if $topic->{sel}#}{||}checked{#endif#}\
  286.             <#if $topic->{bysub} rexp=~ match(^$topic->{number}:.)#>
  287.                 <#if $browser->{ieX} || $browser->{ns6}#>
  288.                     {||}class="bbg"\
  289.                     {#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#}{||}onClick="toggle_checkbox($topic->{_iteration_minus1})"{#endif#}\
  290.                     ></td>
  291.                 <#else#>
  292.                     {#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#}{||}onClick="toggle_checkbox($topic->{_iteration_minus1})"{#endif#}\
  293.                     ><font color="#0000ff">*</font></td>
  294.                 <#endif#>
  295.                 <#define $subselect = "1"#>
  296.             <#else#>
  297.                 ></td>
  298.             <#endif#>
  299.             <#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#>
  300.                 <td class="s">
  301.                 <input type=button value="$L{EMAIL_NOTIFY_PROFILE_GO}" onClick="window.open('$script_url/board-profile.$cgi_extension?action=emsel&topic=$topic->{number}&item=$topic->{_iteration}', 'emwin', 'width=400,height=500,scrollbars=yes,resizable=yes');">
  302.                 <input type=hidden name="bysub" value="$topic->{bysub}">
  303.                 </td>
  304.             <#endif#>
  305.         <td class="s" align=left>$topic->{name}</td>
  306.         </tr>
  307.     <#endloop#>
  308.     <#if $subselect == 1#>
  309.         <tr>
  310.         <td colspan=3 class="s"><font color="#0000ff">*</font> $L{PRED_FIRSTLEVEL_ON}</td>
  311.         </tr>
  312.     <#endif#>
  313.     </table>
  314.     <p>$L{EMAIL_NOTIFY_PROFILE_ADDITIONAL}</p>
  315.     <table border=1 width=550>
  316.     <tr align=center>
  317.     <td class="s" width=50><input type=checkbox name="notify" value="0"{#if $notify->{own_post}#} checked{#endif#}></td>
  318.     <td class="s" align=left>$L{PROFEDIT_MYPOSTSBOX}</td>
  319.     </tr>
  320.     <#if pro#>
  321.         <tr align=center>
  322.         <td class="s"><input type=checkbox name="notify" value="00"{#if $notify->{reply_post}#} checked{#endif#}></td>
  323.         <td class="s" align=left>$L{PRED_REPLIESBOX}</td>
  324.         </tr>
  325.         <#if $GLOBAL_OPTIONS->{disable_html_mail} == 0#>
  326.             <tr align=center>
  327.             <td class="s"><input type=checkbox name="notify" value="000"{#if $notify->{format_html}#} checked{#endif#}></td>
  328.             <td class="s" align=left>$L{EMAIL_HTML_PREF}</td>
  329.             </tr>
  330.         <#endif#>
  331.     <#endif#>
  332.     </table>
  333.     <p><input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  334.     </p>
  335.     <input type=hidden name="selbysub" value="$notify->{bysub}">
  336.     <input type=hidden name="email_included" value="1">
  337.     </ul>
  338. <#endif#>
  339.  
  340. <#if $general->{editing} > 0 || $general->{is_superuser} == 1#>
  341.     <a name="stposts"></a>
  342.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> Account Properties</p>
  343.     <ul>
  344.         <table border=0>
  345.         <tr>
  346.         <td class="b">Creation Date:</td>
  347.         <td><select name="cmonth">
  348.             <#for $i = 0 to 11 step 1#>
  349.                 <option value="$i"{#if $creation->{month} == $i#} selected{#endif#}>$L{MONTH}[$i]</option>
  350.             <#endfor#>
  351.             </select>
  352.             <input type=text maxlength=2 name="cday" size=2 style="font: 9pt courier new;" value="$creation->{day}">
  353.             , <select name="cyear" size="1">
  354.             <#for $i = 1997 to $creation->{curryear} step 1#>
  355.                 <option value="$i"\
  356.                     <#if $creation->{year} == 0 && $creation->{curryear} == $i#>
  357.                         {||}selected\
  358.                     <#else#>
  359.                         <#if $creation->{year} == $i#>
  360.                             {||}selected\
  361.                         <#endif#>
  362.                     <#endif#>
  363.                     >$i</option>
  364.             <#endfor#>
  365.             </select>
  366.         </td>
  367.         </tr>                
  368.     
  369.         <#if pro#>
  370.             <tr>
  371.             <td class="b">Account Status:</td>
  372.             <td><select name="status" size=1>
  373.                 <#insert part () "INIT"#>
  374.                 <#if $general->{editing} == 1 && $general->{self} ne $superuser#>
  375.                     <#define $maxtop = "8"#>
  376.                 <#else#>
  377.                     <#define $maxtop = "10"#>
  378.                 <#endif#>
  379.                 <#if $general->{is_superuser} == 1#>
  380.                     <#define $maxtop = "10"#>
  381.                 <#endif#>
  382.                 <#for $i = 3 to $maxtop step 1#>
  383.                     <option value="$i"{#if $ffield->{status} == $i#} selected{#endif#}>$statuses[$i]->{text}</option>
  384.                 <#endfor#>
  385.             </select></td>
  386.             </tr>
  387.             <tr>
  388.             <td class="b">Number of Posts:</td>
  389.             <td><input type=text name="posts" size=5 value="$ffield->{posts}"></td>
  390.             </tr>
  391.         <#endif#>
  392.         </table>
  393.         <p><input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  394.         </p>
  395.     </ul>
  396. <#endif#>
  397.  
  398. <#if pro#>
  399.     <a name="personal"></a>
  400.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PERSONALINFO}</p>
  401.  
  402.     <ul>
  403.     <table border=0><tr><td bgcolor="$GLOBAL_OPTIONS{COLOR_text}">
  404.     <table border=0 cellspacing=1 cellpadding=2 width=100%>
  405.     <tr align=center bgcolor="$color->{bgcolor}">
  406.     <td class="bb" width=75>$L{PROFILE_EDITOR_DISPLAY}</td>
  407.     <td class="bb" width=75>$L{PROFILE_EDITOR_STATUS}</td>
  408.     <td class="bb">$L{PROFILE_EDITOR_FIELD_NAME}</td>
  409.     <td class="bb" align=left>$L{PROFILE_EDITOR_YOUR_RESPONSE}</td>
  410.     </tr>
  411.     <#foreach $field (@fields)#>
  412.         <#if $field->{iter} > 0#>
  413.             <#if $field->{var} ne ""#>
  414.                 <tr bgcolor="<#pick color $field->{_iteration} from @alternating_colors(1,2)#>">
  415.                 <td colspan=3><input type=text name=custom$field->{iter}_var value="<#form escape "$field->{var}"#>" size=35></td>
  416.                 <td><input type=text name=custom$field->{iter}_val value="<#form escape "$field->{val}"#>" size=40></td>
  417.                 </tr>
  418.             <#else#>
  419.                 <#skip iteration#>
  420.             <#endif#>
  421.         <#else#>
  422.             <tr bgcolor="<#pick color $field->{_iteration} from @alternating_colors(1,2)#>">
  423.             <td class="nb" align=center>
  424.             <#if $field->{display} == 0#>$L{PROFILE_EDITOR_HIDDEN}<#endif#>
  425.             <#if $field->{display} == 2#>$L{PROFILE_EDITOR_SHOWN}<#endif#>
  426.             <#if $field->{display} == 1#>
  427.                 <select name="field$field->{var}_hidden" size=1>
  428.                 <option value="1"{#if $field->{choose_hidden} == 1#} selected{#endif#}>$L{PROFILE_EDITOR_HIDDEN}</option>
  429.                 <option value="0"{#if $field->{choose_hidden} == 0#} selected{#endif#}>$L{PROFILE_EDITOR_SHOWN}</option>
  430.                 </select>
  431.             <#endif#>
  432.             </td>
  433.             <td class="nb" align=center>
  434.             <#if $field->{require} == 1#><b>$L{PROFILE_EDITOR_REQUIRED}</b><#else#>$L{PROFILE_EDITOR_OPTIONAL}<#endif#>
  435.             </td>
  436.             <td class="nb">$field->{descr}</td>
  437.             <td>
  438.                 <#if $field->{size} == 1#>
  439.                     <input type=text name="field$field->{var}_value" size=40 value="<#form escape "$field->{value}"#>">  
  440.                 <#else#>
  441.                     <textarea name="field$field->{var}_value" cols=35 wrap=virtual rows="$field->{size}"><#form escape "$field->{value}"#></textarea>  
  442.                 <#endif#>
  443.             </td>
  444.             </tr>
  445.         <#endif#>
  446.     <#endloop#>
  447.     </table></td></tr></table>
  448.  
  449.     <#if $general->{custom_count} > 0#>
  450.         <p>
  451.         $L{PROFILE_EDITOR_HOWTO_DELETE_CUSTOM}
  452.         </p>
  453.     <#endif#>
  454.     <#if $general->{custom_count} < 10#>
  455.         <p>
  456.         $L{PROFILE_EDITOR_HOWTO_ADD_CUSTOM}
  457.         </p>
  458.     <#else#>
  459.         <p>
  460.         $L{PROFILE_EDITOR_NO_MORE_CUSTOM}
  461.         </p>
  462.     <#endif#>
  463.  
  464.     <#if $general->{custom_count} < 10#>
  465.         <ul>
  466.             <table>
  467.             <tr>
  468.             <td class="bb">$L{PROFILE_EDITOR_CUSTOM_FIELD_TITLE}</td>
  469.             <td><input type=text name="custom_title_new" size=35></td>
  470.             </tr>
  471.             <tr>
  472.             <td class="bb">$L{PROFILE_EDITOR_CUSTOM_FIELD_ANSWER}</td>
  473.             <td><input type=text name="custom_answer_new" size=35></td>
  474.             </tr>
  475.             </table>
  476.         </ul>
  477.     <#endif#>
  478.     <p>
  479.     <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  480.     </p>
  481.  
  482.     </ul>
  483.  
  484.     <a name="prefs"></a>
  485.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PREFERENCES}</p>
  486.  
  487.     <ul>
  488.     <p>
  489.     $L{PRED_PREFERENCES_INSTR}
  490.     </p>
  491.     <p>
  492.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(a)#>
  493.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(a)#><input type="hidden" name="pref" value="a">
  494.     <#else#>
  495.         <input type=checkbox name="pref" value="a"{#if $ffield->{prefs} =~ match(a)#} checked{#endif#}>
  496.             $L{PRED_COOKIE}<br>
  497.     <#endif#>
  498.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(b)#>
  499.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(b)#><input type="hidden" name="pref" value="b">
  500.     <#else#>
  501.              <input type=checkbox name="pref" value="b"{#if $ffield->{prefs} =~ match(b)#} checked{#endif#}>
  502.             $L{PRED_COOKIE_TEMP}<br>
  503.     <#endif#>
  504.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(c)#>
  505.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(c)#><input type="hidden" name="pref" value="c">
  506.     <#else#>
  507.         <input type=checkbox name="pref" value="c"{#if $ffield->{prefs} =~ match(c)#} checked{#endif#}>
  508.             $L{PROFILE_EDITOR_REAL_EMAIL_HIDE_PREFERENCE}<br>
  509.     <#endif#>
  510.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(d)#>
  511.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(d)#><input type="hidden" name="pref" value="d">
  512.     <#else#>
  513.         <input type=checkbox name="pref" value="d"{#if $ffield->{prefs} =~ match(d)#} checked{#endif#}>
  514.             $L{PRED_SKIP_PREVIEW}<br>
  515.     <#endif#>
  516.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(g)#>
  517.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(g)#><input type="hidden" name="pref" value="g">
  518.     <#else#>
  519.         <input type=checkbox name="pref" value="g"{#if $ffield->{prefs} =~ match(g)#} checked{#endif#}>
  520.             $L{PROFILE_EDITOR_TARGET_PREFERENCE}<br>
  521.     <#endif#>
  522.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(h)#>
  523.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(h)#><input type="hidden" name="pref" value="h">
  524.     <#else#>
  525.         <input type=checkbox name="pref" value="h"{#if $ffield->{prefs} =~ match(h)#} checked{#endif#}>
  526.             $L{PROFILE_EDITOR_FAVORITES_PREFERENCE}<br>
  527.     <#endif#>
  528.     <#if $general->{spell_checking_enabled}#>
  529.         <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(i)#>
  530.             <#if $GLOBAL_OPTIONS{default_prefs} =~ match(i)#><input type="hidden" name="pref" value="i">
  531.         <#else#>
  532.             <input type=checkbox name="pref" value="i"{#if $ffield->{prefs} =~ match(i)#} checked{#endif#}>
  533.                 $L{PRED_SPELLCHECK}<br>
  534.         <#endif#>
  535.     <#endif#>
  536.     <#if $GLOBAL_OPTIONS{allusers_allowhide} && $GLOBAL_OPTIONS{allow_allusers}#>
  537.         <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(k)#>
  538.             <#if $GLOBAL_OPTIONS{default_prefs} =~ match(k)#><input type="hidden" name="pref" value="k">
  539.         <#else#>
  540.             <input type=checkbox name="pref" value="k"{#if $ffield->{prefs} =~ match(k)#} checked{#endif#}>
  541.                 $L{ALLUSERS_PREFERENCE}<br>
  542.         <#endif#>
  543.     <#endif#>
  544.     <#if $GLOBAL_OPTIONS{private_messaging}#>
  545.         <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(l)#>
  546.             <#if $GLOBAL_OPTIONS{default_prefs} =~ match(l)#><input type="hidden" name="pref" value="l">
  547.         <#else#>
  548.             <input type=checkbox name="pref" value="l"{#if $ffield->{prefs} =~ match(l)#} checked{#endif#}>
  549.                 $L{PRIVATE_MESSAGE_BLOCK_MESSAGE_PREFERENCE}<br>
  550.         <#endif#>
  551.         <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(m)#>
  552.             <#if $GLOBAL_OPTIONS{default_prefs} =~ match(m)#><input type="hidden" name="pref" value="m">
  553.         <#else#>
  554.             <input type=checkbox name="pref" value="m"{#if $ffield->{prefs} =~ match(m)#} checked{#endif#}>
  555.                 $L{PRIVATE_MESSAGE_SKIP_INSTRUCTIONS_MESSAGE_PREFERENCE}<br>
  556.         <#endif#>
  557.     <#endif#>
  558.     <#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(n)#>
  559.         <#if $GLOBAL_OPTIONS{default_prefs} =~ match(n)#><input type="hidden" name="pref" value="n">
  560.     <#else#>
  561.         <input type=checkbox name="pref" value="n"{#if $ffield->{prefs} =~ match(n)#} checked{#endif#}>
  562.             $L{PROFILE_PREFERENCE_SHOW_MOST_RECENT}<br>
  563.     <#endif#>
  564.     </p>
  565.     <p>
  566.     <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  567.     </p>
  568.     </ul>
  569.  
  570.     <a name="favorites"></a>
  571.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_FAVORITES_HEADER}</p>
  572.     <ul>
  573.     <p>
  574.     $L{PRED_FAVORITES_DESCR}
  575.     </p>
  576.     <p>
  577.     <#foreach $topic (@favorites)#>
  578.         <input type=checkbox name="favorite" value="$topic->{number}"{#if $topic->{is_fav}#} checked{#endif#}> $topic->{name}<br>
  579.     <#endloop#>
  580.     </p>
  581.     <p>
  582.     <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  583.     </p>
  584.     </ul>
  585.  
  586.     <#if $GLOBAL_OPTIONS{user_picts} == 1 || option_defined: "user_picts" == 0#>
  587.         <a name="picture"></a>
  588.         <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PICTURE}</p>
  589.         <ul>
  590.         <#if $ffield->{picture} eq "" || exists: "$admin_dir/profiles/$ffield->{picture}" == 0#>
  591.             <p>
  592.             $L{PROFILE_EDITOR_NO_PICTURE}
  593.             </p>
  594.             <p>
  595.             <input type=file name="picture" size=40>
  596.             </p>
  597.         <#else#>
  598.             <p>
  599.             <img src="$script_url/board-profile.$cgi_extension?action=pict&file=$ffield->{picture}" alt="$L{PRED_PICTURE}">
  600.             </p>
  601.             <p>
  602.             $L{PROFILE_EDITOR_PICTURE_EXISTS}
  603.             </p>
  604.             <p>
  605.             <input type=file name="picture" size=40>
  606.             </p>
  607.             <p>
  608.             $L{PROFILE_EDITOR_PICTURE_DELETE}
  609.             </p>
  610.             <p>
  611.             <input type=checkbox name="delete_picture" value=1> $L{PROFILE_EDITOR_PICTURE_DELETE_BOX}
  612.             </p>
  613.         <#endif#>
  614.         <p>
  615.         <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  616.         </p>
  617.         </ul>
  618.     <#endif#>
  619.  
  620.     <#if $signature_on == 1#>
  621.         <a name="sig"></a>
  622.         <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_SIGNATURE_HEADER}</p>
  623.         <ul>
  624.             <p>
  625.             $L{PROFILE_EDITOR_SIGNATURE_EXPLANATION}
  626.             </p>
  627.             <p>
  628.             <textarea name="sig" rows=5 cols=50 wrap=virtual><#form escape "$ffield->{signature}"#></textarea>
  629.             </p>
  630.             <p>
  631.             <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  632.             </p>
  633.         </ul>
  634.     <#endif#>
  635. <#endif#>
  636.  
  637. <#if $GLOBAL_OPTIONS{pwchange} == 1 || $general->{editing} > 0 || $general->{account_type} eq "moderator"#>
  638.     <a name="password"></a>
  639.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_CHANGEPASSWORD}</p>
  640.     <ul>
  641.     <p>
  642.     $L{PROFEDIT_CHANGEPASSWORD_INSTR}
  643.     </p>
  644.     <p>
  645.     <table>
  646.     <tr>
  647.     <td class="bb">$L{PROFEDIT_NEWPASS}</td>
  648.     <td><input type=password name=new_pass_1 size=15></td>
  649.     </tr>
  650.     <tr>
  651.     <td class="bb">$L{PROFEDIT_VERIFY}</td>
  652.     <td><input type=password name=new_pass_2 size=15></td>
  653.     </tr>
  654.     </table>
  655.     </p>
  656.     <p>
  657.     <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  658.     </p>
  659.     </ul>
  660. <#endif#>
  661.  
  662. <#if $general->{editing} > 0#>
  663.     <a name="edit"></a>
  664.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> Editing Privileges</p>
  665.     <ul>
  666.     <p>
  667.     This person is allowed to edit his or her profile:
  668.     </p>
  669.     <ul>
  670.         <input type=radio name="edit_true_false" value="1"{#if $ffield->{edit} != 0#} checked{#endif#}>Yes<br>
  671.         <input type=radio name="edit_true_false" value="0"{#if $ffield->{edit} == 0#} checked{#endif#}>No<br>
  672.     </ul>
  673.     <p>
  674.         <input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
  675.     </p>
  676.     </ul>
  677. <#endif#>
  678. <input type=hidden name="loaded" value="1">
  679. </form>
  680.  
  681. <#if $GLOBAL_OPTIONS{user_selfdel} == 1 && $general->{editing} == 0#>
  682.     <form action="$script_url/board-profile.$cgi_extension" method=post name="df">
  683.     <input type=hidden name="action" value="delacct">
  684.     <input type=hidden name="username" value="$general->{username}">
  685.     <input type=hidden name="password" value="$general->{password}">
  686.     <input type=hidden name="encpass" value="$general->{encpass}">
  687.     <a name="del"></a>
  688.     <p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_DELETE_ACCOUNT}</p>
  689.     <ul>
  690.     <p>
  691.     $L{PROFILE_EDITOR_DELETE_EXPLANATION}
  692.     </p>
  693.     <p>
  694.     <input type=button value="$L{PROFILE_EDITOR_DELETE_ACCOUNT}" onClick="if (confirm('$L{PROFILE_EDITOR_DELETE_CONFIRMATION}')) { document.df.submit(); }">
  695.     </p>
  696.     </ul>
  697.     </form>
  698. <#endif#>
  699.  
  700. <#insert part () "dynamic_bottom"#>
  701. <!--END-->
  702.