📄 database_executesql.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>执行SQL</th>
</tr>
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=executesql&operation=sql">
<tr>
<td height="25" align="center" class="tablerow" >请把要执行的SQL语句粘贴到下面的文本框</td>
</tr>
<tr>
<td height="40" align="center" class="tablerow" ><textarea name="sql" cols="100" rows="16"></textarea></td>
</tr>
<tr>
<td height="40" align="center" class="tablerow" > <input type="submit" name="submit" value=" 执行SQL "></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>上传SQL文件并立即执行</th>
</tr>
<form name="upload" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=executesql&operation=file" 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格式的文件,上传成功后文件中的SQL语句将被立即执行
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -