{template admin/header}

<script src="./js/date/WdatePicker.js" type="text/javascript"></script>
<script src="./js/topicManage.js" type="text/javascript"></script>
<div class="mt10">
	<form action="admin.php" method="get" name="search">
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="4">搜索微博</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			昵称:
			</td>
			<td class="altbg2">
			<input name="nickname" type="text" id="nickname" value="{$nickname}" size="40">		
			</td>
			<td class="altbg1" width="150">
			关键词:
			</td>
			<td class="altbg2">
			<input type="text" name="keyword" value="{$keyword}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			时间:
			</td>
			<td class="altbg2">
		  	  <input type="text" id="timefrom" name="timefrom" value="{$timefrom}" readonly onFocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm',alwaysUseStartDate:true})"/>
			  &nbsp;&nbsp;至&nbsp;&nbsp;
			  <input type="text" id="timeto" name="timeto" value="{$timeto}" readonly onFocus="var fromt=document.getElementById('timefrom').value;WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm',alwaysUseStartDate:true,minDate:fromt})"/>
			</td>
			<td class="altbg1" width="150">
			管理状态:
			</td>
			<td class="altbg2">
			  <select name="mtype">
			    <option value="0">未阅</option>
			    <option value="1" $mtype_arr[1]>已阅</option>
			  </select>
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;</td>
			<td class="altbg2">
			<button name="do" value='' type="submit" class="button">搜索一下</button>
			&nbsp;
			<button class="button" type="button" onclick="window.location.href='admin.php?mod=topic&code=$this->Code';return false;">全部</button>
			<input name="mod" type="hidden" value="topic">
			<input name="per_page_num" type="hidden" value="{$per_page_num}">
			<input type="hidden" id="code" name="code" value="{$this->Code}">
			</td>
			<td class="altbg1" width="150"></td>
			<td class="altbg1"></td>
		</tr>
		
	</table>
	</form>

	<form method="post" action="$action">
      <div class="comBox" style="overflow:hidden;">
	    <ul class="followList" style="overflow:hidden">
	    <!--{loop $member $key $val}-->
        <li>
          <div class="fBox_l"><img src="{$val[face]}"/> </div>
          <div class="fBox_R3">
            <p class="utitle">
             <span>
               <a href="index.php?mod=$val[uid]" target="_blank">{$val[nickname]}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			   <A href="javascript:void(0);" onclick="force_out('$val[uid]');" title="禁言或者禁止登录，可在用户管理中解封">[封杀此用户]</A>
             </span>
             <span style="float: right"><!--{echo my_date_format($val[lastactivity],'Y-m-d H:i:s')}--></span>
			 </p>
             <span>
               {$val[content]}
			 </span>
             <p>
               <span>
                 <!--{if $val[postip]}-->
			     {$val[postip]}&nbsp;
			     <a href="admin.php?mod=setting&code=modify_access" title="进入IP访问设置页面">[封]</a>
			     <!--{else}-->未知IP<!--{/if}-->
			   </span>
               <span style="float: right">
				 <label title="显示"><input type="radio" name="managetype[$key]" checked value="1">显&nbsp;</label>
				 <label title="删除"><input type="radio" name="managetype[$key]" value="0">删&nbsp;</label>
			   </span>
             </p>
	      </div>
        </li>
	    <!--{/loop}-->
	    </ul>
	    <!--{if $page_arr[html]}-->
	    <ul>
		  <li class="altbg3" >
		    {$page_arr[html]}
		  </li>
		</ul>
		<!--{/if}-->
	  </div>

		<center><input class="button" type="submit" id="cronssubmit" name="cronssubmit" value="提 交"></center>
	</form>
</div>
<script type="text/javascript">	
document.onkeydown=function(event){
	event = event || window.event;
    if(event.ctrlKey==true && event.keyCode==13){
    	$("#cronssubmit").click();
    }
}
</script>