<!--<?php
include_once PrintEot('left');
if (empty($action)){
print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>
{#hackcenter_info}
</ul>
<br></td></tr></table><br>


<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr class=i_table><td colspan="8" class=head>{#hackcenter_title}</td></tr>
<tr class=head_2  align=center><td width=5%>ID</td><td width=20%>{#hackcenter_name}</td>
<td width=20%>{#hackcenter_sign}</td><td width=20%>{#hackcenter_file1}</td>
<td width=20%>{#hackcenter_file2}</td><td width=5%>{#hackcenter_ifuse}</td>
<td width=5%>{#hackcenter_edit}</td><td width=5%>{#hackcenter_del}</td></tr>
<!--
EOT;
$id_h=0;
foreach($db_hackdb as $key=>$hack){
$id_h++;
$hack[4]=$hack[4] ? '{#_yes}' :'{#_no}';
print <<<EOT
-->
<tr align=center><td class=b>$id_h</td><td class=b>$hack[0]</td><td class=b>$hack[1]</td>
<td class=b>$hack[2]</td><td class=b>$hack[3]</td>
<td class=b>$hack[4]</td>
<td class=b><a href="$basename&action=edit&id=$key">{#hackcenter_edit}</a></td>
<td class=b><a href="$basename&action=del&id=$key" onclick="return checkhackset('$basename&action=del&id=$key')">{#hackcenter_del}</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table></td></tr></table>
<!--
EOT;
}else{print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>
{#hackcenter_setinfo}
</ul>
<br></td></tr></table><br>

<form action="$basename" method=post>
<input type=hidden name=action value='$action'>
<input type=hidden name=step value=1>
<input type=hidden name=id value='$id'>
<table width=70% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=6>
<tr><td class=head colspan=5>{#hackcenter_hackset}</td></tr>
<tr><td class=b width=30%>{#hackcenter_name}</td>
<td class=b><input type=text name=hackname size=50 value='$hackname'></td></tr>
<tr><td class=b width=30%>{#hackcenter_sign}</td>
<td class=b><input type=text name=hacksign size=50 value='$hacksign'></td></tr>
<tr><td class=b width=30%>{#hackcenter_file1}</td>
<td class=b><input type=text name=filename1 size=50 value='$filename1'></td></tr>
<tr><td class=b width=30%>{#hackcenter_file2}</td>
<td class=b><input type=text name=filename2 size=50 value='$filename2'></td></tr>
<tr><td class=b width=30%>{#hackcenter_hackfile}</td>
<td class=b><textarea name="hackfile" cols="60" rows="5">$hackfile</textarea></td></tr>
<tr><td class=b>{#hackcenter_ifopen}</td>
<td class=b><input type=radio name=ifopen value=1 $H_open>{#_yes}
<input type=radio name=ifopen value=0 $H_close>{#_no}</td></tr>
</table></td></tr></table>
<br><center><input type='submit' value='{#submit}'></center></form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->