<!-- $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_login()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    {$lang.keyword} <input type="text" name="web_name" size="15" />
    <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.web_name}</th>
      <th>{$lang.web_url}</th>
      <th>{$lang.web_from}</th>
      <th>{$lang.app_key}</th>
      <th>{$lang.app_secret}</th>
      <th>{$lang.is_open}</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$login_list item=login}
    <tr>
      <td class="first-cell">
        {$login.web_name|escape:html}</span>
      </td>
      <td align="left"> {$login.web_url|escape:html}</td>
      <td align="left"> {$login.web_from|escape:html}</td>
      <td align="left"> {$login.app_key|escape:html}</td>
      <td align="left"> {$login.app_secret|escape:html}</td>
      <td align="center"><img src="images/{if $login.is_open}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_open', {$login.config_id})" /></td>
      <td align="center">
        <a href="group_login.php?act=edit&id={$login.config_id}" title="{$lang.edit}">{$lang.edit}</a> |
        <a href="javascript:;" onclick="listTable.remove({$login.config_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_login()
  {
        listTable.filter['web_name'] = Utils.trim(document.forms['searchForm'].elements['web_name'].value);
        listTable.filter['page'] = 1;
        
        listTable.loadList();
 }
  //-->
</script>

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