Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael J. Fuhrman  >  Security  >  Security/Admin/Security/trgrs_FolderDetail.js.php  >  Download  
File: Security/Admin/Security/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: 2010-08-27 21:25
Size: 2,766 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 ($aryNameSpace0count ($aryNameSpace) -1));
    
$szApp implode ("."array_slice ($aryNameSpace0count ($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 ("policies/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 ("policies/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 ("policies/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 ("policies/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 ("policies/view.php", this.divTarget, szParams);
        <?= $szApp ?>.selected (<?= $szParent ?>.nCurrentID);
    },

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

}