<table width="100%" class="topmenu">
	<tr><td>
		<a href="expand.php" class="on"><em>扩展属性管理</em></a><span>|</span>
		<a href="expand.php?action=add"><em>添加扩展属性</em></a><span>|</span>
		<a href="expand.php?action=cache"><em>生成表单缓存</em></a>
	</td></tr>
</table>
<form name="frmsearch" method="post">
<input name="page" id="page" type="hidden" value="1">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table class="sgrid" width="100%" align="center">
    <tr>
        <td>
			<select name="cid"><option value="">应用分类</option>{?$cates?}</select>&nbsp;
            <select name="type">
				<option value="">属性类型</option>
				{?section name=i loop=$types?}
				<option value="{?$i['key']?}"{?if $i['key'] == $Saxue.request.type?} selected{?/if?}>{?$i['value']?}</option>
				{?/section?}
            </select>&nbsp;
            <select name="keytype">
				<option value="name"{?if $Saxue.request.keytype == 'name'?} selected{?/if?}>属性名称</option>
				<option value="title"{?if $Saxue.request.keytype == 'title'?} selected{?/if?}>属性标题</option>
            </select>&nbsp;&nbsp;
			<input name="keyword" type="text" id="keyword" class="text" size="15" maxlength="50" value="{?$Saxue.request.keyword?}">&nbsp; 
            <input type="submit" name="btnsearch" class="button" value="搜 索">
		</td>
    </tr>
</table>
</form> <br>
<form name="frmpost" method="post">
<input type="hidden" name="action" value="listorder"> 
<table class="grid" width="100%" align="center">
	<tr align="center">
		<th>排序</th>
		<th>属性名称</th>
		<th>属性标题</th>
		<th>属性类型</th>
		<th>是否必填</th>
		<th>应用于分类</th>
		<th>操作</th>
	</tr>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input class="text" name="listorder[{?$rows[i].eid?}]" type="text" size="3" value="{?$rows[i].listorder?}" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
		<td>{?$rows[i].name?}</td>
		<td>{?$rows[i].title?}</td>
		<td>{?$types[$rows[i].type]?}</td>
		<td>{?if 1==$rows[i].required?}<span class="blue">是</span>{?else?}否{?/if?}</td>
		<td>{?if $rows[i].catnum==0?}<span class="gray">未应用</span>{?elseif $rows[i].catnum==2?}<span class="blue">{?$rows[i].catname?}</span>{?else?}<span class="green">指定多分类</span>{?/if?}</td>
		<td>
			<a href="?action=add&eid={?$rows[i].eid?}">{?function saxue_geticon:'edit':'修改'?}</a>&nbsp;
			<a href="?action=delete&id={?$rows[i].eid?}" onclick="return confirm('你确定要删除属性『{?$rows[i].title?}』吗？')">{?function saxue_geticon:'del':'删除'?}</a>
		</td>
	</tr>
	{?/section?}
	<tr><td colspan="9" class="foot"><input type="submit" name="submit" value="排序" class="button" /></td></tr>
</table>
</form> 
<table width="100%"><tr><td width="100%">
	<div class="fl pages">
		<ul>
			<li><span class="fl">每页显示:</span></li>
			<li{?if $Saxue.request.pagesize==10?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(10)">10</a></li>
			<li{?if $Saxue.request.pagesize==30?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(30)">30</a></li>
			<li{?if $Saxue.request.pagesize==50?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(50)">50</a></li>
			<li{?if $Saxue.request.pagesize==100?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(100)">100</a></li>
		</ul>
	</div>
	<div class="fr pages"><ul>{?$url_jumppage?}</ul></div>
</td></tr></table>