PHP Classes

File: Security/Admin/trgrs_Left.js.php

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

ENetArch.Security.Left =
{
    nTopFolder : 0 ,
    divTarget : null,
    szNameSpace : "",
    szFile : "",
    bStatus : "",

    display : function (nID)
    {
        this.nTopFolder = nID;
        var szParams =
            "szNameSpace=" + this.szNameSpace + "&" +
            "nFolderID=" + this.nTopFolder + "&" +
            "nID=" + nID + "&" +
            "bStatus=Exp";
        ENetArch.Security.getPanel (this.szFile, this.divTarget, szParams);
    },

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

    Expand : function (nID)
    {
        // location="?nFolderID=" + this.nCurrent + "&nID=" + nID + "&bStatus=Exp";
        var szParams =
            "szNameSpace=" + this.szNameSpace + "&" +
            "nFolderID=" + this.nTopFolder + "&" +
            "nID=" + nID + "&" +
            "bStatus=Exp";
        ENetArch.Security.getPanel (this.szFile, this.divTarget, szParams);
    },

    Collapse : function (nID)
    {
        // location="?nFolderID=" + this.nCurrent + "&nID=" + nID + "&bStatus=Col";
        var szParams =
            "szNameSpace=" + this.szNameSpace + "&" +
            "nFolderID=" + this.nTopFolder + "&" +
            "nID=" + nID + "&" +
            "bStatus=Col";
        ENetArch.Security.getPanel (this.szFile, this.divTarget, szParams);
    },

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

    Selected : function (nID, bStatus)
    {
        this.bStatus = bStatus;
        ENetArch.Security.selected (nID);
    },

    selected : function (nID)
    {
        var szParams =
            "szNameSpace=" + this.szNameSpace + "&" +
            "nFolderID=" + this.nTopFolder + "&" +
            "nID=" + nID + "&" +
            "bStatus=" + this.bStatus;
        ENetArch.Security.getPanel (this.szFile, this.divTarget, szParams);
    },
};