data.html
来自「STCMS音乐系统 系统功能: 1、随意的添加导航栏目的频道」· HTML 代码 · 共 72 行
HTML
72 行
{include file="head.html"}
<div class="title">备份数据</div>
<div class="content">
<form name="tableListForm">
<table>
<tr>
<td>name</td>
<td>引擎</td>
<td>记录数</td>
<td>说明</td>
<td>时间</td>
<td>操作</td>
</tr>
{foreach from=$table item=list}
<tr>
<td>{$list.Name}</td>
<td>{$list.Engine}</td>
<td>{$list.Rows}</td>
<td>{$list.Comment}</td>
<td>{$list.Create_time}</td>
<td><input value="数据结构" onclick="tblStruct('{$list.Name}')" type="button" /> <input value="备份" onclick="backUp('{$list.Name}')" type="button" /> <input value="清空数据" onclick="truncate('{$list.Name}')" type="button" /></td>
</tr>
{/foreach}
</table>
<input type="button" value="备份所有" onclick="backUpAll('tableListForm')" />
</form>
<div id="result"></div>
</div>
<div class="title">备份列表</div>
<div class="content">
<form name="bakListForm">
<table>
<tr>
<td>选择</td>
<td>路径</td>
<td>大小</td>
<td>说明</td>
<td>时间</td>
<td>操作</td>
</tr>
{foreach from=$data item=list}
<tr>
<td><input type="checkbox" id="id" value="{$list.id}" /></td>
<td>{$list.path}</td>
<td>{$list.size} byte</td>
<td>{$list.comment}</td>
<td>{$list.time}</td>
<td><input value="还原" onclick="recover('{$list.id}')" type="button" /> <input value="删除" onclick="delBackUp('{$list.id}')" type="button" /></td>
</tr>
{/foreach}
</table>
<input value="全选" onclick="checkAll('bakListForm')" type="button" /> <input value="取消全选" onclick="cancleAll('bakListForm')" type="button" /> <input type="button" value="删除所选" onclick="delBackUpAll('bakListForm')" />
</form>
</div>
<div class="title">其他选项</div>
<div class="content">
<input value="修复表" type="button" onclick="repair();" /> <input value="整理表" type="button" onclick="optimize();" /> <input value="优化表" type="button" onclick="alter();" />
</div>
<div class="title">上传导入</div>
<div class="content">
<form name="importForm" method="post" enctype="multipart/form-data" action="data.php?action=recover&from=upload">
选择文件<input name="dataFile" type="file" /> <input type="submit" value="导入" />
</form>
</div>
<div class="title">运行SQL</div>
<div class="content">
<form name="runSql" method="post" action="data.php?action=readSql">
<textarea name="sql" cols="50" rows="10"></textarea><br />
<input value="运行" type="submit" />
</form>
</div>
{include file="foot.html"}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?