PHP Classes

File: Security/Admin/trgrs_Security.js.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Security   Security/Admin/trgrs_Security.js.php   Download  
File: Security/Admin/trgrs_Security.js.php
Role: Example script
Content type: text/plain
Description: Javascript functions for the Application
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 13 years ago
Size: 2,173 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 =
{
    nFolderID : 0,
    cbSelected : Array(),

    getPanel : function (thsFile, thsDiv, thsParams)
    {
        var ajPanel = new AJAX();
        ajPanel.Get (thsFile, thsDiv, thsParams);
    },

    postPanel : function (thsFile, thsDiv, thsParams)
    {
        var ajPanel = new AJAX();
        ajPanel.Post (thsFile, thsDiv, thsParams);
    },

    addSelected : function (thsFoo)
    { this.cbSelected [this.cbSelected.length] = thsFoo; },

    selected : function (nID)
    {
        for (t=0; t<this.cbSelected.length; t++)
        { this.cbSelected[t].selected (nID); }
    },

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

    cmdNew : function (nClass)
    { ENetArch.Security.Content.cmdNew(nClass); },

    cmdEdit : function ()
    { ENetArch.Security.Content.cmdEdit(); },

    cmdView : function ()
    { ENetArch.Security.Content.cmdView(); },

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

    cmdCut : function () { window.alert ("not implemented"); },
    cmdCopy : function () { window.alert ("not implemented"); },
    cmdPaste : function () { window.alert ("not implemented"); },

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

    cmdDelete : function ()
    { ENetArch.Security.Content.cmdDelete(); },

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

    cmdSelectAll : function () { window.alert ("not implemented"); },
    cmdInvertSelection : function () { window.alert ("not implemented"); },

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

    cmdProperties : function ()
    { ENetArch.Security.Content.cmdProperties(); },

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

    getFormData : function (thsForm)
    {
        szRtn = "";
        for (t=0; t<thsForm.elements.length; t++)
        {
            field = thsForm.elements[t];
            szRtn += field.name + "=" + field.value + "&";
        }

        return (szRtn);
    },

    stringIDs : function (aryIDs)
    {
        var szIDs = "";
        for (t=0; t<aryIDs.length; t++)
            if (aryIDs[t]!= undefined)
                szIDs += aryIDs[t] + ",";

        return (szIDs);
    },

};