

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="POST" action="" name="listForm">
<!-- start user_bonus list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th width="13%">
        <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
        <a href="javascript:listTable.sort('topic_id'); ">{$lang.record_id}</a>{$sort_topic_id}</th>
      <th width="26%"><a href="javascript:listTable.sort('title'); ">{$lang.topic_title}</a>{$sort_title}</th>
      <th width="13%"><a href="javascript:listTable.sort('start_time'); ">{$lang.start_time}</a>{$sort_start_time}</th>
      <th width="13%"><a href="javascript:listTable.sort('end_time'); ">{$lang.end_time}</a>{$sort_end_time}</th>
      <th width="">{$lang.handler}</th>
    </tr>
    {foreach from=$topic_list item=topic}
    <tr>
      <td><span><input value="{$topic.topic_id}" name="checkboxs[]" type="checkbox">{$topic.topic_id}</span></td>
      
      <td>{$topic.title}</td>
      
      <td>{$topic.start_time}</td>
      <td>{$topic.end_time}</td>
      <td align="center"><a href="../index.php?c=topic&topic_id={$topic.topic_id}" title="{$lang.view}" target="_blank">{$lang.view}</a>    <a href="topic.php?act=edit&topic_id={$topic.topic_id}" title="{$lang.edit}">{$lang.edit}</a>
      <a href="javascript:;" on title="{$lang.drop}" onclick="listTable.remove({$topic.topic_id},delete_topic_confirm,'delete');">{$lang.drop}</a>
      <a href="ads.php?act=add&ad_name={$topic.title}&ad_link={$topic.url}&topic_id={$topic.topic_id}">{$lang.publish_to_ads}</a>
      <!-- <a href="flashplay.php?act=add&ad_link={$topic.url}" title="{$lang.publish_to_player}" >{$lang.publish_to_player}</a> -->
    </td>
   
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="11">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
      </td>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>

{if $full_page}
</div>
<!-- end user_bonus list -->
</form>

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

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

  {literal}
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
    document.forms['listForm'].reset();
  }
  
  document.getElementById("btnSubmit").onclick = function()
  {
    if (confirm(delete_topic_confirm))
    {
      document.forms["listForm"].action = "topic.php?act=delete";
      return;
    }
    else
    {
      return false;
    }
  }
  {/literal}
</script>
{include file="pagefooter.htm"}
{/if}