Changes. Considering switching javascript to Jquery.
This commit is contained in:
parent
206cd90b8a
commit
32199181d6
|
|
@ -30,6 +30,9 @@ class QuoteProductsController extends AppController {
|
||||||
$product = $this->QuoteProduct->Product->findById($this->data['QuoteProduct']['product_id']);
|
$product = $this->QuoteProduct->Product->findById($this->data['QuoteProduct']['product_id']);
|
||||||
$this->data['QuoteProduct']['description'] = $product['Product']['description'];
|
$this->data['QuoteProduct']['description'] = $product['Product']['description'];
|
||||||
|
|
||||||
|
$numberOfItems - $this->Quo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($this->QuoteProduct->save($this->data)) {
|
if ($this->QuoteProduct->save($this->data)) {
|
||||||
$quoteid = $this->data['QuoteProduct']['quote_id'];
|
$quoteid = $this->data['QuoteProduct']['quote_id'];
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ class QuoteProduct extends AppModel {
|
||||||
'conditions' => '',
|
'conditions' => '',
|
||||||
'fields' => '',
|
'fields' => '',
|
||||||
'order' => ''
|
'order' => ''
|
||||||
)
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,3 @@ $boxdata['enquirynumber'] = $enquiry['Enquiry']['title'];
|
||||||
<h3><?php __($number_of_quotes.' Quotes in this Enquiry');?></h3>
|
<h3><?php __($number_of_quotes.' Quotes in this Enquiry');?></h3>
|
||||||
<?php echo $this->element('quote_table', $quotes); ?>
|
<?php echo $this->element('quote_table', $quotes); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?
|
|
||||||
|
|
||||||
debug($smtp_errors);
|
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<?php echo $html->charset(); ?>
|
<?php echo $html->charset(); ?>
|
||||||
<title>
|
<title>
|
||||||
<?php __('CMC'); ?>
|
<?php __('CMC'); ?>
|
||||||
|
|
@ -20,16 +20,16 @@
|
||||||
echo $javascript->link('scriptaculous');
|
echo $javascript->link('scriptaculous');
|
||||||
echo $javascript->link('ckeditor/ckeditor');
|
echo $javascript->link('ckeditor/ckeditor');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<h3 id="logo">CMC Technologies</h3>
|
<h3 id="logo">CMC Technologies</h3>
|
||||||
|
|
||||||
<div id="username">
|
<div id="username">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if(isset($currentuser) == FALSE) {
|
if(isset($currentuser) == FALSE) {
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php
|
<?php
|
||||||
if ($session->check('Message.flash')):
|
if ($session->check('Message.flash')):
|
||||||
|
|
@ -124,10 +124,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$mem_usage = memory_get_usage(true);
|
$mem_usage = memory_get_usage(true);
|
||||||
|
|
||||||
if ($mem_usage < 1024)
|
if ($mem_usage < 1024)
|
||||||
echo $mem_usage." bytes";
|
echo $mem_usage." bytes";
|
||||||
elseif ($mem_usage < 1048576)
|
elseif ($mem_usage < 1048576)
|
||||||
echo round($mem_usage/1024,2)." kilobytes";
|
echo round($mem_usage/1024,2)." kilobytes";
|
||||||
|
|
@ -135,9 +135,9 @@ if ($mem_usage < 1024)
|
||||||
echo round($mem_usage/1048576,2)." megabytes";
|
echo round($mem_usage/1048576,2)." megabytes";
|
||||||
echo "<br/>";
|
echo "<br/>";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php echo $cakeDebug; ?>
|
<?php echo $cakeDebug; ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,8 @@ echo $paginator->counter(array(
|
||||||
?></p>
|
?></p>
|
||||||
<table cellpadding="0" cellspacing="0">
|
<table cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo $paginator->sort('id');?></th>
|
|
||||||
<th><?php echo $paginator->sort('principle_id');?></th>
|
<th><?php echo $paginator->sort('principle_id');?></th>
|
||||||
<th><?php echo $paginator->sort('title');?></th>
|
<th><?php echo $paginator->sort('title');?></th>
|
||||||
<th><?php echo $paginator->sort('description');?></th>
|
|
||||||
<th><?php echo $paginator->sort('model_number');?></th>
|
<th><?php echo $paginator->sort('model_number');?></th>
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -24,18 +22,14 @@ foreach ($products as $product):
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr<?php echo $class;?>>
|
<tr<?php echo $class;?>>
|
||||||
<td>
|
|
||||||
<?php echo $product['Product']['id']; ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
<?php echo $html->link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
|
<?php echo $html->link($product['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $product['Principle']['id'])); ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php echo $product['Product']['title']; ?>
|
<?php echo $product['Product']['title']; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
<?php echo $product['Product']['description']; ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
<?php echo $product['Product']['model_number']; ?>
|
<?php echo $product['Product']['model_number']; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,8 @@ else {
|
||||||
|
|
||||||
$tcpdf->Output($output_dir.$filename, 'F');
|
$tcpdf->Output($output_dir.$filename, 'F');
|
||||||
|
|
||||||
|
echo "<br> Wrote: ".$output_dir.$filename;
|
||||||
|
|
||||||
//$tcpdf->Output('cmcquote.pdf', 'D');
|
//$tcpdf->Output('cmcquote.pdf', 'D');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -183,8 +183,8 @@ ul.principle-emails {
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav h3 a{
|
#nav h3 a{
|
||||||
font-size: 120%;
|
font-size: 160%;
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
color:#FFFFFF;
|
color:#FFFFFF;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/* background: #E9E9E9; */
|
/* background: #E9E9E9; */
|
||||||
|
|
@ -247,7 +247,7 @@ ul.principle-emails {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
clear: both;
|
clear: both;
|
||||||
color: #333;
|
color: #333;
|
||||||
padding: 5px;
|
padding: 10px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
#footer {
|
#footer {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue