```
<form action="{:url('category/sort')}" method="post">
<table>
<tbody>
<tr >
<th>
<button type="submit" >排序</button>
</th>
</tr>
{foreach name="list" item="item" }
<tr >
<td width="150">
<input type="text" name="sort[{$item.id}]" value="{$item.sort_id}" style="width: 30px;"/>
</td>
</tr>
{/foreach}
</tbody>
</table>
</form>
```````