<?
/* =======================================
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() . "Marketing/Security/rootFolder.php");
include_once (dirPath() . "Shared/Classes/Ladder/Ladder_Ladder.cls");
include_once (dirPath() . "Marketing/Notes/Panel_Panel.cls");
include_once (dirPath() . "Marketing/Security/Classes/Common_Notes.cls");
include_once (dirPath() . "Marketing/Security/Classes/Common_Note.cls");
Include_Once (dirPath() . "Marketing/Security/Panels/Panel_H_ButtonBar.cls");
Include_Once (dirPath() . "Marketing/Security/Panels/Panel_Ladder_PathList.cls");
include_once (dirPath() . "Marketing/Security/Panels/Panel_Ladder_Item.cls");
include_once (dirPath() . "Marketing/Security/Panels/Panel_Common_Note.cls");
include_once (dirPath() . "Shared/_app.inc");
Function php_Main ()
{
$nID = 1;
if (isset ($_REQUEST["nID"]))
$nID = $_REQUEST["nID"];
$szNameSpace = "ENetArch_Panel_Common_Notes";
if (isset ($_REQUEST["szNameSpace"]))
$szNameSpace = $_REQUEST["szNameSpace"];
// ==========================================
$fldrRoot = rootFolder();
$fldrNote = gblLadder()->getItem ($nID);
$fldrNotes = new ENetArch_Common_Notes ();
$fldrNotes->setState ($fldrNote);
// ==========================================
// View
$pnlPath = new ENetArch_Panels_Ladder_PathList();
$pnlPath->setPanelName ($szNameSpace . ".PathList");
$pnlPath->setPanel ($fldrNotes, $fldrRoot);
$pnlPath->drawPanel();
$pnlButtons = new ENetArch_Panels_H_ButtonBar();
$pnlButtons->setPanelName ($szNameSpace .".HButtonBar");
$pnlButtons->addButton (pagePath() . "Images/Ladder/file_edit.gif", "cmdEdit");
$pnlButtons->addButton (pagePath() . "Images/Ladder/empty.gif", "");
$pnlButtons->addButton (pagePath() . "Images/Ladder/folder_up.gif", "cmdParentFolder");
$pnlButtons->drawPanel();
$pnlNote = new ENetArch_Panels_Common_Note ();
$pnlNote->setPanelName ($szNameSpace . ".Note");
// $pnlNote->setPanel ($fldrNote);
print ("<form ID=\"" . $szNameSpace . "_Form\" " .
"onSubmit=\"" . $szNameSpace . ".cmdAdd(this); return false;\">\n");
$pnlNote->drawPanel_Edit();
print ("<input type=\"submit\" name=\"btnSubmit\" value=\"Submit\">\n");
print ("</form>\n");
// ==========================================
// Import CSS
?>
<style type="text/css">
@import url("<?= pagePath () ?>Marketing/Security/Styles/HButtonBar.css.php?szNameSpace=<?= $pnlButtons->getPanelID() ?>");
#<?= $pnlNote->getPanelID() ?> TR TH
{ text-align: right; }
</style>
<script><?= $szNameSpace ?>.nCurrentID = <?= $nID ?>;</script>
<?
// ==========================================
// Import JavaScript
?>
<script src="<?= pagePath () ?>Marketing/Security/Admin/Note/trgrs_PathList.js.php?szNameSpace=<?= $pnlPath->getPanelName() ?>&"></script>
<script src="<?= pagePath () ?>Marketing/Security/Admin/Note/trgrs_HButtonBar.js.php?szNameSpace=<?= $pnlButtons->getPanelName() ?>&"></script>
<script src="<?= pagePath () ?>Marketing/Security/Admin/Note/trgrs_FormData.js.php?szNameSpace=<?= $szNameSpace ?>&"></script>
<script><?= $szNameSpace ?>.nCurrentID = <?= $nID ?>;</script>
<?
}
?>
|