<?php defined('PHPNEW_STATIC_TPL') === false && exit(URL_HOST);?>
<style type="text/css">
    .ptitle{height: 30px; line-height: 30px; font-weight: bolder; font-size: 13px; color: #353939;}
    .thread_date{font-size:12px; margin-left: 8px; font-weight: normal;}
    .ptitle a:hover{ color: #FF8040;}
    .mytable{line-height: 2em; border-collapse: collapse; margin-bottom: 20px;font-size: 12px; width: 100%; background-color: white;}
    .mytable td{ border-bottom: 1px dotted $c1; height: 30px; line-height: 30px; text-align: center;}
    .mytable th{ border-bottom: 2px solid $c1; color: $c3; font-weight: bolder; text-align: center;}
    .hig td{background-color: #F4EED9;}
</style>
<script type="text/javascript">
    $(function (){
        $('option[value="$types"]').attr('selected',true);
    })
</script>
<div>
<table class="mytable">
    <tr class="admin_list">
        <th style=" width: 50%;">标题</th>
         <th>用户名</th>
          <th>附件</th>
           <th>时间</th>
            <th>操作</th>
    </tr>
    <tr>
    <td colspan="5" style="text-align: left; background-color: white;">
        <div>
            <form method="get" action="./index.php" enctype="application/x-www-form-urlencoded">
            <input type="hidden" name="admincp" value="enadmin" />
            　关键字: <input type="text" name="search" value="{$search}" />
            <select name="types">
                <option value="thread_title">标题</option>
                <option value="thread_fid">栏目</option>
                <option value="thread_state">主题标识</option>
                <option value="thread_uid">用户名</option>
                <option value="thread_update">时间</option>
            </select>
            <input type="submit" value=" 搜 索 " />
            </form>
        </div>
    </td>
    </tr>
    <!--{if $page_list}-->
    <tr>
    <td colspan="5" style="text-align: left;">
        {$page_list}
    </td>
    </tr>
    <!--{/if}-->
    <!--{loop $thread_array $val}-->
    {eval $t++}
    <tr {if $t % 2 == 0} class="hig"{/if}>
        <td>　[<a href="{$val[fidlink]}" style="color: blue;">{$val[c_name]}</a>] - <a href="{$val[link]}" target="_blank"{if $val[css]} style="{$val[css]}"{/if}>{$val[thread_title]}</a>
        <!--{if $val[thread_state]}-->
            <img src="./Static/Images/stamp/{$val[thread_state]}.gif" style="vertical-align: middle;" />
        <!--{/if}--></td>
         <td>{$val[user_name]}</td>
          <td>{$val[thread_attch]}</td>
           <td><span style="{$val[user_admin]}">{$val[thread_date]}</span></td>
            <td> <a href="./index.php?admincp=edit&{$val[thread_id]}.html">编辑</a> / <a href="./index.php?admincp=thdele&{$val[thread_id]}.html"{GET_ALERT}>删除</a></td>
    </tr>
    <!--{/loop}-->
    <!--{if !$thread_array}-->
        <tr>
            <td colspan="20">
                暂时没有任何主题信息!
            </td>
        </tr>
    <!--{/if}--> 
    <!--{if $page_list}-->
    <tr>
    <td colspan="5" style="text-align: left;">
        {$page_list}<br />
        <div style="margin-left: 8px; line-height: normal;">
        </div>
    </td>
    </tr>
    <!--{/if}-->
    <tr>
        <td colspan="10" style="text-align: left; line-height: 20px;">
            <strong>说明</strong>:<br />
            　时间条件支持{GET_DATE}={GET_DATE}兼容性写法<br />
            　主题标识包括精华, 推荐, 置顶, 编辑采用之类的.<br />
            　当前查询: $where
        </td>
    </tr>
</table>
</div>