function print_popover_form($title, $id, $fields, $multipart = false, $label = false) { echo '<div id="' . $id . '_popup" class="popover-markup"> <div class="head hide">' . $title . '</div> <div class="content hide">'; print_form_container_open($id, $multipart); foreach ($fields as $field) { $field['popover'] = $id; if (!isset($field['show_label'])) { $field['show_label'] = $label; } $function = 'print_' . $field['type'] . '_element'; if (function_exists($function)) { $function($field); } else { print_input_element($field); } } print_form_container_close(1, $id, $fields); echo '</div> <div class="footer hide"></div> </div>'; }
<?php $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); echo form_open_multipart(base_url() . 'building/job_site_attachments/process_edit/', array('id' => 'job_site_attachment_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $job_site_attachment_id); echo form_hidden('job_site_id', $job_site_id); print_form_container_open(); print_input_element(array('label' => 'Description', 'name' => 'description', 'size' => 30, 'required' => false)); print_file_element(array('label' => 'PDF Attachment', 'name' => 'attachment', 'render_static' => !has_capability('building:viewjobsites') || !empty($attachment->filename_original), 'show' => true, 'static_displayvalue' => $static_displayvalue, 'required' => false)); print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'building/job_site_attachments/browse/html/' . $job_site_id); print_submit_container_close(); print_form_container_close(); echo form_close();
?> </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> </tr> </tbody> </table> </div><!-- .panel-body --> </div><!-- .panel --> </div><!-- .col-md-6 --> <div class="col-md-3"> <div class="panel panel-info"> <?php $info_title_options['extra'] = '<a class="btn btn-primary unsaved-warning" href="' . base_url() . 'miniant/stages/unit_details/index/' . $unit->assignment_id . '">Edit</a>'; ?> <div class="panel-heading"><?php
)); print_submit_container_open(); echo form_submit('button', 'Get login details', 'id="submit_button" class="btn btn-primary"'); print_submit_container_close(); print_form_container_close(); echo form_close(); echo "</div></div>"; echo '<p style="color: red">Note: your login will only work for one session. Enter your email address in the form above to re-apply for access if your session has expired.</p>'; } else { echo form_open(base_url().'login', array('id' => 'login_form', 'class' => 'form-horizontal')); print_form_container_open(); print_input_element(array( 'label' => 'Username', 'name' => 'username', 'size' => 25, 'required' => true )); print_password_element(array( 'label' => 'Password', 'name' => 'password', 'size' => 25, 'required' => true )); print_static_form_element('', '<a href="login/reset_password">Forgot your username or password?</a>'); print_submit_container_open(); echo form_submit('button', 'Login', 'id="submit_button" class="btn btn-primary"'); print_submit_container_close(); print_form_container_close(); echo form_close();
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(); print_form_container_close(); echo '</div>'; 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/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');
<?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>';
?> <?php foreach ($unit->custom_parts as $part) { ?> <tr> <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">
<div id="detailsmessage"></div> <?=form_open($form_action, array('id' => 'userform', 'class' => 'form-horizontal', 'role' => 'form'))?> <div class="panel panel-info"> <?php print_hidden_element(array('name' => 'user_id'))?> <?php print_hidden_element(array('name' => 'action'))?> <div class="panel-heading"><?=get_title($details_title_options)?></div> <div id="details" class="panel-body"> <div id="detailsmessage"></div> <?php if (!empty($user_id)) print_static_form_element('ID', $user_id); print_input_element(array('name' => 'first_name', 'label' => 'First Name', 'required' => true)); print_input_element(array('name' => 'last_name', 'label' => 'Last Name', 'required' => true)); $back_link = base_url()."users/user"; if ($type == 'staff') { print_input_element(array('name' => 'username', 'label' =>'Username')); // Only show password if admin has donanything for users if (empty($user_id) || (has_capability('site:doanything') || ($this->session->userdata('user_id') == $user_id && has_capability('users:editownaccount')))) { print_password_element(array('label' => 'Password', 'name' => 'password', 'required' => false)); } print_textarea_element(array('name' => 'signature', 'cols' => 40, 'rows' => 3, 'label' => 'Signature')); } else if ($type == 'contact') { $back_link = base_url()."users/contact"; } print_submit_container_open(); echo form_submit('submit', 'Submit', 'id="submit_button" class="btn btn-default"'); if (has_capability('users:viewallusers')) { echo form_button(array('name' => 'button', 'content' => 'Back to '.ucfirst($type).' list', 'class'=>'btn btn-default', 'onclick' => "window.location='".$back_link."';"));
$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 --> <?php } ?> </div> </div> </div> <!-- .panel-body --> </div> <!-- .panel -->
<div class="panel panel-primary"> <div class="panel-heading"><?php echo get_title($title_options); ?> </div> <?php echo form_open(base_url() . 'miniant/refrigerant_types/process_edit/', array('id' => 'refrigerant_type_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('refrigerant_type_id', $refrigerant_type_id); print_form_container_open(); print_input_element(array('label' => 'Refrigerant type Name', 'name' => 'name', 'required' => true, 'render_static' => !has_capability('site:editrefrigerant_types'))); if (has_capability('site:editrefrigerant_types')) { print_submit_container_open(); print_submit_button(); print_cancel_button(base_url() . 'miniant/refrigerant_types'); print_submit_container_close(); } print_form_container_close(); echo '</div>'; echo form_close(); ?> </div> </div>
</td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="panel panel-info"> <div class="panel-heading"><h3>Diagnostic</h3></div> <div class="panel-body"> <p>Enter the amount of time and cost of diagnostic already performed by your technicians on this particular issue.</p> <?php print_input_element(array('name' => 'diagnostic_time', 'label' => 'Time spent on diagnostic (h)', 'required' => true, 'info_text' => 'Enter the time spent by the technician on diagnosing this issue only', 'default_value' => $servicequote->diagnostic_time)); print_input_element(array('name' => 'diagnostic_cost', 'label' => 'Cost of the diagnostic', 'required' => true, 'info_text' => 'Enter the cost of the diagnostic already invoiced to the client', 'default_value' => $servicequote->diagnostic_cost)); ?> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-info"> <div class="panel-heading"><h3>Description of works</h3></div> <div class="panel-body"> <h4>DOWD</h4> <ul> <?php foreach ($dowds as $dowd) { ?> <li><?php
<br /> <button class="btn btn-info" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample" style="margin-top: 15px"> Formatting options </button> <div class="collapse" id="collapseExample"> <div> <?php print_input_element(array('name' => 'margin_left', 'default_value' => 15, 'label' => 'Left margin', 'size' => 5)); ?> <?php print_input_element(array('name' => 'margin_right', 'default_value' => 15, 'label' => 'Right margin', 'size' => 5)); ?> <?php // print_input_element(array('name' => 'margin_top', 'default_value' => 66, 'label' => 'Top margin')); ?> <?php // print_input_element(array('name' => 'header_margin', 'default_value' => 5, 'label' => 'Header margin')); ?> <?php print_input_element(array('name' => 'footer_margin', 'default_value' => 10, 'label' => 'Footer margin', 'size' => 5)); ?> </div> </div>
print_input_element(array( 'label' => 'Secondary mobile', 'name' => 'mobile', 'required' => false )); print_input_element(array( 'label' => 'Primary email', 'name' => 'email', '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
* 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().'settings/process_edit/', array('id' => 'setting_edit_form', 'class' => 'form-horizontal')); echo '<div class="panel-body">'; echo form_hidden('setting_id', $setting_id); 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;
<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_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_input_element(array('label' => 'Corrected time', 'name' => 'technician_time', 'required' => true, 'data-slider-min' => 0, 'data-slider-max' => 99, 'data-slider-step' => 0.25, 'data-slider-value' => $corrected_time_value, 'data-slider-orientation' => 'horizontal', 'id' => 'slider-corrected-time', 'style' => 'width: 600px')); 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(); echo '</div>'; echo form_close(); ?> </div> <script type="text/javascript"> $(function() { $('#slider-corrected-time').slider({ value: <?php echo $corrected_time_value; ?>
* 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().'login/reset_password', array('id' => 'reset_password_form', 'class' => 'form-horizontal')); print_form_container_open(); print_static_form_element('', 'Enter your username <b><i><u>OR</u></i></b> your email address to receive a new password.'); print_input_element(array( 'label' => 'Username', 'name' => 'username', 'size' => 25, 'required' => false )); print_input_element(array( 'label' => 'Email address', 'name' => 'email', 'size' => 25, 'required' => false )); print_submit_container_open(); echo form_submit('button', 'Submit', 'id="submit_button" class="btn btn-default"'); print_submit_container_close(); print_form_container_close(); echo form_close();
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')); } print_date_element($params); } else { if (!$is_maintenance || empty($order_data)) { $params = array('label' => 'Preferred job date', 'name' => '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']); if (empty($order_id)) { $params['disabledif'] = array('order_type_id' => $this->order_model->get_type_id('Maintenance')); } print_date_element($params); } } print_input_element(array('label' => 'Customer\'s PO number', 'name' => 'customer_po_number', 'render_static' => $locked || !has_capability('orders:editcustomerponumber'), 'show' => true, 'static_value' => @$order_data['customer_po_number'])); $attachment = $order_data['attachment']; $static_displayvalue = empty($attachment->filename_original) ? '' : anchor($attachment->url, $attachment->filename_original, array('target' => '_blank')) . nbs(2); $static_displayvalue .= anchor(base_url() . 'miniant/orders/order/delete_attachment/' . $order_id, '<i class="fa fa-trash-o" onclick="return deletethis();" title="Delete this attachment?"></i>'); print_file_element(array('label' => 'Attachment', 'name' => 'attachment', 'render_static' => $locked || !has_capability('orders:addattachment') || !empty($order_data['attachment']->filename_original), 'show' => true, 'static_displayvalue' => $static_displayvalue, 'required' => false)); print_tabbed_form_navbuttons(); echo '</div>';
'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_submit_container_open(); echo form_submit('button', 'Submit', 'id="submit_button" class="btn btn-primary"'); 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/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>';
* 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();
* either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ echo form_open(base_url().'types/process_edit/', array('id' => 'type_edit_form', 'class' => 'form-horizontal')); echo form_hidden('id', $id); print_form_container_open(); print_input_element(array( 'label' => 'Name', 'name' => 'name', 'size' => 10, 'required' => true) ); print_input_element(array( 'label' => 'Entity', 'name' => 'entity', 'size' => 10, 'info_text' => 'This is the type of type, in a way. If you are editing a type of address, the entity is address. If you are editing a type of building, the entity is building.', 'required' => true) ); print_textarea_element(array( 'label' => 'Description', 'name' => 'description', 'cols' => 30, 'required' => false) ); print_submit_container_open(); echo form_submit('button', 'Submit', 'id="submit_button" class="btn btn-primary"'); print_submit_container_close(); print_form_container_close(); echo form_close();
?> <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 } ?> </tr> <?php
* 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().'events/process_edit/'.$system, array('id' => $system.'_event_edit_form', 'class' => 'form-horizontal')); echo form_hidden('event_id', $event_id); print_form_container_open(); 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 ));
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 '>'; print_fieldset_open('Parts and Labour'); ?> <br /> <div class="table-responsive"> <table id="parts_table" class="table table-condensed table-bordered"> <thead><tr><th>Part/Labour</th><th>Quantity</th><th style="width: 220px">Actions</th></tr></thead> <tbody> <tr> <td colspan="3">
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)) { print_fieldset_open('Billing contacts'); if (!empty($account_data['billing_contacts'])) { print_contact_table($account_data['billing_contacts']); } else { echo "<p>No billing contacts</p>"; } print_fieldset_close();