<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<div id="part_one" align=center STYLE="width:100%;margin-top:300px;position:absolute;color:#f00;font-size:14px;"><img src="/admin/skin/images/ajax_loader.gif">
<div style="padding-top:20px">正在读取数据，请等待...</div></div>
<table cellpadding='2' cellspacing='1' border='0' align='center' class='tableBorder'>
  <tr>
    <td class='pagemenu' align="center"><input name="button" type="button" class="btn" style="color:#990000;font-weight:bold" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=delelog&idserver=<?=$idserver?>&deletedate=7'" value="清理一星期前的所有日志">
    <input style="color:#990000;font-weight:bold" type="button" class="btn" value="清理三天前的所有日志" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=delelog&idserver=<?=$idserver?>&deletedate=3'">	</td>
  </tr>
</table>
<table cellpadding='2' cellspacing='1' border='0' align='center' class='tableBorder'>
  <tr>
    <td class='pagemenu' align="center"><input <?php if(!$type) { ?> style="color:red;font-weight:bold"<? } ?> type="button" class="btn" value="全部日志" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&idserver=<?=$idserver?>&Name=<?=$Name?>&starttime=<?=$starttime?>&endtime=<?=$endtime?>'">
	<input <?php if($type == "8") { ?> style="color:red;font-weight:bold"<? } ?> type="button" class="btn" value="GM日志" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&idserver=<?=$idserver?>&type=8&Name=<?=$Name?>&starttime=<?=$starttime?>&endtime=<?=$endtime?>'"> 
	<input <?php if($type == "13") { ?> style="color:red;font-weight:bold"<? } ?> type="button" class="btn" value="交易日志(发起)" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&idserver=<?=$idserver?>&type=13&Name=<?=$Name?>&starttime=<?=$starttime?>&endtime=<?=$endtime?>'">
	<input <?php if($type == "14") { ?> style="color:red;font-weight:bold"<? } ?> type="button" class="btn" value="交易日志(接收)" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&idserver=<?=$idserver?>&type=14&Name=<?=$Name?>&starttime=<?=$starttime?>&endtime=<?=$endtime?>'">
	<input <?php if($type == "36") { ?> style="color:red;font-weight:bold"<? } ?> type="button" class="btn" value="拍卖日志" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&idserver=<?=$idserver?>&type=36&Name=<?=$Name?>&starttime=<?=$starttime?>&endtime=<?=$endtime?>'">	
	</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td ></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder" width=100%>
<form method="get" name="search" action="?">
  <tr>
    <td width=15%><strong>角色日志查询</strong></td>
    <td width=35%>
	角色名称： <input name='Name' type='text' size='25' value='<?=$Name?>'> 
	<br>
<link rel="stylesheet" type="text/css" media="all" href="/include/calendar/calendar-blue2.css" title="system" /><script type="text/javascript" src="/include/calendar/calendar.js"></script>
<script type="text/javascript" src="/include/calendar/calendar-zh.js"></script>
<script type="text/javascript" src="/include/calendar/calendar-setup.js"></script>
开始时间：
<input style="cursor:hand" type="text" name="starttime" id="starttime" value="<?=$starttime?>" size="25"><br>
<script language="javascript" type="text/javascript">date = new Date();document.getElementById ("starttime").value="<?=$starttime?>";
    Calendar.setup({
        inputField     :    "starttime",
        ifFormat       :    "%Y-%m-%d %H:%M:%S",
        showsTime      :    true,
        timeFormat     :    "24"
    });</script>
结束时间：
<input style="cursor:hand" type="text" name="endtime" id="endtime" value="<?=$endtime?>" size="25" >
<script language="javascript" type="text/javascript">date = new Date();document.getElementById ("endtime").value="<?=$endtime?>";
    Calendar.setup({
        inputField     :    "endtime",
        ifFormat       :    "%Y-%m-%d %H:%M:%S",
        showsTime      :    true,
        timeFormat     :    "24"
    });</script>
   </td>
	<td width=55% style="text-align:left">
