Location: PHPKode > projects > Uchome and Discuz > admin/tpl/profield.htm
<!--{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=profield"><span>ä¯ÀÀÀ¸Ä¿</span></a></li>
		<li class="null"><a href="admincp.php?ac=profield&op=add">Ìí¼ÓÐÂȺ×éÀ¸Ä¿</a></li>
	</ul>
</div>

<!--{if $_GET['op'] == 'delete'}-->
	<form method="post" action="admincp.php?ac=profield&op=delete&fieldid=$_GET[fieldid]">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
	<div class="topactions">
		¸ÃÀ¸Ä¿É¾³ýºó£¬ÇëÑ¡Ôñ¸ÃÀ¸Ä¿ÏÂÃæÒÑÓеÄȺ×é»á¹éÀൽÄǸöÐÂÀ¸Ä¿¡£
	</div>
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th width="150">À¸Ä¿ÏµÄȺ×éйéÀà</th>
		<td>
		<select name="newfieldid">
		<!--{loop $newfield $value}-->
		<option value="$value[fieldid]">$value[title]</option>
		<!--{/loop}-->
		</select>
		</td>
	</tr>
	</table>
	</div>
	
	<div class="footactions">
		<input type="submit" name="deletesubmit" value="È·¶¨É¾³ý" class="submit">
	</div>

<!--{else}-->

	<form method="post" action="admincp.php?ac=profield&fieldid=$thevalue[fieldid]">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">

<!--{if empty($thevalue)}-->
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
			<th>À¸Ä¿</th>
			<th>ÌîдÀàÐÍ</th>
			<th>ÏÔʾ˳Ðò</th>
			<th width="80">²Ù×÷</th>
		</tr>
		<!--{loop $list $value}-->
		<tr>
			<th>$value[title]</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=profield&op=edit&fieldid=$value[fieldid]">±à¼­</a> | 
			<a href="admincp.php?ac=profield&op=delete&fieldid=$value[fieldid]">ɾ³ý</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 != 'select') {
				$('tb_inputnum').style.display = '';
				$('tb_choice').style.display = (value=='text'?'none':'');
			} else {
				$('tb_inputnum').style.display = 'none';
				$('tb_choice').style.display = '';
			}
		}
	</script>
		
		<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><input type="text" name="note" value="$thevalue[note]" size="60"></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>
			<option value="multi"$formtypearr[multi]>¶àÑ¡Áбí¿ò</option>
			</select>
		</td></tr>

		<tbody id="tb_inputnum"<!--{if $thevalue[formtype]=='select'}--> style="display:none;"<!--{/if}-->>
		<tr><th>Óû§¿É¼ÓÈëȺ×é×î¶à¸öÊý</th><td><input type="text" name="inputnum" value="$thevalue[inputnum]" size="5"></td></tr>
		</tbody>
	
		<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="mtagminnum" value="$thevalue[mtagminnum]" size="5"> µ±Èº×éµÄ³ÉÔ±Êý´ïµ½¸ÃÊýĿʱ£¬²ÅÔÊÐí³ÉÔ±ÔÚȺ×éÄÚ·¢»°ÌâºÍ»ØÌû¡£</td>
		</tr>
		<tr>
			<th>Ⱥ×éȺÖ÷ÊÖ¹¤Ö¸¶¨</th>
			<td>
				<input type="radio" name="manualmoderator" value="1"<!--{if $thevalue[manualmoderator] == 1}--> checked<!--{/if}-->>ÊÖ¹¤
				<input type="radio" name="manualmoderator" value="0"<!--{if $thevalue[manualmoderator] != '1'}--> checked<!--{/if}-->>×Ô¶¯
				<br>Èç¹ûÑ¡Ôñ²»ÊÖ¹¤Ö¸¶¨£¬Ôòϵͳ»á×Ô¶¯½«µÚÒ»´ÎʹÓÃij¸öȺ×éµÄÓû§×÷ΪȺÖ÷¡£</td>
		</tr>
		<tr>
			<th>Ⱥ×é³ÉÔ±¿ÉÓÉȺÖ÷¿ØÖÆ</th>
			<td>
				<input type="radio" name="manualmember" value="1"<!--{if $thevalue[manualmember] == 1}--> checked<!--{/if}-->>ȺÖ÷¿É¿ØÖÆ
				<input type="radio" name="manualmember" value="0"<!--{if $thevalue[manualmember] != '1'}--> checked<!--{/if}-->>»áÔ±¿É×ÔÓɼÓÈë
				<br>ȺÖ÷¿É¿ØÖÆ£¬ÔòÔÊÐíȺÖ÷ÓÐȨÉèÖÃȺ×éµÄ»áÔ±¼ÓÈ뷽ʽ£¬À´¿ØÖƼÓÈëȺ×éµÄ»áÔ±¡£</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}-->

<!--{/if}-->

</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->
Return current item: Uchome and Discuz