<!-- $Id: articlecat_list.htm 7762 2007-04-02 05:11:08Z paulgao $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- start cat list -->
<div class="list-div" id="listDiv">
{/if}

<table cellspacing='1' cellpadding='3' id='list-table'>
  <tr>
    <th>{$lang.cat_name}</th>
    <th>{$lang.cat_desc}</th>
    <th>{$lang.show_in_nav}</th>
    <th>{$lang.sort_order}</th>
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$list item=cat}
  <tr>
    <td class="first-cell">
    <span onclick="javascript:listTable.edit(this, 'edit_cat_name', {$cat.cat_id})">{$cat.cat_name|escape:html}</span></td>
    <td align="left">{$cat.cat_desc|truncate:33:"...":true}</td>
    <td align="center">
    <img src="images/{if $cat.show_in_nav eq 1}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_show', {$cat.cat_id})" /></td>
    <td align="right"><span onclick="javascript:listTable.edit(this, 'edit_cat_order', {$cat.cat_id})">{$cat.sort_order}</span></td>
    <td align="center" nowrap="true">
      <a href="article.php?act=add&amp;id={$cat.cat_id}" title="{$lang.add_article}"><img src="images/icon_add.gif" border="0" height="16" width="16" /></a>&nbsp;
      <a href="articlecat.php?act=edit&id={$cat.cat_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>&nbsp;
      <a href="javascript:;" onclick="listTable.remove({$cat.cat_id}, '{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>
    </td>
   </tr>
  {/foreach}
</table>

{if $full_page}
</div>
<!-- end cat list -->

<script type="text/javascript" language="JavaScript">
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
  {literal}

  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
  }
  {/literal}
</script>
{include file="pagefooter.htm"}
{/if}
