<?php

$this->miniant_pdf->writeHTML($this->load->view('orders/pdf/invoice_tenancy_intro', array(), true), false, false, false, false, '');
$this->miniant_pdf->print_heading('Technician time');
$this->miniant_pdf->print_paragraph('Total time spent by technicians on this job: ' . get_hours_and_minutes_from_seconds($invoice_tenancy->technician_time) . ' hours.');
$this->miniant_pdf->print_heading('Description of work performed');
$this->miniant_pdf->print_paragraph($order_dowd);
$this->miniant_pdf->writeHTML($this->load->view('orders/pdf/invoice_tenancy_dowd', array(), true), false, false, false, false, '');
$this->miniant_pdf->print_heading('Parts used', 1);
$this->miniant_pdf->writeHTML($this->load->view('orders/pdf/invoice_tenancy_parts', array(), true), false, false, false, false, '');
예제 #2
0
<div class="panel panel-primary">
    <div class="panel-heading"><?php 
echo get_title($title_options);
?>
</div>
    <?php 
echo form_open(base_url() . 'miniant/orders/documents/process_edit/', array('id' => 'order_document_edit_form', 'class' => 'form-horizontal'));
?>
    <div class="panel-body">
        <?php 
print_form_container_open();
print_hidden_element(array('name' => 'order_id', 'default_value' => $order_id));
print_hidden_element(array('name' => 'invoice_tenancy_id', 'default_value' => $invoice_tenancy->id));
print_form_section_heading('Technician time adjustment');
print_input_element(array('label' => 'System time', 'name' => 'system_time', 'required' => true, 'render_static' => true, 'static_displayvalue' => get_hours_and_minutes_from_seconds($invoice_tenancy->system_time) . ' hours'));
$corrected_time_value = empty($invoice_tenancy->technician_time) ? round($invoice_tenancy->system_time / 60 / 60, 2) : round($invoice_tenancy->technician_time / 60 / 60, 2);
print_dropdown_element(array('label' => 'Corrected time (hours)', 'name' => 'technician_time_hours', 'options' => range(0, 64), 'required' => true));
print_dropdown_element(array('label' => 'Corrected time (minutes)', 'name' => 'technician_time_minutes', 'options' => array(0 => 0, 15 => 15, 30 => 30, 45 => 45), 'required' => true));
print_form_section_heading('DOWD codes');
foreach ($abbreviations as $abbreviation) {
    print_checkbox_element(array('label' => $abbreviation->abbreviation, 'name' => 'abbreviations[]', 'value' => $abbreviation->id, 'default_value' => $abbreviation->selected, 'info_text' => $abbreviation->explanation));
}
print_submit_container_open();
print_submit_button('Save and complete review');
print_cancel_button(base_url() . 'miniant/orders/documents/index/html/' . $order_id);
print_submit_container_close();
print_form_container_close();
?>

    <?php 
echo '</div>';