Initial working version ofa consistent layout with side menu

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@38 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-29 14:49:11 +00:00
parent 8dae1ccf84
commit bd6cc37d4a
10 changed files with 234 additions and 45 deletions

View File

@@ -1,13 +1,10 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<p>
<?php
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Contacts',true).'</h2>';
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Contacts',true).'</h2>';
?>
</p>
<table cellpadding="0" cellspacing="0">

View File

@@ -1,13 +1,10 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<p>
<?php
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Maps',true).'</h2>';
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Maps',true).'</h2>';
?>
</p>
<table cellpadding="0" cellspacing="0">

View File

@@ -0,0 +1,24 @@
<?php /* -*- mode:PHP -*- */
/* sidemenu.ctp */
/*
*
* @filesource
* @copyright Copyright 2009, Abijah Perkins
* @package pmgr
*/
foreach ($menu AS $item) {
if (isset($item['header']))
echo('<DIV CLASS="header">' . $item['name'] . '</DIV>' . "\n");
elseif (isset($item['hr']))
echo('<HR>' . "\n");
elseif (isset($item['url']))
echo('<DIV CLASS="item">'
. $html->link($item['name'], $item['url'],
isset($item['htmlAttributes']) ? $item['htmlAttributes'] : null,
isset($item['confirmMessage']) ? $item['confirmMessage'] : null,
isset($item['escapeTitle']) ? $item['escapeTitle'] : null)
. '</DIV>' . "\n");
}

View File

@@ -1,13 +1,10 @@
<?php /* -*- mode:PHP -*- */ ?>
<?php /* -*- mode:PHP -*- */
<p>
<?php
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Units',true).'</h2>';
if (isset($heading))
echo $heading;
else
echo '<h2>'.__('Units',true).'</h2>';
?>
</p>
<table cellpadding="0" cellspacing="0">