Commit d47a598d5f9f9131613b198674393204875e56c1
1 parent
921a1880
removed unneeded requires and reformatted
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@461 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
65 additions
and
79 deletions
presentation/webpageTemplate.inc
| ... | ... | @@ -10,8 +10,6 @@ |
| 10 | 10 | * @date 20 January 2003 |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -require_once("./config/dmsDefaults.php"); | |
| 14 | -require_once("$default->owl_fs_root/lib/session/SiteMap.inc"); | |
| 15 | 13 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); |
| 16 | 14 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternImage.inc"); |
| 17 | 15 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); |
| ... | ... | @@ -19,82 +17,70 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc" |
| 19 | 17 | require_once("$default->owl_fs_root/lib/visualpatterns/NavBar.inc"); |
| 20 | 18 | |
| 21 | 19 | |
| 22 | -global $default; | |
| 23 | - | |
| 24 | -if(checkSession()) | |
| 25 | -{ | |
| 26 | - | |
| 27 | - | |
| 28 | - // create the navbar and north payload | |
| 29 | - $navbar = new NavBar(); | |
| 30 | - | |
| 31 | - //get the section name | |
| 32 | - $sectionName = $default->siteMap->getSectionName($_SERVER["PHP_SELF"]); | |
| 33 | - | |
| 34 | - //highlight the respective section | |
| 35 | - $navbar->setHighlightedSection($sectionName); | |
| 36 | - | |
| 37 | - // setup nw payload | |
| 38 | - $colourBar = $navbar->getNWColourbar(); | |
| 39 | - $image = new PatternImage("$default->owl_graphics_url/tree.gif"); | |
| 40 | - $image->setImgSize(114, 96); | |
| 41 | - $img = $image->render(); | |
| 42 | - | |
| 43 | - | |
| 44 | - $nwestLoad = " | |
| 45 | - <html> | |
| 46 | - <table width = \"100%\" height = \"100%\"> | |
| 47 | - <td>". $img ."</td></tr> | |
| 48 | - <tr><td><img src = " . $colourBar . "></img></td></tr> | |
| 49 | - </table> | |
| 50 | - </html> | |
| 51 | - "; | |
| 52 | - | |
| 53 | - $nwPayLoad = new PatternCustom; | |
| 54 | - $nwPayLoad ->setHtml($nwestLoad); | |
| 55 | - | |
| 56 | - // set up the west payload | |
| 57 | - //get section links | |
| 58 | - $sectionArray =$default->siteMap->getSectionLinks($sectionName); | |
| 59 | - | |
| 60 | - //format the array..by taking first element off | |
| 61 | - $output1["links"] = array_shift ($sectionArray["links"]); | |
| 62 | - $output2["descriptions"] = array_shift($sectionArray["descriptions"]); | |
| 63 | - | |
| 64 | - //create links | |
| 65 | - $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 50 , 1 ,1,null); | |
| 66 | - $westRender = $westLinks->render(); | |
| 67 | - | |
| 68 | - //set up links | |
| 69 | - $cAdmin = "$default->owl_graphics_url/leftnav/cadmin.gif" ; | |
| 70 | - $link = "$default->owl_graphics_url/leftnav/links.gif" ; | |
| 71 | - | |
| 72 | - | |
| 73 | - //setup the westpayload | |
| 74 | - // TODO -> change to links the images as well | |
| 75 | - $westLoad = " | |
| 76 | - <html> | |
| 77 | - <table border = \"1\" width = \"100%\" height = \"100%\"> | |
| 78 | - <tr><td>". $westRender ."</td></tr> | |
| 79 | - <tr><td><img src = " . $cAdmin . "></img></td></tr> | |
| 80 | - <tr><td><img src = ". $link ."></img></td></tr> | |
| 81 | - </table> | |
| 82 | - </html> | |
| 83 | - "; | |
| 84 | - | |
| 85 | - $westPayLoad = new PatternCustom; | |
| 86 | - $westPayLoad->setHtml($westLoad); | |
| 87 | - | |
| 88 | - //$westSide = $toRender->render(); | |
| 89 | - | |
| 90 | - $main = new PatternMainPage(); | |
| 91 | - $main->setNorthPayload($navbar); | |
| 92 | - $main->setNorthWestPayload($nwPayLoad); | |
| 93 | - $main->setWestPayload($westPayLoad); | |
| 94 | - | |
| 95 | - | |
| 96 | - $main->render(); | |
| 97 | - | |
| 98 | -} | |
| 20 | +// create the navbar and north payload | |
| 21 | +$navbar = new NavBar(); | |
| 22 | + | |
| 23 | +//get the section name | |
| 24 | +$sectionName = $default->siteMap->getSectionName($_SERVER["PHP_SELF"]); | |
| 25 | + | |
| 26 | +//highlight the respective section | |
| 27 | +$navbar->setHighlightedSection($sectionName); | |
| 28 | + | |
| 29 | +// setup nw payload | |
| 30 | +$colourBar = $navbar->getNWColourbar(); | |
| 31 | +$image = new PatternImage("$default->owl_graphics_url/tree.gif"); | |
| 32 | +$image->setImgSize(114, 96); | |
| 33 | +$img = $image->render(); | |
| 34 | + | |
| 35 | + | |
| 36 | +$nwestLoad = " | |
| 37 | + <html> | |
| 38 | + <table width = \"100%\" height = \"100%\"> | |
| 39 | + <td>". $img ."</td></tr> | |
| 40 | + <tr><td><img src = " . $colourBar . "></img></td></tr> | |
| 41 | + </table> | |
| 42 | + </html> | |
| 43 | + "; | |
| 44 | + | |
| 45 | +$nwPayLoad = new PatternCustom; | |
| 46 | +$nwPayLoad ->setHtml($nwestLoad); | |
| 47 | + | |
| 48 | +// set up the west payload | |
| 49 | +//get section links | |
| 50 | +$sectionArray =$default->siteMap->getSectionLinks($sectionName); | |
| 51 | + | |
| 52 | +//format the array..by taking first element off | |
| 53 | +$output1["links"] = array_shift ($sectionArray["links"]); | |
| 54 | +$output2["descriptions"] = array_shift($sectionArray["descriptions"]); | |
| 55 | + | |
| 56 | +//create links | |
| 57 | +$westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 50 , 1 ,1,null); | |
| 58 | +$westRender = $westLinks->render(); | |
| 59 | + | |
| 60 | +//set up links | |
| 61 | +$cAdmin = "$default->owl_graphics_url/leftnav/cadmin.gif" ; | |
| 62 | +$link = "$default->owl_graphics_url/leftnav/links.gif" ; | |
| 63 | + | |
| 64 | + | |
| 65 | +//setup the westpayload | |
| 66 | +// TODO -> change to links the images as well | |
| 67 | +$westLoad = " | |
| 68 | + <html> | |
| 69 | + <table border = \"1\" width = \"100%\" height = \"100%\"> | |
| 70 | + <tr><td>". $westRender ."</td></tr> | |
| 71 | + <tr><td><img src = " . $cAdmin . "></img></td></tr> | |
| 72 | + <tr><td><img src = ". $link ."></img></td></tr> | |
| 73 | + </table> | |
| 74 | + </html> | |
| 75 | + "; | |
| 76 | + | |
| 77 | +$westPayLoad = new PatternCustom; | |
| 78 | +$westPayLoad->setHtml($westLoad); | |
| 79 | + | |
| 80 | +$main = new PatternMainPage(); | |
| 81 | +$main->setNorthPayload($navbar); | |
| 82 | +$main->setNorthWestPayload($nwPayLoad); | |
| 83 | +$main->setWestPayload($westPayLoad); | |
| 84 | + | |
| 99 | 85 | ?> |
| 100 | 86 | ... | ... |