<!-- $Id -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="list-div" id="listDiv">
  <form action="goods_batch.php?act=insert" method="post">
    <table cellspacing='1' cellpadding='3'>
      <tr>
        <th><input type="checkbox" checked onclick="listTable.selectAll(this, 'checked')" />{$lang.record_id}</th>
        {foreach from=$title_list key=field item=title}
        {if $field_show.$field}<th>{$title}</th>{/if}
        {/foreach}
      </tr>
      {foreach from=$goods_list key=key item=goods}
      <tr>
        <td><input type="checkbox" name="checked[{$key}]" value="1" checked /> {$key} </td>
        {foreach from=$goods key=field item=value}
          {if $field_show.$field}
          <td><input type="text" name="{$field}[{$key}]" value="{$value}" size="15" /></td>
          {else}
          <input type="hidden" name="{$field}[{$key}]" value="{$value}" />
          {/if}
        {/foreach}
      </tr>
      {/foreach}
      <tr align="center">
        <td colspan="6">
          <input type="hidden" name="cat" value="{$smarty.request.cat}" />
          <input type="submit" name="submit" value="{$lang.button_submit}" />
        </td>
      </tr>
    </table>
  </form>
</div>
{include file="pagefooter.htm"}