?> ><?php echo $part->total_cost; ?> </td> <td style="border-right: 1px solid #CCC"><?php echo $part->availability; ?> </td> <?php } ?> <td> <?php print_dropdown_element(array('name' => 'supplier_ids[' . $part_id . ']', 'show_label' => false, 'options' => $part_data['suppliers_dropdown'], 'render_static' => $review_only, 'static_displayvalue' => $part_data['suppliers_dropdown'][$part->supplier_contact_id], 'default_value' => $part->supplier_contact_id)); ?> </td> </tr> <?php } ?> </tbody> </table> <br /> <?php if ($review_only) { ?> <a href="<?php echo base_url(); ?>
print_textarea_element(array('label' => 'Room size (L x W x H)', 'name' => 'room_size_' . $unit->assignment_id, 'cols' => '40', 'rows' => '3', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"))); print_input_element(array('label' => 'Room size (L x W x H)', 'name' => 'room_size_cassette_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unitry_type_id_' . $unit->assignment_id => $special_refrigerated_systems, 'unitry_type_id_' . $unit->assignment_id => $cassette_id))); print_dropdown_element(array('label' => 'Outdoor unit', 'name' => 'outdoor_unit_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Brackets' => 'Brackets', 'Mounting plastic blocks' => 'Mounting plastic blocks', 'Slabs' => 'Slabs', 'Brick paving' => 'Brick paving', 'Roof mounted brackets' => 'Roof mounted brackets', 'Top hats' => 'Top hats', 'Other' => 'Other'), 'required' => true, 'render_static' => false, 'default_value' => $unit->outdoor_unit)); print_input_element(array('label' => 'Vehicle rego No', 'name' => 'vehicle_registration_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Vehicle type', 'name' => 'vehicle_type_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Truck' => 'Truck', 'Van' => 'Van'), 'required' => true, 'render_static' => false, 'default_value' => $unit->vehicle_type, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Type of drive', 'name' => 'drive_type_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Diesel driven' => 'Diesel driven', 'Direct drive' => 'Direct drive'), 'required' => true, 'render_static' => false, 'default_value' => $unit->drive_type, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Palette size of vehicle', 'name' => 'palette_size_' . $unit->assignment_id, 'options' => range(1, 20), 'required' => true, 'render_static' => false, 'default_value' => $unit->palette_size, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Chassis No of vehicle', 'name' => 'chassis_no_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Engine No of vehicle (on compliance plate)', 'name' => 'engine_no_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Year of vehicle', 'name' => 'vehicle_year_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Temperature application', 'name' => 'temperature_application_' . $unit->assignment_id, 'options' => array(null => '-- Select One --', 'Low temperature' => 'Low temperature', 'Medium temperature' => 'Medium temperature'), 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Aperture size (mm)', 'name' => 'aperture_size_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Internal dimensions of refrigerated box (L x W x H)', 'name' => 'refrigerated_box_dimensions_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Thickness of insulation or panels (mm)', 'name' => 'insulation_thickness_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Type of insulation', 'name' => 'insulation_type_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Panels' => 'Panels', 'Fiberglass' => 'Fiberglass'), 'required' => true, 'render_static' => false, 'default_value' => $unit->insulation_type, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_dropdown_element(array('label' => 'Number of opening doors on vehicle', 'name' => 'number_of_doors_' . $unit->assignment_id, 'options' => range(1, 10), 'required' => true, 'render_static' => false, 'default_value' => $unit->number_of_doors, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Aperture size of door openings (L x W x H)', 'name' => 'door_openings_aperture_size_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Thickness of floor (mm)', 'name' => 'floor_thickness_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Type of floor', 'name' => 'floor_type_' . $unit->assignment_id, 'size' => '16', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); if ($is_breakdown) { print_submit_container_open(); if ($unit->details_recorded) { echo form_submit('button', 'Update unit and continue Diagnostic', 'id="submit_button" class="btn btn-primary"'); } else { echo form_submit('button', 'Confirm and start Diagnostic', 'id="submit_button" class="btn btn-primary"'); } } else { print_submit_container_open(); echo form_submit('button', 'Save and Continue', 'id="submit_button" class="btn btn-primary"'); } print_submit_container_close();
'required' => true )); print_input_element(array( 'label' => 'Secondary email', 'name' => 'email2', 'required' => false )); print_dropdown_element(array( 'label' => 'Type', 'name' => 'contact_type_id', 'options' => $types, 'required' => true )); print_dropdown_element(array( 'label' => 'Account', 'name' => 'account_id', 'options' => $accounts, 'required' => true )); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/contact/cancel/'.$contact_id); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close();
* http://vizsage.com/license/Vizsage-License-BY-NC-SA.html * and the handy reference for understanding the full license at * http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html * * Unless required by applicable law or agreed to in writing, any * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ echo form_open(base_url().'addresses/process_edit/', array('id' => 'address_edit_form', 'class' => 'form-horizontal')); echo form_hidden('address_id', $address_id); print_form_container_open(); print_dropdown_element(array( 'name' => 'type_id', 'label' => 'Address type', 'options' => $dropdowns['types']) ); print_input_element(array( 'label' => 'Unit', 'name' => 'unit', 'size' => 5, 'required' => false) ); print_input_element(array( 'label' => 'Number', 'name' => 'number', 'size' => 5, 'required' => true) ); print_input_element(array(
* Contact nicolas <*****@*****.**> * * Licensed under the "Attribution-NonCommercial-ShareAlike" Vizsage * Public License (the "License"). You may not use this file except * in compliance with the License. Roughly speaking, non-commercial * users may share and modify this code, but must give credit and * share improvements. However, for proper details please * read the full License, available at * http://vizsage.com/license/Vizsage-License-BY-NC-SA.html * and the handy reference for understanding the full license at * http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html * * Unless required by applicable law or agreed to in writing, any * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ echo form_open(base_url().'users/role/process_edit/', array('id' => 'role_edit_form', 'class' => 'form-horizontal')); echo form_hidden('role_id', $role_id); print_form_container_open(); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description')); print_dropdown_element(array('name' => 'parent_id', 'options' => $parent_ids, 'label' => 'Parent role')); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/role'); print_submit_container_close(); print_form_container_close(); echo form_close();
* http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html * * Unless required by applicable law or agreed to in writing, any * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ ?> <?php if (has_capability('users:assignroles')) { ?> <div class="panel panel-primary"> <div class="panel-heading"><?=get_title($add_title_options)?></div> <div class="panel-body"> <?=print_dropdown_element( array( 'name' => 'new_role', 'label' => 'New role', 'options' => $available_roles, 'required' => false, 'extra_html' => array('onchange' => "window.location='".base_url()."users/user/add_role/".$user_id."/'+this.value;")))?> </div> </div> <?php } ?> <div class="panel panel-primary" id="roles"> <div class="panel-heading"><?=get_title($roles_title_options)?></div> <div class="panel-body"> <div id="userroletable"> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Cap ID</th> <th>Name</th>
* Contact nicolas <*****@*****.**> * * Licensed under the "Attribution-NonCommercial-ShareAlike" Vizsage * Public License (the "License"). You may not use this file except * in compliance with the License. Roughly speaking, non-commercial * users may share and modify this code, but must give credit and * share improvements. However, for proper details please * read the full License, available at * http://vizsage.com/license/Vizsage-License-BY-NC-SA.html * and the handy reference for understanding the full license at * http://vizsage.com/license/Vizsage-Deed-BY-NC-SA.html * * Unless required by applicable law or agreed to in writing, any * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ echo form_open(base_url().'users/capability/process_edit/', array('id' => 'capability_edit_form', 'class' => 'form-horizontal')); echo form_hidden('capability_id', $capability_id); print_form_container_open(); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description')); print_dropdown_element(array('name' => 'dependson', 'label' => 'Parent', 'required' => true, 'options' => $parent_caps)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'users/capability'); print_submit_container_close(); print_form_container_close(); echo form_close();
<td><?php echo $part->part_name; ?> </td> <td><?php echo print_textarea_element(array('name' => 'custom_description[' . $part->id . ']', 'placeholder' => 'Qty', 'rows' => 2, 'cols' => 40, 'popover' => true, 'required' => true)); ?> </td> <td> <?php echo print_input_element(array('name' => 'custom_po_number[' . $part->id . ']', 'popover' => true, 'required' => true)); ?> </td> <td> <?php echo print_dropdown_element(array('name' => 'custom_origin[' . $part->id . ']', 'popover' => true, 'required' => true, 'options' => array('Van stock' => 'Van stock', 'Supplier' => 'Supplier', 'Workshop' => 'Workshop'), 'label' => 'Where did this part come from?')); ?> </td> <td> <a class="delete" href="<?php echo base_url(); ?> miniant/stages/parts_used/delete_custom_part/<?php echo $part->id; ?> " title="Delete"> <i class="action-icon fa fa-trash-o" title="Delete this part" onclick="return deletethis();"></i> </a> </td> </tr> <?php
<?php echo '<div id="internal_info" class="' . get_tab_panel_class() . '">'; print_datetime_element(array('label' => 'Call date', 'name' => 'call_date', 'render_static' => $locked || !has_capability('orders:editcalldate'), 'show' => true, 'static_value' => $order_data['call_date'], 'static_displayvalue' => $order_data['call_date'])); print_dropdown_element(array('label' => 'Job type', 'name' => 'order_type_id', 'render_static' => $locked || !has_capability('orders:editordertype') || !empty($order_data['order_type_id']), 'show' => true, 'static_value' => @$order_data['order_type'], 'static_displayvalue' => $dropdowns['order_types'][$order_data['order_type_id']], 'options' => $dropdowns['order_types'], 'required' => true)); if (!empty($order_data['order_type_id'])) { print_hidden_element(array('name' => 'order_type_id', 'default_value' => $order_data['order_type_id'])); if ($is_installation) { print_input_element(array('label' => 'Quotation number', 'name' => 'installation_quotation_number', 'render_static' => $locked, 'show' => true, 'static_value' => @$order_data['installation_quotation_number'], 'required' => true)); } } else { print_input_element(array('label' => 'Quotation number', 'name' => 'installation_quotation_number', 'render_static' => $locked, 'show' => true, 'static_value' => @$order_data['installation_quotation_number'], 'disabledunless' => array('order_type_id' => $this->order_model->get_type_id('Installation')), 'required' => true)); } /* if (has_capability('orders:setappointmentdate') && !$locked) { print_datetime_element('Appointment date', array('name' => 'appointment_date')); } else if (!empty($order_id) || $locked) { print_static_form_element('Appointment date', '<span id="appointment_date">'.$order_data['appointment_date'].'</span>'); } if (has_capability('orders:allocateorders') && !$locked) { print_dropdown_element('technician_id', 'Assigned technician', $dropdowns['technicians'], false); } else if (!empty($order_id) || $locked) { print_static_form_element('Assigned technician', '<span id="technician_name" data-id="'.$order_data['technician_id'].'">'.$order_data['technician_first_name'] . ' ' . $order_data['technician_last_name'].'</span>'); } */ if ($is_maintenance || empty($order_id)) { $params = array('label' => 'Start date', 'name' => 'maintenance_preferred_start_date', 'render_static' => $locked || !has_capability('orders:editpreferredstartdate'), 'show' => true, 'static_value' => $order_data['preferred_start_date'], 'static_displayvalue' => $order_data['preferred_start_date'], 'required' => true); if (empty($order_id)) { // $params['disabledunless'] = array('order_type_id' => $this->order_model->get_type_id('Maintenance')); }
"><?php echo $uncompleted_stage->stage_label; ?> </a></p> <?php } else { ?> <?php echo form_open(base_url() . 'miniant/stages/order_dowd/process/', array('id' => 'order_dowd_edit_form', 'class' => 'order_dowd_edit_form form-horizontal')); ?> <div> <?php $default_dowd_id = empty($order->dowd_id) ? $dowd->id : $order->dowd_id; $default_dowd_text = empty($order->dowd_text) ? $dowd->description : $order->dowd_text; print_hidden_element(array('name' => 'order_id', 'default_value' => $order->id)); print_hidden_element(array('name' => 'assignment_id', 'default_value' => $assignment->id)); print_dropdown_element(array('name' => "dowd_id", 'label' => 'DOWD template', 'classes' => array('dowd_template'), 'options' => $dowds_dropdown, 'default_value' => $default_dowd_id, 'extra_html' => array('data-order_id' => $order->id), 'required' => true)); print_textarea_element(array('placeholder' => 'Description', 'label' => 'Description', 'name' => "dowd_text", 'default_value' => $default_dowd_text, 'cols' => 55, 'rows' => 5, 'extra_html' => array('data-order_id' => $order->id), 'required' => true)); print_submit_container_open(); echo form_submit('button', 'Save DOWD', 'id="submit_button" class="btn btn-primary"'); print_form_container_close(); echo '</div>'; echo form_close(); ?> <?php } ?> </div> </div>
<?php echo form_open(base_url() . 'building/tradesmen/process_edit/', array('id' => 'tradesman_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $tradesman_id); print_form_container_open(); print_input_element(array('label' => 'Name', 'name' => 'name', 'size' => 40, 'required' => true, 'autocomplete' => 'off')); print_dropdown_element(array('label' => 'Type', 'name' => 'type_id', 'options' => $types, 'required' => true)); print_input_element(array('label' => 'Mobile', 'name' => 'mobile', 'size' => 16, 'required' => false)); print_input_element(array('label' => 'Email', 'name' => 'email', 'size' => 60, 'required' => false)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/tradesmen'); print_submit_container_close(); print_form_container_close(); echo form_close();
<?php if (has_capability('orders:viewclientinfo')) { echo '<div id="account_details" class="' . get_tab_panel_class() . '">'; print_dropdown_element(array('label' => 'Maintenance Contract ID', 'name' => 'maintenance_contract_id', 'render_static' => $locked || !has_capability('orders:editaccount'), 'show' => true, 'static_value' => $order_data['maintenance_contract_id'], 'static_displayvalue' => $order_data['maintenance_contract_id'] . ' (' . $order_data['account_name'] . ')', 'options' => $dropdowns['maintenance_contracts'], 'extra_html' => array('onchange' => 'update_from_maintenance_contract_id(this);'), 'required' => false)); print_dropdown_element(array('label' => 'Billing Account', 'name' => 'account_id', 'render_static' => $locked || !has_capability('orders:editaccount'), 'show' => true, 'static_value' => $order_data['account_id'], 'static_displayvalue' => $order_data['account_name'], 'options' => $dropdowns['accounts'], 'extra_html' => array('onchange' => 'update_account_details(this);'), 'required' => true)); if (has_capability('orders:editbillingcontact') && !$locked) { print_dropdown_element(array('label' => 'Billing contact', 'name' => 'billing_contact_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new billing contact'), 'render_static' => $locked || !has_capability('orders:editbillingcontact'), 'static_value' => $order_data['billing_contact_id'], 'static_displayvalue' => $order_data['billing_contact_first_name'] . ' ' . $order_data['billing_contact_surname'], 'show' => has_capability('orders:viewbillingcontact'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'users/contact/edit/' . $order_data['billing_contact_id'], 'required' => true)); } if (has_capability('orders:editsitecontact') && !$locked) { print_dropdown_element(array('label' => 'Job site contact', 'name' => 'site_contact_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new job site contact'), 'render_static' => $locked || !has_capability('orders:editsitecontact'), 'static_value' => $order_data['site_contact_id'], 'static_displayvalue' => $order_data['site_contact_first_name'] . ' ' . $order_data['site_contact_surname'], 'show' => has_capability('orders:viewsitecontact'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'users/contact/edit/' . $order_data['site_contact_id'], 'required' => false)); } if (has_capability('orders:editsiteaddress') && !$locked) { print_dropdown_element(array('label' => 'Site address', 'name' => 'site_address_id', 'options' => array(null => '-- Select or create --', 0 => 'Create a new job site address'), 'render_static' => $locked || !has_capability('orders:editsiteaddress'), 'static_value' => $order_data['site_address_id'], 'static_displayvalue' => $this->address_model->get_formatted_address($order_data['site_address_id']), 'show' => has_capability('orders:viewsiteaddress'), 'extra_html' => array('class' => 'popover_trigger'), 'edit_link' => base_url() . 'addresses/edit/' . $order_data['site_address_id'], 'required' => true)); } ?> <div id="tenancy_table" class="panel panel-info" style="display:none"> <div class="panel-heading"> <h3>Tenancies <div class="pull-right title-buttons"> <button type="button" class="btn btn-info navbar-btn help btn-icon" title="Tenancies" data-content="Add at least one tenancy here. If the site has no tenancies, create one with the name of the billing account." data-placement="left" data-container="body"> <i class="fa fa-question" ></i><span>Help</span> </button> <button id="new-tenancy-button" class="btn btn-success navbar-btn btn-icon"><i class="fa fa-plus"></i> New</button> </div> </h3> </div> <div class="panel-body"> <table id="tenancy-table" class="table table-condensed"> <thead> <tr><th>Name</th><th>Actions</th></tr>
foreach ($suppliers as $supplier) { ?> <div class="panel panel-info"> <div class="panel-heading"><h3><?php echo $supplier['supplier_data']->name; ?> </h3></div> <div class="panel-body"> <div class="pull-right"> <label>Set availability of all parts to:</label> <?php echo form_open(base_url() . 'miniant/servicequotes/servicequote/set_bulk_availability', array('id' => 'bulk_availability_form_' . $supplier['supplier_data']->id, 'class' => 'form-horizontal')); print_hidden_element(array('name' => 'supplier_id', 'default_value' => $supplier['supplier_data']->id)); print_hidden_element(array('name' => 'servicequote_id', 'default_value' => $servicequote_id)); print_dropdown_element(array('id' => 'bulk-change', 'options' => array(null => '-- Select one --', 'In stock' => 'In stock', 'Ex stock 7-10 working days' => 'Ex stock 7-10 working days', 'N/A' => 'N/A', 'Blank' => 'Blank'), 'name' => 'availability', 'label' => 'Set all to', 'extra_html' => array('onchange' => '$(this).parents(\'form\').submit()'), 'show_label' => false)); ?> </div> <table id="servicequote_parts_<?php echo $supplier['supplier_data']->id; ?> " class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Qty</th> <th>Part type</th> <th>Model</th> <th>Unit cost inc. GST</th> <th>Total cost inc. GST</th> <th>Available </th>
echo 'active'; } ?> "> <div class="col-md-12"> <?php $evap_unit_id = $this->unit_model->get_type_id('Evaporative A/C'); $ref_unit_id = $this->unit_model->get_type_id('Refrigerated A/C'); $trans_unit_id = $this->unit_model->get_type_id('Transport Refrigeration'); $other_unit_id = $this->unit_model->get_type_id('Other refrigeration'); $mech_unit_id = $this->unit_model->get_type_id('Mechanical services'); echo form_open(base_url() . 'miniant/stages/unit_serial/process/', array('id' => 'unit_serial_edit_form', 'class' => 'form-horizontal')); echo form_hidden('assignment_id', $unit->assignment_id); echo form_hidden('unit_type_id', $unit->unit_type_id); print_form_container_open(); print_dropdown_element(array('label' => 'Equipment type', 'name' => 'unit_type_id_' . $unit->assignment_id, 'options' => $this->unit_model->get_types_dropdown(), 'required' => true, 'render_static' => true, 'default_value' => $unit->unit_type_id, 'static_displayvalue' => $this->unit_model->get_type_string($unit->unit_type_id))); print_input_element(array('label' => 'Area Serving', 'name' => 'area_serving_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => true, 'static_displayvalue' => $unit->area_serving)); print_input_element(array('label' => 'Brand', 'name' => 'brand_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => true, 'static_displayvalue' => $unit->brand)); print_input_element(array('label' => 'Serial Number', 'name' => 'serial_number_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => false, 'default_value' => $unit->serial_number, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$evap_unit_id}|{$other_unit_id}"))); print_input_element(array('label' => 'Indoor Serial Number', 'name' => 'indoor_serial_number_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => false, 'default_value' => $unit->indoor_serial_number, 'disabledif' => array('unit_type_id_' . $unit->assignment_id => "{$other_unit_id}|{$trans_unit_id}|{$evap_unit_id}"))); print_input_element(array('label' => 'Indoor Serial Number', 'name' => 'indoor_serial_number_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => false, 'default_value' => $unit->indoor_serial_number, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $trans_unit_id))); print_input_element(array('label' => 'Outdoor Serial Number', 'name' => 'outdoor_serial_number_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => false, 'default_value' => $unit->outdoor_serial_number, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}"))); print_input_element(array('label' => 'Outdoor Serial Number', 'name' => 'outdoor_serial_number_' . $unit->assignment_id, 'size' => '30', 'required' => false, 'render_static' => false, 'default_value' => $unit->outdoor_serial_number, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$trans_unit_id}"))); print_submit_container_open(); print_submit_button(); print_submit_container_close(); print_form_container_close(); echo form_close(); ?> </div> </div> <!-- .row -->
print_form_container_open(); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50, 'render_static' => true)); $options = $this->setting_value_model->get_options($setting->id); switch ($this->setting_field_type_model->get_field_type($setting->field_type_id)) { case 'textarea': print_textarea_element(array('name' => 'value', 'cols' => 80, 'rows' => 6, 'label' => 'value', 'default_value' => $setting->value)); break; case 'text': print_text_element(array('name' => 'value', 'label' => 'value', 'default_value' => $setting->value)); break; case 'date': print_date_element(array('name' => 'value', 'label' => 'value', 'default_value' => $setting->value)); break; case 'dropdown': print_dropdown_element(array('name' => 'value', 'label' => 'value', 'options' => $options, 'default_value' => $setting->value)); break; 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);
<?php echo form_open(base_url() . 'building/job_sites/process_edit/', array('id' => 'job_site_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $job_site_id); print_form_container_open(); print_input_element(array('label' => 'Unit', 'name' => 'unit', 'size' => 5, 'required' => false)); print_input_element(array('label' => 'Number', 'name' => 'number', 'size' => 5, 'required' => true)); print_input_element(array('label' => 'Street', 'name' => 'street', 'size' => 30, 'required' => true)); print_autocomplete_element(array('label' => 'Street type', 'name' => 'street_type', 'options_url' => 'addresses/get_street_types', 'required' => true, 'id' => 'autocomplete_street_type')); print_input_element(array('label' => 'Suburb', 'name' => 'city', 'size' => 26, 'required' => true)); print_input_element(array('label' => 'Postcode', 'name' => 'postcode', 'size' => 12, 'required' => true)); print_dropdown_element(array('label' => 'State', 'name' => 'state', 'options' => array('ACT' => 'ACT', 'NSW' => 'NSW', 'NT' => 'NT', 'QLD' => 'QLD', 'SA' => 'SA', 'TAS' => 'TAS', 'VIC' => 'VIC', 'WA' => 'WA'), 'required' => true, 'default_value' => 'WA')); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/job_sites'); print_submit_container_close(); print_form_container_close(); echo form_close();
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/brands/process_edit/', array('id' => 'brand_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('brand_id', $brand_id); print_form_container_open(); print_dropdown_element(array('name' => 'unit_type_id', 'label' => 'Equipment type', 'options' => $unit_types, 'required' => true, 'size' => 50)); print_input_element(array('name' => 'name', 'label' => 'Name', 'required' => true, 'size' => 50)); print_textarea_element(array('name' => 'description', 'cols' => 80, 'rows' => 6, 'label' => 'Description', 'required' => true)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/brands'); print_submit_container_close(); print_form_container_close(); echo '</div>'; echo form_close(); ?> </div> </div>
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>'; echo form_close(); ?>
<div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/orders/assignments/process_edit/', array('id' => 'assignment_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('assignment_id', $assignment_id); echo form_hidden('unit_id', $assignment_data->unit_id); echo form_hidden('order_id', $assignment_data->order_id); echo form_hidden('senior_technician_id', $assignment_data->order_senior_technician_id); print_form_container_open(); print_datetime_element(array('label' => 'Appointment date', 'name' => 'appointment_date', 'required' => true)); print_input_element(array('label' => 'Estimated duration (Mins)', 'name' => 'estimated_duration', 'required' => true)); print_multiselect_element(array('label' => 'Assigned technicians', 'name' => 'technician_id[]', 'required' => true, 'options' => $technicians, 'default_value' => $assigned_technicians)); print_dropdown_element(array('label' => 'Senior technician', 'name' => 'senior_technician_id', 'required' => true, 'default_value' => $senior_technician_id, 'options' => array())); /* print_dropdown_element(array( 'label' => 'Priority level', 'name' => 'priority_level_id', 'required' => true, 'options' => $priority_levels )); */ if (has_capability('assignments:editstatuses')) { print_multiselect_element(array('label' => 'Statuses', 'name' => 'status_id[]', 'required' => false, 'options' => $allstatuses, 'default_value' => $statuses, 'extra_html' => array('style' => "width: 500px; height: auto;"))); } print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/orders/schedule'); print_submit_container_close();
<?php $locked = false; echo '<div id="internal_info" class="' . get_tab_panel_class() . '">'; print_datetime_element(array('label' => 'Creation date', 'name' => 'creation_date', 'render_static' => $locked, 'show' => true, 'required' => true, 'static_value' => $maintenance_contract_data['creation_date'], 'static_displayvalue' => $maintenance_contract_data['creation_date'])); print_date_element(array('label' => 'Next maintenance date', 'name' => 'next_maintenance_date', 'render_static' => $locked || !has_capability('orders:editpreferredstartdate'), 'show' => true, 'required' => true, 'static_value' => $maintenance_contract_data['next_maintenance_date'], 'static_displayvalue' => $maintenance_contract_data['next_maintenance_date'])); print_dropdown_element(array('label' => 'Schedule type', 'name' => 'schedule_interval', 'required' => true, 'options' => array('3' => 'Quarterly', '6' => '6-monthly', '12' => 'Yearly'))); print_tabbed_form_navbuttons(); echo '</div>';
<?php echo form_open_multipart(base_url() . 'miniant/servicequotes/servicequote/process_client_response', array('id' => 'client_response_edit_form', 'class' => 'form-horizontal')); echo '<div class="">'; echo form_hidden('servicequote_id', $servicequote_id); print_form_container_open(); print_dropdown_element(array('label' => 'Response', 'name' => 'client_response', 'required' => true, 'render_static' => $review_only, 'options' => array('On hold' => 'On hold', 'Accepted' => 'Accepted', 'Rejected' => 'Rejected'))); print_textarea_element(array('label' => 'Notes', 'name' => 'client_response_notes', 'render_static' => $review_only, 'required' => false)); $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); $static_displayvalue .= anchor(base_url() . 'miniant/servicequotes/servicequote/delete_attachment/' . $servicequote_id, '<i class="fa fa-trash-o" onclick="return deletethis();" title="Delete this attachment?"></i>'); print_file_element(array('label' => 'Attachment', 'name' => 'attachment', 'show' => true, 'render_static' => !empty($attachment->filename_original) || $review_only, 'static_displayvalue' => $static_displayvalue, 'required' => false)); ?> <?php if ($review_only) { ?> <a href="<?php echo base_url(); ?> miniant/servicequotes/servicequote/prepare_client_quote/<?php echo $servicequote_id; ?> /1" class="btn btn-primary"><i class="fa fa-step-backward"></i>Previous</a> <a href="<?php echo base_url(); ?> miniant/servicequotes/servicequote/record_received_parts/<?php echo $servicequote_id; ?> /1" class="btn btn-primary">Next <i class="fa fa-step-forward"></i></a> <?php
<h3 class="modal-title"><?php 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_dropdown_element(array('label' => 'Tradie', 'name' => 'tradesman_id', 'required' => false, 'options' => $tradesmen, 'default_value' => @$booking->tradesman_id)); print_dropdown_element(array('label' => 'Trade', 'name' => 'tradesman_type_id', 'required' => false, 'options' => $tradesman_types, 'default_value' => @$booking->tradesman_type_id)); print_textarea_element(array('label' => 'Message', 'name' => 'message', 'required' => false, '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; ?>
<?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>';
print_input_element(array( 'label' => 'Event name', 'name' => 'event_name', 'required' => true )); print_textarea_element(array( 'label' => 'Event description', 'name' => 'event_description', 'required' => true )); print_dropdown_element(array( 'label' => 'Role', 'name' => 'role_id', 'options' => $dropdowns['roles'], 'required' => false )); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url().'events/event'); print_submit_container_close(); print_form_container_close(); echo form_close(); ?> <script type="text/javascript"> var system = '<?=$system?>'; </script>
<?php foreach ($unit_fields as $unit_field => $unit_field_label) { ?> <tr> <th><?php echo $unit_field_label; ?> </th> <?php foreach ($units as $unit_id => $unit) { ?> <td> <?php if ($units[$unit_id] === reset($units)) { if (array_key_exists($unit_field, $unit_dropdowns[$unit_id])) { print_dropdown_element(array('options' => $unit_dropdowns[$unit_id][$unit_field], 'default_value' => $unit->{$unit_field}, 'name' => $unit_field, 'popover' => true)); } else { print_input_element(array('name' => $unit_field, 'default_value' => $unit->{$unit_field}, 'popover' => true)); } } else { if (array_key_exists($unit_field, $unit_dropdowns[$unit_id]) && !empty($unit_dropdowns[$unit_id][$unit_field][$unit->{$unit_field}])) { echo $unit_dropdowns[$unit_id][$unit_field][$unit->{$unit_field}]; } else { echo $unit->{$unit_field}; } } ?> </td> <?php } ?>
?> </div> <div class="panel-body"> <table class="refrigerant-table table table-bordered" data-assignment_id="<?php echo $unit->assignment_id; ?> "> <thead><tr><th>Used/Reclaimed</th><th>Refrigerant type</th><th>Qty (Kg)</th><th>Qty (g)</th><th>Bottle Serial Number</th><th>Actions</th></tr></thead> <tbody> <tr id="new-refrigerant"> <td><?php echo print_dropdown_element(array('name' => 'used_or_reclaimed', 'options' => array(0 => 'Used', 1 => 'Reclaimed'), 'required' => true, 'popover' => true)); ?> </td> <td><?php echo print_dropdown_element(array('name' => 'refrigerant_type_id', 'options' => $this->refrigerant_type_model->get_dropdown('name'), 'required' => true, 'popover' => true)); ?> </td> <td><?php echo print_input_element(array('name' => 'quantity_kg', 'placeholder' => '0-999', 'required' => true, 'popover' => true, 'size' => 3)); ?> </td> <td><?php echo print_input_element(array('name' => 'quantity_g', 'placeholder' => '0-999', 'required' => true, 'popover' => true, 'size' => 3)); ?> </td> <td><?php echo print_input_element(array('name' => 'serial_number', 'placeholder' => 'Serial number', 'required' => true, 'popover' => true)); ?> </td> <td><button type="button" id="add-button" class="btn btn-success">Add</button></td>
<div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php $order_unit_id = empty($order_unit_id) ? null : $order_unit_id; echo form_open(base_url() . 'miniant/orders/event/process_edit', array('id' => 'order_unit_edit_form', 'class' => 'form-horizontal sigpad')); echo '<div class="panel-body">'; echo form_hidden('order_unit_id', $order_unit_id); echo form_hidden('order_id', $order_id); print_form_container_open(); print_fieldset_open('Unit information'); print_input_element('Location serving', array('name' => 'location'), true); print_input_element('Faults', array('name' => 'faults'), true); print_dropdown_element('brand_id', 'Brand', $dropdowns['brands'], true); print_dropdown_element('unit_type_id', 'Unit type', $dropdowns['unit_types'], true); print_input_element('Model', array('name' => 'model'), false); print_input_element('Serial No.', array('name' => 'serial_number'), false); print_input_element('Outdoor Model', array('name' => 'outdoor_model'), false); print_input_element('Outdoor Serial No.', array('name' => 'outdoor_serial_number'), false); print_input_element('Indoor Model', array('name' => 'indoor_model'), false); print_input_element('Indoor Serial No.', array('name' => 'indoor_serial_number'), false); print_input_element('Electrical', array('name' => 'electrical'), false); print_input_element('Gas', array('name' => 'gas'), false); print_input_element('Kw', array('name' => 'kilowatts'), false); print_fieldset_close(); echo '<div id="parts-section" '; if (empty($order_unit_id)) { echo 'style="display: none;"'; } echo '>';
} ?> <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');