?>
</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 
}
?>
                <button onclick="$('.modal').modal('hide');" type="button" class="btn btn-lg btn-default" data-dismiss="modal"><i class="fa fa-times"></i>Close</button>
print_input_element(array('label' => 'Pad size (LxHxW)', 'name' => 'pad_size_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $evap_unit_id)));
print_dropdown_element(array('label' => 'Water distribution groove type', 'name' => 'water_distribution_type_groove_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Inner' => 'Inner', 'Centre' => 'Centre', 'Outer' => 'Outer', 'No groove' => 'No groove'), 'required' => true, 'render_static' => false, 'disabledif' => array('filter_pad_type_' . $unit->assignment_id => 'Aspen'), 'default_value' => $unit->water_distribution_type_groove, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $evap_unit_id)));
print_input_element(array('label' => 'Plenium dropper size (LxHxW)', 'name' => 'plenium_dropper_size_' . $unit->assignment_id, 'size' => '3', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $evap_unit_id)));
print_input_element(array('label' => 'Dropper size (LxHxW)', 'name' => 'dropper_size_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $mech_unit_id)));
print_dropdown_element(array('label' => 'No. of spigots', 'name' => 'spigots_count_' . $unit->assignment_id, 'options' => range(1, 10), 'required' => false, 'render_static' => false, 'default_value' => $unit->spigots_count, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $mech_unit_id)));
print_input_element(array('label' => 'Brand of apparatus you are working on', 'name' => 'apparatus_brand_' . $unit->assignment_id, 'size' => '20', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$mech_unit_id}|{$other_unit_id}")));
print_input_element(array('label' => 'Number of spigots on the dropper', 'name' => 'spigot_dropper_count_' . $unit->assignment_id, 'size' => '3', 'required' => false, 'render_static' => false, 'disabledunless' => array('plenium_dropper_size_' . $unit->assignment_id => true, 'unit_type_id_' . $unit->assignment_id => $evap_unit_id)));
print_dropdown_element(array('label' => 'Spigot size (mm)', 'name' => 'spigot_size_' . $unit->assignment_id, 'options' => array(150 => 150, 200 => 200, 250 => 250, 300 => 300, 350 => 350, 400 => 400, 450 => 450, 500 => 500, 550 => 550, 600 => 600), 'required' => false, 'default_value' => $unit->spigot_size, 'render_static' => false, 'disabledunless' => array('plenium_dropper_size_' . $unit->assignment_id => true, 'unit_type_id_' . $unit->assignment_id => "{$evap_unit_id}|{$mech_unit_id}")));
print_input_element(array('label' => 'Return air filter size (LxHxW)', 'name' => 'filter_size_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$wallsplit_id}|{$cassette_id}|{$rac_id}")));
print_input_element(array('label' => 'Return air filter size Frame to Frame (LxHxW in mm)', 'name' => 'return_air_filter_size_frame_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$rac_id}")));
print_input_element(array('label' => 'Return air indoor fan coil boot size (LxHxW in mm)', 'name' => 'return_air_indoor_fan_coil_boot_size_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_dropdown_element(array('label' => 'Return air indoor coil boot No. of spigots', 'name' => 'return_air_indoor_coil_boot_spigots_count_' . $unit->assignment_id, 'options' => range(1, 10), 'required' => false, 'render_static' => false, 'default_value' => $unit->return_air_indoor_coil_boot_spigots_count, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_multiselect_element(array('label' => 'Return air boot spigot sizes (mm)', 'name' => 'return_air_boot_spigot_size_' . $unit->assignment_id, 'options' => array(150 => 150, 200 => 200, 250 => 250, 300 => 300, 350 => 350, 400 => 400, 450 => 450, 500 => 500, 550 => 550, 600 => 600), 'required' => false, 'default_value' => $unit->return_air_boot_spigot_size, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_input_element(array('label' => 'Supply air indoor fan coil boot size (LxHxW in mm)', 'name' => 'supply_air_indoor_fan_coil_boot_size_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_dropdown_element(array('label' => 'Supply air indoor coil boot No. of spigots', 'name' => 'supply_air_indoor_coil_boot_spigots_count_' . $unit->assignment_id, 'options' => range(1, 10), 'required' => false, 'render_static' => false, 'default_value' => $unit->supply_air_indoor_coil_boot_spigots_count, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_multiselect_element(array('label' => 'Supply air boot spigot sizes (mm)', 'name' => 'supply_air_boot_spigot_size_' . $unit->assignment_id, 'options' => array(150 => 150, 200 => 200, 250 => 250, 300 => 300, 350 => 350, 400 => 400, 450 => 450, 500 => 500, 550 => 550, 600 => 600), 'required' => false, 'default_value' => $unit->supply_air_boot_spigot_size, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => $ref_unit_id), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_input_element(array('label' => 'Supply air diffuser face size (LxHxW in mm)', 'name' => 'supply_air_diffuser_face_size_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_input_element(array('label' => 'Supply air diffuser cushion head sizes (LxHxW in mm)', 'name' => 'supply_air_diffuser_cushion_head_sizes_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_input_element(array('label' => 'Quantity of supply air diffusers', 'name' => 'supply_air_diffuser_quantity_' . $unit->assignment_id, 'size' => '4', 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_dropdown_element(array('label' => 'Filter type', 'name' => 'filter_type_' . $unit->assignment_id, 'options' => array(null => '-- Select one --', 'Media' => 'Media', 'Disposable' => 'Disposable', 'Metal' => 'Metal'), 'required' => true, 'render_static' => false, 'default_value' => $unit->filter_type, 'disabledunless' => array('filter_size_' . $unit->assignment_id)));
print_input_element(array('label' => 'Filter outside frame dimensions (LxHxW)', 'name' => 'filter_outside_frame_dimensions_' . $unit->assignment_id, 'size' => '6', 'required' => true, 'render_static' => false, 'disabledunless' => array('filter_type_' . $unit->assignment_id => 'Metal|Disposable')));
print_input_element(array('label' => 'Supply air duct spigot size (mm)', 'name' => 'air_supply_duct_spigot_size_' . $unit->assignment_id, 'size' => '6', 'required' => false, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => "{$cassette_id}|{$wallsplit_id}|{$under_id}|{$rac_id}")));
print_dropdown_element(array('label' => 'Pitch of roof in degrees', 'name' => 'roof_pitch_' . $unit->assignment_id, 'options' => range(1, 40), 'required' => true, 'render_static' => false, 'disabledunless' => array('unit_type_id_' . $unit->assignment_id => "{$ref_unit_id}|{$evap_unit_id}"), 'disabledif' => array('unitry_type_id_' . $unit->assignment_id => $rac_id), 'default_value' => $unit->roof_pitch));
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)));
Example #3
0
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();
print_form_container_close();
if (has_capability('orders:editassignments')) {
    echo '<a href="' . base_url() . 'miniant/stages/assignment_details/index/' . $assignment_id . '" class="btn btn-primary">Review this assignment</a>';
}
echo '</div>';
echo form_close();
?>
</div>
</div>