<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>new document</title>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<link href="admin/styles/general.css" rel="stylesheet" type="text/css" />
{script src="ecmall,ajax,validator,ui.datagrid"}
<script type="text/javascript" src="admin.php?act=jslang"></script>
<script type="text/javascript">
    Event.observe(window, 'load', function() {
      var grid = new ui.DataGrid($("data-grid"));
      grid.action = "modify";
    });
  </script>
</head>
<body>
<ul id="container">
  <li id="header">
    <h1>{$lang.list_shipping}</h1>
    <div class="link">[<a href="admin.php?app=shipping&amp;act=add">{$lang.add_shipping}</a>]</div>
    <div id="desc"> <span>{$stats}</span> </div>
  </li>
  <li id="wrapper">
    <table class="grid" cellspacing="0" id="data-grid">
      <tr>
        <th class="first-cell" readOnly="false" columnName="shipping_name" dataType="string" required="true">{$lang.shipping_name}</th>
        <th width="40%">{$lang.shipping_desc}</th>
        <th readOnly="false" columnName="shipping_fee" dataType="float" required="true">{$lang.shipping_fee}</th>
        <th readOnly="false" columnName="surcharge" dataType="float" required="true">{$lang.surcharge}</th>
        <th readOnly="false" dataType="bool" columnName="enabled">{$lang.is_enable}</th>
        <th>{$lang.handler}</th>
      </tr>
      {foreach from=$list.data item=shipping}
      <tr id="{$shipping.shipping_id}">
        <td class="first-cell"><span>{$shipping.shipping_name|escape}</span></td>
        <td>{$shipping.shipping_desc|escape|default:&nbsp;|nl2br}</td>
        <td><span>{$shipping.shipping_fee}</span></td>
        <td><span>{$shipping.surcharge}</span></td>
        <td>{img_yesorno value=$shipping.enabled dir=admin/images}</td>
        <td><a href="admin.php?app=shipping&amp;act=edit&amp;id={$shipping.shipping_id}">{$lang.edit}</a> | <a href="javascript:if(confirm('{$lang.drop_confirm}'))window.location.href='admin.php?app=shipping&amp;act=drop&amp;id={$shipping.shipping_id}';">{$lang.delete}</a> </td>
      </tr>
      {foreachelse}
      <tr><td colspan="6" class="no-records">{$lang.no_records}</td></tr>
      {/foreach}
    </table>
  </li>
  {include file="admin/templates/footer.html"}
</ul>
</body>
</html>
