
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<!-- 商品搜索 -->
<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start games list -->
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>
      <a href="javascript:listTable.sort('id'); ">編號</a>{$sort_id}
    </th>
    <th>入口名稱</th>
    <th>網域</th>
    <th>類型</th>
    <th>{$lang.handler}</th>
  <tr>
  {foreach from=$portal_list item=portal}
  <tr>
    <td>{$portal.id}</td>
    <td class="first-cell">{$portal.name|escape:html}</td>
    <td align="center">{$portal.domain}</td>
    <td align="center">{if $portal.type eq 2}地區{elseif $portal.type eq 3}景點{else}一般{/if}</td>
    <td align="center">
      <a href="portal.php?act=edit&id={$portal.id}{if $code neq 'real_gamess'}&extension_code={$code}{/if}" title="{$lang.edit}"><img src="images/icon_edit.gif" width="16" height="16" border="0" /></a>
	{if $portal.id ne 1}
      <a href="javascript:;" onclick="listTable.remove({$portal.id}, '確認刪除?')" title="刪除"><img src="images/icon_trash.gif" width="16" height="16" border="0" /></a>
	{/if}
    </td>
  </tr>
  {foreachelse}
  <tr><td class="no-records" colspan="5">沒有資料</td></tr>
  {/foreach}
</table>
<!-- end games list -->

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>

{if $full_page}
</div>
</form>

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

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

  {literal}
  onload = function()
  {
    document.forms['listForm'].reset();
  }

  /**
   * @param: bool ext 其他条件：用于转移分类
   */
  function confirmSubmit(frm, ext)
  {
          return true;
  }
{/literal}
</script>
{include file="pagefooter.htm"}
{/if}