<?php
			$optionsArray = array(
	'details' => array(
		'purchaseorderdetail' => array(
			'displayPreview' => 1,
			'previewPageId' => 'list' 
		) 
	),
	'captcha' => array(
		'captcha' => false 
	),
	'fields' => array(
		'gridFields' => array( 
			'date',
			'reference_number',
			'supplier_id',
			'supplier_name',
			'address',
			'contract_number',
			'philgeps_no',
			'tin',
			'po_type',
			'agreement_type',
			'call_off_number',
			'pr_id',
			'fund_cluster_id',
			'note',
			'delivery_date',
			'mode_of_procurement_id',
			'delivery_term',
			'payment_term',
			'contact_no' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'date' => array( 
				'integrated_edit_field22' 
			),
			'reference_number' => array( 
				'integrated_edit_field' 
			),
			'supplier_id' => array( 
				'integrated_edit_field15' 
			),
			'supplier_name' => array( 
				'integrated_edit_field6' 
			),
			'address' => array( 
				'integrated_edit_field4' 
			),
			'contract_number' => array( 
				'integrated_edit_field19' 
			),
			'philgeps_no' => array( 
				'integrated_edit_field23' 
			),
			'tin' => array( 
				'integrated_edit_field21' 
			),
			'po_type' => array( 
				'integrated_edit_field11' 
			),
			'agreement_type' => array( 
				'integrated_edit_field12' 
			),
			'call_off_number' => array( 
				'integrated_edit_field14' 
			),
			'pr_id' => array( 
				'integrated_edit_field13' 
			),
			'fund_cluster_id' => array( 
				'integrated_edit_field16' 
			),
			'note' => array( 
				'integrated_edit_field5' 
			),
			'delivery_date' => array( 
				'integrated_edit_field1' 
			),
			'mode_of_procurement_id' => array( 
				'integrated_edit_field17' 
			),
			'delivery_term' => array( 
				'integrated_edit_field2' 
			),
			'payment_term' => array( 
				'integrated_edit_field3' 
			),
			'contact_no' => array( 
				'integrated_edit_field7' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => false,
		'add' => false,
		'view' => false,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'above-grid' => array( 
					'add_back_list',
					'add_reset',
					'add_cancel',
					'add_message' 
				),
				'below-grid' => array( 
					'add_save1',
					'add_back_list1',
					'add_cancel1' 
				),
				'supertop' => array( 
					'expand_menu_button',
					'collapse_button',
					'loginform_login',
					'username_button' 
				),
				'left' => array( 
					'logo',
					'expand_button',
					'menu' 
				),
				'top' => array( 
					'add_header' 
				),
				'grid' => array( 
					'integrated_edit_field22',
					'integrated_edit_field',
					'integrated_edit_field15',
					'integrated_edit_field6',
					'integrated_edit_field4',
					'integrated_edit_field19',
					'integrated_edit_field23',
					'integrated_edit_field21',
					'integrated_edit_field11',
					'integrated_edit_field12',
					'integrated_edit_field14',
					'integrated_edit_field13',
					'integrated_edit_field16',
					'integrated_edit_field5',
					'details_preview',
					'integrated_edit_field7',
					'integrated_edit_field1',
					'integrated_edit_field17',
					'integrated_edit_field2',
					'integrated_edit_field3' 
				) 
			),
			'formXtTags' => array(
				'above-grid' => array( 
					'back_button',
					'reset_button',
					'cancel_button',
					'message_block' 
				) 
			),
			'itemForms' => array(
				'add_back_list' => 'above-grid',
				'add_reset' => 'above-grid',
				'add_cancel' => 'above-grid',
				'add_message' => 'above-grid',
				'add_save1' => 'below-grid',
				'add_back_list1' => 'below-grid',
				'add_cancel1' => 'below-grid',
				'expand_menu_button' => 'supertop',
				'collapse_button' => 'supertop',
				'loginform_login' => 'supertop',
				'username_button' => 'supertop',
				'logo' => 'left',
				'expand_button' => 'left',
				'menu' => 'left',
				'add_header' => 'top',
				'integrated_edit_field22' => 'grid',
				'integrated_edit_field' => 'grid',
				'integrated_edit_field15' => 'grid',
				'integrated_edit_field6' => 'grid',
				'integrated_edit_field4' => 'grid',
				'integrated_edit_field19' => 'grid',
				'integrated_edit_field23' => 'grid',
				'integrated_edit_field21' => 'grid',
				'integrated_edit_field11' => 'grid',
				'integrated_edit_field12' => 'grid',
				'integrated_edit_field14' => 'grid',
				'integrated_edit_field13' => 'grid',
				'integrated_edit_field16' => 'grid',
				'integrated_edit_field5' => 'grid',
				'details_preview' => 'grid',
				'integrated_edit_field7' => 'grid',
				'integrated_edit_field1' => 'grid',
				'integrated_edit_field17' => 'grid',
				'integrated_edit_field2' => 'grid',
				'integrated_edit_field3' => 'grid' 
			),
			'itemLocations' => array(
				'integrated_edit_field22' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field15' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field6' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field4' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field19' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field23' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field21' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'integrated_edit_field11' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'integrated_edit_field12' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'integrated_edit_field14' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'integrated_edit_field13' => array(
					'location' => 'grid',
					'cellId' => 'c4' 
				),
				'integrated_edit_field16' => array(
					'location' => 'grid',
					'cellId' => 'c5' 
				),
				'integrated_edit_field5' => array(
					'location' => 'grid',
					'cellId' => 'c7' 
				),
				'details_preview' => array(
					'location' => 'grid',
					'cellId' => 'c9' 
				),
				'integrated_edit_field7' => array(
					'location' => 'grid',
					'cellId' => 'c8' 
				),
				'integrated_edit_field1' => array(
					'location' => 'grid',
					'cellId' => 'c11' 
				),
				'integrated_edit_field17' => array(
					'location' => 'grid',
					'cellId' => 'c11' 
				),
				'integrated_edit_field2' => array(
					'location' => 'grid',
					'cellId' => 'c12' 
				),
				'integrated_edit_field3' => array(
					'location' => 'grid',
					'cellId' => 'c12' 
				) 
			),
			'itemVisiblity' => array(
				'expand_menu_button' => 2,
				'expand_button' => 5 
			) 
		),
		'itemsByType' => array(
			'add_header' => array( 
				'add_header' 
			),
			'add_back_list' => array( 
				'add_back_list',
				'add_back_list1' 
			),
			'add_reset' => array( 
				'add_reset' 
			),
			'add_cancel' => array( 
				'add_cancel',
				'add_cancel1' 
			),
			'add_message' => array( 
				'add_message' 
			),
			'add_save' => array( 
				'add_save1' 
			),
			'integrated_edit_field' => array( 
				'integrated_edit_field22',
				'integrated_edit_field',
				'integrated_edit_field15',
				'integrated_edit_field6',
				'integrated_edit_field4',
				'integrated_edit_field19',
				'integrated_edit_field23',
				'integrated_edit_field21',
				'integrated_edit_field11',
				'integrated_edit_field12',
				'integrated_edit_field14',
				'integrated_edit_field13',
				'integrated_edit_field16',
				'integrated_edit_field5',
				'integrated_edit_field1',
				'integrated_edit_field17',
				'integrated_edit_field2',
				'integrated_edit_field3',
				'integrated_edit_field7' 
			),
			'details_preview' => array( 
				'details_preview' 
			),
			'logo' => array( 
				'logo' 
			),
			'menu' => array( 
				'menu' 
			),
			'username_button' => array( 
				'username_button' 
			),
			'loginform_login' => array( 
				'loginform_login' 
			),
			'userinfo_link' => array( 
				'userinfo_link' 
			),
			'logout_link' => array( 
				'logout_link' 
			),
			'expand_menu_button' => array( 
				'expand_menu_button' 
			),
			'collapse_button' => array( 
				'collapse_button' 
			),
			'expand_button' => array( 
				'expand_button' 
			) 
		),
		'cellMaps' => array(
			'grid' => array(
				'cells' => array(
					'c4' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field13' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c5' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field16' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c3' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							1 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field22',
							'integrated_edit_field',
							'integrated_edit_field15',
							'integrated_edit_field6',
							'integrated_edit_field4',
							'integrated_edit_field19',
							'integrated_edit_field23',
							'integrated_edit_field21' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							1 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field11',
							'integrated_edit_field12',
							'integrated_edit_field14' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c11' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							2 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field1',
							'integrated_edit_field17' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c12' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							2 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field2',
							'integrated_edit_field3' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c7' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							3 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field5' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c9' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							4 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'details_preview' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c8' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							5 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field7' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 2,
				'height' => 6 
			) 
		) 
	),
	'loginForm' => array(
		'loginForm' => 0 
	),
	'page' => array(
		'verticalBar' => true,
		'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( 
			array(
				'id' => 'main',
				'horizontal' => false 
			) 
		),
		'calcTotalsFor' => 1,
		'hasCharts' => false 
	),
	'misc' => array(
		'type' => 'add',
		'breadcrumb' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			 
		) 
	) 
);
			$pageArray = array(
	'id' => 'add',
	'type' => 'add',
	'layoutId' => 'leftbar',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'above-grid' => array(
			'modelId' => 'add-above-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_back_list',
						'add_reset',
						'add_cancel',
						'add_message' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'below-grid' => array(
			'modelId' => 'add-below-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_save1',
						'add_back_list1',
						'add_cancel1' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'supertop' => array(
			'modelId' => 'leftbar-top-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						),
						array(
							'cell' => 'c2' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'expand_menu_button',
						'collapse_button' 
					) 
				),
				'c2' => array(
					'model' => 'c2',
					'items' => array( 
						'loginform_login',
						'username_button' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'left' => array(
			'modelId' => 'leftbar-menu',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c0' 
						) 
					),
					'section' => '' 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c0' => array(
					'model' => 'c0',
					'items' => array( 
						'logo',
						'expand_button' 
					) 
				),
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'menu' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'add-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'grid' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'section' => '',
					'cells' => array( 
						array(
							'cell' => 'c4' 
						),
						array(
							'cell' => 'c5' 
						) 
					) 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c3' 
						),
						array(
							'cell' => 'c' 
						) 
					),
					'section' => '' 
				),
				array(
					'section' => '',
					'cells' => array( 
						array(
							'cell' => 'c11' 
						),
						array(
							'cell' => 'c12' 
						) 
					) 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c7',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c9',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c8',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c3' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field22',
						'integrated_edit_field',
						'integrated_edit_field15',
						'integrated_edit_field6',
						'integrated_edit_field4',
						'integrated_edit_field19',
						'integrated_edit_field23',
						'integrated_edit_field21' 
					) 
				),
				'c' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field11',
						'integrated_edit_field12',
						'integrated_edit_field14' 
					) 
				),
				'c4' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field13' 
					) 
				),
				'c5' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field16' 
					) 
				),
				'c7' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field5' 
					) 
				),
				'c9' => array(
					'model' => 'c3',
					'items' => array( 
						'details_preview' 
					) 
				),
				'c8' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field7' 
					) 
				),
				'c11' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field1',
						'integrated_edit_field17' 
					) 
				),
				'c12' => array(
					'model' => 'c3',
					'items' => array( 
						'integrated_edit_field2',
						'integrated_edit_field3' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		) 
	),
	'items' => array(
		'add_header' => array(
			'type' => 'add_header' 
		),
		'add_back_list' => array(
			'type' => 'add_back_list',
			'icon' => array(
				'style' => 0 
			) 
		),
		'add_reset' => array(
			'type' => 'add_reset',
			'icon' => array(
				'style' => 0 
			) 
		),
		'add_cancel' => array(
			'type' => 'add_cancel',
			'icon' => array(
				'style' => 0 
			) 
		),
		'add_message' => array(
			'type' => 'add_message' 
		),
		'add_save1' => array(
			'type' => 'add_save',
			'icon' => array(
				 
			) 
		),
		'add_back_list1' => array(
			'type' => 'add_back_list',
			'icon' => array(
				'style' => 0 
			) 
		),
		'add_cancel1' => array(
			'type' => 'add_cancel',
			'icon' => array(
				 
			) 
		),
		'integrated_edit_field22' => array(
			'field' => 'date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field' => array(
			'field' => 'reference_number',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field15' => array(
			'field' => 'supplier_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'supplier_id',
				'table' => 'purchaseorder',
				'type' => 3 
			) 
		),
		'integrated_edit_field6' => array(
			'field' => 'supplier_name',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field4' => array(
			'field' => 'address',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field19' => array(
			'field' => 'contract_number',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field23' => array(
			'field' => 'philgeps_no',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field21' => array(
			'field' => 'tin',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field11' => array(
			'field' => 'po_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field12' => array(
			'field' => 'agreement_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field14' => array(
			'field' => 'call_off_number',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field13' => array(
			'field' => 'pr_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'pr_id',
				'table' => 'purchaseorder',
				'type' => 3 
			) 
		),
		'integrated_edit_field16' => array(
			'field' => 'fund_cluster_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field5' => array(
			'field' => 'note',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'details_preview' => array(
			'type' => 'details_preview',
			'table' => 6504,
			'items' => array( 
				 
			),
			'popup' => false,
			'pageId' => 'list' 
		),
		'integrated_edit_field1' => array(
			'field' => 'delivery_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field17' => array(
			'field' => 'mode_of_procurement_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'mode_of_procurement_id',
				'table' => 'purchaseorder',
				'type' => 3 
			) 
		),
		'integrated_edit_field2' => array(
			'field' => 'delivery_term',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field3' => array(
			'field' => 'payment_term',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field7' => array(
			'field' => 'contact_no',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'logo' => array(
			'type' => 'logo' 
		),
		'menu' => array(
			'type' => 'menu' 
		),
		'username_button' => array(
			'type' => 'username_button',
			'items' => array( 
				'userinfo_link',
				'logout_link' 
			) 
		),
		'loginform_login' => array(
			'type' => 'loginform_login' 
		),
		'userinfo_link' => array(
			'type' => 'userinfo_link' 
		),
		'logout_link' => array(
			'type' => 'logout_link' 
		),
		'expand_menu_button' => array(
			'type' => 'expand_menu_button' 
		),
		'collapse_button' => array(
			'type' => 'collapse_button' 
		),
		'expand_button' => array(
			'type' => 'expand_button' 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	) 
);
		?>