<table width="100%" class="topmenu">
	<tr><td>
		<a href="expand.php" class="on"><em>产品扩展属性设置</em></a><span>|</span>
		<a href="javascript:doDialog('{?$saxue_url?}/product/admin/expand.php?action=add','添加属性','500','300')"><em>添加属性</em></a>
	</td></tr>
</table>
<form name="frmsearch" method="post">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table width="100%" align="center" class="sgrid">
    <tr>
        <td>
			<select name="lang">
				<option value="">选择语言</option>{?section name=i loop=$lang?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.lang?} selected{?/if?}>{?$lang[i].name?}</option>{?/section?}
			</select>&nbsp;
			<select name="catid">
				<option value="">选择栏目</option>{?section name=i loop=$column?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.catid?} selected{?/if?}>{?$column[i].catname?}</option>{?/section?}
			</select>&nbsp;
            <input type="submit" name="btnsearch" class="button" value="搜 索">
        </td>
    </tr>
</table>
</form>
<br>
<form method="post" name="frmpost" id="frmpost">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table width="100%" class="grid">
	<tr>
		<th><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for (var i=0;i<this.form.elements.length;i++){ if (this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }"></th>
		<th>语言</th>
		<th>排序</th>
		<th>属性名</th>
		<th>应用栏目</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].id?}"/></td>
		<td>{?$rows[i].langname?}</td>
		<td><input name='expands[{?$rows[i].id?}][listorder]' type='text' size='3' value='{?$rows[i].listorder?}' class='text' onkeyup="value=value.replace(/[^0-9]/g,'');"></td>
		<td><input name='expands[{?$rows[i].id?}][name]' type='text' size='30' value='{?$rows[i].name?}' class='text'></td>
		<td>{?if $rows[i].catid==0?}<span class="green">所有栏目</span>{?else?}{?$rows[i].catname?}{?/if?}</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="update">批量更新</option>
				<option value="delete">批量删除</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
	</tbody>
</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>