<?php echo '<div id="deposit" class="' . get_tab_panel_class() . '">'; print_checkbox_element(array('label' => 'Deposit Required', 'name' => 'deposit_required', 'value' => 1)); print_input_element(array('label' => 'Deposit amount', 'name' => 'deposit_amount', 'placeholder' => '0.00', 'disabledunless' => array('deposit_required'), 'validation' => 'number')); print_dropdown_element(array('label' => 'Credit card type', 'name' => 'cc_type', 'options' => array('Visa' => 'Visa', 'Mastercard' => 'Mastercard'), 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card number', 'name' => 'cc_number', 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card expiry', 'name' => 'cc_expiry', 'placeholder' => '01/15', 'size' => 5, 'disabledunless' => array('deposit_required'))); print_input_element(array('label' => 'Credit Card security (CVV)', 'name' => 'cc_security', 'size' => 3, 'disabledunless' => array('deposit_required'))); print_tabbed_form_navbuttons(); echo '</div>';
echo $title; ?> </h3> </div> <div class="modal-body"> <?php echo form_hidden('job_site_id', $job_site_id); print_form_container_open(); if (!empty($booking)) { echo form_hidden('id', $booking->id); print_static_form_element('Booking ID', $booking->id); } print_textarea_element(array('label' => 'Message', 'name' => 'message', 'required' => true, 'rows' => 3, 'cols' => 30, 'default_value' => @$booking->message)); print_date_element(array('label' => 'Booking date', 'name' => 'booking_date', 'required' => true, 'default_value' => unix_to_human(@$booking->booking_date))); print_checkbox_element(array('label' => 'Confirmed', 'name' => 'confirmed', 'value' => 1, 'default_value' => @$booking->confirmed)); print_multiselect_element(array('label' => 'Email recipients', 'name' => 'recipients[]', 'options' => $staff, 'default_value' => $recipients)); print_form_container_close(); ?> </div> <div class="modal-footer"> <button class="btn btn-lg btn-primary" type="submit" onclick="return validate_form($(this).parents('form'));"><i class="fa fa-save"></i>Save</button> <?php if (!empty($booking)) { ?> <button class="btn btn-lg btn-danger" type="button" onclick="if(deletethis()){delete_booking(<?php echo $booking->id; ?> );};" value="delete"><i class="fa fa-trash-o"></i>Delete</button><?php } ?>
case 'radio': foreach ($options as $option_id => $option) { $params = array('name' => 'value', 'label' => $option, 'value' => $option_id, 'default_value' => false); if ((int) $setting->value == $option_id) { $params['checked'] = true; } print_radio_element($params); } break; case 'checkbox': foreach ($options as $option_id => $option) { $setting_values = $this->setting_model->get_value($setting->id); if (is_array($setting_values)) { $checked = in_array($option, $setting_values); } else { $checked = $setting->value == $option_id; } print_checkbox_element(array('name' => 'value[]', 'label' => $option, 'value' => $option_id, 'checked' => $checked)); } break; } print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'settings'); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); ?>
</td> <td><?php $this->load->view('photo_gallery', array('photos' => $part->photos, 'id' => $part->id, 'checkboxes' => true, 'unique_id' => $part->id)); ?> </td> <?php foreach ($suppliers as $supplier) { ?> <td> <?php $params = array('name' => "quoting_supplier_ids[{$part->id}][{$supplier->id}]", 'show_label' => false, 'value' => 1, 'class' => 'part-checkbox', 'checked' => !empty($supplier_quotes[$part->id][$supplier->id])); if (!empty($supplier_quotes[$part->id][$supplier->id]->request_sent_date) || $review_only) { $params['disabled'] = true; $params['title'] = "This quote request has already been sent, you cannot remove it now."; } print_checkbox_element($params); ?> </td> <?php } ?> <?php } ?> </tbody> </table> <br /> <?php if ($review_only) { ?> <a href="<?php
<?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>'; echo form_close(); ?> </div> <script type="text/javascript"> $(function() {
?> <tr> <td><?php echo $supplier->name; ?> </td> <td><?php echo $supplier->contact; ?> </td> <td><?php echo $supplier->email; ?> </td> <td><?php print_checkbox_element(array('show_label' => false, 'name' => 'supplier_contact_id[' . $supplier->id . ']', 'value' => 1, 'checked' => $supplier->selected)); ?> </td> </tr> <?php } ?> </tbody> </table> <br /> <?php if ($review_only) { ?> <a href="<?php echo base_url(); ?>
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/miniant_accounts/process_edit/', array('id' => 'account_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('account_id', $account_id); print_form_container_open(); print_input_element(array('label' => 'Billing Name', 'name' => 'name', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'ABN', 'name' => 'abn', 'required' => false, 'render_static' => !has_capability('site:editaccounts'))); print_dropdown_element(array('label' => 'Credit hold', 'name' => 'cc_hold', 'required' => false, 'options' => array(0 => 'No', 1 => 'Yes'), 'info_text' => 'If a credit hold is placed on this account, it will appear in red throughout Mini-Ant', 'render_static' => !has_capability('site:editaccounts'))); print_fieldset_open('Billing address'); print_hidden_element(array('name' => 'billing_address_id')); print_checkbox_element(array('label' => 'Is this a PO Box?', 'name' => 'billing_address_po_box_on', 'value' => 1, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Unit', 'name' => 'billing_address_unit', 'required' => false, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Number', 'name' => 'billing_address_number', 'required' => true, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Street', 'name' => 'billing_address_street', 'required' => true, 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_autocomplete_element(array('label' => 'Street type', 'name' => 'billing_address_street_type', 'options_url' => 'addresses/get_street_types', 'required' => true, 'id' => 'autocomplete_street_type', 'disabledif' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'PO Box', 'name' => 'billing_address_po_box', 'required' => true, 'disabledunless' => array('billing_address_po_box_on' => 1), 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'City', 'name' => 'billing_address_city', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_input_element(array('label' => 'Post Code', 'name' => 'billing_address_postcode', 'required' => true, 'render_static' => !has_capability('site:editaccounts'))); print_fieldset_close(); if (has_capability('site:editaccounts')) { print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/miniant_accounts'); print_submit_container_close(); } if (!empty($account_id)) {