2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
/* SVN FILE: $Id: default.ctp 7118 2008-06-04 20:49:29Z gwoo $ */
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
|
*
|
|
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
|
* Copyright 2005-2008, Cake Software Foundation, Inc.
|
|
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
|
* Las Vegas, Nevada 89104
|
|
|
|
|
*
|
|
|
|
|
* Licensed under The MIT License
|
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
|
*
|
|
|
|
|
* @filesource
|
|
|
|
|
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
|
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
|
|
|
|
* @package cake
|
|
|
|
|
* @subpackage cake.cake.libs.view.templates.layouts
|
|
|
|
|
* @since CakePHP(tm) v 0.10.0.1076
|
|
|
|
|
* @version $Revision: 7118 $
|
|
|
|
|
* @modifiedby $LastChangedBy: gwoo $
|
|
|
|
|
* @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
|
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
|
*/
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<?php echo $html->charset(); ?>
|
|
|
|
|
<title>
|
|
|
|
|
<?php __('CMC'); ?>
|
|
|
|
|
<?php echo $title_for_layout; ?>
|
|
|
|
|
</title>
|
|
|
|
|
<? echo $html->meta('icon'); ?>
|
|
|
|
|
<?php
|
|
|
|
|
echo $html->css('quotenik');
|
2009-02-26 16:58:33 -08:00
|
|
|
|
|
|
|
|
echo $scripts_for_layout;
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $javascript->link('prototype');
|
|
|
|
|
echo $javascript->link('scriptaculous');
|
|
|
|
|
echo $javascript->link('qtip');
|
2009-02-26 16:58:33 -08:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
?>
|
|
|
|
|
<script type="text/javascript"><!--//--><![CDATA[//><!--
|
|
|
|
|
|
|
|
|
|
sfHover = function() {
|
|
|
|
|
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
|
|
|
|
|
for (var i=0; i<sfEls.length; i++) {
|
|
|
|
|
sfEls[i].onmouseover=function() {
|
|
|
|
|
this.className+=" sfhover";
|
|
|
|
|
}
|
|
|
|
|
sfEls[i].onmouseout=function() {
|
|
|
|
|
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (window.attachEvent) window.attachEvent("onload", sfHover);
|
|
|
|
|
|
|
|
|
|
//--><!]]></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="container">
|
|
|
|
|
<div id="header">
|
2009-04-23 19:09:33 -07:00
|
|
|
<h3>CMC Technologies</h3>
|
2009-01-12 21:13:18 -08:00
|
|
|
</div>
|
2009-03-26 18:26:36 -07:00
|
|
|
<div id="username">
|
2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
if(isset($currentuser) == FALSE) {
|
|
|
|
|
echo $html->link('Login', '/users/login');
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$logoutlink = $html->link('Logout', '/users/logout');
|
|
|
|
|
echo "Logged in as: ". $html->link($currentuser['User']['username'], '/users/view/'. $currentuser['User']['id']). ' (' . $logoutlink.')';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
<div id = "nav">
|
|
|
|
|
<ul id="nav">
|
|
|
|
|
<li><h3><?php echo $html->link('Enquiries', '/enquiries/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Enquiry Register', '/enquiries/index'); ?></li>
|
2009-02-09 14:25:49 -08:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li><h3><?php echo $html->link('Customers', '/customers/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Customer Index', '/customers/index'); ?></li>
|
2009-03-19 22:37:24 -07:00
|
|
|
<li><?php echo $html->link('Find Customer', '/customers/find'); ?></li>
|
2009-01-12 21:13:18 -08:00
|
|
|
<li><?php echo $html->link('Add Customer', '/customers/add'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li><h3><?php echo $html->link('Contacts', '/contacts/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Contact Index', '/contacts/index'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
2009-03-26 18:26:36 -07:00
|
|
|
<li><h3><?php echo $html->link('Products', '/product_categories/index'); ?></h3>
|
2009-01-12 21:13:18 -08:00
|
|
|
<ul>
|
2009-03-26 18:26:36 -07:00
|
|
|
<li><?php echo $html->link('Product Index', '/product_categories/index'); ?></li>
|
2009-01-12 21:13:18 -08:00
|
|
|
<li><?php echo $html->link('Add Product', '/products/add'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li><h3><?php echo $html->link('Quotes', '/quotes/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Quote Index', '/quotes/index'); ?></li>
|
|
|
|
|
<li><?php echo $html->link('New Quote', '/quotes/add'); ?></li>
|
|
|
|
|
<li><?php echo $html->link('Find Quote', '/quotes/find'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li><h3><?php echo $html->link('Principles', '/principles/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Principle Index', '/principles/index'); ?></li>
|
|
|
|
|
<li><?php echo $html->link('Add Principle', '/principles/add'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li><h3><?php echo $html->link('Users', '/users/index'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('Users Index', '/users/index'); ?></li>
|
|
|
|
|
<li><?php echo $html->link('Add User', '/users/add'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
2009-02-09 21:39:26 -08:00
|
|
|
<li><h3><?php echo $html->link('Help', '/pages/help'); ?></h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link('About', '/pages/about'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div id="content">
|
|
|
|
|
<?php
|
|
|
|
|
if ($session->check('Message.flash')):
|
|
|
|
|
$session->flash();
|
|
|
|
|
endif;
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?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'=>'_new'), null, false
|
|
|
|
|
);
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php echo $cakeDebug; ?>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|