<!--{eval
$_TPL['formtypes'] = array('text'=>'Îı¾ÊäÈë', 'select'=>'µ¥Ñ¡Áбí', 'multi'=>'¶àÑ¡Áбí');
}-->
<!--{template admin/tpl/header}-->
<div class="mainarea">
<div class="maininner">
<div class="tabs_header">
<ul class="tabs">
<li$actives[view]><a href="admincp.php?ac=profilefield"><span>ä¯ÀÀÈ«²¿À¸Ä¿</span></a></li>
<li class="null"><a href="admincp.php?ac=profilefield&op=add">Ìí¼ÓÐÂÓû§À¸Ä¿</a></li>
</ul>
</div>
<!--{if empty($thevalue)}-->
<form method="post" action="admincp.php?ac=profilefield">
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
<div class="bdrcontent">
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th>Óû§À¸Ä¿</th>
<th>À¸Ä¿×Ö¶ÎÃû</th>
<th>ÌîдÀàÐÍ</th>
<th>ÏÔʾ˳Ðò</th>
<th width="80">²Ù×÷</th>
</tr>
<!--{loop $list $value}-->
<tr>
<th>$value[title]</th>
<th>field_$value[fieldid]</th>
<td>{$_TPL[formtypes][$value[formtype]]}</td>
<td><input type="text" name="displayorder[{$value[fieldid]}]" value="$value[displayorder]" size="5"></td>
<td width="80">
<a href="admincp.php?ac=profilefield&op=edit&fieldid=$value[fieldid]">±à¼</a> |
<a href="admincp.php?ac=profilefield&op=delete&fieldid=$value[fieldid]" onclick="return confirm('È·ÈÏɾ³ý£¿');">ɾ³ý</a></td>
</tr>
<!--{/loop}-->
</table>
</div>
<div class="footactions">
<input type="submit" name="ordersubmit" value="¸üÐÂÅÅÐò" class="submit">
</div>
</form>
<!--{else}-->
<script language="javascript">
function formtypeShow(value) {
if(value == 'text') {
$('tb_choice').style.display = 'none';
} else {
$('tb_choice').style.display = '';
}
}
</script>
<form method="post" action="admincp.php?ac=profilefield&fieldid=$thevalue[fieldid]">
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
<div class="bdrcontent">
<table cellspacing="0" cellpadding="0" class="formtable">
<tr><th style="width:15em;">À¸Ä¿Ãû³Æ</th><td><input type="text" name="title" value="$thevalue[title]"></td></tr>
<tr><th>±íµ¥ÀàÐÍ</th><td>
<select name="formtype" onchange="formtypeShow(this.value)">
<option value="text"$formtypearr[text]>Îı¾ÊäÈë¿ò</option>
<option value="select"$formtypearr[select]>Áбí¿ò</option>
</select>
</td></tr>
<tbody id="tb_choice"<!--{if $thevalue[formtype]=='text'}--> style="display:none;"<!--{/if}-->>
<tr><th>¿Éѡֵ</th><td><textarea name="choice" rows="5" cols="20">$thevalue[choice]</textarea>
<br />ÿÐÐÒ»¸öÖµ£¬ÀýÈçÊäÈë:<br />±±¾©<br />ÉϺ£</td></tr>
</tbody>
<tr><th>¿ÉÌîдµÄ×î¶à×Ö·û</th><td><input type="text" name="maxsize" value="$thevalue[maxsize]" size="5"> (1~255)</td></tr>
<tr><th>±ØÌî</th><td><input type="radio" name="required" value="0"<!--{if !$thevalue[required]}--> checked<!--{/if}-->> ·ñ
<input type="radio" name="required" value="1"<!--{if $thevalue[required]}--> checked<!--{/if}-->> ÊÇ</td></tr>
<tr><th>×ÊÁÏÒ³ÃæÒþ²Ø</th><td><input type="radio" name="invisible" value="0"<!--{if !$thevalue[invisible]}--> checked<!--{/if}-->> ·ñ
<input type="radio" name="invisible" value="1"<!--{if $thevalue[invisible]}--> checked<!--{/if}-->> ÊÇ</td></tr>
<tr><th>ÔÊÐíËÑË÷</th><td><input type="radio" name="allowsearch" value="0"<!--{if !$thevalue[allowsearch]}--> checked<!--{/if}-->> ·ñ
<input type="radio" name="allowsearch" value="1"<!--{if $thevalue[allowsearch]}--> checked<!--{/if}-->> ÊÇ</td></tr>
<tr><th>¼òµ¥½éÉÜ</th><td><input type="text" name="note" value="$thevalue[note]" size="40"></td></tr>
<tr><th>ÏÔʾ˳Ðò</th><td><input type="text" name="displayorder" value="$thevalue[displayorder]" size="5"></td></tr>
</table>
</div>
<div class="footactions">
<input type="submit" name="fieldsubmit" value="Ìá½»" class="submit">
</div>
</form>
<!--{/if}-->
</div>
</div>
<div class="side">
<!--{template admin/tpl/side}-->
</div>
<!--{template admin/tpl/footer}-->