<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<table border="0" cellspacing="0" cellpadding="0" align="center" class="tableborder">
	<FORM method="post" name="form1" action="moneylog.php">
	<input type="hidden" name="stype" value="4">
	<tr>
		<td class="tit1" colspan="8">
			<?
				echo $lang['log.info1'].$titlestr;
			?>
		</td>
	</tr>
	<tr>
		<td height="70" class="forumrow" style="text-align:center;height:70px;">
			<input type="submit" name="Submit" value="<? echo $lang['log.info42']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
		</td>
		<td colspan="7" class="forumrow2">
			<? echo $lang['log.info43']?>
		</td>
	</tr>
	<tr>
		<td colspan="8" class="forumrow1" style="height:40px;" valign="middle">
		<?=$lang['log.info24']?><INPUT type="text" name="keyword" value="" size="40"> <INPUT type="submit" class="button" value="<?=$lang['log.info25']?>">
		</td>
	</tr>
	<tr>
		<td height="30" style="text-align:center;" <?if($stype==7 or $stype==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> >
		<a href="?stype=7"><font color="<?if($stype==7 or $stype==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info17']?></font></a>
		</td>
		<td height="30" <?if($stype==4){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		<a href="?stype=4"><font color="<?if($stype==4){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info18']?></font></a>
		</td>
		<td height="30" <?if($stype==2){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		 <a href="?stype=2"><font color="<?if($stype==2){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info19']?></font></a>
		</td>
		<td height="30" <?if($stype==5){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		<a href="?stype=5"><font color="<?if($stype==5){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info20']?></font></a>
		</td>
		<td height="30" <?if($stype==6){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		 <a href="?stype=6"><font color="<?if($stype==6){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info21']?></font></a>
		</td>
		<td height="30" <?if($stype==1){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		<a href="?stype=1"><font color="<?if($stype==1){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info22']?></font></a>
		</td>
		<td height="30" <?if($stype==-1){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		<a href="?stype=-1"><font color="<?if($stype==-1){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info23']?></font></a>
		</td>
		<td height="30" <?if($action=='oper'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>>
		<a href="?action=oper"><font color="<?if($action=='oper'){echo 'red';}else{echo '#000000';}?>"><?=$lang['log.info44']?></font></a>
		</td>
	</tr>
</FORM>
</table>
<?if($action==''){
?>
<table border="0" cellspacing="1" cellpadding="0"  align="center" class="tableborder">
  <form name="form2" method="post" action="?action=alldel">
  <tr>
    <td colspan="8" class="tdtit"><?echo $lang['log.info10']?></td>
  </tr>
  <tr class="forumrow2">
    <td width="5%"><?=$lang['log.info26']?></td>
    <td width="5%" style="text-align:center;"><?=$lang['log.info27']?></td>
    <td width="5%" style="text-align:center;"><?=$lang['log.info28']?></td>
    <td width="5%" style="text-align:center;"><?=$lang['log.info29']?></td>
    <td width="50%"><?=$lang['log.info30']?></td>
    <td width="10%" style="text-align:center;"><?=$lang['log.info31']?></td>
    <td width="10%" style="text-align:center;"><?=$lang['log.info32']?></td>
    <td width="10%" style="text-align:center;"><?=$lang['log.info33']?></td>
  </tr>
  <?
  $row1=1;
	if(!empty($log_set)){
		if(is_array($log_set)){
			foreach($log_set as $log_arr){
  ?>
  <tr class="forumrow" style="padding:1px;">
    <td height="25" width="5%"><input type="checkbox" name="logid[]" value="<?=$log_arr['log_id']?>"><?=$log_arr['log_type']?></td>
    <td height="25" width="5%" style="text-align:center;"><?=$log_arr['countnum']?></td>
    <td height="25" width="5%" style="text-align:center;"><?=$log_arr['log_money']?></td>
    <td height="25" width="5%" style="text-align:center;"><?=$log_arr['log_ticket']?></td>
    <td height="25" width="50%" align="left"><?=$log_arr['conect']?></td>
    <td height="25" width="10%" style="text-align:center;">
		<a href="../dispuser.php?id=<?=$log_arr['adduserid']?>" target="_blank" title="<?=$lang['log.info34']?><?=$log_arr['hmoney']?>"><?=$log_arr['addusername']?></a><br><b><?=$log_arr['hmoney']?></b>
	</td>
    <td height="25" width="10%" style="text-align:center;"><?=$log_arr['log_ip']?></td>
    <td height="25" width="10%" style="text-align:center;"><?=gmdate('Y-m-d H:i:s', $log_arr['log_time']+getUserTimeZoneOffset())?></td>
  </tr>
  <?
				if($row1==1){
					$row1=2;
				 }
				 else{
					$row1=1;
				 }
			}
		}
	}
  ?>
  <tr>
    <td height="30" colspan="8" class="forumrow1">
	<?=$lang['log.info35']?><input name="chkall" type="checkbox" value="on" onclick="un(this)">
	<?=$lang['log.info36']?><input type="Submit" class="button" name="Submit" value="<?=$lang['log.info37']?>"></td>
  </tr>
  </form>
    <tr>
    <td height="30" colspan="8" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['log.info40'],$lang['log.info41'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
	</td>
  </tr>
</table>

<?}elseif($action=='oper'){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
  <tr>
    <td height="25" colspan="8" class="tdtit"><font color="blue"><?=$lang['log.info38']?></font></td>
  </tr>
  <tr>
    <td height="25" colspan="8" class="forumrow">
	<?=$lang['log.info39']?>
	<a href="?action=del&dtype=7" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info17']?></a>
	| <a href="?action=del&dtype=4" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info18']?></a>
	| <a href="?action=del&dtype=2" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info19']?></a>
	| <a href="?action=del&dtype=5" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info20']?></a>
	| <a href="?action=del&dtype=3" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info21']?></a>
	| <a href="?action=del&dtype=1" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info22']?></a>
	| <a href="?action=del&dtype=6" onclick="{if(confirm('<?=$lang['log.info11']?>')){return true;}return false;}"><?=$lang['log.info23']?></a>
	</td>
  </tr>
</table>
<?}?>
