<!--<?php
include_once PrintEot('left');
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>
<!--
EOT;
if($a_type=='bakout'){
 print <<<EOT
-->
{#bakup_out_info}
<!--
EOT;
}elseif($a_type=='bakin'){
 print <<<EOT
-->
{#bakup_in_info}
<!--
EOT;
}print <<<EOT
-->
</ul>
</td></tr></table><br>
<!--
EOT;
if($a_type=='bakout'){
 print <<<EOT
-->
<form action="$basename" method=post>
<input type=hidden name="action" value="bakout">
<table width=70% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=3>{#bakup_list}</td></tr>
<tr>
<td class=head_2 width="5%" align=center>ID</td>
<td class=head_2>{#bakup_table}</td>
<td class=head_2 width="10%" align=center>{#bakup_sel}</td>
</tr>
<!--
EOT;
$id=0;
foreach($tabledb as $key=>$table){
$id++;
print <<<EOT
-->
<tr>
<td class=b align=center>$id</td>
<td class=b>$table</td>
<td class=b align=center><input type=checkbox name=tabledb[] value=$table></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr><td class=head colspan=3>{#bakup_bak}</td></tr>
<tr class=b><td colspan=3><input type=text name="sizelimit" value="2048" size=5> {#bakup_length}</td></tr>
</table>
<br><center>
<input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type=submit value="{#submit}"></center></form>

<form action="$basename" method=post>
<input type=hidden name="action" value="bakout">
<table width=70% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=3>{#other_table}</td></tr>
<tr>
<td class=head_2 width="5%" align=center>ID</td>
<td class=head_2>{#bakup_table}</td>
<td class=head_2 width="10%" align=center>{#bakup_sel}</td>
</tr>
<!--
EOT;
$id=0;
foreach($othortable as $key=>$table){
$id++;
print <<<EOT
-->
<tr>
<td class=b align=center>$id</td>
<td class=b>$table</td>
<td class=b align=center><input type=checkbox name=tabledb[] value=$table></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr><td class=head colspan=3>{#bakup_bak}</td></tr>
<tr class=b><td colspan=3><input type=text name="sizelimit" value="2048" size=5> {#bakup_length}</td></tr>
</table>
<br><center>
<input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type=submit value="{#submit}"></center></form>
<!--
EOT;
}elseif($a_type=='bakin'){
if(!$action){print <<<EOT
-->
<form method="post" action="$basename">
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr class=i_table align=center><td colspan=7 class=head>{#bakup_file}</td></tr>
<tr class=head_2 align=center><td width=3%>ID</td>
<td width=35%>{#bakup_filename}</td><td width=15%>{#bakup_version}</td>
<td>{#bakup_time}</td><td width=5%>{#bakup_num}</td><td>{#bakup_bakin}</td><td width=5% >{#bakup_del}</td></tr>
<!--
EOT;
foreach($filedb as $id=>$bakfile){
$id++;
print <<<EOT
-->
<tr class=b align=center>
<td>$id</td>
<td><a href="data/$bakfile[name]">$bakfile[name]</a></td>
<td>$bakfile[version]</td>
<td>$bakfile[time]</td><td>$bakfile[num]</td>
<td><a href="$basename&action=bakincheck&pre=$bakfile[pre]">{#bakup_bakin}</a></td>
<td><input name="delfile[]" type=checkbox value="$bakfile[name]"></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<input name=action type=hidden value="del">
<br><center>
<input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type="submit" name="delete" value="{#bakup_delbak}" onclick="return checkset('{#delbak_confirm}');"></center>
</form>
<script language=JavaScript>
function checkset(confirm_info)
{
	if(confirm(confirm_info)){
		return true;
	} else {
		return false;
	}
}
</script>
<!--
EOT;
}elseif($action=='bakincheck'){
print <<<EOT
-->
<form action="$basename&action=bakin&pre=$pre" method="post">
<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>
{#bakin_confirm} 
<br><br></td><td class=b align=center><br><input type=submit value="{#bakin_submit}"><br><br></td></tr></table><br>
<br><br>
<center> <input type='button' value='{#msg_back}' onclick='javascript:history.go(-1);'></center><br>
</form>
<!--
EOT;
}}include_once PrintEot('adminbottom');
?>-->