PHP Classes

File: Security/Admin/Help/trgrs_FolderDetail.js.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Security   Security/Admin/Help/trgrs_FolderDetail.js.php   Download  
File: Security/Admin/Help/trgrs_FolderDetail.js.php
Role: Example script
Content type: text/plain
Description: Javascript functions for the Folder Detail Panel
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 13 years ago
Size: 2,746 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
    ======================================= */

   
function dirPath() {return ("../../../../"); }
    Include_Once (
dirPath() . "Shared/Classes/Ladder/Ladder_Globals.cls");

   
// ======================================

   
$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));
?>

<?= $szParent ?>.cmdClearIDs();

<?= $szNameSpace ?> =
{
    Selected : function (nID)
    { <?= $szApp ?>.selected (nID); },

    onCheckID : function (nID)
    { <?= $szParent ?>.onCheckID (nID); },

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

        <?= $szApp ?>.getPanel ("Help/view.php", this.divTarget, szParams);
        // <?= $szApp ?>.selected (this.nCurrentID);
    },

    SortBy_BaseType : function ()
    {
        szParams =
            "nID=" + this.nCurrentID + "&" +
            "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
            "szSortBy=" + "<?= ldrGlobals::cOrderBy_BaseType () ?>"+ "&";

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

    SortBy_Name : function ()
    {
        szParams =
            "nID=" + this.nCurrentID + "&" +
            "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
            "szSortBy=" + "<?= ldrGlobals::cOrderBy_Name () ?>"+ "&";

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

    SortBy_Description : function ()
    {
        szParams =
            "nID=" + this.nCurrentID + "&" +
            "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
            "szSortBy=" + "<?= ldrGlobals::cOrderBy_Description () ?>"+ "&";

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

    SortBy_Class : function ()
    {
        szParams =
            "nID=" + this.nCurrentID + "&" +
            "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
            "szSortBy=" + "<?= ldrGlobals::cOrderBy_Class() ?>"+ "&";

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

// <?= $szApp ?>.getFormData (thsForm) ;

}