PHP Classes

File: Security/Admin/App/trgrs_HButtonBar.js.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Security   Security/Admin/App/trgrs_HButtonBar.js.php   Download  
File: Security/Admin/App/trgrs_HButtonBar.js.php
Role: Example script
Content type: text/plain
Description: JavaScript Functions to manage HButton Bar selections
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 13 years ago
Size: 1,364 bytes
 

Contents

Class file image Download
<?
/* =======================================
    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 ?> =
{
    cmdEdit : function ()
    {
        szParams =
            "nID=" + <?= $szParent ?>.nCurrentID + "&" +
            "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" ;

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

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

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

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

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