<!--<?php print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
<tr><td align=left><img src='$imgpath/$stylepath/index/home.gif' align=absbottom> 
<b><a href='$db_bfn'>$db_bbsname </a> -> 
<!--
EOT;
if($action=='log'){print <<<EOT
-->
<a href='hack.php?H_name=toolcenter&action=log'>{#toolcenter_log}</a>
<!--
EOT;
}else{print <<<EOT
-->
<a href="hack.php?H_name=toolcenter">{#toolcenter_guide}</a>
<!--
EOT;
}if($owner){print <<<EOT
-->
-> $owner {#toolcenter_usershop}
<!--
EOT;
}print <<<EOT
-->
</b></td>
<td align=right></td></tr></table><br>

<!--
EOT;
if($action=='use'){
if(!$toolid){print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=5 align=center>
<tr>
<!--
EOT;
$num=0;
foreach($tooldb as $key => $value){
$id=$value[id];
$num++;
print <<<EOT
-->
<td width="33%" valign="top">
<table width='$tablewidth' cellspacing=1 cellpadding=5 align=center $i_table>
<tr class="head" align="center"><td colspan="3"><b>$value[name]</b></td></tr>
<tr class="f_one">
<!--
EOT;
if($value[logo]){
print <<<EOT
-->
<td rowspan="5" align="center" width="40%"><a href="hack.php?H_name=toolcenter&action=use&toolid=$id&tid=$tid" onclick="return checkset('$value[descrip]')"><img src='$imgpath/$stylepath/tool/$value[logo]'></a></td>
<!--
EOT;
}print <<<EOT
-->
<td colspan="2">$value[descrip]</td></tr>
<tr class="f_one"><td align="center" width="20%">{#tool_price}</td><td>$value[price]</td></tr>
<tr class="f_one"><td align="center">{#tool_nums}</td><td>$value[nums]</td></tr>
<tr class="f_one" align="center"><td colspan="2"><a href="hack.php?H_name=toolcenter&action=use&toolid=$id&tid=$tid" onclick="return checkset('$value[descrip]')"><b>[{#tool_use}]</b></a></td></tr>
</table>
</td>
<!--
EOT;
if($num==3){
$num=0;
print <<<EOT
-->
</tr><tr>
<!--
EOT;
}}print <<<EOT
-->
</tr></table>
<script language=JavaScript>
function checkset(tool_msg)
{
	if(!confirm('{#tool_msg_1}' +tool_msg+'{#tool_msg_2}'))
	{
		return false;
	}
}
</script>
<!--
EOT;
}elseif($toolid == 3){print <<<EOT
-->
<form action="hack.php?H_name=toolcenter&action=use&" method="post">
<input type="hidden" name="tid" value="$tid">
<input type="hidden" name="toolid" value="$toolid">
<input type="hidden" name="step" value="2">
<table width="$tablewidth" cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head"><b>{#tool_title}</b></td></tr>
<tr class="f_one">
<td>
<input type=checkbox name='title2' value='1'><img src='$imgpath/post/editor/bold.gif'>
<input type=checkbox name='title3' value='1'><img src='$imgpath/post/editor/italic.gif'>
<input type=checkbox name='title4' value='1'><img src='$imgpath/post/editor/underline.gif'>
<br><br>
&nbsp;{#masingle_color} 
<input name=title1 type=radio value="">{#masingle_none}
<input name=title1 type=radio value="red"><font color="red">{#masingle_red}</font>
<input name=title1 type=radio value="blue"><font color="blue">{#masingle_blue}</font>
<input name=title1 type=radio value="green"><font color="green">{#masingle_green}</font>
<input name=title1 type=radio value="orange"><font color="orange">{#masingle_orange}</font>
<input name=title1 type=radio value="silver"><font color="silver">{#masingle_silver}</font>
</td></tr>
</table>
</td></tr></table>
<br><center><input type=submit value='{#submit}'></center></form>
<!--
EOT;
}elseif($toolid == 8){print <<<EOT
-->
<form action="hack.php?H_name=toolcenter&action=use&" method="post">
<input type="hidden" name="toolid" value="$toolid">
<input type="hidden" name="step" value="2">
<table width="$tablewidth" cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" colspan="2"><b>{#tool_title}</b></td></tr>
<tr class="f_one"><td width="15%">{#newusername}</td><td><input type="text" name="pwuser"></td></tr>
</table>
</td></tr></table>
<br><center><input type=submit value='{#submit}'></center></form>
<!--
EOT;
}}else{print <<<EOT
-->
<table width='$tablewidth' cellspacing=1 cellpadding=4 align=center bgcolor=$tablecolor>
<tr align=center class='f_one'>
<td><a href='hack.php?H_name=toolcenter'>{#toolcenter_system}</a></td>
<td><a href='hack.php?H_name=toolcenter&action=user'>{#toolcenter_user}</a></td>
<td><a href='hack.php?H_name=toolcenter&action=user&uid=$winduid'>{#toolcenter_mysell}</a></td>
<td><a href='hack.php?H_name=toolcenter&action=mytool'>{#toolcenter_mytool}</a></td>
</tr></table><br>
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
<tr>
<td width='20%' valign="top">
<table width='95%' cellspacing=1 cellpadding=5 $i_table>
<tr><td class="head" align="center" colspan="2"><b>{#profile_userinfo}</b></td></tr>
<tr class="f_one"><td>{#currency}</td><td>$userdb[currency]</td></tr>
<tr class="f_one"><td width="35%">{#read_digest}</td><td>$userdb[digests]</td></tr>
<tr class="f_one"><td>{#posts}</td><td>$userdb[postnum]</td></tr>
<tr class="f_one"><td>$db_rvrcname</td><td>$userrvrc $db_rvrcunit</td></tr>
<tr class="f_one"><td>$db_creditname</td><td>$userdb[credit] $db_creditunit</td></tr>
<tr class="f_one"><td>$db_moneyname</td><td>$userdb[money] $db_moneyunit</td></tr>
<tr class="f_one"><td align="center" colspan="2"><a href="hack.php?H_name=toolcenter&action=use">[{#tool_use}]</a></td></tr>
</table>
</td><td valign="top">
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" colspan="6"><b>{#guide}</b></td></tr>
<tr><td class="f_one" colspan="6">{#toolcenter_info}</td></tr>
</table>
</td></tr></table><br>
<!--
EOT;
if(!$action){print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=5 align=center>
<tr>
<!--
EOT;
$num=0;
foreach($tooldb as $key => $value){
$id=$value[id];
$num++;
print <<<EOT
-->
<td width="33%" valign="top">
<table width='100%' cellspacing=1 cellpadding=5 align=center $i_table>
<tr class="head" align="center"><td colspan="3"><b>$value[name]</b></td></tr>
<tr class="f_one">
<!--
EOT;
if($value[logo]){
print <<<EOT
-->
<td rowspan="5" align="center" width="40%"><a href="hack.php?H_name=toolcenter&action=buy&id=$id"><img src='$imgpath/$stylepath/tool/$value[logo]'></a></td>
<!--
EOT;
}print <<<EOT
-->
<td colspan="2">$value[descrip]</td></tr>
<tr class="f_one"><td align="center" width="20%">{#tool_price}</td><td>$value[price]</td></tr>
<tr class="f_one"><td align="center">{#tool_stock}</td><td>$value[stock]</td></tr>
<tr class="f_one" align="center"><td colspan="2"><a href="hack.php?H_name=toolcenter&action=buy&id=$id"><b>{#tool_buy}</b></a></td></tr>
</table>
</td>
<!--
EOT;
if($num==3){
$num=0;
print <<<EOT
-->
</tr><tr>
<!--
EOT;
}}print <<<EOT
-->
</tr></table>

<!--
EOT;
} elseif($action=='user'){print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=5 align=center>
<tr>
<!--
EOT;
$num=0;
foreach($tooldb as $key => $value){
$id=$value[toolid];
$num++;
print <<<EOT
-->
<td width="33%" valign="top">
<table width='$tablewidth' cellspacing=1 cellpadding=5 align=center $i_table>
<tr class="head" align="center"><td colspan="3"><b>$value[name]</b></td></tr>
<tr class="f_one">
<!--
EOT;
if($value[logo]){
print <<<EOT
-->
<td rowspan="5" align="center"><a href="hack.php?H_name=toolcenter&action=buyuser&id=$id&uid=$value[uid]"><img src='$imgpath/$stylepath/tool/$value[logo]'></a></td>
<!--
EOT;
}print <<<EOT
-->
<td colspan="2">$value[descrip]</td></tr>
<tr class="f_one"><td align="center" width="20%">{#tool_username}</td><td>$value[username]</td></tr>
<tr class="f_one"><td align="center">{#tool_sellprice}</td><td>$value[sellprice]</td></tr>
<tr class="f_one"><td align="center">{#tool_sellnum}</td><td>$value[sellnums]</td></tr>
<tr class="f_one" align="center"><td colspan="2"><a href="hack.php?H_name=toolcenter&action=buyuser&id=$id&uid=$value[uid]"><b>{#tool_buy}</b></a></td></tr>
</table>
</td>
<!--
EOT;
if($num==3){
$num=0;
print <<<EOT
-->
</tr><tr>
<!--
EOT;
}}print <<<EOT
-->
</tr></table>
<!--
EOT;
} elseif($action=='mytool'){print <<<EOT
-->
<table width='$tablewidth' cellspacing=1 cellpadding=5 align=center $i_table>
<tr><td class="head" colspan="9"><b>$windid {#toolcenter_list}</b></td></tr>
<tr class="cbg" align="center">
<td>ID</td>
<td>{#tool_name}</td>
<td>{#tool_havenum}</td>
<td>{#tool_sellnum}</td>
<td>{#tool_price}</td>
<td>{#tool_stock}</td>
<td>{#tool_buy}</td>
<td>{#tool_sell}</td>
</tr>
<!--
EOT;
foreach($tooldb as $key => $value){
$id=$value[toolid];
print <<<EOT
-->
<tr class="f_one" align="center">
<td>$id</td>
<td><a href="hack.php?H_name=toolcenter&action=buy&id=$id">$value[name]</a></td>
<td>$value[nums]</td>
<td>$value[sellnums]</td>
<td>$value[price]</td>
<td>$value[stock]</td>
<td><a href="hack.php?H_name=toolcenter&action=buy&id=$id">{#tool_buy}</a></td>
<td><a href="hack.php?H_name=toolcenter&action=sell&id=$id">{#tool_sell}</a></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
} elseif($action=='sell'){print <<<EOT
-->
<form action="hack.php?H_name=toolcenter&" method="post">
<input type="hidden" name="action" value="sell">
<input type="hidden" name="step" value="2">
<input type="hidden" name="id" value="$id">
<table width="98%" align=center cellspacing=1 cellpadding=3 $i_table>
<tr><td class=head colspan=2 align="center">{#tool_buytool}</td></tr>
<!--
EOT;
if($rt[logo]){
print <<<EOT
-->
<tr class="f_one"><td colspan="2" align="center"><img src='$imgpath/$stylepath/tool/$rt[logo]'></td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr class="f_one"><td width="25%">{#tool_name}</td><td>$rt[name]</td></tr>
<tr class="f_one"><td>{#tool_sellprice}</td><td><input type="text" name="price" value="$rt[price]"></td></tr>
<tr class="f_one"><td>{#tool_sellnum}</td><td><input type="text" name="nums" value="1"></td></tr></table>
<br><center><input type=submit value='{#tool_sell}'></center></form>
<!--
EOT;
} elseif($action=='buy'){print <<<EOT
-->
<table width="98%" align=center cellspacing=1 cellpadding=3 $i_table>
<tr><td class=head colspan=2 align="center">{#tool_info}</td></tr>
<!--
EOT;
if($rt[logo]){
print <<<EOT
-->
<tr><td colspan="2" align="center" class="f_one"><img src='$imgpath/$stylepath/tool/$rt[logo]'></td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr class="f_one"><td width="25%">{#tool_name}</td><td>$rt[name]</td></tr>
<tr class="f_one"><td>{#tool_descrip}</td><td>$rt[descrip]</td></tr>
<tr class="f_one"><td>{#tool_price}</td><td>$rt[price]</td></tr>
<tr class="f_one"><td>{#tool_stock}</td><td>$rt[stock]</td></tr>
<tr><td class="cbg" colspan=2 align="center">{#tool_credit}</td></tr>
<tr class="f_one"><td>{#posts}</td><td>{$condition[credit][postnum]}</td></tr>
<tr class="f_one"><td>{#digests}</td><td>{$condition[credit][digests]}</td></tr>
<tr class="f_one"><td>{#rvrc}</td><td>{$condition[credit][rvrc]}</td></tr>
<tr class="f_one"><td>{#money}</td><td>{$condition[credit][money]}</td></tr>
<tr class="f_one"><td>{#credit}</td><td>{$condition[credit][credit]}</td></tr>
<!--
EOT;
foreach($_CREDITDB as $key => $value){print <<<EOT
-->
<tr class="f_one"><td>$value[0]</td><td>{$condition[credit][$key]}</td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr class="f_one"><td class="cbg" colspan=2 align="center">{#tool_other}</td></tr>
<tr class="f_one"><td>{#tool_usergroup}</td>
<td>
<!--
EOT;
if($usergroup){print <<<EOT
-->
<table cellspacing='0' cellpadding='0' border='0' width='100%' align='center'><tr>$usergroup</tr></table>
<!--
EOT;
}else{print <<<EOT
-->
{#all_group}
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr class="f_one"><td>{#tool_forums}</td>
<td>
<!--
EOT;
if($usergroup){print <<<EOT
-->
<table cellspacing='0' cellpadding='0' border='0' width='100%' align='center'><tr>$forumcheck</tr></table>
<!--
EOT;
}else{print <<<EOT
-->
{#all_forum}
<!--
EOT;
}print <<<EOT
-->
</td></tr></table><br>

<form action="hack.php?H_name=toolcenter&" method="post">
<input type="hidden" name="action" value="buy">
<input type="hidden" name="step" value="2">
<input type="hidden" name="id" value="$id">
<table width="98%" align=center cellspacing=1 cellpadding=3 $i_table>
<tr class="f_one"><td class=head colspan=2 align="center">{#tool_buytool}</td></tr>
<tr class="f_one"><td  width="25%"  class="f_one">{#tool_price}</td><td>$rt[price]</td></tr>
<tr class="f_one"><td>{#tool_stock}</td><td>$rt[stock]</td></tr>
<tr class="f_one"><td>{#tool_buynum}</td><td><input type="text" name="nums" value="1"></td></tr></table>
<br><center><input type=submit value='{#tool_buy}'></center></form>
<!--
EOT;
} elseif($action=='buyuser'){print <<<EOT
-->
<table width="98%" align=center cellspacing=1 cellpadding=3 $i_table>
<tr><td class=head colspan=2 align="center">{#tool_info}</td></tr>
<!--
EOT;
if($rt[logo]){
print <<<EOT
-->
<tr><td colspan="2" align="center" class="f_one"><img src='$imgpath/$stylepath/tool/$rt[logo]'></td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr class="f_one"><td width="25%">{#tool_name}</td><td>$rt[name]</td></tr>
<tr class="f_one"><td>{#tool_descrip}</td><td>$rt[descrip]</td></tr>
<tr class="f_one"><td>{#tool_price}</td><td>$rt[price]</td></tr>
<tr class="f_one"><td>{#tool_stock}</td><td>$rt[stock]</td></tr>
<tr class="f_one"><td class="cbg" colspan=2 align="center">{#tool_credit}</td></tr>
<tr class="f_one"><td>{#posts}</td><td>{$condition[credit][postnum]}</td></tr>
<tr class="f_one"><td>{#digests}</td><td>{$condition[credit][digests]}</td></tr>
<tr class="f_one"><td>{$db_rvrcname}</td><td>{$condition[credit][rvrc]}</td></tr>
<tr class="f_one"><td>{$db_moneyname}</td><td>{$condition[credit][money]}</td></tr>
<tr class="f_one"><td>{$db_creditname}</td><td>{$condition[credit][credit]}</td></tr>
<!--
EOT;
foreach($_CREDITDB as $key => $value){print <<<EOT
-->
<tr class="f_one"><td>$value[0]</td><td>{$condition[credit][$key]}</td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr><td class="cbg" colspan=2 align="center">{#tool_other}</td></tr>
<tr class="f_one"><td>{#tool_usergroup}</td>
<td>
<!--
EOT;
if($usergroup){print <<<EOT
-->
<table cellspacing='0' cellpadding='0' border='0' width='100%' align='center'><tr>$usergroup</tr></table>
<!--
EOT;
}else{print <<<EOT
-->
{#all_group}
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr class="f_one"><td>{#tool_forums}</td>
<td>
<!--
EOT;
if($usergroup){print <<<EOT
-->
<table cellspacing='0' cellpadding='0' border='0' width='100%' align='center'><tr>
$forumcheck
</tr></table>
<!--
EOT;
}else{print <<<EOT
-->
{#all_forum}
<!--
EOT;
}print <<<EOT
-->
</td></tr></table><br>

<form action="hack.php?H_name=toolcenter&" method="post">
<input type="hidden" name="action" value="buyuser">
<input type="hidden" name="step" value="2">
<input type="hidden" name="id" value="$id">
<input type="hidden" name="uid" value="$uid">
<table width="98%" align=center cellspacing=1 cellpadding=3 $i_table>
<tr><td class=head colspan=2 align="center">{#tool_buytool}</td></tr>
<tr class="f_one"><td  width="25%"  class="f_one">{#tool_sellprice}</td><td>$rt[sellprice]</td></tr>
<tr class="f_one"><td>{#tool_sellnum}</td><td>$rt[sellnums]</td></tr>
<tr class="f_one"><td>{#tool_buynum}</td><td><input type="text" name="nums" value="1"></td></tr></table>
<br><center><input type=submit value='{#tool_buy}'></center></form>
<!--
EOT;
}}?>-->