PHP Classes

File: Folder_DetailList.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Folder_DetailView   Folder_DetailList.php   Download  
File: Folder_DetailList.php
Role: Example script
Content type: text/plain
Description: Desmonstrates how to use the Folder DetailList class
Class: Folder_DetailView
Show a list of nested folders as collapsible tree
Author: By
Last change: Added Copy Right
Date: 13 years ago
Size: 1,384 bytes
 

Contents

Class file image Download
<?
   
function dirPath() {return ("../../../"); }

    include_once (
dirPath() . "Shared/Panels/Panel_Panel.cls");
    include_once (
dirPath() . "Shared/Panels/Ladder/Panel_Folder_DetailList.cls");
    include_once (
dirPath() . "Shared/_app.inc");

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

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

   
$pnlFolderDetails = new ENetArch_Panel_Folder_DetailList();

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

   
$pnlFolderDetails->setPanel ($objFolder);

?>
<style type="text/css">
    @import url("<?= dirPath() ?>shared/styles.css");
</style>
<script src="trgrs_Folder_DetailList.js"></script>
<script>
    ENetArch.Panel.Folder.nCurrent = <?= $nID ?>;
</script>
<?

    $pnlFolderDetails
->drawPanel();
}

/* =======================================
    Copyright 1998 - 2010 - E Net Arch
    This program is distributed under the terms of the GNU
    General Public License (or the Lesser GPL).
    ======================================= */

?>