0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
cf
/
24
/
ff
/
[
Home
]
Name File: cf24ff64a86ef65919f6876ab649ca8ab042a3c2.file._documents.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:17:58 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/controllers/orders/_documents.tpl" */ ?> <?php /*%%SmartyHeaderCode:92853265151ee66666ad210-48164597%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'cf24ff64a86ef65919f6876ab649ca8ab042a3c2' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/controllers/orders/_documents.tpl', 1 => 1369704478, 2 => 'file', ), ), 'nocache_hash' => '92853265151ee66666ad210-48164597', 'function' => array ( ), 'variables' => array ( 'order' => 0, 'document' => 0, 'link' => 0, 'current_id_lang' => 0, 'currency' => 0, 'current_index' => 0, 'invoice_management_active' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee6666989380_63648565', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee6666989380_63648565')) {function content_51ee6666989380_63648565($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/tools/smarty/plugins/modifier.escape.php'; ?> <table class="table" width="100%;" cellspacing="0" cellpadding="0" id="documents_table"> <thead> <tr> <th style="width:10%"><?php echo smartyTranslate(array('s'=>'Date'),$_smarty_tpl);?> </th> <th style=""><?php echo smartyTranslate(array('s'=>'Document'),$_smarty_tpl);?> </th> <th style="width:20%"><?php echo smartyTranslate(array('s'=>'Number'),$_smarty_tpl);?> </th> <th style="width:10%"><?php echo smartyTranslate(array('s'=>'Amount'),$_smarty_tpl);?> </th> <th style="width:1%"></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['document'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['document']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getDocuments(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['document']->key => $_smarty_tpl->tpl_vars['document']->value){ $_smarty_tpl->tpl_vars['document']->_loop = true; ?> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> <tr class="invoice_line" id="delivery_<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }else{ ?> <tr class="invoice_line" id="invoice_<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }?> <?php }elseif(get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderSlip'){?> <tr class="invoice_line" id="orderslip_<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }?> <td class="document_date"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['document']->value->date_add),$_smarty_tpl);?> </td> <td class="document_type"> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> <?php echo smartyTranslate(array('s'=>'Delivery slip'),$_smarty_tpl);?> <?php }else{ ?> <?php echo smartyTranslate(array('s'=>'Invoice'),$_smarty_tpl);?> <?php }?> <?php }elseif(get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderSlip'){?> <?php echo smartyTranslate(array('s'=>'Credit Slip'),$_smarty_tpl);?> <?php }?></td> <td class="document_number"> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> <a target="_blank" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), 'htmlall', 'UTF-8');?> &submitAction=generateDeliverySlipPDF&id_order_invoice=<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }else{ ?> <a target="_blank" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), 'htmlall', 'UTF-8');?> &submitAction=generateInvoicePDF&id_order_invoice=<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }?> <?php }elseif(get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderSlip'){?> <a target="_blank" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), 'htmlall', 'UTF-8');?> &submitAction=generateOrderSlipPDF&id_order_slip=<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> "> <?php }?> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> #<?php echo Configuration::get('PS_DELIVERY_PREFIX',$_smarty_tpl->tpl_vars['current_id_lang']->value);?> <?php echo sprintf('%06d',$_smarty_tpl->tpl_vars['document']->value->delivery_number);?> <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['document']->value->getInvoiceNumberFormatted($_smarty_tpl->tpl_vars['current_id_lang']->value);?> <?php }?> <?php }elseif(get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderSlip'){?> #<?php echo Configuration::get('PS_CREDIT_SLIP_PREFIX',$_smarty_tpl->tpl_vars['current_id_lang']->value);?> <?php echo sprintf('%06d',$_smarty_tpl->tpl_vars['document']->value->id);?> <?php }?> <img src="../img/admin/details.gif" alt="<?php echo smartyTranslate(array('s'=>'See the document'),$_smarty_tpl);?> " /></a></td> <td class="document_amount"> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> -- <?php }else{ ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['document']->value->total_paid_tax_incl,'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?> <?php if ($_smarty_tpl->tpl_vars['document']->value->getTotalPaid()){?> <span style="color:red;font-weight:bold;"> <?php if ($_smarty_tpl->tpl_vars['document']->value->getRestPaid()>0){?> (<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['document']->value->getRestPaid(),'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?> <?php echo smartyTranslate(array('s'=>'not paid'),$_smarty_tpl);?> ) <?php }elseif($_smarty_tpl->tpl_vars['document']->value->getRestPaid()<0){?> (<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>-$_smarty_tpl->tpl_vars['document']->value->getRestPaid(),'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?> <?php echo smartyTranslate(array('s'=>'overpaid'),$_smarty_tpl);?> ) <?php }?> </span> <?php }?> <?php }?> <?php }elseif(get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderSlip'){?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['document']->value->amount,'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?> <?php }?> </td> <td class="right document_action"> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (!isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> <?php if ($_smarty_tpl->tpl_vars['document']->value->getRestPaid()){?> <a href="#" class="js-set-payment" data-amount="<?php echo $_smarty_tpl->tpl_vars['document']->value->getRestPaid();?> " data-id-invoice="<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> " title="<?php echo smartyTranslate(array('s'=>'Set payment form'),$_smarty_tpl);?> "><img src="../img/admin/money_add.png" alt="<?php echo smartyTranslate(array('s'=>'Set payment form'),$_smarty_tpl);?> " /></a> <?php }?> <a href="#" onclick="$('#invoiceNote<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> ').show(); return false;" title="<?php if ($_smarty_tpl->tpl_vars['document']->value->note==''){?><?php echo smartyTranslate(array('s'=>'Add note'),$_smarty_tpl);?> <?php }else{ ?><?php echo smartyTranslate(array('s'=>'Edit note'),$_smarty_tpl);?> <?php }?>"><img src="../img/admin/note.png" alt="<?php if ($_smarty_tpl->tpl_vars['document']->value->note==''){?><?php echo smartyTranslate(array('s'=>'Add note'),$_smarty_tpl);?> <?php }else{ ?><?php echo smartyTranslate(array('s'=>'Edit note'),$_smarty_tpl);?> <?php }?>"<?php if ($_smarty_tpl->tpl_vars['document']->value->note==''){?> class="js-disabled-action"<?php }?> /></a> <?php }?> <?php }?> </td> </tr> <?php if (get_class($_smarty_tpl->tpl_vars['document']->value)=='OrderInvoice'){?> <?php if (!isset($_smarty_tpl->tpl_vars['document']->value->is_delivery)){?> <tr id="invoiceNote<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> " style="display:none" class="current-edit"> <td colspan="5"> <form action="<?php echo $_smarty_tpl->tpl_vars['current_index']->value;?> &viewOrder&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id;?> &token=<?php echo smarty_modifier_escape($_GET['token'], 'htmlall', 'UTF-8');?> " method="post"> <p> <label for="editNote<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> " class="t"><?php echo smartyTranslate(array('s'=>'Note'),$_smarty_tpl);?> </label> <input type="hidden" name="id_order_invoice" value="<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> " /> <textarea name="note" rows="10" cols="10" id="editNote<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> " class="edit-note"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['document']->value->note, 'htmlall', 'UTF-8');?> </textarea> </p> <p class="right"> <input type="submit" name="submitEditNote" value="<?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?> " class="button" /> <a href="#" id="cancelNote" onclick="$('#invoiceNote<?php echo $_smarty_tpl->tpl_vars['document']->value->id;?> ').hide();return false;"><?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?> </a> </p> </form> </td> </tr> <?php }?> <?php }?> <?php } if (!$_smarty_tpl->tpl_vars['document']->_loop) { ?> <tr> <td colspan="5" class="center"> <h3><?php echo smartyTranslate(array('s'=>'No documents are available'),$_smarty_tpl);?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['invoice_management_active']->value)&&$_smarty_tpl->tpl_vars['invoice_management_active']->value){?> <p><a class="button" href="<?php echo $_smarty_tpl->tpl_vars['current_index']->value;?> &viewOrder&submitGenerateInvoice&id_order=<?php echo $_smarty_tpl->tpl_vars['order']->value->id;?> &token=<?php echo smarty_modifier_escape($_GET['token'], 'htmlall', 'UTF-8');?> "><?php echo smartyTranslate(array('s'=>'Generate invoice'),$_smarty_tpl);?> </a></p> <?php }?> </td> </tr> <?php } ?> </tbody> </table> <?php }} ?>
©
2018. | Recode by D7net