Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/db.htm
<!-- TITLE: SQL Command -->

<script type="text/javascript">

function SetSQLText(txt){
  document.frm.sql.value = txt;
}

function AddSQLText(txt) {
var obj = document.frm.sql;
//IE support
if (document.selection) { 
  obj.focus();
  var sel = document.selection.createRange();
  sel.text = txt;
}
//Mozilla/Firefox/Netscape 7+ support
else if (obj.selectionStart || obj.selectionStart == '0') {
  var startPos = obj.selectionStart;
  var endPos = obj.selectionEnd;
  obj.value = obj.value.substring(0, startPos) + txt + obj.value.substring(endPos, obj.value.length);
} else {
  obj.value += txt;
}
}

//-->
</script> 

</script>

<table width="95%" align="center" cellpadding="1" cellspacing="1">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%">
<tr><td><b>Execute a sql command
</td></tr></table>
</td></tr></table>
     
<table width="95%" align="center" cellpadding="1" cellspacing="1">

<FORM METHOD=POST name=frm>

<input type=hidden name=token value="##TOKEN##">

<tr>
<td>

<table cellpadding="3" cellspacing="1" width="100%">
<TR><TD><font class=txt8>Use the box below to execute a sql command.
Tables prefix: <font color=blue><b>##TBL_PREFIX##
</td></tr>
<tr><td>
      <textarea name=sql rows=5 cols=60 onFocus="this.select()">##sql##</textarea>
      <p>
      <input type=submit value="Submit Query (Alt-S)" class="button" name=go accesskey="S">
</td></tr></table>

<!-- TPL_INSERT : history -->
<!-- TPL_CELL : row -->
<hr size=1>
<a href="javascript:SetSQLText('##sql_slashed##')">##sql_text##</a>
<!-- /TPL_CELL : row -->
<!-- /TPL_INSERT : history -->

<hr size=1>

</td></tr>
</form>
</table>

<script type="text/javascript">
document.frm.sql.focus();
</script>
Return current item: Esvon Personals