cmc-sales/views/documents/view.ctp

59 lines
1 KiB
PHP
Executable file

<?php
echo $javascript->link('ckeditor/ckeditor');
echo $javascript->link('ckeditor/adapters/jquery');
echo $javascript->link('document_add_edit');
switch($docType) {
case 'quote':
echo $this->element('document_quote_view');
break;
case 'invoice':
echo $this->element('document_invoice_view');
break;
case 'purchaseOrder':
echo 'Purchase OOOOORDER!!';
break;
}
?>
<div id="lineItems">
</div>
<div id="pageContentFactory">
<?
echo $form->input("DocPage.content", array('class'=>'page', 'label'=>'Page', 'between'=>'<button class="removePage">X</button>'));
?>
</div>
<div id="addLineItemModal" title="Add Line Item">
</div>
<div id="editLineItemModal" title="Edit Line Item">
</div>
<div id="QuoteDetails" title="Edit Quote Details">
</div>
<div id="InvoiceDetails">
</div>
<span id="documentID" style="display:none;"><?=$document['Document']['id']?></span>
<?php // debug($currency);?>
<?php //debug($docType);?>
<?php //debug($enquiry);?>
<?php debug($document);?>