home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
discus_admin_1357211388
/
template
/
ui
/
profile.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
26KB
|
702 lines
# FILE: profile.tmpl
# DESCRIPTION: Edit your profile (or someone else's profile)
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
# Translation note: This file is drawn from language_pro.conf and should not itself need
# to be translated (except for certain administrative parts)
<!--BEGIN-->
<#define array @alternating_colors (_index, color)#>
1 $color->{alt_9}
2 $color->{alt_10}
<#/define#>
<html>
<head>
<title>$L{PROFEDIT_TITLE}</title>
<style>
<!--
body { font-family: $color->{face}; line-spacing: 0 }
td.b { font: 8pt $color->{face}; font-weight: bold; }
td.s { font: 8pt $color->{face} }
td.nb { font: 10pt $color->{face} }
td.bb { font: 10pt $color->{face}; font-weight: bold; }
p.sect { font: 12pt $color->{face}; font-weight: bold; }
.bbg { background: #0000ff; }
-->
</style>
<script language="JavaScript">
<!--
function m (topic, page, post, action) {
if (typeof screen != 'undefined') {
var avLeft = parseInt(screen.availLeft);
var avTop = parseInt(screen.availTop);
if (isNaN(avLeft)) {var avLeft = 0}
if (isNaN(avTop)) {var avTop = 0}
var myWidth = screen.availWidth - 50;
var myHeight = screen.availHeight - 100;
} else {
var myWidth = 640;
var myHeight = 480;
var avLeft = 0;
var avTop = 0;
}
var windowprops = "top=" + avTop + ",left=" + avLeft + ",width=" + myWidth + ",outerwidth=" + myWidth + ",height=" + myHeight + ",outerheight=" + myHeight + ",scrollbars";
var url = "";
if (action == "e") {
url = "$script_url/board-profile.$cgi_extension?action=editpost&postid=" + post + "&page=" + topic + "/" + page;
} else {
url = "$script_url/board-profile.$cgi_extension?action=delpost&postid=" + post + "&page=" + topic + "/" + page;
}
window.open(url, 'EditDelWin', windowprops);
}
function isformloaded () {
if (check_required() == false) {
return false;
}
if (typeof document.mainform.loaded != 'undefined') {
return true;
} else {
return confirm("$L{PROFILE_EDITOR_NOT_LOADED}");
}
}
function check_required () {
<#if $general->{editing} == 0#>
<#if pro#>
<#foreach $field (@fields)#>
<#if $field->{require} == 1#>
<#define $l = "$L{PROFILE_NOT_FILLED_IN_REQUIRED}"#>
<#replace "%fieldname" with "$field->{descr}" in $l#>
<#replace "'" with "\'" in $l#>
if ( document.mainform.field$field->{var}_value.value == "" ) {
alert('$l');
return false;
}
<#endif#>
<#endloop#>
<#endif#>
<#endif#>
return true;
}
function toggle_checkbox (l) {
var x = document.mainform.notify[l];
if (x.style) {
x.style.backgroundColor = "$color->{bgcolor}";
}
var j = document.mainform.bysub[l];
var i = j.value.indexOf(':');
if (i <= 0) {
j.value = '';
} else {
j.value = j.value.substring(0, i-1);
}
}
// -->
</script>
<#define $pagetitle = "$L{PROFEDIT_TITLE}"#>
<#if $general->{adminprog} == 1#>
<#define $skip_nav_bar = "1"#>
<#endif#>
<#insert part () "dynamic_top"#>
<#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
<#if $stuff->{saved} == 1 || $stuff->{editsave} == 1#>
<p>
<table width=100% border=0 bgcolor="$GLOBAL_OPTIONS{COLOR_text}">
<tr><td class="bb"><font color="$color->{bgcolor}">$L{PROFILE_NOTE_SAVED}</td></tr>
</table>
</p>
<#endif#>
<#if $general->{editing} > 0#>
<b>
<#if $general->{editing} == 1#>
<a href="$cgiurl?action=user_mgr_1&username=$general->{self}">User Manager</a>:
<a href="$cgiurl?action=user_mgr_2&username=$general->{self}&group=$general->{group}">\u$general->{group}</a>:
Edit $general->{username}
<#endif#>
<#if $general->{editing} == 2#>
<a href="$cgiurl?action=mod_mgr&username=$general->{self}">Moderator Manager</a>:
Edit $general->{username}
<#endif#>
</b>
<hr>
<#endif#>
<#if pro#>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_OPTIONS}</p>
<ul>
<#if $general->{editing} == 0 && $#messages > 0#><li><a href="#posts">$L{PRED_LASTPOSTS}</a>
<li><a href="#info">$L{PROFEDIT_INFO}</a>
<#if $general->{email_notification}#><li><a href="#notify">$L{PROFEDIT_EMAILNOTIFY}</a>
<#if $general->{editing} > 0#><li><a href="#stposts">Account Properties</a>
<li><a href="#personal">$L{PRED_PERSONALINFO}</a>
<li><a href="#prefs">$L{PRED_PREFERENCES}</a>
<li><a href="#favorites">$L{PROFILE_EDITOR_FAVORITES_HEADER}</a>
<#if $GLOBAL_OPTIONS{user_picts} == 1 || option_defined: "user_picts" == 0#><li><a href="#picture">$L{PRED_PICTURE}</a>
<#define $signature_on = "0"#>
<#if $general->{account_type} eq "user" && $GLOBAL_OPTIONS->{signature_user}#>
<#define $signature_on = "1"#>
<#endif#>
<#if $general->{account_type} eq "moderator" && $GLOBAL_OPTIONS->{signature_mod}#>
<#define $signature_on = "1"#>
<#endif#>
<#if $general->{editing} == 1 && $GLOBAL_OPTIONS->{signature_user}#>
<#define $signature_on = "1"#>
<#endif#>
<#if $general->{editing} == 2 && $GLOBAL_OPTIONS->{signature_mod}#>
<#define $signature_on = "1"#>
<#endif#>
<#if $signature_on == 1#>
<li><a href="#sig">$L{PROFILE_EDITOR_SIGNATURE_HEADER}</a>
<#endif#>
<#if $GLOBAL_OPTIONS{pwchange} == 1 || $general->{editing} > 0 || $general->{account_type} eq "moderator"#><li><a href="#password">$L{PROFEDIT_CHANGEPASSWORD}</a>
<#if $general->{editing} >= 1#><li><a href="#edit">Editing Privileges</a></li>
<#if $GLOBAL_OPTIONS{user_selfdel} == 1 && $general->{editing} == 0#><li><a href="#del">$L{PROFILE_EDITOR_DELETE_ACCOUNT}</a></li>
<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>
</ul>
<#endif#>
<#if pro && $general->{editing} == 0 && $#messages > 0#>
<a name="posts"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_LASTPOSTS}</p>
<ul>
<table border=0><tr><td bgcolor="$GLOBAL_OPTIONS{COLOR_text}" >
<table border=0 cellspacing=1 cellpadding=0 width=100%>
<tr align=center bgcolor="$color->{bgcolor}">
<#if $general->{allow_delete_posts}#>
<td class="b">$L{PROFILE_EDITOR_DELETE}</td>
<#endif#>
<#if $general->{allow_edit_posts}#>
<td class="b">$L{PROFILE_EDITOR_EDIT}</td>
<#endif#>
<td class="b">$L{PROFILE_EDITOR_VIEW}</td>
<td class="b" align=left>$L{PROFILE_EDITOR_MESSAGE}</td>
</tr>
<#foreach $message (@messages)#>
<tr bgcolor="<#pick color $message->{_iteration} from @alternating_colors(1,2)#>">
<#if $general->{allow_delete_posts}#>
<#if $message->{deleting} == 1#>
<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>
<#else#>
<td> </td>
<#endif#>
<#endif#>
<#if $general->{allow_edit_posts}#>
<#if $message->{editing} == 1#>
<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>
<#else#>
<td> </td>
<#endif#>
<#endif#>
<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>
<td valign=top nowrap class="s"><#unescape "$message->{poststr}"#> (<#date $message->{time} format "$L{LONGDATE}"#>)<br><#unescape "$message->{firstchars}"#></td>
</tr>
<#endloop#>
</table>
</td></tr></table>
</ul>
<#endif#>
<form action="$general->{action_url}" method=post enctype="multipart/form-data" name="mainform" onSubmit="return isformloaded()">
<input type=hidden name="adminprog" value="$general->{adminprog}">
<#if $general->{editing} >= 1#>
<input type=hidden name="user" value="$general->{username}">
<input type=hidden name="username" value="$general->{self}">
<input type=hidden name="group" value="$general->{group}">
<#else#>
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="password" value="$general->{password}">
<input type=hidden name="encpass" value="$general->{encpass}">
<#endif#>
<input type=hidden name="action" value="$general->{action}">
<input type=hidden name="loaded" value="0">
<a name="info"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_INFO}</p>
<ul>
<table>
<tr>
<td class="bb">$L{PROFEDIT_YOURUSERNAME}</td>
<td class="nb">\
<#if $GLOBAL_OPTIONS{capitalize_username} == 1 || $GLOBAL_OPTIONS{capitalize_username} eq ""#>
\u$general->{username}
<#else#>
$general->{username}
<#endif#>
</td>
</tr>
<tr>
<td class="bb">$L{PROFEDIT_YOURFULLNAME}</td>
<td><input type=text name="fullname" size=40<#if $GLOBAL_OPTIONS{name_length_limit}#> maxlength=$GLOBAL_OPTIONS{name_length_limit_number}<#endif#> value="\
<#if $ffield->{fullname} eq "" || $ffield->{fullname} eq "fullname"#><#else#><#form escape "$ffield->{fullname}"#><#endif#>"></td>
</tr>
<tr>
<td class="bb">$L{PROFEDIT_YOUREMAIL}</td>
<#if $general->{prevent_change_email} == 0#>
<td><input type=text name="email" size=40 value="\
<#if $ffield->{email} eq "" || $ffield->{email} eq "email"#><#else#><#form escape "$ffield->{email}"#><#endif#>"></td>
<#else#>
<td class="nb">$ffield->{email}</td>
<#endif#>
</tr>
<#if $general->{changed_email}#>
<tr>
<td class="bb"> </td>
<td class="nb">$L{PROFILE_CHANGED_EMAIL_INSTR}</td>
</tr>
<tr>
<td class="bb">$L{PROFILE_FORGOT_VALIDATION_KEY}</td>
<td class="nb">$L{CHECK_THIS_BOX}<input type=text name="email_activation" value="" size=15></td>
</tr>
<tr>
<td class="bb">$L{PROFILE_RESEND_KEY}</td>
<td><input type=checkbox name="force_resend_key" value=1></td>
</tr>
<#endif#>
</table>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#if $general->{email_notification}#>
<a name="notify"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_EMAILNOTIFY}</p>
<ul>
<p>$L{EMAIL_NOTIFY_PROFILE_INSTRUCTIONS}</p>
<table border=1 width=550>
<tr align=center>
<td class="b" width=50>$L{EMAIL_NOTIFY_PROFILE_NEW_POST}</td>
<#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#>
<td class="b">$L{EMAIL_NOTIFY_BY_SUBTOPIC}</td>
<#endif#>
<td class="b" align=left>$L{EMAIL_NOTIFY_PROFILE_TOPICS}</td>
</tr>
<#define $subselect = "0"#>
<#foreach $topic (@notify_topics)#>
<tr align=center>
<td class="s"><input type=checkbox name="notify" value="$topic->{number}"\
{#if $topic->{sel}#}{||}checked{#endif#}\
<#if $topic->{bysub} rexp=~ match(^$topic->{number}:.)#>
<#if $browser->{ieX} || $browser->{ns6}#>
{||}class="bbg"\
{#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#}{||}onClick="toggle_checkbox($topic->{_iteration_minus1})"{#endif#}\
></td>
<#else#>
{#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#}{||}onClick="toggle_checkbox($topic->{_iteration_minus1})"{#endif#}\
><font color="#0000ff">*</font></td>
<#endif#>
<#define $subselect = "1"#>
<#else#>
></td>
<#endif#>
<#if pro && $GLOBAL_OPTIONS{email_bysubtopic} == 1#>
<td class="s">
<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');">
<input type=hidden name="bysub" value="$topic->{bysub}">
</td>
<#endif#>
<td class="s" align=left>$topic->{name}</td>
</tr>
<#endloop#>
<#if $subselect == 1#>
<tr>
<td colspan=3 class="s"><font color="#0000ff">*</font> $L{PRED_FIRSTLEVEL_ON}</td>
</tr>
<#endif#>
</table>
<p>$L{EMAIL_NOTIFY_PROFILE_ADDITIONAL}</p>
<table border=1 width=550>
<tr align=center>
<td class="s" width=50><input type=checkbox name="notify" value="0"{#if $notify->{own_post}#} checked{#endif#}></td>
<td class="s" align=left>$L{PROFEDIT_MYPOSTSBOX}</td>
</tr>
<#if pro#>
<tr align=center>
<td class="s"><input type=checkbox name="notify" value="00"{#if $notify->{reply_post}#} checked{#endif#}></td>
<td class="s" align=left>$L{PRED_REPLIESBOX}</td>
</tr>
<#if $GLOBAL_OPTIONS->{disable_html_mail} == 0#>
<tr align=center>
<td class="s"><input type=checkbox name="notify" value="000"{#if $notify->{format_html}#} checked{#endif#}></td>
<td class="s" align=left>$L{EMAIL_HTML_PREF}</td>
</tr>
<#endif#>
<#endif#>
</table>
<p><input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
<input type=hidden name="selbysub" value="$notify->{bysub}">
<input type=hidden name="email_included" value="1">
</ul>
<#endif#>
<#if $general->{editing} > 0 || $general->{is_superuser} == 1#>
<a name="stposts"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> Account Properties</p>
<ul>
<table border=0>
<tr>
<td class="b">Creation Date:</td>
<td><select name="cmonth">
<#for $i = 0 to 11 step 1#>
<option value="$i"{#if $creation->{month} == $i#} selected{#endif#}>$L{MONTH}[$i]</option>
<#endfor#>
</select>
<input type=text maxlength=2 name="cday" size=2 style="font: 9pt courier new;" value="$creation->{day}">
, <select name="cyear" size="1">
<#for $i = 1997 to $creation->{curryear} step 1#>
<option value="$i"\
<#if $creation->{year} == 0 && $creation->{curryear} == $i#>
{||}selected\
<#else#>
<#if $creation->{year} == $i#>
{||}selected\
<#endif#>
<#endif#>
>$i</option>
<#endfor#>
</select>
</td>
</tr>
<#if pro#>
<tr>
<td class="b">Account Status:</td>
<td><select name="status" size=1>
<#insert part () "INIT"#>
<#if $general->{editing} == 1 && $general->{self} ne $superuser#>
<#define $maxtop = "8"#>
<#else#>
<#define $maxtop = "10"#>
<#endif#>
<#if $general->{is_superuser} == 1#>
<#define $maxtop = "10"#>
<#endif#>
<#for $i = 3 to $maxtop step 1#>
<option value="$i"{#if $ffield->{status} == $i#} selected{#endif#}>$statuses[$i]->{text}</option>
<#endfor#>
</select></td>
</tr>
<tr>
<td class="b">Number of Posts:</td>
<td><input type=text name="posts" size=5 value="$ffield->{posts}"></td>
</tr>
<#endif#>
</table>
<p><input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#endif#>
<#if pro#>
<a name="personal"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PERSONALINFO}</p>
<ul>
<table border=0><tr><td bgcolor="$GLOBAL_OPTIONS{COLOR_text}">
<table border=0 cellspacing=1 cellpadding=2 width=100%>
<tr align=center bgcolor="$color->{bgcolor}">
<td class="bb" width=75>$L{PROFILE_EDITOR_DISPLAY}</td>
<td class="bb" width=75>$L{PROFILE_EDITOR_STATUS}</td>
<td class="bb">$L{PROFILE_EDITOR_FIELD_NAME}</td>
<td class="bb" align=left>$L{PROFILE_EDITOR_YOUR_RESPONSE}</td>
</tr>
<#foreach $field (@fields)#>
<#if $field->{iter} > 0#>
<#if $field->{var} ne ""#>
<tr bgcolor="<#pick color $field->{_iteration} from @alternating_colors(1,2)#>">
<td colspan=3><input type=text name=custom$field->{iter}_var value="<#form escape "$field->{var}"#>" size=35></td>
<td><input type=text name=custom$field->{iter}_val value="<#form escape "$field->{val}"#>" size=40></td>
</tr>
<#else#>
<#skip iteration#>
<#endif#>
<#else#>
<tr bgcolor="<#pick color $field->{_iteration} from @alternating_colors(1,2)#>">
<td class="nb" align=center>
<#if $field->{display} == 0#>$L{PROFILE_EDITOR_HIDDEN}<#endif#>
<#if $field->{display} == 2#>$L{PROFILE_EDITOR_SHOWN}<#endif#>
<#if $field->{display} == 1#>
<select name="field$field->{var}_hidden" size=1>
<option value="1"{#if $field->{choose_hidden} == 1#} selected{#endif#}>$L{PROFILE_EDITOR_HIDDEN}</option>
<option value="0"{#if $field->{choose_hidden} == 0#} selected{#endif#}>$L{PROFILE_EDITOR_SHOWN}</option>
</select>
<#endif#>
</td>
<td class="nb" align=center>
<#if $field->{require} == 1#><b>$L{PROFILE_EDITOR_REQUIRED}</b><#else#>$L{PROFILE_EDITOR_OPTIONAL}<#endif#>
</td>
<td class="nb">$field->{descr}</td>
<td>
<#if $field->{size} == 1#>
<input type=text name="field$field->{var}_value" size=40 value="<#form escape "$field->{value}"#>">
<#else#>
<textarea name="field$field->{var}_value" cols=35 wrap=virtual rows="$field->{size}"><#form escape "$field->{value}"#></textarea>
<#endif#>
</td>
</tr>
<#endif#>
<#endloop#>
</table></td></tr></table>
<#if $general->{custom_count} > 0#>
<p>
$L{PROFILE_EDITOR_HOWTO_DELETE_CUSTOM}
</p>
<#endif#>
<#if $general->{custom_count} < 10#>
<p>
$L{PROFILE_EDITOR_HOWTO_ADD_CUSTOM}
</p>
<#else#>
<p>
$L{PROFILE_EDITOR_NO_MORE_CUSTOM}
</p>
<#endif#>
<#if $general->{custom_count} < 10#>
<ul>
<table>
<tr>
<td class="bb">$L{PROFILE_EDITOR_CUSTOM_FIELD_TITLE}</td>
<td><input type=text name="custom_title_new" size=35></td>
</tr>
<tr>
<td class="bb">$L{PROFILE_EDITOR_CUSTOM_FIELD_ANSWER}</td>
<td><input type=text name="custom_answer_new" size=35></td>
</tr>
</table>
</ul>
<#endif#>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<a name="prefs"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PREFERENCES}</p>
<ul>
<p>
$L{PRED_PREFERENCES_INSTR}
</p>
<p>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(a)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(a)#><input type="hidden" name="pref" value="a">
<#else#>
<input type=checkbox name="pref" value="a"{#if $ffield->{prefs} =~ match(a)#} checked{#endif#}>
$L{PRED_COOKIE}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(b)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(b)#><input type="hidden" name="pref" value="b">
<#else#>
<input type=checkbox name="pref" value="b"{#if $ffield->{prefs} =~ match(b)#} checked{#endif#}>
$L{PRED_COOKIE_TEMP}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(c)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(c)#><input type="hidden" name="pref" value="c">
<#else#>
<input type=checkbox name="pref" value="c"{#if $ffield->{prefs} =~ match(c)#} checked{#endif#}>
$L{PROFILE_EDITOR_REAL_EMAIL_HIDE_PREFERENCE}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(d)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(d)#><input type="hidden" name="pref" value="d">
<#else#>
<input type=checkbox name="pref" value="d"{#if $ffield->{prefs} =~ match(d)#} checked{#endif#}>
$L{PRED_SKIP_PREVIEW}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(g)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(g)#><input type="hidden" name="pref" value="g">
<#else#>
<input type=checkbox name="pref" value="g"{#if $ffield->{prefs} =~ match(g)#} checked{#endif#}>
$L{PROFILE_EDITOR_TARGET_PREFERENCE}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(h)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(h)#><input type="hidden" name="pref" value="h">
<#else#>
<input type=checkbox name="pref" value="h"{#if $ffield->{prefs} =~ match(h)#} checked{#endif#}>
$L{PROFILE_EDITOR_FAVORITES_PREFERENCE}<br>
<#endif#>
<#if $general->{spell_checking_enabled}#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(i)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(i)#><input type="hidden" name="pref" value="i">
<#else#>
<input type=checkbox name="pref" value="i"{#if $ffield->{prefs} =~ match(i)#} checked{#endif#}>
$L{PRED_SPELLCHECK}<br>
<#endif#>
<#endif#>
<#if $GLOBAL_OPTIONS{allusers_allowhide} && $GLOBAL_OPTIONS{allow_allusers}#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(k)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(k)#><input type="hidden" name="pref" value="k">
<#else#>
<input type=checkbox name="pref" value="k"{#if $ffield->{prefs} =~ match(k)#} checked{#endif#}>
$L{ALLUSERS_PREFERENCE}<br>
<#endif#>
<#endif#>
<#if $GLOBAL_OPTIONS{private_messaging}#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(l)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(l)#><input type="hidden" name="pref" value="l">
<#else#>
<input type=checkbox name="pref" value="l"{#if $ffield->{prefs} =~ match(l)#} checked{#endif#}>
$L{PRIVATE_MESSAGE_BLOCK_MESSAGE_PREFERENCE}<br>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(m)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(m)#><input type="hidden" name="pref" value="m">
<#else#>
<input type=checkbox name="pref" value="m"{#if $ffield->{prefs} =~ match(m)#} checked{#endif#}>
$L{PRIVATE_MESSAGE_SKIP_INSTRUCTIONS_MESSAGE_PREFERENCE}<br>
<#endif#>
<#endif#>
<#if $GLOBAL_OPTIONS{permanent_prefs} =~ match(n)#>
<#if $GLOBAL_OPTIONS{default_prefs} =~ match(n)#><input type="hidden" name="pref" value="n">
<#else#>
<input type=checkbox name="pref" value="n"{#if $ffield->{prefs} =~ match(n)#} checked{#endif#}>
$L{PROFILE_PREFERENCE_SHOW_MOST_RECENT}<br>
<#endif#>
</p>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<a name="favorites"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_FAVORITES_HEADER}</p>
<ul>
<p>
$L{PRED_FAVORITES_DESCR}
</p>
<p>
<#foreach $topic (@favorites)#>
<input type=checkbox name="favorite" value="$topic->{number}"{#if $topic->{is_fav}#} checked{#endif#}> $topic->{name}<br>
<#endloop#>
</p>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#if $GLOBAL_OPTIONS{user_picts} == 1 || option_defined: "user_picts" == 0#>
<a name="picture"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PRED_PICTURE}</p>
<ul>
<#if $ffield->{picture} eq "" || exists: "$admin_dir/profiles/$ffield->{picture}" == 0#>
<p>
$L{PROFILE_EDITOR_NO_PICTURE}
</p>
<p>
<input type=file name="picture" size=40>
</p>
<#else#>
<p>
<img src="$script_url/board-profile.$cgi_extension?action=pict&file=$ffield->{picture}" alt="$L{PRED_PICTURE}">
</p>
<p>
$L{PROFILE_EDITOR_PICTURE_EXISTS}
</p>
<p>
<input type=file name="picture" size=40>
</p>
<p>
$L{PROFILE_EDITOR_PICTURE_DELETE}
</p>
<p>
<input type=checkbox name="delete_picture" value=1> $L{PROFILE_EDITOR_PICTURE_DELETE_BOX}
</p>
<#endif#>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#endif#>
<#if $signature_on == 1#>
<a name="sig"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_SIGNATURE_HEADER}</p>
<ul>
<p>
$L{PROFILE_EDITOR_SIGNATURE_EXPLANATION}
</p>
<p>
<textarea name="sig" rows=5 cols=50 wrap=virtual><#form escape "$ffield->{signature}"#></textarea>
</p>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#endif#>
<#endif#>
<#if $GLOBAL_OPTIONS{pwchange} == 1 || $general->{editing} > 0 || $general->{account_type} eq "moderator"#>
<a name="password"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFEDIT_CHANGEPASSWORD}</p>
<ul>
<p>
$L{PROFEDIT_CHANGEPASSWORD_INSTR}
</p>
<p>
<table>
<tr>
<td class="bb">$L{PROFEDIT_NEWPASS}</td>
<td><input type=password name=new_pass_1 size=15></td>
</tr>
<tr>
<td class="bb">$L{PROFEDIT_VERIFY}</td>
<td><input type=password name=new_pass_2 size=15></td>
</tr>
</table>
</p>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#endif#>
<#if $general->{editing} > 0#>
<a name="edit"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> Editing Privileges</p>
<ul>
<p>
This person is allowed to edit his or her profile:
</p>
<ul>
<input type=radio name="edit_true_false" value="1"{#if $ffield->{edit} != 0#} checked{#endif#}>Yes<br>
<input type=radio name="edit_true_false" value="0"{#if $ffield->{edit} == 0#} checked{#endif#}>No<br>
</ul>
<p>
<input type=submit value="$L{PROFILE_EDITOR_SAVE_CHANGES}">
</p>
</ul>
<#endif#>
<input type=hidden name="loaded" value="1">
</form>
<#if $GLOBAL_OPTIONS{user_selfdel} == 1 && $general->{editing} == 0#>
<form action="$script_url/board-profile.$cgi_extension" method=post name="df">
<input type=hidden name="action" value="delacct">
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="password" value="$general->{password}">
<input type=hidden name="encpass" value="$general->{encpass}">
<a name="del"></a>
<p class="sect"><img src="$html_url/clipart/triangle_right.gif" height=16 width=16 align=left> $L{PROFILE_EDITOR_DELETE_ACCOUNT}</p>
<ul>
<p>
$L{PROFILE_EDITOR_DELETE_EXPLANATION}
</p>
<p>
<input type=button value="$L{PROFILE_EDITOR_DELETE_ACCOUNT}" onClick="if (confirm('$L{PROFILE_EDITOR_DELETE_CONFIRMATION}')) { document.df.submit(); }">
</p>
</ul>
</form>
<#endif#>
<#insert part () "dynamic_bottom"#>
<!--END-->