<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<script language="javascript">
function waiting()
{
 document.getElementById("servlist").style.display="none";
 document.getElementById("part_one").style.display="block";
}
</script>
<div id="part_one" align=center STYLE="display=none;width:100%;margin-top:200px;position:absolute;color:#555;font-size:14px;font-weight:bold;"><img src="/admin/skin/images/ajax_loader.gif">
<!--div style="padding-top:20px;">正在加载数据，请等待...</div--></div>
<table cellpadding='2' cellspacing='1' border='0' class='tableBorder' style="text-align:center">
  <tr>
    <td class='pagemenu' style="text-align:center;font-weight:bold;color:#333;font-size:16px">请选择游戏分区</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%>
<tbody id=servlist>
<tr align="center">
<td width="5%" class="tablerowhighlight" style="font-size:14px;font-weight:bold">ID</td>
<td width="15%" class="tablerowhighlight" style="font-size:14px;font-weight:bold">服务器名</td>
<td width="15%" class="tablerowhighlight" style="font-size:14px;font-weight:bold">IP地址</td>
<td width="65%" class="tablerowhighlight" style="font-size:14px;font-weight:bold;text-align:center">管理操作</td>
</tr>
<?php 
foreach($gamelist as $value){ ?>
<tr align="center">
<td height=35 style="font-size:14px;"><?=$value['id']?></td>
<td style="font-size:14px;font-weight:bold"><?=$value['servername']?></td>
<td style="font-size:14px;"><?=$value['serverip']?></td>
<td style="text-align:center"><?php if($file == "acclist") { ?><input type="button" class="btn"  style="font-size:13px;font-weight:bold;height:30px;color:darkgreen" value="管理游戏帐号" onClick="waiting();javascript:location.href='?mod=<?=$mod?>&file=acclist&action=manage&idserver=<?=$value['id']?>'"><?php }elseif($file == "fsolist") { ?><input type="button" class="btn"  style="font-size:13px;font-weight:bold;height:30px;color:#900" value="管理游戏角色" onClick="waiting();javascript:location.href='?mod=<?=$mod?>&file=fsolist&action=manage&idserver=<?=$value['id']?>'"><?php }elseif($file == "banklist") { ?>
<input type="button" class="btn"  style="font-size:13px;font-weight:bold;height:30px;color:orange" value="玩家仓库管理" onClick="waiting();javascript:location.href='?mod=<?=$mod?>&file=banklist&action=manage&idserver=<?=$value['id']?>'"><?php }elseif($file == "loglist") { ?>
<input type="button" class="btn"  style="font-size:13px;font-weight:bold;height:30px;color:#555" value="游戏日志查询" onClick="waiting();javascript:location.href='?mod=<?=$mod?>&file=loglist&action=manage&idserver=<?=$value['id']?>'"><?php }else{ ?>读取错误<? } ?></td>
</tr>
<? } ?>
</tbody>
</table>
</body>
</html>
