PHP Classes

File: Security/Admin/view_Left.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Security   Security/Admin/view_Left.php   Download  
File: Security/Admin/view_Left.php
Role: Example script
Content type: text/plain
Description: Content for TriView's Left Panel
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 13 years ago
Size: 1,860 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 ("../../../"); }
    function
pagePath() {return ("../../../"); }

    include_once (
dirPath() . "Marketing/Notes/Panel_Panel.cls");
    include_once (
dirPath() . "Marketing/Notes/Panel_TreeView.cls");
    include_once (
dirPath() . "Shared/_app.inc");

Function
php_Main ()
{
   
$nFolderID = 1;
    if (isset (
$_REQUEST["nFolderID"]))
       
$nFolderID = $_REQUEST["nFolderID"];

   
$nID = 1;
    if (isset (
$_REQUEST["nID"]))
       
$nID = $_REQUEST["nID"];

   
$bStatus = "";
    if (isset (
$_REQUEST["bStatus"]))
       
$bStatus = $_REQUEST["bStatus"];

   
$szNameSpace = "ENetArch_Panel_TreeView";
    if (isset (
$_REQUEST["szNameSpace"]))
       
$szNameSpace = $_REQUEST["szNameSpace"];

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

   
$objFolder = gblLadder()->getItem($nFolderID);

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

   
$pnlTreeView = new ENetArch_Panel_TreeView();
   
$pnlTreeView->setPanelName ($szNameSpace);

   
$pnlTreeView->picPlus = pagePath() . "Images/Ladder/plus.gif";
   
$pnlTreeView->picMinus = pagePath() . "Images/Ladder/minus.gif";

   
$pnlTreeView->picFolderOpen = pagePath() . "Images/Ladder/folder_open.gif";
   
$pnlTreeView->picFolderClosed = pagePath() . "Images/Ladder/folder_closed.gif";
   
$pnlTreeView->picItem = pagePath() . "Images/Ladder/file.gif";
   
$pnlTreeView->picReference = pagePath() . "Images/Ladder/reference.gif";
   
$pnlTreeView->picEmpty = pagePath() . "Images/Ladder/empty.gif";

   
$pnlTreeView->setPanel ($objFolder);
   
// $pnlTreeView->setFolders ($aryFolders);
   
$pnlTreeView->updateTargetID ($nID, $bStatus);

   
$pnlTreeView->drawPanel();
}
?>