<!-- $Id: brand_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js,../js/transport.js"}
<!-- 品牌搜索 -->
<div class="form-div">
  <form action="javascript:search_seller()" name="searchForm">
    <select name="city_id" style="border:1px solid #ccc;">
        <option value="0">请选择城市</option>
        <!-- {foreach from=$city_list item=city} -->
        <option value="{$city.city_id}" {if $group_buy.city_id eq $city.city_id}selected="selected"{/if}>{$city.city_name}</option>
        <!-- {/foreach} -->
    </select>

	<select name="seller_type" style="border:1px solid #ccc;">
        <option value="0">商家团购</option>
        <option value="1">会员团购</option>
    </select>
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>
<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>{$lang.seller_name}</th>
      <th>{$lang.seller_phone}</th>
      <th>{$lang.other_phone}</th>
      <th>{$lang.city_name}</th>
      <th>{$lang.from_ip}</th>
      <th>{$lang.seller_content}</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$seller_list item=seller}
    <tr>
      <td class="first-cell">
        {$seller.seller_name|escape:html}</span>
      </td>
      <td align="center">{$seller.seller_phone}</td>
      <td align="center">{$seller.other_phone}</td>
      <td align="center">{$seller.city_name}</td>
      <td align="center">{$seller.from_ip}</td>
      <td align="center">{$seller.seller_content}</td>
      <td align="center">
        <a href="javascript:;" onclick="listTable.remove({$seller.seller_id}, '{$lang.drop_confirm}')" title="{$lang.edit}">{$lang.remove}</a> 
      </td>
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="7">{$lang.no_records}</td></tr>
    {/foreach}
    <tr>
      <td align="right" nowrap="true" colspan="7">
      {include file="page.htm"}
      </td>
    </tr>
  </table>

{if $full_page}
<!-- end brand 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}
  function search_seller()
  {
        listTable.filter['city_id'] = Utils.trim(document.forms['searchForm'].elements['city_id'].value);
		listTable.filter['seller_type'] = Utils.trim(document.forms['searchForm'].elements['seller_type'].value);
        listTable.filter['page'] = 1;
        
        listTable.loadList();
 }
  //-->
</script>

{include file="pagefooter.htm"}
{/if}