<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	printFooter();
	exit;
}
?>
<br>
<table border="0" cellspacing="0" cellpadding="0">
  <form name="form1" method="post" action="?action=search">
  <input type="hidden" name="do_action" value="">
  <tr><td>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td class="tit1"><?=$lang['forum.info1']?></td>
  </tr>
  <tr>
    <td align="left" height="30" class="forumrow"><?=$lang['forum.info4']?>
	<input type="text" size="20" name="keyword" id="keyword" style="border:1px;">
      <?=$lang['forum.info5']?>
	  <select name="key_match" style="border:1px;">
	  <option value="" <?=$sl_check?>><?=$lang['key.type1']?></option>
	  <option value="l_touser" <?=$touser_check?>><?=$lang['key.type2']?></option>
	  <option value="l_content" <?=$cont_check?>><?=$lang['key.type3']?></option>
	  <option value="l_ip" <?=$ip_check?>><?=$lang['key.type4']?></option>
	  <option value="l_username" <?=$user_check?>><?=$lang['key.type5']?></option>
	  </select>
	  </td>
  </tr>
  <tr>
    <td class="forumrow" height="30" style="margin-bottom:4px;"><?=$lang['forum.info2']?>
	<select name="search_area" style="border:1px;">
	<?
		print boardjumplist($GLOBALS['search_area'],$lang['search']);
			if($getskinid==1){
				$check='checked';
			}
			else{
				$check='';
			}
	?>
     </select><?=$lang['forum.info3']?>
      <select name="type" style="border:1px;">
	  <option value="" <?=$ss_check?>><?=$lang['log.all']?></option>
	  <option value="3" <?=$three_check?>><?=$lang['log.type1']?></option>
	  <option value="4" <?=$four_check?>><?=$lang['log.type2']?></option>
	  <option value="5" <?=$five_check?>><?=$lang['log.type3']?></option>
	  <option value="6" <?=$six_check?>><?=$lang['log.type4']?></option>
	  <option value="0" <?=$zero_check?>><?=$lang['log.type5']?></option>
	  <option value="1" <?=$one_check?>><?=$lang['log.type6']?></option>
	  <option value="2" <?=$two_check?>><?=$lang['log.type7']?></option>

	  </select>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="button" name="Submit" value="<?=$lang['searchtitle']?>" onclick="search('forum_log.php')">
   </td>
  </tr>
</table>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
<tr>
<td class="tit1" colspan="6">
<table cellpadding="0" cellspacing="1" width="100%">
<tr>
	<td align="center" width="10%"><?=$lang['str.info1']?></td>
	<td width="50%" style="text-indent:10px;"><?=$lang['str.info2']?></td>
	<td  width="15%" align="center"><?=$lang['str.info3']?></td>
	<td width="10%" align="center"><?=$lang['str.info4']?></td>
	<td width="10%" align="center"><?=$lang['str.info5']?></td>
	<td width="15%" align="center"><?=$lang['str.info6']?></td>
	</tr>
</table>
</td>
</tr>
<?
		if(!empty($info_list)){
			if(is_array($info_list)){
				foreach($info_list as $info_val){
					is_numeric($info_val['l_addtime']) AND ($info_val['l_addtime'] = gmdate('Y-m-d H:i:s', $info_val['l_addtime']+getUserTimeZoneOffset()));
?>
	<tr style="padding:1px;">
	<td width="10%" class="forumrow"><a href="../dispuser.php?name=<?=$info_val['l_touser']?>" target="_blank"><?=$info_val['l_touser']?></a></td>
	<td align="left" width="50%" class="forumrow"><?=$info_val['l_content']?></td>
	<td width="15%" class="forumrow"><?=$info_val['l_addtime']?></td>
	<td width="10%" class="forumrow"><?=$info_val['l_ip']?></td>
	<td width="10%" class="forumrow"><a href="../dispuser.php?name=<?=$info_val['l_username']?>" target="_blank"><?=$info_val['l_username']?></a></td>
	<td width="5%" class="forumrow"> <input type="checkbox" name="selected_id[]" value="<?=$info_val['l_id']?>"></td>
	</tr>
<?
				$offset++;
				}
			}
		}
?>
<tr><td colspan="6" height="1" bgcolor="#0000ff"></td></tr>
<tr><td colspan="6" align="left" height="30" class="forumrow1"><?=$lang['template.info1']?>
<input name="select_all" type="checkbox" id="select_all"  value="Y" onclick="un(this)">&nbsp;
<input name="del_sel" style="border:1px;" onclick="del('forum_log.php')" class="button" type="button" id="del_sel" value=" <?=$lang['del']?> ">&nbsp;&nbsp;&nbsp;
<input style="border:1px;" name="del_log" type="submit" class="button" id="del_log" value=" <?=$lang['clen_log']?> " style="border:1px;" onclick="del_all_log('forum_log.php')"></td></tr>
</table>
</td></tr>
  </form>
 </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableborder">
        <tr class="forumrow">
          <td valign="bottom">
<?
	if($total>0){
		page_search($lang['log.type8'],$lang['log.type9'],'type',$type,'search_area',$search_area,'keyword',$keyword,'key_match',$key_match,'do_action',$_GET['do_action']);
	}
?>
		</td>
     </tr>
 </table>