Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/cat_menu_multi.htm
<script type="text/javascript">

function HwCat_Reload(num){
  var ctl_cat = eval('document.frm.hw_cat_' + num);
  var f = document.frm;
  var rid = ctl_cat.options[ctl_cat.selectedIndex].value;
//  if(num==1 && rid=="") return;
  if(!rid && num>1){
    num--;
    ctl_cat = eval('document.frm.hw_cat_' + num);
    rid = ctl_cat.options[ctl_cat.selectedIndex].value;
  }
  f.cid.value = rid;
  f.hw_cat_upd.value = 'Y';
  f.submit();
}

</script>

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

<table border=0 cellpadding=0 cellspacing=0 align=left>

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

<tr>
<td align=right><b>##f_t##&nbsp;</td>
<td>
<select name=hw_cat_##num## OnChange="HwCat_Reload(##num##)">
<option value="">- Please Select -
##hw_reg##
</select>
</td>
</tr>

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

</table>
Return current item: Esvon Personals