2011-05-24 02:11:07 -07:00
2011-08-14 23:04:38 -07:00
<h2><?=$docTypeFullName?>: <?=$html->link($enquiry['Enquiry']['title'], array('controller'=>'enquiries','action'=>'view',$enquiry['Enquiry']['id']));?>
<?
if($document['Document']['revision'] > 0) {
echo "Revision {$document['Document']['revision']} ";
}
?>
for
<?=$html->link($enquiry['Customer']['name'], array('controller'=>'customers','action'=>'view',$enquiry['Customer']['id']));?>
</h2>
2011-05-16 20:19:32 -07:00
<?
2011-05-19 00:05:01 -07:00
echo $form->create('Document',array('type'=>'post','action'=>'edit', 'default'=>false));
2011-05-16 20:19:32 -07:00
echo $form->input('Document.id');
?>
<div class="docButtons">
2011-06-15 01:26:22 -07:00
<button id="generateFirstPage">(re)Generate First Page</button>
2011-06-15 16:36:43 -07:00
<button id="addPage">Add Content Page</button>
2011-05-24 02:11:07 -07:00
<button id="editQuoteDetails">View/Edit Quote Details</button>
2011-05-24 02:43:26 -07:00
<?=$html->link('Generate PDF of this Quote', '/documents/pdf/'.$document['Document']['id']);?>
2011-05-16 20:19:32 -07:00
</div>
2011-05-19 00:05:01 -07:00
<div id="flashMessage" class="message">
</div>
2011-09-01 00:42:32 -07:00
<div class="docOperations">
<h3>Customer placed an order for this Quote?</h3>
2011-09-01 15:21:03 -07:00
<? //$html->link('Convert this Enquiry to a new Job and Generate an Order Acknowledgement', '/documents/convert_to_oa/'.$document['Document']['id'], array('class'=>'actionLink'));?>
<button id="createJobAndOA">Create a New Job and Order Acknowledgement</button>
2011-09-01 00:42:32 -07:00
</div>
2011-05-18 16:46:22 -07:00
<div class="pages">
2011-06-15 01:26:22 -07:00
<?php
$first = true;
foreach($document['DocPage'] as $key => $page):?>
<? if($first == true) {
$class = 'page firstPage';
$first = false;
}
else {
$class = 'page';
}
?>
2011-05-16 20:19:32 -07:00
2011-05-18 16:46:22 -07:00
<div class="docPage">
<?=$form->input("DocPage.{$key}.id");?>
2011-06-15 01:26:22 -07:00
<?=$form->input("DocPage.{$key}.content", array('class'=>$class, 'label'=>'Page '.$page['page_number'], 'between'=>'<button class="removePage">X</button>'));?>
2011-05-18 16:46:22 -07:00
<?=$form->input("DocPage.{$key}.document_id", array('type'=>'hidden'));?>
2011-06-15 01:26:22 -07:00
<?=$form->input("DocPage.{$key}.page_number", array('type'=>'hidden'));?>
2011-05-18 16:46:22 -07:00
</div>
2011-05-16 20:19:32 -07:00
2011-05-18 16:46:22 -07:00
<?endforeach?>
2011-05-16 20:19:32 -07:00
</div>
2011-05-19 00:05:01 -07:00
<div class="input submit"><button id="savePages">Save Pages</button></div>
<?=$form->end();?>
2011-05-16 20:19:32 -07:00
2011-05-24 02:11:07 -07:00
<span id="quoteID" style="display: none;"><?=$document['Quote']['id']?></span>
<div id="commCommentsInitialString" style="display:none;">
<u>Commercial Comments:</u><br />
<span style="font-size: small;">The prices quoted are subject to our Standard Terms and Conditions of Sale dated 1/7/06 that is attached and remain firm unless specifically varied in writing. The prices above are based on the following:</span>
<ol class="commList">
</ol>
<span style="font-size: small;">ANY VARIATIONS ON ITEMS 5. TO 7. WILL BE TO YOUR ACCOUNT. THIS QUOTATION IS BASED ON QUANTITIES STATED AND IS SUBJECT TO CHANGE IF QUANTITIES VARY.</span>
</div>
2011-05-16 20:19:32 -07:00
2011-06-15 01:26:22 -07:00
<? //For re-Generating the first page ?>
<div id="contactFirstName" style="display: none;"><?=$enquiry['Contact']['first_name'];?></div>
2011-09-01 00:42:32 -07:00
<div id="addJobConfirmation" title="Create New Job and Order Acknowledgment">
<span>This will create a new job and an Order Acknowledgement based on this Quote</span><br>
<span>The Enquiry will also be marked as "Job Won - Order Placed"</span><br>
Continue?
</div>
2011-05-18 16:46:22 -07:00
<? //debug($this->data);?>
<? //debug($enquiry);?>
2011-05-19 00:05:01 -07:00
<?php //debug($document);?>
2011-05-18 16:46:22 -07:00
<?php //debug($docType);?>