Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/setup_db.htm
<!-- TITLE: Custom DB Fields Setup -->

<center>

<script language="Javascript">
<!--
 function SetChecked(f) {
   var on = f.ch_all.checked;
   var block = 'chk_id';
   var el = f.elements;
   for (var i=0; i<el.length; i++) {
     if (el[i].name.substr(0,block.length)== block) el[i].checked=on;
   }
 }
-->
</script>

<font class=txt8>
<font color=FF0000><b>Note:</b></font> &nbsp; 
<font color=0000FF>
database fields having names starting with "hw_" are reserved for internal use.
Don't delete them.
</font>
</font>

<!-- TPL_INSERT : row -->

<!-- TPL_CELL : start -->

<form method=post name=form_##tbl##>

<input type=hidden name=tbl value="##tbl##">

  <table border=1 cellpadding=1 cellspacing=0 bordercolor=black>
      <tr height=20>
      <td colspan=5><center><font face="Verdana" class=txt9 color=0000AA><b>&lt;&lt; ##tbl## &gt;&gt;</td>
      </tr>
      <tr class=ex_row>
      <td width=25><center><input type=checkbox name=ch_all value=1 OnClick="SetChecked(this.form)"></td>
      <td width=130><center>DB Field</td>
      <td width=120><center><b>Type</td>
      <td width=100><center><b>Attributes</td>
      </tr>
<!-- /TPL_CELL : start -->

<!-- TPL_CELL : line -->
      <tr>
      <td><center><input type=checkbox name=chk_id[] value="##db_f##"></td>
      <td>&nbsp;##db_f##</td>
      <td>&nbsp;##f_type##</td>
      <td>&nbsp;##attr##</td>
      </tr>
<!-- /TPL_CELL : line -->

<!-- TPL_CELL : end -->
  </table>

<table border=0 width=320>
<tr><td>
<i>With selected
<input type=submit value="Change" class=button name=sub_mod> Or
<input type=submit name=go value="Drop" class=button onClick="return(confirm('Drop selected fields in table \'##tbl##\' ?'))">
</i>
</td></tr>
</table>

Add new field :
<input name=f_num value=1 size=4 maxlength=2>
<select name=f_db_where>
<option value="">At End of Table
<option value="images">At Beginning of Table
##row##
</select><input type=submit name=sub_add value=" Go " class=button>

</form>

<!-- /TPL_CELL : end -->

<!-- /TPL_INSERT : row -->

</center>
Return current item: Esvon Personals