Location: PHPKode > scripts > Security > Security/Admin/Users/trgrs_HButtonBar.js.php
/*	=======================================
	Copyright 1998 - 2010 - E Net Arch
	This program is distributed under the terms of the GNU
	General Public License (or the Lesser GPL).
	www.ENetArch.net
	======================================= */

<?
	$szNameSpace = "ENetArch_Panel_Content";
	if (isset ($_REQUEST["szNameSpace"]))
		$szNameSpace = $_REQUEST["szNameSpace"];

	$aryNameSpace = explode (".", $szNameSpace);
	$szParent = implode (".", array_slice ($aryNameSpace, 0, count ($aryNameSpace) -1));
	$szApp = implode (".", array_slice ($aryNameSpace, 0, count ($aryNameSpace) -2));

?>

<?= $szNameSpace ?> =
{
	cmdAdd_User : function ()
	{
		szParams =
			"nID=" + <?= $szParent ?>.nCurrentID + "&" +
			"szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" ;

		<?= $szApp ?>.getPanel ("User/new.php", <?= $szParent ?>.divTarget, szParams);
	},

	cmdDelete : function ()
	{
		szParams =
			"nID=" + <?= $szParent ?>.nCurrentID + "&" +
			"szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" ;

		<?= $szApp ?>.getPanel ("Users/deletebummer.php", <?= $szParent ?>.divTarget, szParams);
		<?= $szApp ?>.selected (<?= $szParent ?>.nCurrentID);
	},

	cmdParentFolder : function ()
	{
		szParams =
			"nID=" + <?= $szParent ?>.nCurrentID + "&" +
			"szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" ;

		<?= $szApp ?>.getPanel ("_parent.php", <?= $szParent ?>.divTarget, szParams);
	},
}
Return current item: Security