<?php
			$optionsArray = array(
	'totals' => array(
		'id' => array(
			'totalsType' => '' 
		),
		'divert_no' => array(
			'totalsType' => '' 
		),
		'divert_date' => array(
			'totalsType' => '' 
		),
		'logistics_job_id' => array(
			'totalsType' => '' 
		),
		'trip_ticket_id' => array(
			'totalsType' => '' 
		),
		'delivery_receipt_id' => array(
			'totalsType' => '' 
		),
		'reason_for_divert' => array(
			'totalsType' => '' 
		),
		'original_destination_location_id' => array(
			'totalsType' => '' 
		),
		'original_destination_name' => array(
			'totalsType' => '' 
		),
		'new_destination_location_id' => array(
			'totalsType' => '' 
		),
		'new_destination_name' => array(
			'totalsType' => '' 
		),
		'original_recipient_name' => array(
			'totalsType' => '' 
		),
		'new_recipient_name' => array(
			'totalsType' => '' 
		),
		'approval_status' => array(
			'totalsType' => '' 
		),
		'rejection_reason' => array(
			'totalsType' => '' 
		),
		'alert_method' => array(
			'totalsType' => '' 
		),
		'driver_notified' => array(
			'totalsType' => '' 
		),
		'driver_notified_datetime' => array(
			'totalsType' => '' 
		),
		'recipient_notified' => array(
			'totalsType' => '' 
		),
		'recipient_notified_datetime' => array(
			'totalsType' => '' 
		),
		'service_provider_notified' => array(
			'totalsType' => '' 
		),
		'service_provider_notified_datetime' => array(
			'totalsType' => '' 
		),
		'status' => array(
			'totalsType' => '' 
		),
		'remarks' => array(
			'totalsType' => '' 
		),
		'created_by' => array(
			'totalsType' => '' 
		),
		'created_at' => array(
			'totalsType' => '' 
		),
		'updated_by' => array(
			'totalsType' => '' 
		),
		'updated_at' => array(
			'totalsType' => '' 
		),
		'logistics_job_no' => array(
			'totalsType' => '' 
		),
		'trip_ticket_no' => array(
			'totalsType' => '' 
		),
		'delivery_receipt_no' => array(
			'totalsType' => '' 
		),
		'requested_by_id' => array(
			'totalsType' => '' 
		),
		'requested_by_name' => array(
			'totalsType' => '' 
		),
		'requested_by_position' => array(
			'totalsType' => '' 
		),
		'requested_by_office_unit' => array(
			'totalsType' => '' 
		),
		'requested_by_section' => array(
			'totalsType' => '' 
		),
		'requested_by_signature_file' => array(
			'totalsType' => '' 
		),
		'requested_by_signed_date' => array(
			'totalsType' => '' 
		),
		'approved_by_id' => array(
			'totalsType' => '' 
		),
		'approved_by_name' => array(
			'totalsType' => '' 
		),
		'approved_by_position' => array(
			'totalsType' => '' 
		),
		'approved_by_office_unit' => array(
			'totalsType' => '' 
		),
		'approved_by_section' => array(
			'totalsType' => '' 
		),
		'approved_by_signature_file' => array(
			'totalsType' => '' 
		),
		'approved_by_signed_date' => array(
			'totalsType' => '' 
		),
		'divert_reason_category' => array(
			'totalsType' => '' 
		),
		'original_delivery_address' => array(
			'totalsType' => '' 
		),
		'new_delivery_address' => array(
			'totalsType' => '' 
		),
		'transport_mode' => array(
			'totalsType' => '' 
		),
		'transport_provider_name' => array(
			'totalsType' => '' 
		),
		'transport_vehicle_details' => array(
			'totalsType' => '' 
		),
		'supporting_document_file' => array(
			'totalsType' => '' 
		),
		'approved_document_file' => array(
			'totalsType' => '' 
		),
		'request_dispatch_plan_id' => array(
			'totalsType' => '' 
		),
		'source_reference_type' => array(
			'totalsType' => '' 
		),
		'source_reference_id' => array(
			'totalsType' => '' 
		),
		'source_reference_no' => array(
			'totalsType' => '' 
		),
		'applied_by' => array(
			'totalsType' => '' 
		),
		'applied_at' => array(
			'totalsType' => '' 
		),
		'original_contact_no' => array(
			'totalsType' => '' 
		),
		'new_contact_no' => array(
			'totalsType' => '' 
		),
		'print' => array(
			'totalsType' => '' 
		) 
	),
	'fields' => array(
		'gridFields' => array( 
			'divert_no',
			'divert_date',
			'logistics_job_id',
			'trip_ticket_id',
			'delivery_receipt_id',
			'reason_for_divert',
			'original_destination_location_id',
			'original_destination_name',
			'new_destination_location_id',
			'new_destination_name',
			'original_recipient_name',
			'new_recipient_name',
			'remarks',
			'logistics_job_no',
			'trip_ticket_no',
			'delivery_receipt_no',
			'requested_by_id',
			'requested_by_name',
			'requested_by_position',
			'requested_by_office_unit',
			'requested_by_section',
			'requested_by_signature_file',
			'requested_by_signed_date',
			'approved_by_id',
			'approved_by_name',
			'approved_by_position',
			'approved_by_office_unit',
			'approved_by_section',
			'approved_by_signature_file',
			'approved_by_signed_date',
			'divert_reason_category',
			'original_delivery_address',
			'new_delivery_address',
			'transport_mode',
			'transport_provider_name',
			'transport_vehicle_details',
			'supporting_document_file',
			'approved_document_file',
			'request_dispatch_plan_id',
			'source_reference_type',
			'source_reference_id',
			'source_reference_no',
			'applied_by',
			'applied_at',
			'original_contact_no',
			'new_contact_no',
			'print' 
		),
		'exportFields' => array( 
			'divert_no',
			'divert_date',
			'logistics_job_id',
			'trip_ticket_id',
			'delivery_receipt_id',
			'reason_for_divert',
			'original_destination_location_id',
			'original_destination_name',
			'new_destination_location_id',
			'new_destination_name',
			'original_recipient_name',
			'new_recipient_name',
			'remarks',
			'logistics_job_no',
			'trip_ticket_no',
			'delivery_receipt_no',
			'requested_by_id',
			'requested_by_name',
			'requested_by_position',
			'requested_by_office_unit',
			'requested_by_section',
			'requested_by_signature_file',
			'requested_by_signed_date',
			'approved_by_id',
			'approved_by_name',
			'approved_by_position',
			'approved_by_office_unit',
			'approved_by_section',
			'approved_by_signature_file',
			'approved_by_signed_date',
			'divert_reason_category',
			'original_delivery_address',
			'new_delivery_address',
			'transport_mode',
			'transport_provider_name',
			'transport_vehicle_details',
			'supporting_document_file',
			'approved_document_file',
			'request_dispatch_plan_id',
			'source_reference_type',
			'source_reference_id',
			'source_reference_no',
			'applied_by',
			'applied_at',
			'original_contact_no',
			'new_contact_no',
			'print' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'divert_no' => array( 
				'export_field1' 
			),
			'divert_date' => array( 
				'export_field2' 
			),
			'logistics_job_id' => array( 
				'export_field3' 
			),
			'trip_ticket_id' => array( 
				'export_field4' 
			),
			'delivery_receipt_id' => array( 
				'export_field5' 
			),
			'reason_for_divert' => array( 
				'export_field7' 
			),
			'original_destination_location_id' => array( 
				'export_field8' 
			),
			'original_destination_name' => array( 
				'export_field9' 
			),
			'new_destination_location_id' => array( 
				'export_field11' 
			),
			'new_destination_name' => array( 
				'export_field12' 
			),
			'original_recipient_name' => array( 
				'export_field14' 
			),
			'new_recipient_name' => array( 
				'export_field15' 
			),
			'remarks' => array( 
				'export_field33' 
			),
			'logistics_job_no' => array( 
				'export_field' 
			),
			'trip_ticket_no' => array( 
				'export_field6' 
			),
			'delivery_receipt_no' => array( 
				'export_field10' 
			),
			'requested_by_id' => array( 
				'export_field13' 
			),
			'requested_by_name' => array( 
				'export_field16' 
			),
			'requested_by_position' => array( 
				'export_field17' 
			),
			'requested_by_office_unit' => array( 
				'export_field18' 
			),
			'requested_by_section' => array( 
				'export_field19' 
			),
			'requested_by_signature_file' => array( 
				'export_field20' 
			),
			'requested_by_signed_date' => array( 
				'export_field21' 
			),
			'approved_by_id' => array( 
				'export_field22' 
			),
			'approved_by_name' => array( 
				'export_field23' 
			),
			'approved_by_position' => array( 
				'export_field24' 
			),
			'approved_by_office_unit' => array( 
				'export_field25' 
			),
			'approved_by_section' => array( 
				'export_field26' 
			),
			'approved_by_signature_file' => array( 
				'export_field27' 
			),
			'approved_by_signed_date' => array( 
				'export_field28' 
			),
			'divert_reason_category' => array( 
				'export_field29' 
			),
			'original_delivery_address' => array( 
				'export_field30' 
			),
			'new_delivery_address' => array( 
				'export_field31' 
			),
			'transport_mode' => array( 
				'export_field32' 
			),
			'transport_provider_name' => array( 
				'export_field34' 
			),
			'transport_vehicle_details' => array( 
				'export_field35' 
			),
			'supporting_document_file' => array( 
				'export_field36' 
			),
			'approved_document_file' => array( 
				'export_field37' 
			),
			'request_dispatch_plan_id' => array( 
				'export_field38' 
			),
			'source_reference_type' => array( 
				'export_field39' 
			),
			'source_reference_id' => array( 
				'export_field40' 
			),
			'source_reference_no' => array( 
				'export_field41' 
			),
			'applied_by' => array( 
				'export_field42' 
			),
			'applied_at' => array( 
				'export_field43' 
			),
			'original_contact_no' => array( 
				'export_field44' 
			),
			'new_contact_no' => array( 
				'export_field45' 
			),
			'print' => array( 
				'export_field46' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => false,
		'add' => false,
		'view' => false,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'supertop' => array( 
					 
				),
				'top' => array( 
					'export_header' 
				),
				'grid' => array( 
					'export_field1',
					'export_field2',
					'export_field3',
					'export_field4',
					'export_field5',
					'export_field7',
					'export_field8',
					'export_field9',
					'export_field11',
					'export_field12',
					'export_field14',
					'export_field15',
					'export_field33',
					'export_field',
					'export_field6',
					'export_field10',
					'export_field13',
					'export_field16',
					'export_field17',
					'export_field18',
					'export_field19',
					'export_field20',
					'export_field21',
					'export_field22',
					'export_field23',
					'export_field24',
					'export_field25',
					'export_field26',
					'export_field27',
					'export_field28',
					'export_field29',
					'export_field30',
					'export_field31',
					'export_field32',
					'export_field34',
					'export_field35',
					'export_field36',
					'export_field37',
					'export_field38',
					'export_field39',
					'export_field40',
					'export_field41',
					'export_field42',
					'export_field43',
					'export_field44',
					'export_field45',
					'export_field46' 
				),
				'footer' => array( 
					'export_export',
					'export_cancel' 
				) 
			),
			'formXtTags' => array(
				'supertop' => array( 
					 
				) 
			),
			'itemForms' => array(
				'export_header' => 'top',
				'export_field1' => 'grid',
				'export_field2' => 'grid',
				'export_field3' => 'grid',
				'export_field4' => 'grid',
				'export_field5' => 'grid',
				'export_field7' => 'grid',
				'export_field8' => 'grid',
				'export_field9' => 'grid',
				'export_field11' => 'grid',
				'export_field12' => 'grid',
				'export_field14' => 'grid',
				'export_field15' => 'grid',
				'export_field33' => 'grid',
				'export_field' => 'grid',
				'export_field6' => 'grid',
				'export_field10' => 'grid',
				'export_field13' => 'grid',
				'export_field16' => 'grid',
				'export_field17' => 'grid',
				'export_field18' => 'grid',
				'export_field19' => 'grid',
				'export_field20' => 'grid',
				'export_field21' => 'grid',
				'export_field22' => 'grid',
				'export_field23' => 'grid',
				'export_field24' => 'grid',
				'export_field25' => 'grid',
				'export_field26' => 'grid',
				'export_field27' => 'grid',
				'export_field28' => 'grid',
				'export_field29' => 'grid',
				'export_field30' => 'grid',
				'export_field31' => 'grid',
				'export_field32' => 'grid',
				'export_field34' => 'grid',
				'export_field35' => 'grid',
				'export_field36' => 'grid',
				'export_field37' => 'grid',
				'export_field38' => 'grid',
				'export_field39' => 'grid',
				'export_field40' => 'grid',
				'export_field41' => 'grid',
				'export_field42' => 'grid',
				'export_field43' => 'grid',
				'export_field44' => 'grid',
				'export_field45' => 'grid',
				'export_field46' => 'grid',
				'export_export' => 'footer',
				'export_cancel' => 'footer' 
			),
			'itemLocations' => array(
				 
			),
			'itemVisiblity' => array(
				 
			) 
		),
		'itemsByType' => array(
			'export_header' => array( 
				'export_header' 
			),
			'export_export' => array( 
				'export_export' 
			),
			'export_cancel' => array( 
				'export_cancel' 
			),
			'export_field' => array( 
				'export_field1',
				'export_field2',
				'export_field3',
				'export_field4',
				'export_field5',
				'export_field7',
				'export_field8',
				'export_field9',
				'export_field11',
				'export_field12',
				'export_field14',
				'export_field15',
				'export_field33',
				'export_field',
				'export_field6',
				'export_field10',
				'export_field13',
				'export_field16',
				'export_field17',
				'export_field18',
				'export_field19',
				'export_field20',
				'export_field21',
				'export_field22',
				'export_field23',
				'export_field24',
				'export_field25',
				'export_field26',
				'export_field27',
				'export_field28',
				'export_field29',
				'export_field30',
				'export_field31',
				'export_field32',
				'export_field34',
				'export_field35',
				'export_field36',
				'export_field37',
				'export_field38',
				'export_field39',
				'export_field40',
				'export_field41',
				'export_field42',
				'export_field43',
				'export_field44',
				'export_field45',
				'export_field46' 
			) 
		),
		'cellMaps' => array(
			 
		) 
	),
	'loginForm' => array(
		'loginForm' => 3 
	),
	'page' => array(
		'verticalBar' => false,
		'labeledButtons' => array(
			'update_records' => array(
				 
			),
			'print_pages' => array(
				 
			),
			'register_activate_message' => array(
				 
			),
			'details_found' => array(
				 
			) 
		),
		'hasCustomButtons' => false,
		'customButtons' => array( 
			 
		),
		'codeSnippets' => array( 
			 
		),
		'clickHandlerSnippets' => array( 
			 
		),
		'hasNotifications' => false,
		'menus' => array( 
			 
		),
		'calcTotalsFor' => 1,
		'hasCharts' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			 
		) 
	),
	'export' => array(
		'format' => 2,
		'selectFields' => false,
		'delimiter' => ',',
		'selectDelimiter' => false,
		'exportFileTypes' => array(
			'excel' => true,
			'word' => true,
			'csv' => true,
			'xml' => false 
		) 
	) 
);
			$pageArray = array(
	'id' => 'export',
	'type' => 'export',
	'layoutId' => 'first',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'supertop' => array(
			'modelId' => 'panel-top',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'export-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'export_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'grid' => array(
			'modelId' => 'export-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'export_field1',
						'export_field2',
						'export_field3',
						'export_field4',
						'export_field5',
						'export_field7',
						'export_field8',
						'export_field9',
						'export_field11',
						'export_field12',
						'export_field14',
						'export_field15',
						'export_field33',
						'export_field',
						'export_field6',
						'export_field10',
						'export_field13',
						'export_field16',
						'export_field17',
						'export_field18',
						'export_field19',
						'export_field20',
						'export_field21',
						'export_field22',
						'export_field23',
						'export_field24',
						'export_field25',
						'export_field26',
						'export_field27',
						'export_field28',
						'export_field29',
						'export_field30',
						'export_field31',
						'export_field32',
						'export_field34',
						'export_field35',
						'export_field36',
						'export_field37',
						'export_field38',
						'export_field39',
						'export_field40',
						'export_field41',
						'export_field42',
						'export_field43',
						'export_field44',
						'export_field45',
						'export_field46' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'footer' => array(
			'modelId' => 'export-footer',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						),
						array(
							'cell' => 'c2' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						 
					) 
				),
				'c2' => array(
					'model' => 'c2',
					'items' => array( 
						'export_export',
						'export_cancel' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		) 
	),
	'items' => array(
		'export_header' => array(
			'type' => 'export_header' 
		),
		'export_export' => array(
			'type' => 'export_export' 
		),
		'export_cancel' => array(
			'type' => 'export_cancel' 
		),
		'export_field1' => array(
			'field' => 'divert_no',
			'type' => 'export_field' 
		),
		'export_field2' => array(
			'field' => 'divert_date',
			'type' => 'export_field' 
		),
		'export_field3' => array(
			'field' => 'logistics_job_id',
			'type' => 'export_field' 
		),
		'export_field4' => array(
			'field' => 'trip_ticket_id',
			'type' => 'export_field' 
		),
		'export_field5' => array(
			'field' => 'delivery_receipt_id',
			'type' => 'export_field' 
		),
		'export_field7' => array(
			'field' => 'reason_for_divert',
			'type' => 'export_field' 
		),
		'export_field8' => array(
			'field' => 'original_destination_location_id',
			'type' => 'export_field' 
		),
		'export_field9' => array(
			'field' => 'original_destination_name',
			'type' => 'export_field' 
		),
		'export_field11' => array(
			'field' => 'new_destination_location_id',
			'type' => 'export_field' 
		),
		'export_field12' => array(
			'field' => 'new_destination_name',
			'type' => 'export_field' 
		),
		'export_field14' => array(
			'field' => 'original_recipient_name',
			'type' => 'export_field' 
		),
		'export_field15' => array(
			'field' => 'new_recipient_name',
			'type' => 'export_field' 
		),
		'export_field33' => array(
			'field' => 'remarks',
			'type' => 'export_field' 
		),
		'export_field' => array(
			'field' => 'logistics_job_no',
			'type' => 'export_field' 
		),
		'export_field6' => array(
			'field' => 'trip_ticket_no',
			'type' => 'export_field' 
		),
		'export_field10' => array(
			'field' => 'delivery_receipt_no',
			'type' => 'export_field' 
		),
		'export_field13' => array(
			'field' => 'requested_by_id',
			'type' => 'export_field' 
		),
		'export_field16' => array(
			'field' => 'requested_by_name',
			'type' => 'export_field' 
		),
		'export_field17' => array(
			'field' => 'requested_by_position',
			'type' => 'export_field' 
		),
		'export_field18' => array(
			'field' => 'requested_by_office_unit',
			'type' => 'export_field' 
		),
		'export_field19' => array(
			'field' => 'requested_by_section',
			'type' => 'export_field' 
		),
		'export_field20' => array(
			'field' => 'requested_by_signature_file',
			'type' => 'export_field' 
		),
		'export_field21' => array(
			'field' => 'requested_by_signed_date',
			'type' => 'export_field' 
		),
		'export_field22' => array(
			'field' => 'approved_by_id',
			'type' => 'export_field' 
		),
		'export_field23' => array(
			'field' => 'approved_by_name',
			'type' => 'export_field' 
		),
		'export_field24' => array(
			'field' => 'approved_by_position',
			'type' => 'export_field' 
		),
		'export_field25' => array(
			'field' => 'approved_by_office_unit',
			'type' => 'export_field' 
		),
		'export_field26' => array(
			'field' => 'approved_by_section',
			'type' => 'export_field' 
		),
		'export_field27' => array(
			'field' => 'approved_by_signature_file',
			'type' => 'export_field' 
		),
		'export_field28' => array(
			'field' => 'approved_by_signed_date',
			'type' => 'export_field' 
		),
		'export_field29' => array(
			'field' => 'divert_reason_category',
			'type' => 'export_field' 
		),
		'export_field30' => array(
			'field' => 'original_delivery_address',
			'type' => 'export_field' 
		),
		'export_field31' => array(
			'field' => 'new_delivery_address',
			'type' => 'export_field' 
		),
		'export_field32' => array(
			'field' => 'transport_mode',
			'type' => 'export_field' 
		),
		'export_field34' => array(
			'field' => 'transport_provider_name',
			'type' => 'export_field' 
		),
		'export_field35' => array(
			'field' => 'transport_vehicle_details',
			'type' => 'export_field' 
		),
		'export_field36' => array(
			'field' => 'supporting_document_file',
			'type' => 'export_field' 
		),
		'export_field37' => array(
			'field' => 'approved_document_file',
			'type' => 'export_field' 
		),
		'export_field38' => array(
			'field' => 'request_dispatch_plan_id',
			'type' => 'export_field' 
		),
		'export_field39' => array(
			'field' => 'source_reference_type',
			'type' => 'export_field' 
		),
		'export_field40' => array(
			'field' => 'source_reference_id',
			'type' => 'export_field' 
		),
		'export_field41' => array(
			'field' => 'source_reference_no',
			'type' => 'export_field' 
		),
		'export_field42' => array(
			'field' => 'applied_by',
			'type' => 'export_field' 
		),
		'export_field43' => array(
			'field' => 'applied_at',
			'type' => 'export_field' 
		),
		'export_field44' => array(
			'field' => 'original_contact_no',
			'type' => 'export_field' 
		),
		'export_field45' => array(
			'field' => 'new_contact_no',
			'type' => 'export_field' 
		),
		'export_field46' => array(
			'field' => 'print',
			'type' => 'export_field' 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'white',
	'imagePosition' => 'right',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	),
	'exportFormat' => 2,
	'exportDelimiter' => ',',
	'exportSelectDelimiter' => false,
	'exportSelectFields' => false 
);
		?>