Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/add.htm
<!-- IF_TITLE: ##lid##, Modify {Item}, {Add_Item} -->

<script type="text/javascript">

function GetItemID(){
  return '##lid##';
}

function JumpToCat() {
  var box_cat = document.frm.cid;
  var cid;
  if(box_cat.options) cid = box_cat.options[box_cat.selectedIndex].value;
  else cid = box_cat.value;
  document.location = 'index.php?page=admin&pid=' + cid;
}

function ReloadCat(){
  var hwJsCats = new Array(##hwJsCats##);
  hwReloadCat('index.php?page=add','##cid##',hwJsCats);
}

function CheckSubmit(){
  var f = document.frm;
  var err_msg = '';
  if(!f.userid.value || f.userid.value=="0"){ 
    f.userid.focus();
    err_msg = 'User ID is required';
  }
  if(err_msg){
    alert(err_msg);
    return false;
  }
  return true;
}

</SCRIPT>


<form method=POST ##enc_type## name=frm OnSubmit="return CheckSubmit()">

<table width="100%" cellpadding=0 cellspacing=0>

<tr><td colspan=2></td></tr>

  <tr><td width="20%"><b>Category</td><td width="80%">
 
  ##cat_path##<input type=button class=button value=" Go " OnClick="JumpToCat()">
 

<!-- IF ##lid## -->
&nbsp; <a href="#" OnClick="OpenPreview('../##ad_url##')">Preview</a>
<!-- ENDIF -->
 
 </td></tr>

<!-- TPL_INSERT : b_Regions -->
<!-- TPL_CELL : def -->

##hw_region##

<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : b_Regions -->


<!-- TPL_INSERT : row -->

<!-- TPL_CELL : def -->
<tr>
     <td><p class=ag_##css##>##f_t##&nbsp;</p></td>
     <td>##f_v## <font class=txt8 color=blue>##f_txt##</td>
</tr>
<!-- /TPL_CELL : def -->

<!-- /TPL_INSERT : row -->


<!-- TPL_INSERT : b_Auction_AddModify -->
<!-- TPL_CELL : def -->

<tr>
  <td colspan="2" align="center">

##hw_auct_block##

  </td>
</tr>

<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : b_Auction_AddModify -->


  <tr><td>Hits: </td><td>
    <input name="hits" size=8 value="##hits##">
 </td></tr>


  <tr><td><b>User ID: </td><td>
    <input name="userid" size=8 value="##userid##"> 

<font class=txt8>
<a href="javascript:LookupUserAdm('frm.userid')">Lookup ID</a>

<!-- IF ##userid## -->
| <a href="index.php?page=users&id=##userid##">view user</a> 
| <a href="index.php?page=chklink&s_by=userid_ex&q=##userid##">view all user {items}</a> (##ads_amt##)
<!-- ENDIF -->

</font>

 </td></tr>

<tr height=20><td>
<b>Price Plan:</td>
<td class=txt8>

##hw_pp##

</td>
</tr>
<tr><td colspan=2 align=center>
<div style="display:none">
<input name=go type=submit value="Submit" class=button>
</div>
</td></tr>

<tr><td colspan=2>

##media_files_copy##

##media_files_upload##

</td></tr>

</table>


<p align=center>

<input name=go type=submit value="Submit" 
class=button><input type=button value="Cancel" class=button 
onClick="document.location='index.php?page=admin&pid=##cid##'">


<!-- IF ##lid## -->
<input type="button" value="Duplicate" class=button OnClick="document.location = 'index.php?page=add&cid=##cid##&likeid='+GetItemID()">
<input type="button" value="Delete" class=button OnClick="if(confirm('Delete {Item} ?')) document.location = 'index.php?page=admin&act=dellink&pid=##cid##&lid='+GetItemID()+'&token=##TOKEN##'">

<br />
<br />

<font color=red>
<b>Spam or website policy violation ? <br />
You can delete ad, user account and ban user IP address <a name="spam" href="javascript:popUp('index.php?page=spam&id='+GetItemID(),'SpamWin', 50, 50, 450, 500)">here</a></b>
</font>

<!-- ENDIF -->

</p>


</form>
Return current item: Esvon Personals