2009-09-09 20:23:39 -07:00
|
|
|
<? /* Quotenik 1.2 - Default Layout. Some Markup from CakePHP Default */?>
|
|
|
|
|
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<!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-09-09 20:23:39 -07:00
|
|
|
echo $javascript->link('jquery');
|
|
|
|
|
echo $javascript->link('jquery-ui');
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $javascript->link('prototype');
|
|
|
|
|
echo $javascript->link('scriptaculous');
|
|
|
|
|
echo $javascript->link('qtip');
|
2009-09-09 20:23:39 -07:00
|
|
|
echo $javascript->link('wymeditor/jquery.wymeditor.min');
|
|
|
|
|
echo $javascript->link('wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js');
|
|
|
|
|
echo $javascript->link('wymeditor/plugins/resizable/jquery.wymeditor.resizable.js');
|
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
jQuery(function() {
|
|
|
|
|
jQuery(".wymeditor").wymeditor({
|
|
|
|
|
skin: 'silver',
|
|
|
|
|
postInit: function(wym) {
|
|
|
|
|
|
|
|
|
|
wym.hovertools();
|
|
|
|
|
wym.resizable();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
2009-02-26 16:58:33 -08:00
|
|
|
|
2009-09-09 20:23:39 -07:00
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-07-02 18:11:22 -07:00
|
|
|
<h3 id="logo">CMC Technologies</h3>
|
|
|
|
|
|
|
|
|
|
<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>
|
2009-07-02 18:11:22 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<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>
|
|
|
|
|
</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>
|
2009-07-09 00:09:59 -07:00
|
|
|
<li><?php echo $html->link('Industries', '/industries/index'); ?></li>
|
2009-01-12 21:13:18 -08:00
|
|
|
</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-08-13 19:09:47 -07:00
|
|
|
<li><h3><?php echo $html->link('Products', '/products/index'); ?></h3>
|
2009-01-12 21:13:18 -08:00
|
|
|
<ul>
|
2009-08-13 19:09:47 -07:00
|
|
|
<li><?php echo $html->link('Product Index', '/products/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('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>
|
|
|
|
|
|
2009-04-23 21:26:48 -07:00
|
|
|
</div>
|
2009-06-29 23:06:26 -07:00
|
|
|
|
|
|
|
|
</div>
|
2009-01-12 21:13:18 -08:00
|
|
|
<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>
|