Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/sql_tree_pid_popup.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>

<title>Select Parent ##CATEGORY##</title>

<link rel="stylesheet" href="../img/admin/styles.css" type="text/css">

<meta http-equiv="Content-Type" content="text/html; charset=##CHARSET##">

<script language="JavaScript"><!--

setTimeout("closeOrphanWindow()", 2000);

function closeOrphanWindow() {
  try {
    eval('window.opener.document');
  }
  catch(e){
    window.close();
    return;
  }
  setTimeout("closeOrphanWindow()", 2000);
}

function selectCat(){

   closeOrphanWindow();

   var cid;
   var cat_menu = document.frm.cid;

   if(cat_menu.options) cid = cat_menu.options[cat_menu.selectedIndex].value;
   else cid = cat_menu.value;

   var openerForm = opener.document.frm;

   openerForm.pid.value = cid;
   if(!parseInt('##hide_id##')) openerForm.go.value = '';
   openerForm.submit();

   window.close();

}

//--></script>

</HEAD>

<BODY>

<center>

<form name=frm method=post>

<p class=ag_adm>Select Parent ##CATEGORY##:</p>

##cat_menu##

<p>

<input type=button value="Select" OnClick="selectCat()" class=button>
<input type=button value="Cancel" OnClick="window.close()" class=button>

</form>

</center>

</BODY>

</html>
Return current item: Esvon Personals