Browse Source

优化数据备份html

tags/6.1.9
xushubieli 2 years ago
parent
commit
49dc60f851
2 changed files with 12 additions and 45 deletions
  1. +7
    -24
      src/admin/templets/sys_data.htm
  2. +5
    -21
      src/admin/templets/sys_data_revert.htm

+ 7
- 24
src/admin/templets/sys_data.htm View File

@@ -181,33 +181,16 @@
}
?>
<tr>
<td height="26" colspan="8" align="center">
<td height="26" colspan="8">
分卷大小:<input name="fsize" type="text" id="fsize" value="2048" style="width:60px">&nbsp;K
<input name="isstruct" type="checkbox" class="np" id="isstruct" value="1" checked="1">&nbsp;备份结构
<?php if(@function_exists('gzcompress') && false) { ?>
<input name="iszip" type="checkbox" class="np" id="iszip" value="1" checked="1">&nbsp;完成后压缩成ZIP
<?php } ?>
<button name="b1" type="button" id="b1" class="btn btn-success btn-sm" onClick="SelAll()">全选</button>
<button name="b2" type="button" id="b2" class="btn btn-success btn-sm" onClick="ReSel()">反选</button>
<button name="b3" type="button" id="b3" class="btn btn-success btn-sm" onClick="NoneSel()">取消</button>
</td>
</tr>
<tr>
<td height="26" colspan="8">数据备份选项:</td>
</tr>
<tr align="center">
<td height="50" colspan="8">
<table width="90%" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr>
<td height="26">当前数据库版本:<?php echo $mysql_version?></td>
</tr>
<tr>
<td height="26">分卷大小:<input name="fsize" type="text" id="fsize" value="2048" style="width:60px">&nbsp;K
<label><input name="isstruct" type="checkbox" class="np" id="isstruct" value="1" checked='1'>
备份表结构信息</label>
<?php if(@function_exists('gzcompress') && false) { ?>
<input name="iszip" type="checkbox" class="np" id="iszip" value="1" checked='1'>
完成后压缩成ZIP
<?php } ?>
<button type="submit" name="Submit" class="btn btn-success btn-sm">提交</button>
</td>
</tr>
</table>
<button type="submit" name="Submit" class="btn btn-success btn-sm">提交</button>
</td>
</tr>
</form>


+ 5
- 21
src/admin/templets/sys_data_revert.htm View File

@@ -100,30 +100,14 @@
echo "</tr>";
}
?>
<tr align="center" bgcolor="#F8FCF1">
<td height="26" colspan="4">
&nbsp;
<tr>
<td height="26" bgcolor="#F8FCF1" colspan="4">
<input name="structfile" type="checkbox" class="np" id="structfile" value="<?php echo $structfile?>" checked="1">&nbsp;还原表结构信息(<?php echo $structfile?>)
<input name="delfile" type="checkbox" class="np" id="delfile" value="1">&nbsp;还原后删除备份文件&nbsp;
<button name="b1" type="button" id="b1" onClick="SelAll()" class="btn btn-success btn-sm">全选</button>
&nbsp;
<button name="b2" type="button" id="b2" onClick="ReSel()" class="btn btn-success btn-sm">反选</button>
&nbsp;
<button name="b3" type="button" id="b3" onClick="NoneSel()" class="btn btn-success btn-sm">取消</button>
</td>
</tr>
<tr>
<td height="26" colspan="4">附加参数:</td>
</tr>
<tr>
<td height="26" colspan="4">
<label><input name="structfile" type="checkbox" class="np" id="structfile" value="<?php echo $structfile?>" checked='1'>
还原表结构信息(<?php echo $structfile?>)</label>
<label><input name="delfile" type="checkbox" class="np" id="delfile" value="1">
还原后删除备份文件</label>
</td>
</tr>
<tr bgcolor="#F8FCF1">
<td height="26" colspan="4">
<button type="submit" name="Submit" class="btn btn-success btn-sm">开始还原数据</button>
<button type="submit" name="Submit" class="btn btn-success btn-sm">还原</button>
</td>
</tr>
</form>


Loading…
Cancel
Save