<?php
require("session_check.php");
//语言包引入
$t_langpackage=new toollp;
$xmlDom=new DomDocument;
$xmlDom->load('toolsBox/tool.xml');
$tool_item=$xmlDom->getElementsByTagName('tool_item');
$show_str='';
$show_error='content_none';
$show_data='';
if(empty($tool_item->item(0)->nodeValue)){
	$tool_item=array();
	$show_error='';
	$show_data='content_none';
	$show_str=$t_langpackage->t_none_tool;
}

?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/right.css">
</head>
<body>
<div class="container">
	<div class="rs_head"><?php echo $t_langpackage->t_tool_manage;?></div>
</div>
<table class="main <?php echo $show_data;?>">
	<tr>
		<th><?php echo $t_langpackage->t_name;?></th>
		<th><?php echo $t_langpackage->t_code_num;?></th>
		<th><?php echo $t_langpackage->t_time;?></th>
		<th><?php echo $t_langpackage->t_author;?></th>
		<th><?php echo $t_langpackage->t_ctrl;?></th>
	</tr>
<?php
foreach($tool_item as $rs){
?>
	<tr>
		<td><?php echo $rs->getElementsByTagName('toolName')->item(0)->nodeValue;?></td>
		<td><?php echo $rs->getAttribute("id");?></td>
		<td><?php echo $rs->getElementsByTagName('date')->item(0)->nodeValue;?></td>
		<td><?php echo $rs->getElementsByTagName('author')->item(0)->nodeValue;?></td>
		<td><a href='unload_tool.php?id=<?php echo $rs->getAttribute("id");?>' onclick='return confirm("<?php echo $t_langpackage->t_ask_unset;?>")'><?php echo $t_langpackage->t_unset;?></a></td>
	</tr>
<?php }?>
</table>

<table class="main main_left <?php echo $show_error;?>">
	<tr>
		<td><?php echo $show_str;?></td>
	</tr>
</table>

<div class="container">
	<div class="rs_head"><?php echo $t_langpackage->t_tip_inf;?></div>
</div>
<table class="main main_left">
	<tr>
		<td><?php echo $t_langpackage->t_manage_pro_1;?></td>
	</tr>
	<tr>
		<td><?php echo $t_langpackage->t_manage_pro_2;?></td>
	</tr>	
	<tr>
		<td><?php echo $t_langpackage->t_manage_pro_3;?></td>
	</tr>	
</table>

</body>
</html>