<?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';
if(empty($tool_item->item(0)->nodeValue)){
	$tool_item=array();
	$show_error='';
	$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>
<?php
foreach($tool_item as $rs){
?>
<div class="container">
	<div class="rs_head"><?php echo $rs->getElementsByTagName('toolName')->item(0)->nodeValue;?></div>
</div>

<table class="main main_left">
	<tr>
		<td><?php echo $rs->getElementsByTagName('explain')->item(0)->nodeValue;?></td>
	</tr>
	<tr>
		<td><input type='button' class='top_button' style='width:70px' value='<?php echo $t_langpackage->t_onclick_act?>' onclick='if(confirm("<?php echo str_replace("{tool}",$rs->getElementsByTagName('toolName')->item(0)->nodeValue,$t_langpackage->t_ask_action);?>")){window.location.href="front_end.php?app=<?php echo $rs->getElementsByTagName('contentIndex')->item(0)->nodeValue;?>";}' /></td>
	</tr>
</table>
<?php }?>
<div class='<?php echo $show_error;?>'>
<div class="container">
	<div class="rs_head"><?php echo $t_langpackage->t_list?></div>
</div>
<table class="main main_left">
	<tr>
		<td><?php echo $show_str;?></td>
	</tr>
</table>
</div>

<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_tool_pro_1;?></td>
	</tr>
	<tr>
		<td><?php echo $t_langpackage->t_tool_pro_2;?></td>
	</tr>
	<tr>
		<td><?php echo $t_langpackage->t_tool_pro_3;?></td>
	</tr>
	<tr>
		<td><?php echo $t_langpackage->t_tool_pro_4;?></td>
	</tr>
</table>

</body>
</html>