Added version
This commit is contained in:
parent
ab19aaa4f2
commit
1f9f0a42e7
|
|
@ -42,6 +42,7 @@
|
|||
*/
|
||||
Configure::write('debug', 0);
|
||||
|
||||
Configure::write('version', '0.95');
|
||||
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<?php // Quotenik 1.2 - Default Layout. Some Markup retained from CakePHP Default ?>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
<?php __('CMC'); ?>
|
||||
<?php echo $title_for_layout; ?>
|
||||
</title>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
<?php __('CMC'); ?>
|
||||
<?php echo $title_for_layout; ?>
|
||||
</title>
|
||||
<?php
|
||||
$debugLevel = Configure::read('debug');
|
||||
$debugLevel = Configure::read('debug');
|
||||
|
||||
if ($debugLevel > 0) {
|
||||
echo $html->meta('favicon.ico', '/img/core.png', array('type' => 'icon'));
|
||||
echo $html->meta('favicon.ico', '/img/core.png', array('type' => 'icon'));
|
||||
} else {
|
||||
echo $html->meta('icon');
|
||||
echo $html->meta('icon');
|
||||
}
|
||||
|
||||
echo $html->css('quotenik');
|
||||
|
|
@ -36,156 +36,152 @@ echo $scripts_for_layout;
|
|||
?>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
|
||||
<div id="header">
|
||||
<h3 id="logo">CMC Technologies</h3>
|
||||
<div id="header">
|
||||
<h3 id="logo">CMC Technologies</h3>
|
||||
|
||||
<div id="username">
|
||||
<div id="username">
|
||||
|
||||
<?php
|
||||
if (isset($currentuser) == FALSE) {
|
||||
echo $html->link('Login', '/users/login');
|
||||
echo $html->link('Login', '/users/login');
|
||||
} else {
|
||||
$logoutlink = $html->link('Logout', '/users/logout');
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']) . ' (' . $logoutlink . ')';
|
||||
$logoutlink = $html->link('Logout', '/users/logout');
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']) . ' (' . $logoutlink . ')';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="navdiv">
|
||||
<ul id="nav">
|
||||
<li><?php echo $html->link('Enquiries', '/enquiries/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('Enquiry Register', '/enquiries/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Enquiry', '/enquiries/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<div id="navdiv">
|
||||
<ul id="nav">
|
||||
<li><?php echo $html->link('Enquiries', '/enquiries/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('Enquiry Register', '/enquiries/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Enquiry', '/enquiries/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('Documents', '/documents/index'); ?>
|
||||
<ul>
|
||||
<li class="last"><?php echo $html->link('Documents Index', '/documents/index'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Documents', '/documents/index'); ?>
|
||||
<ul>
|
||||
<li class="last"><?php echo $html->link('Documents Index', '/documents/index'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('Jobs', '/jobs/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Jobs', '/jobs/index'); ?>
|
||||
<ul>
|
||||
|
||||
<?
|
||||
if ($currentuser['User']['access_level'] == 'manager' || $currentuser['User']['access_level'] == 'admin'):
|
||||
|
||||
?>
|
||||
<li><?= $html->link('Reports', '/jobs/reports'); ?></li>
|
||||
<? endif; ?>
|
||||
<li class="last"><?php echo $html->link('Job List', '/jobs/index'); ?></li>
|
||||
<li><?= $html->link('Reports', '/jobs/reports'); ?></li>
|
||||
<? endif; ?>
|
||||
<li class="last"><?php echo $html->link('Job List', '/jobs/index'); ?></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('Shipments', '/shipments/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('All Shipments', '/shipments/index'); ?></li>
|
||||
<li class=""><?php echo $html->link('Import Shipments', '/shipments/index/import'); ?></li>
|
||||
<li class=""><?php echo $html->link('Direct Shipments', '/shipments/index/direct'); ?></li>
|
||||
<li class=""><?php echo $html->link('Export Shipments', '/shipments/index/export'); ?></li>
|
||||
<li class=""><?php echo $html->link('Local Shipments', '/shipments/index/local'); ?></li>
|
||||
<li class=""><?php echo $html->link('Monthly Deferred GST', '/shipments/reports'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Freight Forwarders', '/freight_forwarders'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Shipments', '/shipments/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('All Shipments', '/shipments/index'); ?></li>
|
||||
<li class=""><?php echo $html->link('Import Shipments', '/shipments/index/import'); ?></li>
|
||||
<li class=""><?php echo $html->link('Direct Shipments', '/shipments/index/direct'); ?></li>
|
||||
<li class=""><?php echo $html->link('Export Shipments', '/shipments/index/export'); ?></li>
|
||||
<li class=""><?php echo $html->link('Local Shipments', '/shipments/index/local'); ?></li>
|
||||
<li class=""><?php echo $html->link('Monthly Deferred GST', '/shipments/reports'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Freight Forwarders', '/freight_forwarders'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('Customers', '/customers/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Customer Index', '/customers/index'); ?></li>
|
||||
<li><?php echo $html->link('Add Customer', '/customers/add'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Industries', '/industries/index'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Customers', '/customers/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Customer Index', '/customers/index'); ?></li>
|
||||
<li><?php echo $html->link('Add Customer', '/customers/add'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Industries', '/industries/index'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('POs', '/purchase_orders/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('PO Index', '/purchase_orders/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('New PO', '/purchase_orders/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('POs', '/purchase_orders/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('PO Index', '/purchase_orders/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('New PO', '/purchase_orders/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li><?php echo $html->link('Invoices', '/invoices/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('Invoices Index', '/invoices/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Print View', '/invoices/printView'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Invoices', '/invoices/index'); ?>
|
||||
<ul>
|
||||
<li class=""><?php echo $html->link('Invoices Index', '/invoices/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Print View', '/invoices/printView'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li><?php echo $html->link('Products', '/products/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Product Index', '/products/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Product', '/products/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Products', '/products/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Product Index', '/products/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Product', '/products/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li><?php echo $html->link('Principles', '/principles/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Principle Index', '/principles/index'); ?></li>
|
||||
<li><?php echo $html->link('Attachments', '/attachments/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Principle', '/principles/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Principles', '/principles/index'); ?>
|
||||
<ul>
|
||||
<li><?php echo $html->link('Principle Index', '/principles/index'); ?></li>
|
||||
<li><?php echo $html->link('Attachments', '/attachments/index'); ?></li>
|
||||
<li class="last"><?php echo $html->link('Add Principle', '/principles/add'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php /* <li> echo $html->link('Users', '/users/index'); ?>
|
||||
<?php /* <li> echo $html->link('Users', '/users/index'); ?>
|
||||
<ul>
|
||||
<li> echo $html->link('Users Index', '/users/index'); </li>
|
||||
<li class="last"><?php echo $html->link('Add User', '/users/add'); </li>
|
||||
</ul>
|
||||
</li> */ ?>
|
||||
|
||||
<li><?php echo $html->link('Search', '/enquiries/search', array('id' => 'searchLink')); ?>
|
||||
</li>
|
||||
<li><?php echo $html->link('Help', '/pages/help'); ?>
|
||||
<ul>
|
||||
<li class="last"><?php echo $html->link('About', '/pages/about'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><?php echo $html->link('Search', '/enquiries/search', array('id' => 'searchLink')); ?>
|
||||
</li>
|
||||
<li><?php echo $html->link('Help', '/pages/help'); ?>
|
||||
<ul>
|
||||
<li class="last"><?php echo $html->link('About', '/pages/about'); ?></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?
|
||||
if ($currentuser['User']['access_level'] == 'manager' || $currentuser['User']['access_level'] == 'admin'):
|
||||
?>
|
||||
<li class="extra"><?=$html->link('Admin', '/admin'); ?>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<li class="extra"><?=$html->link('Admin', '/admin'); ?>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="content">
|
||||
</div>
|
||||
<div id="content">
|
||||
<?php
|
||||
if ($session->check('Message.flash')):
|
||||
$session->flash();
|
||||
if ($session->check('Message.flash')):
|
||||
$session->flash();
|
||||
endif;
|
||||
?>
|
||||
<div id="globalAjaxLoading">
|
||||
<h3>Loading, please wait</h3>
|
||||
<?php echo $html->image('ajax-loader.gif'); ?>
|
||||
</div>
|
||||
<?php echo $content_for_layout; ?>
|
||||
<div id="globalAjaxLoading">
|
||||
<h3>Loading, please wait</h3>
|
||||
<?php echo $html->image('ajax-loader.gif'); ?>
|
||||
</div>
|
||||
<?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>
|
||||
</div>
|
||||
<div id="footer">
|
||||
Powered by CMC-Sales v<?= Configure::read('version'); ?> by <a href="mailto:karl@cordes.com.au">Karl Cordes</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dialogDiv">
|
||||
<div id="dialogDiv">
|
||||
|
||||
|
||||
|
||||
|
|
@ -199,23 +195,23 @@ echo "<p>Search for: Enquiry Number, Job Number, Customer, Contact or Customer O
|
|||
echo $form->input('Enquiry.search_string', array('label' => false, 'id' => 'searchString'));
|
||||
?>
|
||||
|
||||
<div class ="ui-widget">
|
||||
<button id="searchButton">Search</button>
|
||||
</div>
|
||||
<div class ="ui-widget">
|
||||
<button id="searchButton">Search</button>
|
||||
</div>
|
||||
<?
|
||||
echo $form->end();
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div id="ajaxLoading">
|
||||
<h2>Loading, please wait..</h2>
|
||||
<?php echo $html->image('ajax-loader.gif'); ?>
|
||||
</div>
|
||||
<div id="ajaxLoading">
|
||||
<h2>Loading, please wait..</h2>
|
||||
<?php echo $html->image('ajax-loader.gif'); ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="results"></div>
|
||||
</div>
|
||||
<div id="results"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
|
@ -223,18 +219,18 @@ echo $form->end();
|
|||
$mem_usage = memory_get_usage(true);
|
||||
|
||||
if ($mem_usage < 1024)
|
||||
echo $mem_usage . " bytes";
|
||||
echo $mem_usage . " bytes";
|
||||
elseif ($mem_usage < 1048576)
|
||||
echo round($mem_usage / 1024, 2) . " kilobytes";
|
||||
echo round($mem_usage / 1024, 2) . " kilobytes";
|
||||
else
|
||||
echo round($mem_usage / 1048576, 2) . " megabytes";
|
||||
echo round($mem_usage / 1048576, 2) . " megabytes";
|
||||
echo "<br/>";
|
||||
?>
|
||||
|
||||
|
||||
<?php // debug($currentuser); ?>
|
||||
<?php // debug($currentuser); ?>
|
||||
|
||||
<?php echo $cakeDebug; ?>
|
||||
<?php echo $cakeDebug; ?>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue