?? database_import.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<?=$menu?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=7>phpcms備份的SQL文件</th>
</tr>
<form method="post" name="myform" >
<tr align="center">
<td width="12%" class="tablerowhighlight">選中</td>
<td width="5%" class="tablerowhighlight">ID</td>
<td width="30%" class="tablerowhighlight">文件名</td>
<td width="10%" class="tablerowhighlight">文件大小</td>
<td width="20%" class="tablerowhighlight">備份時間</td>
<td width="10%" class="tablerowhighlight">卷號</td>
<td width="13%" class="tablerowhighlight">操作</td>
</tr>
<?php
if(is_array($infos)){
foreach($infos as $id => $info){
$id++;
?>
<tr bgcolor="<?=$info['bgcolor']?>" >
<td align="center"><input type="checkbox" name="filenames[]" value="<?=$info['filename']?>"></td>
<td align="center"><?=$id?></td>
<td><a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&filename=<?=$info['filename']?>"><?=$info['filename']?></a></td>
<td align="center"><?=$info['filesize']?> M</td>
<td align="center"><?=$info['maketime']?></td>
<td align="center"><?=$info['number']?></td>
<td align="center">
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&pre=<?=$info['pre']?>&submit=1">導入</a> |
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&filename=<?=$info['filename']?>">下載</a>
</td>
</tr>
<?php
}
}
?>
<tr>
<td class="tablerow" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check'>全選/反選</td>
<td colspan=3 class="tablerow">
<select name="tocharset">
<option value="">不進行字符集轉換</option>
<option value="gbk2utf8">GBK 轉 UTF-8</option>
<option value="utf82gbk">UTF-8 轉 GBK</option>
<option value="big52utf8">BIG5 轉 UTF-8</option>
<option value="utf82big5">UTF-8 轉 BIG5</option>
<option value="gbk2big5">簡體中文 轉 繁體中文</option>
<option value="big52gbk">繁體中文 轉 簡體中文</option>
</select>
<input type="submit" name="submit1" value=" 字符集轉換 " title="轉換完畢后以新字符集為前綴保存" onclick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=changecharset'">
<br/><?php if(!function_exists("mb_convert_encoding")){ ?>我們強烈建議您加載PHP的mb_string擴展,否則此操作十分消耗資源(難以對大于1M的文件進行字符集轉換)。<?php } ?>
</td>
<td colspan=3 valign="top" class="tablerow"><input type="submit" name="submit2" value=" 刪除選中的備份 " onclick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete'"></td>
</tr>
</form>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=7>非phpcms備份的SQL文件</th>
</tr>
<form method="post" name="myform1" action="?mod=<?=$mod?>&file=<?=$file?>&action=delete">
<tr align="center">
<td width="12%" class="tablerowhighlight">選中</td>
<td width="5%" class="tablerowhighlight">ID</td>
<td width="30%" class="tablerowhighlight">文件名</td>
<td width="10%" class="tablerowhighlight">文件大小</td>
<td width="20%" class="tablerowhighlight">備份時間</td>
<td width="13%" class="tablerowhighlight">操作</td>
</tr>
<?php
if(is_array($others)){
foreach($others as $id => $other){
$id++;
?>
<tr>
<td class="tablerow" align="center">
<input type="checkbox" name="filenames[]" value="<?=$other['filename']?>">
</td>
<td class="tablerow" align="center"><?=$id?></td>
<td class="tablerow"><a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&filename=<?=$other['filename']?>"><?=$other['filename']?></a></td>
<td class="tablerow" align="center"><?=$other['filesize']?> M</td>
<td class="tablerow" align="center"><?=$other['maketime']?></td>
<td class="tablerow" align="center">
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&filename=<?=$other['filename']?>&submit=1">導入</a> |
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&filename=<?=$other['filename']?>">下載</a>
</td>
</tr>
<?php
}
}
?>
<tr>
<td class="tablerow" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check'>全選/反選</td>
<td colspan=3 class="tablerow">
<select name="tocharset">
<option value="">不進行字符集轉換</option>
<option value="gbk2utf8">GBK 轉 UTF-8</option>
<option value="utf82gbk">UTF-8 轉 GBK</option>
<option value="big52utf8">BIG5 轉 UTF-8</option>
<option value="utf82big5">UTF-8 轉 BIG5</option>
<option value="gbk2big5">簡體中文 轉 繁體中文</option>
<option value="big52gbk">繁體中文 轉 簡體中文</option>
</select>
<input type="submit" name="submit1" value=" 字符集轉換 " title="轉換完畢后以新字符集為前綴保存" onclick="document.myform1.action='?mod=<?=$mod?>&file=<?=$file?>&action=changecharset'">
<br/><?php if(!function_exists("mb_convert_encoding")){ ?>我們強烈建議您加載PHP的mb_string擴展,否則此操作十分消耗資源(難以對大于1M的文件進行字符集轉換)。<?php } ?>
</td>
<td colspan=3 valign="top" class="tablerow"><input type="submit" name="submit2" value=" 刪除選中的備份 " onclick="document.myform1.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete'"></td>
</tr>
</form>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th>上傳數據庫備份文件</th>
</tr>
<form name="upload" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=uploadsql" enctype="multipart/form-data">
<tr>
<td height="30" class="tablerow" align="center">
上傳SQL文件:
<input name="uploadfile" type="file" size="25">
<input type="hidden" name="MAX_FILE_SIZE" value="4096000">
<input type="submit" name="submit" value=" 上傳 "><br>只允許上傳SQL格式的文件,上傳成功后文件將自動在備份文件列表中顯示
</td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -