{template admin/header}

<script src="./js/date/WdatePicker.js" type="text/javascript"></script>
<script src="./js/topicManage.js" type="text/javascript"></script>
<br />
<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 type="text" name="username" value="{$username}" size="40">
      </td>
      <td class="altbg1" width="150"> 处理状况: </td>
      <td class="altbg2">
        <select name="result">
          <option value="">请选择</option>
          <!--{loop $report_config[process_result_list] $key $val}-->
          <option value="{$key}" $result_arr[$key]>{$val}</option>
          <!--{/loop}-->
        </select>
      </td>
    </tr>
    <tr>
      <td class="altbg1" width="150"> 关键词: </td>
      <td class="altbg2"><input type="text" name="keyword" value="{$keyword}" size="40">
      </td>
      <td class="altbg1" width="150"> 举报类型: </td>
      <td class="altbg2">
        <select name="reason">
          <option value="">请选择</option>
          <!--{loop $report_config[reason_list] $key $val}-->
          <option value="{$key}" $reason_arr[$key]>{$val}</option>
          <!--{/loop}-->
        </select>
      </td>
    </tr>
		<tr>
			<td class="altbg1" width="150">
			发布时间:
			</td>
			<td class="altbg2" colspan="3">
		  	  <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>
		</tr>
    <tr>
      <td class="altbg2" colspan="4">
	  <button name="do" value='' type="submit" class="button"> 搜索指定 </button>&nbsp;
		<button class="button" type="button" onclick="window.location.href='admin.php?mod=report';return false;"> 全部举报 </button>
		<button class="button" type="button" <!--{if $report_list}-->onclick="setFilterRed();return false;"<!--{/if}-->>高亮此页违法关键字</button>
		<span style="display:none;color:red" id="setfiledmsg"><img src="./images/loading.gif">正在高亮违法关键词，请稍等...</span>
		<input name="mod" type="hidden" value="report">
    	<input name="per_page_num" type="hidden" value="{$per_page_num}">
	  </td>
    </tr>
  </table>
</form>

<form method="post" action="admin.php?mod=report&code=batch_process">

<div class="Ptitle">
批量预选处理结果：
<label><input type="radio" id="show" name="acttype" onclick="setactall(this.form,1);" title="允许微博正常显示">正常显示</label>
<label><input type="radio" id="del" name="acttype" onclick="setactall(this.form,4);" title="删除到回收站">删除微博</label>
</div>
          
          
<script type="text/javascript">
function setactall(form,type){
	for(var i = 0; i < form.elements.length; i++) {
		var e = form.elements[i];
		if(e.name.match('managetype') && e.value == type) {
			e.checked = ' checked ';
		}
	}
}
</script>
      <div class="PcomBox">
	    <ul class="followList" style="overflow:hidden" id="topic_verify_list">
	    <!--{loop $report_list $report}-->
        <li>
            <p class="utitle">
             <span style="float: left;">
             举报人昵称：<a href="index.php?mod=$report[uid]">{$report[username]}</a> &nbsp; | &nbsp;
             举报时间：<!--{eval echo my_date_format($report[dateline], 'Y-m-d H:i')}--> &nbsp; | &nbsp;
             举报人IP：{$report[ip]}<a href="admin.php?mod=setting&code=modify_access" title="进入IP访问设置页面">[封]</a>
             </span>
             <span style="float: right">举报原因：[{$report[reason_show]}]&nbsp;{$report[content]}</span>
           </p>
           <!--{eval $topic = $report[topic_list]}-->
           <!--{if $topic}-->
          <div class="fBox_l"><img src="{$topic[face]}"/> </div>
          <div class="fBox_R3">
           <p class="utitle2">
             <span>
               <a href="index.php?mod=$topic[uid]" target="_blank"><b>{$topic[nickname]}</b></a>&nbsp;&nbsp;
			   <A href="javascript:void(0);" onclick="sendemailtoleader('$topic[uid]','$topic[tid]','topic');" title="给领导发邮件">[上报]</A>&nbsp;&nbsp;
			   <A href="javascript:void(0);" onclick="force_out('$topic[uid]');" title="禁言或者禁止登录，可在用户管理中解封">[封杀此用户]</A>
             </span>
            
             <span style="float: right"><!--{echo my_date_format($topic[lastupdate],'Y-m-d H:i:s')}--></span>
			 </p>
             <span>
               <a href="index.php?mod=topic&code={$tid}" target="_blank">{$topic[content]}</a>
			   <!--{if $topic[imageid] && $topic[image_list]}-->
					{loop $topic[image_list] $iv}
						<a href="{$iv[image_original]}" target="_blank"><img src="{$iv[image_small]}" width="30" border="0" /></a>
					{/loop}
				<!--{/if}-->
				
				<!-- 视频分享-->
				<!--{if $topic[videoid]}-->                 
                <div class="feedUservideo">
                 <a onClick="javascript:showFlash('{$topic[VideoHosts]}', '{$topic[VideoLink]}', this, '{$topic[VideoID]}');" >
				 <div id="play_{$topic[VideoID]}" class="vP"><img src="images/feedvideoplay.gif"  /></div>
				 <img src="{$topic[VideoImg]}" style="border:none; width:130px; "/>
                </a>
				</div>
				<!--{/if}-->
				<!-- 视频分享-->
				
<!--{if $topic[musicid]}-->
<!--{if $topic[xiami_id]}-->
<div class="feedUserImg"><embed width="257" height="33" wmode="transparent" type="application/x-shockwave-flash" src="http://www.xiami.com/widget/0_{$topic[xiami_id]}/singlePlayer.swf"></embed></div>
<!--{else}-->
<div class="feedUserImg"><div id="play_{$topic[MusicID]}"></div><img src="images/music.gif" title="点击播放音乐" onClick="javascript:showFlash('music', '{$topic[MusicUrl]}', this, '{$topic['MusicID']}');" style="cursor:pointer; border:none;" /> </div>
<!--{/if}-->
<!--{/if}-->
				<!--{if $topic[root_topic][content]}-->
				//[原微博]<a href="index.php?mod=topic&code={$topic[root_topic][tid]}" target="_blank">{$topic[root_topic][content]}</a>
				<!--{/if}-->
			 </span>
             <p>
               <span>$topic[from_html]</span>
               <span>
                 <!--{if $topic[postip]}-->
			     <a href="admin.php?mod=topic&postip={$topic[postip]}" title="此IP今天所发未审核的所有微博内容">{$topic[postip]}</a>&nbsp;
			     <a href="admin.php?mod=setting&code=modify_access" title="进入IP访问设置页面">[封IP]</a>
			     <!--{else}-->未知IP<!--{/if}-->
			   </span>
               <span style="float: right">
			    <!--{if $topic[type] == 'reply'}--><span style="color:#b5ce4c">此内容是评论</span><!--{/if}-->
				 <label title="允许微博正常显示"><input type="radio" name="managetype[{$report[id]}]" value="1">显示&nbsp;</label>
				 <label title="删除到回收站"><input type="radio" name="managetype[{$report[id]}]" value="4">删除&nbsp;</label>
			   </span>
             </p>
             </div>
             <!--{else}-->
             <p class="p_end">微博已做处理</p>
             <!--{/if}-->
        </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="提交" title="CTRL+ENTER提交">
		</center>
	</form>
<br />
