Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/items_list.htm
<!-- TITLE: Search / Validate {Items} -->

<script type="text/javascript">

 function SetChecked(block, on) {
   var el = document.frm.elements;
   for (var i=0; i<el.length; i++) {
     if (el[i].name.substr(0,block.length)== block) el[i].checked=on;
   }
 }

 function OpenCategWin(){

   var winX = window.screen.width/2 - 250;
   var winY = window.screen.height/2 - 75;

   popUp('index.php?page=cat_win&cid='+document.frm.cid.value+'&act=redir&url='+escape('index.php?page=chklink&cid='),
     'CatItemsListWin', winX, winY, 500, 150);
 }

 function OpenImagesAdm(id,f){
   OpenPreview('../index.php?page=images&id='+id+'&f='+f);
 }

</script>

<form name=frm>

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

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

<td valign=top class="txt8">

  <select name="s_by" style="width:120" class=txt8>
    <option value="">- Search by -

##s_by##

  </select>

<input type=text size=15 name=q value="##q##" class="txt8">

  <select name="per_row" class="txt8">
##per_row##
  </select>
  
  per page

</td>
<td align=right class="txt8">

  Sort by 

  <select name="sort_by" class="txt8" style="width:120">
    <option value="">- Sort by -
##sort_by##
  </select>
   

  <select name="a_d" class="txt8">
##a_d##
  </select>

</td>
</tr>

<tr>
<td colspan=2 height=26 valign=bottom class="txt9">

Show 

  <select name="f_type" OnChange="ShowTypeChanged()" class="txt8">
    <option value="">All

##f_type##

  </select>

&nbsp;

Display <input type=text size=1 name=MAX_F value="##MAX_F##" class="txt8"> fields

<div id=exp_range style="display:none">

&nbsp; <i>

Exp. Date between
<input type=text size=8 name=exp1 value="##exp1##">
and 
<input type=text size=8 name=exp2 value="##exp2##">

</i>

<font class=txt8 color=blue>
(YYYY-MM-DD)
</font>

</div>

</td>
</tr>

</table>

<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr height=30>
<td valign=bottom>

<input type=checkbox name=ch_en_all value=1 
OnClick="SetChecked('r_on', document.frm.ch_en_all.checked)"><font color="red"> <b><i>Enabled</i></b></font>
&nbsp;
<input type=checkbox name=ch_del_all value=1
OnClick="SetChecked('r_d', document.frm.ch_del_all.checked)"><font color="blue"> <b><i>Delete</i></b></font>

&nbsp; 

<font color=blue class=txt8>Total: ##numrecs##</font>

</td>
<td align=right valign=bottom class=txt8>

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

<font color=blue>

<div id=category>
[##cat##]
</div>

</td>
<td align=right valign=bottom class=txt8 width="1%" nowrap>

&nbsp;

<b><a href="#" OnClick="OpenCategWin()">Change</a></b>

  <input type=submit value=" Go " class=button>

</td>
</tr>

<tr>
<td colspan=3>
<hr size=1 color=green>
</td>
</tr>

</table>

<center>

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

<!-- TPL_INSERT : row -->

<!-- TPL_CELL : def -->

<tr>

<td valign=top>
##number##.&nbsp;
</td>

<td>

<b>ID:</b> ##link_id## &nbsp;<a href="##edit_url##" class=txt8>Edit {Item}</a>
 &nbsp;&nbsp;
<b>User ID:</b> ##userid## &nbsp;<a href="index.php?page=users&id=##userid##" class=txt8>Edit User</a>
<br />

<!-- IF ##images_num## -->
<table border=0 align=right cellpadding=0 cellspacing=0>
<tr><td align=center>
<a href='javascript:OpenImagesAdm("##link_id##","##images##")'><img src="##FILE_URL##small/##images##" border=0></a>
</td></tr>

<!-- IF ##images_num## != 1 -->
<tr><td align=center class=txt8>
<a href='javascript:OpenImagesAdm("##link_id##","##images##")'>View All (##images_num##)</a>
</td></tr>
<!-- ENDIF -->

</table>
<!-- ENDIF -->

##cust_fields##

<font class=txt8 face="Verdana, Arial, Helvetica, sans-serif">
Date Added: <b>##fdate##</b> &nbsp;
Last Updated: <b>##udate##</b> 
<br />

<b>Category:&nbsp; ##cat_path##</b> &nbsp; 
<!-- [<a href="#">change</a>] -->
</font>

<br />
<input type="hidden" name="rlid[]" value="##link_id##">
<input type="checkbox" name="r_on[##link_id##]" ##approved## value="1"><font color="red"> <b><i>Enabled</i></b></font> 
&nbsp;
<input type="checkbox" name="r_d[]" value="##link_id##"><font color="blue"> <b><i>Delete</i></b></font>

<!-- IF ##hw_lang_id## -->
&nbsp;
(##hw_lang_id##)
<!-- ENDIF -->

<hr size=1>

</td>
</tr>

<!-- /TPL_CELL : def -->

<!-- TPL_CELL : no -->

<tr><td><center>No matching {items}</td></tr>

<!-- /TPL_CELL : no -->

<!-- /TPL_INSERT : row -->


</table>
<br />
<input type=submit value="Update" class=button name=go>

 &nbsp;&nbsp;

<!--input type=submit name=submexport value="Export data" class=button-->

</form>

<script type="text/javascript">

function ShowTypeChanged(){
  var ctl_f = document.frm.f_type;
  var on = (ctl_f.options[ctl_f.selectedIndex].value == 'expired') ? 1 : 0;
  SwitchBlock('exp_range', on);
}

ShowTypeChanged();

</script>

<p>##nav##


</center>
Return current item: Esvon Personals