2011-06-28 01:09:33 +00:00
|
|
|
<!DOCTYPE html>
|
2012-11-10 00:16:37 +00:00
|
|
|
<?php // Quotenik 1.2 - Default Layout. Some Markup retained from CakePHP Default ?>
|
2012-03-02 21:01:31 +00:00
|
|
|
<html lang="en">
|
2013-04-04 08:45:33 +00:00
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<title>
|
|
|
|
|
<?php __('CMC'); ?>
|
|
|
|
|
<?php echo $title_for_layout; ?>
|
|
|
|
|
</title>
|
2012-03-02 21:01:31 +00:00
|
|
|
<?php
|
2013-04-04 08:45:33 +00:00
|
|
|
$debugLevel = Configure::read('debug');
|
2011-06-28 04:30:41 +00:00
|
|
|
|
2019-07-04 07:15:06 +00:00
|
|
|
echo $html->meta('icon');
|
2012-03-02 21:01:31 +00:00
|
|
|
echo $html->css('quotenik');
|
|
|
|
|
echo $html->css('jquery-ui.custom.css');
|
2010-05-11 05:02:11 +00:00
|
|
|
|
|
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
//echo $javascript->link('ckeditor/ckeditor');
|
2010-02-04 16:30:49 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
echo $javascript->link('jquery');
|
2010-05-11 05:02:11 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
echo $javascript->link('jquery-ui');
|
|
|
|
|
echo $javascript->link('jquery.form');
|
|
|
|
|
echo $javascript->link('menu');
|
|
|
|
|
echo $javascript->link('global');
|
|
|
|
|
echo $javascript->link('search');
|
|
|
|
|
echo $javascript->link('jquery.jeditable.mini');
|
|
|
|
|
echo $javascript->link('jquery.validate');
|
2011-03-22 07:05:56 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
echo $scripts_for_layout;
|
|
|
|
|
?>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
|
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="container">
|
2011-03-22 07:05:56 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div id="header">
|
|
|
|
|
<h3 id="logo">CMC Technologies</h3>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div id="username">
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
<?php
|
2013-04-04 08:45:33 +00:00
|
|
|
$logoutlink = $html->link('Logout', '/users/logout');
|
2019-03-18 10:50:18 +00:00
|
|
|
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']);
|
|
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
?>
|
2019-04-28 03:07:23 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="navdiv">
|
|
|
|
|
<ul id="nav">
|
|
|
|
|
<li><?php echo $html->link('Enquiries', '/enquiries/index'); ?>
|
|
|
|
|
<ul>
|
2019-04-06 11:16:13 +00:00
|
|
|
<li class="last"><?php echo $html->link('Enquiry Register', '/enquiries/index'); ?></li>
|
2013-04-04 08:45:33 +00:00
|
|
|
</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>
|
2011-04-19 06:04:40 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
<?
|
|
|
|
|
if ($currentuser['User']['access_level'] == 'manager' || $currentuser['User']['access_level'] == 'admin'):
|
2011-08-09 06:33:21 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
?>
|
2013-04-04 08:45:33 +00:00
|
|
|
<li><?= $html->link('Reports', '/jobs/reports'); ?></li>
|
|
|
|
|
<? endif; ?>
|
|
|
|
|
<li class="last"><?php echo $html->link('Job List', '/jobs/index'); ?></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('POs', '/purchase_orders/index'); ?>
|
|
|
|
|
<ul>
|
2013-06-15 08:32:14 +00:00
|
|
|
<li class="last"><?php echo $html->link('PO Index', '/purchase_orders/index'); ?></li>
|
2013-04-04 08:45:33 +00:00
|
|
|
</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('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'); ?>
|
2011-06-28 04:30:41 +00:00
|
|
|
<ul>
|
|
|
|
|
<li> echo $html->link('Users Index', '/users/index'); </li>
|
|
|
|
|
<li class="last"><?php echo $html->link('Add User', '/users/add'); </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li> */ ?>
|
2010-05-11 05:02:11 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<li><?php echo $html->link('Search', '/enquiries/search', array('id' => 'searchLink')); ?>
|
|
|
|
|
</li>
|
2019-04-28 02:04:46 +00:00
|
|
|
<li><?php echo $html->link('Help', '/pages/about'); ?>
|
2019-04-27 02:33:30 +00:00
|
|
|
<ul>
|
2019-12-18 04:06:53 +00:00
|
|
|
<li><a href="/pages/bug">Raise a bug</a></li>
|
2019-04-27 02:33:30 +00:00
|
|
|
<li><a href="https://gitlab.com/minimalist.software/cmc-sales/issues">Issue tracker</a></li>
|
|
|
|
|
<li class="last"><?php echo $html->link('About', '/pages/about'); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
<?
|
|
|
|
|
if ($currentuser['User']['access_level'] == 'manager' || $currentuser['User']['access_level'] == 'admin'):
|
|
|
|
|
?>
|
2013-04-04 08:45:33 +00:00
|
|
|
<li class="extra"><?=$html->link('Admin', '/admin'); ?>
|
|
|
|
|
</li>
|
|
|
|
|
<? endif; ?>
|
2011-10-24 07:14:07 +00:00
|
|
|
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</ul>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</div>
|
2010-03-16 03:20:38 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</div>
|
|
|
|
|
<div id="content">
|
2012-03-02 21:01:31 +00:00
|
|
|
<?php
|
2013-04-04 08:45:33 +00:00
|
|
|
if ($session->check('Message.flash')):
|
|
|
|
|
$session->flash();
|
2012-03-02 21:01:31 +00:00
|
|
|
endif;
|
|
|
|
|
?>
|
2013-04-04 08:45:33 +00:00
|
|
|
<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">
|
2019-04-25 05:04:40 +00:00
|
|
|
Powered by CMC-Sales <a href="https://gitlab.com/minimalist.software/cmc-sales/commit/<?= getenv("COMMIT_SHA"); ?>"><?= getenv("COMMIT_SHA"); ?></a>
|
2013-04-04 08:45:33 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div id="dialogDiv">
|
2010-05-13 02:21:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
<?php
|
|
|
|
|
echo $form->create('Enquiry', array('default' => false, 'id' => 'searchForm', 'default' => 'false'));
|
|
|
|
|
echo '<h2>Search';
|
|
|
|
|
echo $html->image('system-search.png');
|
|
|
|
|
echo '</h2>';
|
|
|
|
|
echo "<p>Search for: Enquiry Number, Job Number, Customer, Contact or Customer Order Number</p>";
|
2011-03-22 07:05:56 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
echo $form->input('Enquiry.search_string', array('label' => false, 'id' => 'searchString'));
|
|
|
|
|
?>
|
2010-05-31 05:54:44 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div class ="ui-widget">
|
|
|
|
|
<button id="searchButton">Search</button>
|
|
|
|
|
</div>
|
2012-03-02 21:01:31 +00:00
|
|
|
<?
|
|
|
|
|
echo $form->end();
|
|
|
|
|
?>
|
2010-05-13 02:21:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div id="ajaxLoading">
|
|
|
|
|
<h2>Loading, please wait..</h2>
|
|
|
|
|
<?php echo $html->image('ajax-loader.gif'); ?>
|
|
|
|
|
</div>
|
2011-05-16 06:13:21 +00:00
|
|
|
|
2010-05-13 02:21:29 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<div id="results"></div>
|
|
|
|
|
</div>
|
2010-05-13 02:21:29 +00:00
|
|
|
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$mem_usage = memory_get_usage(true);
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2012-03-02 21:01:31 +00:00
|
|
|
if ($mem_usage < 1024)
|
2013-04-04 08:45:33 +00:00
|
|
|
echo $mem_usage . " bytes";
|
2012-03-02 21:01:31 +00:00
|
|
|
elseif ($mem_usage < 1048576)
|
2013-04-04 08:45:33 +00:00
|
|
|
echo round($mem_usage / 1024, 2) . " kilobytes";
|
2012-03-02 21:01:31 +00:00
|
|
|
else
|
2013-04-04 08:45:33 +00:00
|
|
|
echo round($mem_usage / 1048576, 2) . " megabytes";
|
2012-03-02 21:01:31 +00:00
|
|
|
echo "<br/>";
|
|
|
|
|
?>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
<?php echo $cakeDebug; ?>
|
2009-11-10 00:26:25 +00:00
|
|
|
|
2013-04-04 08:45:33 +00:00
|
|
|
</body>
|
2009-01-13 05:13:18 +00:00
|
|
|
</html>
|