<input name='mod' type='hidden' value='<?=$mod?>'>
<input name='file' type='hidden' value='<?=$file?>'>
<input name='idserver' type='hidden' value='<?=$idserver?>'>
<input name='type' type='hidden' value='<?=$type?>'>
<input name='action' type='hidden' value='<?=$action?>'>
<input name='submit' type='submit' class='btn' value=' 给老子查 ' style="font-weight:bold;font-size:14px;height:50px;color:f00">
</td>
</tr>
</form>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
  <tr>
    <td style="text-align:center;color:darkgreen;font-size:14px;font-weight:bold">当前分区：<font color="blue"><?=$servername?></font>  共 <font color=red><?=$sumnums?></font> 条日志! 
	<br>
   <span style="color:#555;font-size:12px">提示：单击ID链接可打开帐号，单击用户名称可打开此角色信息。</span></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder" width=100%>
<tr align="center">
<td width="8%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">ID</td>
<td width="15%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">用户</td>
<td width="8%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">动作</td>
<td width="23%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">送出内容</td>
<td width="19%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">接收内容</td>
<td width="17%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">附加内容</td>
<td width="10%" class="tablerowhighlight" style="font-size:14px;text-align:center;font-weight:bold">时间</td>
</tr>
<?php 
if(is_array($logs))
{
foreach($logs as $log){ ?>
<tr align="center">
<td style="text-align:center"><a style="TEXT-DECORATION: underline" href="?mod=<?=$mod?>&file=acclist&action=manage&idserver=<?=$idserver?>&idx=<?=$log['AccountID']?>" target="_blank" title="打开该角色帐号"><?=$log['OperateID']?></a></td>
<td style="font-weight:bold;text-align:center"><a style="TEXT-DECORATION: underline" href="?mod=<?=$mod?>&file=fsolist&action=manage&idserver=<?=$idserver?>&ID=<?=$log['userID']?>" target="_blank" title="打开该角色信息"><?=$log['Name']?></a></td>
<td style="font-weight:bold"><?=loginfo($log['type'],$log['longParam1'])?></td>
<td style="text-align:left;word-break:break-all"><?=$log['strParam1']?></td>
<td style="text-align:left;word-break:break-all"><?=$log['strParam2']?></td>
<td style="text-align:left;word-break:break-all"><?=$log['strParam3']?></td>
<td style="text-align:center" title="操作IP：<?=$log['userIP']?>"><?=$log['LogTime']?>  </td>
</tr>
<?php } 
}
?>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
  <tr>
    <td align="center"><?=$pages?></td>
  </tr>
</table>
<script language="javascript">
<?php
sajax_show_javascript();
?>
function changepass(idx,idserver){
 document.getElementById("pass_"+idx).innerHTML="<input id='ipass_"+idx+"' type='text' style='width:150px' value='' onBlur='savepass("+idx+","+idserver+",this.value)'>";
 document.getElementById("ipass_"+idx).focus();
 document.getElementById("name_"+idx).style.color="#FF0000";
}
function savepass(idx,idserver,npass){

 x_savepass(idx,idserver,npass,savepass_cb)
 
 function savepass_cb(z){
  if(z == "true"){
    document.getElementById("pass_"+idx).innerHTML="<font color=green>修改成功</font>";
    document.getElementById("name_"+idx).style.color="#555";
  }else{
    window.alert(z);
	document.getElementById("pass_"+idx).innerHTML="双击修改";
	document.getElementById("name_"+idx).style.color="#555";
  }
 }
}

function savepriv(idx,idserver){

 x_savepriv(idx,idserver,savepriv_cb)
 
 function savepriv_cb(z){
    document.getElementById("priv_"+idx).innerHTML=z;
 }
}

function savelock(idx,idserver){

 x_savelock(idx,idserver,savelock_cb)
 
 function savelock_cb(z){
    document.getElementById("lock_"+idx).innerHTML=z;
 }
}
 function window.onload(){
   if(document.body.readyState=="complete"){
     part_one.style.display='none';
   }
 }
</script>
</body>
</html>
