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,7 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<div class="contacts view">
<h2><?php __('Contact'); ?></h2>
<?php

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">

View File

@@ -27,38 +27,56 @@
<head>
<?php echo $html->charset(); ?>
<title>
<?php __('CakePHP: the rapid development php framework:'); ?>
<?php echo $title_for_layout; ?>
Property Manager: <?php echo $title_for_layout; ?>
</title>
<?php
echo $html->meta('icon');
echo $html->css('cake.generic');
echo $scripts_for_layout;
?>
<LINK REL="stylesheet" TYPE="text/css" HREF="<?php echo $html->url('/webroot/css/sidemenu.css') ?>" />
</head>
<body>
<TABLE id="layout">
<!-- LAYOUT TABLE -->
<TR>
<!-- LAYOUT ROW -->
<TD ID="sidecolumn">
<!-- SIDE MENU COLUMN -->
<?php echo $this->element('sidemenu', array('menu' => $sidemenu)); ?>
<!-- END SIDE MENU COLUMN -->
</TD>
<TD ID="pagecolumn">
<!-- CONTENT COLUMN -->
<div id="container">
<div id="header">
<h1><?php echo $html->link(__('CakePHP: the rapid development php framework', true), 'http://cakephp.org'); ?></h1>
</div>
<div id="content">
<?php $session->flash(); ?>
<?php echo $content_for_layout; ?>
</div>
<div id="footer">
<?php echo $html->link(
$html->image('cake.power.gif', array('alt'=> __("CakePHP: the rapid development php framework", true), 'border'=>"0")),
'http://www.cakephp.org/',
array('target'=>'_blank'), null, false
);
?>
</div>
</div>
<?php echo $cakeDebug; ?>
<!-- END CONTENT COLUMN -->
</TD>
<!-- LAYOUT ROW -->
</TR>
<!-- LAYOUT TABLE -->
</TABLE>
<?php echo $cakeDebug; ?>
<?php /* pr($this); */ ?>
</body>
</html>
</html>

View File

@@ -1,7 +1,6 @@
<?php /* -*- mode:PHP -*- */ ?>
<div class="units view">
<h2><?php __('Unit'); ?></h2>
<?php