

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

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>{$lang.service_type}</th>
      <th>{$lang.service_desc}</th>
      <th>{$lang.received_days}</th>
      <th>{$lang.unreceived_days}</th>
      <th>{$lang.sort_order}</th>
      <th>{$lang.is_show}</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$list item=item}
    <tr>
      <td class="first-cell">
        <span>{$item.service_name|escape:html}</span>
      </td>
      <td align="left">{$item.service_desc|truncate:36}</td>
      <td align="left">{$item.received_days}</td>
      <td align="left">{$item.unreceived_days}</td>
      <td align="right"><span>{$item.sort_order}</span></td>
      <td align="center"><img src="images/{if $item.is_show}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_show', {$item.service_id})" /></td>
      <td align="center">
        <a href="aftermarket_type.php?act=edit_service_type&id={$item.service_id}" title="{$lang.edit}">{$lang.edit}</a> 
       <!--| <a href="javascript:;" onclick="listTable.remove({$item.service_id}, '{$lang.drop_confirm}','remove_service_type')" title="{$lang.edit}">{$lang.remove}</a> -->
      </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
    <tr>
      <td align="right" nowrap="true" colspan="6">
      {include file="page.htm"}
      </td>
    </tr>
  </table>

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

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

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