<?php
echo ahead("执行SQL语句");
?>
<script type="text/javascript">
function check() {
	if(document.form1.sql.value == '') {
		alert('SQL语句不能为空!');
		document.form1.sql.focus();
	}else{
	   return confirm('确定要执行此语句吗？此操作将不可恢复');
	}
	return false;
}
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="2"  cellspacing="1" class="tableBorder">
  <tr> 
    <th height="25">在线执行SQL语句</th>
  </tr>
  <form name="form1" method="post" action="?" onSubmit="return check()">
  <tr> 
      <td><textarea name="sql" id="sql" style="width:98%;height:200px;overflow:visible;font-family:Fixedsys,verdana;"></textarea></td>
    </tr>
    <tr> 
      <td height="25">
      <input type="submit" name="submit" value=" 执 行 " class="inputs" />
      </td>
   </tr>
  </form>
</table>
<?php
echo acopy();
?>