{if $full_page}
{include file="page_header.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">
{/if}
{foreach from=$attribute_list item=list key = key name=foo}
<table width="100%" cellspacing="0" cellpadding="0" class="list-table" {if $smarty.foreach.foo.index>0} style="display:none;border-top:1px #d6dfe7 solid;"{else}style="border-top:1px #d6dfe7 solid;"{/if} id="language_{$key}-table">
  <tr class="thead">
    <th align="left">属性名称</th>
	<th>类型</th>
    <th>排序</th>
    <th align="left">操作</th>
  </tr>
  {foreach from=$list item=attribute}
  <tr align="center">
	<td align="left" class="first-cell" width="70%" >
	{$attribute.attr_name|escape:html}
	</td>
	
	<td width="10%" align="center">
	{if $attribute.attr_input_type == 3}
	复选框
	{elseif $attribute.attr_input_type == 2}
	下拉框
	{elseif $attribute.attr_input_type == 4}
	文本区域
	{else}
	文本框
	{/if}
	</td>
	
	<td width="10%" align="center"><span onclick="listTable.edit(this, 'edit_sort_order', {$attribute.attr_id})">{$attribute.sort_order}</span></td>
	<td align="right" nowrap="true" class="operation">
	<a href="attribute.php?act=edit&amp;id={$attribute.attr_id}" class="op_edit"></a>
	<a href="javascript:;" onclick="listTable.remove({$attribute.attr_id}, '您确认要删除吗?')" class="op_del"></a>
	</td>
  </tr>
  {foreachelse}
	<tr><td class="no-records" colspan="3">暂无属性信息</td></tr>
  {/foreach}
</table>
{/foreach}
{if $full_page}
</div>
</form>
{insert_scripts files="tab.js"}
{include file="page_footer.htm"}
{/if}