<?php
			$optionsArray = array( 'list' => array( 'inlineAdd' => false,
'detailsAdd' => false,
'inlineEdit' => false,
'delete' => false,
'updateSelected' => false,
'addInPopup' => null,
'editInPopup' => null,
'viewInPopup' => false,
'clickSort' => true,
'sortDropdown' => false,
'showHideFields' => true,
'reorderFields' => true ),
'allDetails' => array( 'linkType' => 1 ),
'details' => array( 'payment_for_pur' => array( 'displayPreview' => 1,
'previewPageId' => 'list',
'showCount' => true,
'hideEmptyChild' => true,
'hideEmptyPreview' => true,
'showProceedLink' => false,
'printDetails' => true ),
'supplier_advance_cut' => array( 'displayPreview' => 1,
'previewPageId' => 'list',
'showCount' => true,
'hideEmptyChild' => true,
'hideEmptyPreview' => true,
'showProceedLink' => false,
'printDetails' => true ),
'purchasing_details' => array( 'displayPreview' => 1,
'previewPageId' => 'list_list',
'showCount' => true,
'hideEmptyChild' => true,
'hideEmptyPreview' => true,
'showProceedLink' => false,
'printDetails' => true ) ),
'listSearch' => array( 'alwaysOnPanelFields' => array(  ),
'searchPanel' => true,
'fixedSearchPanel' => false,
'simpleSearchOptions' => true,
'searchSaving' => false ),
'totals' => array( 'id' => array( 'totalsType' => 'COUNT' ),
'date_and_time' => array( 'totalsType' => '' ),
'supplier' => array( 'totalsType' => '' ),
'tt' => array( 'totalsType' => '' ),
'branch_code' => array( 'totalsType' => '' ),
'user' => array( 'totalsType' => '' ),
'outlet_code' => array( 'totalsType' => '' ),
'payment' => array( 'totalsType' => '' ),
'h' => array( 'totalsType' => '' ),
'company_name' => array( 'totalsType' => '' ),
'address_line_1' => array( 'totalsType' => '' ),
'address_line_2' => array( 'totalsType' => '' ),
'Fax' => array( 'totalsType' => '' ),
'email' => array( 'totalsType' => '' ),
'logo' => array( 'totalsType' => '' ),
'header' => array( 'totalsType' => '' ),
'footer' => array( 'totalsType' => '' ),
'hot_line' => array( 'totalsType' => '' ),
'f' => array( 'totalsType' => '' ),
'advance_id' => array( 'totalsType' => '' ),
'status' => array( 'totalsType' => '' ),
'left_advance' => array( 'totalsType' => '' ),
'details' => array( 'totalsType' => '' ),
'supplier_id' => array( 'totalsType' => '' ),
'paid' => array( 'totalsType' => 'TOTAL' ),
'total_amount' => array( 'totalsType' => 'TOTAL' ),
'left' => array( 'totalsType' => 'TOTAL' ),
'user2' => array( 'totalsType' => '' ) ),
'fields' => array( 'gridFields' => array( 'id',
'date_and_time',
'supplier',
'user',
'paid',
'total_amount',
'left',
'status',
'supplier_id' ),
'searchRequiredFields' => array(  ),
'searchPanelFields' => array( 'supplier',
'user2',
'left',
'total_amount',
'supplier_id',
'details',
'left_advance',
'status',
'advance_id',
'f',
'paid',
'h',
'hot_line',
'footer',
'header',
'logo',
'email',
'Fax',
'address_line_2',
'address_line_1',
'company_name',
'payment',
'outlet_code',
'user',
'branch_code',
'tt',
'date_and_time',
'id' ),
'filterFields' => array(  ),
'inlineAddFields' => array(  ),
'inlineEditFields' => array(  ),
'fieldItems' => array( 'id' => array( 'simple_grid_field',
'simple_grid_field3',
'grid_field_totals1' ),
'date_and_time' => array( 'simple_grid_field1',
'simple_grid_field6' ),
'supplier' => array( 'simple_grid_field2',
'simple_grid_field4' ),
'user' => array( 'simple_grid_field5',
'simple_grid_field9' ),
'total_amount' => array( 'grid_field_totals',
'grid_field1',
'grid_field_label1' ),
'paid' => array( 'grid_field',
'grid_field_label',
'grid_field_totals2' ),
'left' => array( 'grid_field2',
'grid_field_label2',
'grid_field_totals3' ),
'status' => array( 'grid_field5',
'grid_field_label5' ),
'supplier_id' => array( 'grid_field8' ) ),
'hideEmptyFields' => array(  ) ),
'pageLinks' => array( 'edit' => false,
'add' => false,
'view' => true,
'print' => false ),
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'left' => array( 'logo1',
'expand_button',
'menu',
'search_panel' ),
'supertop' => array( 'collapse_button',
'simple_search_field',
'simple_search_option',
'simple_search',
'list_options',
'loginform_login',
'username_button' ),
'above-grid' => array( 'custom_button1',
'details_found',
'page_size',
'print_details',
'columns_control' ),
'below-grid' => array( 'pagination' ),
'grid' => array( 'simple_grid_field3',
'simple_grid_field',
'grid_field_totals1',
'simple_grid_field4',
'simple_grid_field2',
'grid_field8',
'details_preview',
'details_preview1',
'details_preview2',
'grid_view',
'grid_field_label1',
'grid_field_label',
'grid_field_label2',
'grid_field1',
'grid_field',
'grid_field2',
'grid_field_totals',
'grid_field_totals2',
'grid_field_totals3',
'grid_details_link',
'grid_details_link1',
'grid_details_link2',
'text',
'grid_field_label5',
'simple_grid_field9',
'grid_field5',
'simple_grid_field5',
'simple_grid_field6',
'simple_grid_field1' ),
'top' => array(  ) ),
'formXtTags' => array( 'below-grid' => array( 'pagination' ),
'top' => array(  ) ),
'itemForms' => array( 'logo1' => 'left',
'expand_button' => 'left',
'menu' => 'left',
'search_panel' => 'left',
'collapse_button' => 'supertop',
'simple_search_field' => 'supertop',
'simple_search_option' => 'supertop',
'simple_search' => 'supertop',
'list_options' => 'supertop',
'loginform_login' => 'supertop',
'username_button' => 'supertop',
'custom_button1' => 'above-grid',
'details_found' => 'above-grid',
'page_size' => 'above-grid',
'print_details' => 'above-grid',
'columns_control' => 'above-grid',
'pagination' => 'below-grid',
'simple_grid_field3' => 'grid',
'simple_grid_field' => 'grid',
'grid_field_totals1' => 'grid',
'simple_grid_field4' => 'grid',
'simple_grid_field2' => 'grid',
'grid_field8' => 'grid',
'details_preview' => 'grid',
'details_preview1' => 'grid',
'details_preview2' => 'grid',
'grid_view' => 'grid',
'grid_field_label1' => 'grid',
'grid_field_label' => 'grid',
'grid_field_label2' => 'grid',
'grid_field1' => 'grid',
'grid_field' => 'grid',
'grid_field2' => 'grid',
'grid_field_totals' => 'grid',
'grid_field_totals2' => 'grid',
'grid_field_totals3' => 'grid',
'grid_details_link' => 'grid',
'grid_details_link1' => 'grid',
'grid_details_link2' => 'grid',
'text' => 'grid',
'grid_field_label5' => 'grid',
'simple_grid_field9' => 'grid',
'grid_field5' => 'grid',
'simple_grid_field5' => 'grid',
'simple_grid_field6' => 'grid',
'simple_grid_field1' => 'grid' ),
'itemLocations' => array( 'simple_grid_field3' => array( 'location' => 'grid',
'cellId' => 'headcell_field' ),
'simple_grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field' ),
'grid_field_totals1' => array( 'location' => 'grid',
'cellId' => 'footcell_field' ),
'simple_grid_field4' => array( 'location' => 'grid',
'cellId' => 'headcell_field1' ),
'simple_grid_field2' => array( 'location' => 'grid',
'cellId' => 'cell_field1' ),
'grid_field8' => array( 'location' => 'grid',
'cellId' => 'cell_field1' ),
'details_preview' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview1' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview2' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'grid_view' => array( 'location' => 'grid',
'cellId' => 'cell_icons' ),
'grid_field_label1' => array( 'location' => 'grid',
'cellId' => 'headcell_field5' ),
'grid_field_label' => array( 'location' => 'grid',
'cellId' => 'headcell_field5' ),
'grid_field_label2' => array( 'location' => 'grid',
'cellId' => 'headcell_field5' ),
'grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field5' ),
'grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field5' ),
'grid_field2' => array( 'location' => 'grid',
'cellId' => 'cell_field5' ),
'grid_field_totals' => array( 'location' => 'grid',
'cellId' => 'footcell_field5' ),
'grid_field_totals2' => array( 'location' => 'grid',
'cellId' => 'footcell_field5' ),
'grid_field_totals3' => array( 'location' => 'grid',
'cellId' => 'footcell_field5' ),
'grid_details_link' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'grid_details_link1' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'grid_details_link2' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'text' => array( 'location' => 'grid',
'cellId' => 'footcell_details' ),
'grid_field_label5' => array( 'location' => 'grid',
'cellId' => 'headcell_field12' ),
'simple_grid_field9' => array( 'location' => 'grid',
'cellId' => 'headcell_field12' ),
'grid_field5' => array( 'location' => 'grid',
'cellId' => 'cell_field10' ),
'simple_grid_field5' => array( 'location' => 'grid',
'cellId' => 'cell_field10' ),
'simple_grid_field6' => array( 'location' => 'grid',
'cellId' => 'headcell_field2' ),
'simple_grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field2' ) ),
'itemVisiblity' => array( 'expand_button' => 5,
'menu' => 3,
'search_panel' => 5,
'collapse_button' => 5,
'simple_search_field' => 3,
'simple_search_option' => 3,
'simple_search' => 3,
'list_options' => 3,
'loginform_login' => 3,
'username_button' => 3 ) ),
'itemsByType' => array( 'page_size' => array( 'page_size' ),
'details_found' => array( 'details_found' ),
'menu' => array( 'menu' ),
'simple_search' => array( 'simple_search' ),
'pagination' => array( 'pagination' ),
'search_panel' => array( 'search_panel' ),
'list_options' => array( 'list_options' ),
'show_search_panel' => array( 'show_search_panel' ),
'hide_search_panel' => array( 'hide_search_panel' ),
'search_panel_field' => array( 'search_panel_field',
'search_panel_field1',
'search_panel_field2',
'search_panel_field3',
'search_panel_field4',
'search_panel_field5',
'search_panel_field6',
'search_panel_field7',
'search_panel_field8',
'search_panel_field9',
'search_panel_field10',
'search_panel_field11',
'search_panel_field12',
'search_panel_field13',
'search_panel_field14',
'search_panel_field15',
'search_panel_field16',
'search_panel_field17',
'search_panel_field18',
'search_panel_field19',
'search_panel_field20',
'search_panel_field21',
'search_panel_field22',
'search_panel_field24',
'search_panel_field25',
'search_panel_field26',
'search_panel_field27',
'search_panel_field23' ),
'username_button' => array( 'username_button' ),
'loginform_login' => array( 'loginform_login' ),
'logout_link' => array( 'logout_link' ),
'changepassword_link' => array( 'changepassword_link' ),
'collapse_button' => array( 'collapse_button' ),
'grid_view' => array( 'grid_view' ),
'-' => array( '-',
'-1',
'-2',
'-3' ),
'advsearch_link' => array( 'advsearch_link' ),
'grid_field' => array( 'simple_grid_field',
'simple_grid_field1',
'simple_grid_field2',
'simple_grid_field5',
'grid_field',
'grid_field1',
'grid_field2',
'grid_field5',
'grid_field8' ),
'logo' => array( 'logo1' ),
'print_details' => array( 'print_details' ),
'grid_field_label' => array( 'simple_grid_field3',
'simple_grid_field4',
'simple_grid_field6',
'simple_grid_field9',
'grid_field_label',
'grid_field_label1',
'grid_field_label2',
'grid_field_label5' ),
'grid_field_totals' => array( 'grid_field_totals',
'grid_field_totals1',
'grid_field_totals2',
'grid_field_totals3' ),
'columns_control' => array( 'columns_control' ),
'simple_search_field' => array( 'simple_search_field' ),
'simple_search_option' => array( 'simple_search_option' ),
'details_preview' => array( 'details_preview',
'details_preview1',
'details_preview2' ),
'grid_details_link' => array( 'grid_details_link',
'grid_details_link1',
'grid_details_link2' ),
'text' => array( 'text' ),
'custom_button' => array( 'custom_button1' ),
'expand_button' => array( 'expand_button' ) ),
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_details' => array( 'cols' => array( 1 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field' => array( 'cols' => array( 2 ),
'rows' => array( 0 ),
'tags' => array( 'id_fieldheadercolumn' ),
'items' => array( 'simple_grid_field3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field2' => array( 'cols' => array( 3 ),
'rows' => array( 0 ),
'tags' => array( 'date_and_time_fieldheadercolumn' ),
'items' => array( 'simple_grid_field6' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field1' => array( 'cols' => array( 4 ),
'rows' => array( 0 ),
'tags' => array( 'supplier_fieldheadercolumn' ),
'items' => array( 'simple_grid_field4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field5' => array( 'cols' => array( 5 ),
'rows' => array( 0 ),
'tags' => array( 'total_amount_fieldheadercolumn',
'paid_fieldheadercolumn',
'left_fieldheadercolumn' ),
'items' => array( 'grid_field_label1',
'grid_field_label',
'grid_field_label2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field12' => array( 'cols' => array( 6 ),
'rows' => array( 0 ),
'tags' => array( 'status_fieldheadercolumn',
'user_fieldheadercolumn' ),
'items' => array( 'grid_field_label5',
'simple_grid_field9' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 1 ),
'tags' => array( 'view_column' ),
'items' => array( 'grid_view' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_details' => array( 'cols' => array( 1 ),
'rows' => array( 1 ),
'tags' => array(  ),
'items' => array( 'grid_details_link',
'grid_details_link1',
'grid_details_link2' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'cell_field' => array( 'cols' => array( 2 ),
'rows' => array( 1 ),
'tags' => array( 'id_fieldcolumn' ),
'items' => array( 'simple_grid_field' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field2' => array( 'cols' => array( 3 ),
'rows' => array( 1 ),
'tags' => array( 'date_and_time_fieldcolumn' ),
'items' => array( 'simple_grid_field1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field1' => array( 'cols' => array( 4 ),
'rows' => array( 1 ),
'tags' => array( 'supplier_fieldcolumn',
'supplier_id_fieldcolumn' ),
'items' => array( 'simple_grid_field2',
'grid_field8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field5' => array( 'cols' => array( 5 ),
'rows' => array( 1 ),
'tags' => array( 'total_amount_fieldcolumn',
'paid_fieldcolumn',
'left_fieldcolumn' ),
'items' => array( 'grid_field1',
'grid_field',
'grid_field2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field10' => array( 'cols' => array( 6 ),
'rows' => array( 1 ),
'tags' => array( 'status_fieldcolumn',
'user_fieldcolumn' ),
'items' => array( 'grid_field5',
'simple_grid_field5' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_dpreview' => array( 'cols' => array( 0,
1,
2,
3,
4,
5,
6 ),
'rows' => array( 2 ),
'tags' => array(  ),
'items' => array( 'details_preview',
'details_preview1',
'details_preview2' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'footcell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_details' => array( 'cols' => array( 1 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array( 'text' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'footcell_field' => array( 'cols' => array( 2 ),
'rows' => array( 3 ),
'tags' => array( 'id_fieldfootercolumn' ),
'items' => array( 'grid_field_totals1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field2' => array( 'cols' => array( 3 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field1' => array( 'cols' => array( 4 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field5' => array( 'cols' => array( 5 ),
'rows' => array( 3 ),
'tags' => array( 'total_amount_fieldfootercolumn',
'paid_fieldfootercolumn',
'left_fieldfootercolumn' ),
'items' => array( 'grid_field_totals',
'grid_field_totals2',
'grid_field_totals3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field8' => array( 'cols' => array( 6 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ) ),
'width' => 7,
'height' => 4 ) ) ),
'loginForm' => array( 'loginForm' => 1 ),
'page' => array( 'labeledButtons' => array( 'update_records' => array(  ),
'print_pages' => array(  ),
'register_activate_message' => array(  ),
'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
'type' => 2 ) ) ),
'gridType' => 0,
'recsPerRow' => 1,
'hasCustomButtons' => true,
'customButtons' => array( 'New_Button3' ) ),
'misc' => array( 'type' => 'list',
'breadcrumb' => false ),
'events' => array( 'maps' => array(  ),
'mapsData' => array(  ),
'buttons' => array( 'New_Button3' ) ),
'dataGrid' => array( 'groupFields' => array(  ) ) );
			$pageArray = array( 'id' => 'list',
'type' => 'list',
'layoutId' => 'leftbar',
'disabled' => 0,
'default' => 0,
'forms' => array( '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( 'logo1',
'expand_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c1' => array( 'model' => 'c1',
'items' => array( 'menu',
'search_panel' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'supertop' => array( 'modelId' => 'leftbar-top',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
array( 'cell' => 'c2' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'collapse_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c2' => array( 'model' => 'c2',
'items' => array( 'simple_search_field',
'simple_search_option',
'simple_search',
'list_options',
'loginform_login',
'username_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'above-grid' => array( 'modelId' => 'list-above-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
array( 'cell' => 'c2' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'custom_button1' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c2' => array( 'model' => 'c2',
'items' => array( 'details_found',
'page_size',
'print_details',
'columns_control' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'below-grid' => array( 'modelId' => 'list-below-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'pagination' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'grid' => array( 'modelId' => 'horizontal-grid',
'grid' => array( array( 'section' => 'head',
'cells' => array( array( 'cell' => 'headcell_icons' ),
array( 'cell' => 'headcell_details' ),
array( 'cell' => 'headcell_field' ),
array( 'cell' => 'headcell_field2' ),
array( 'cell' => 'headcell_field1' ),
array( 'cell' => 'headcell_field5' ),
array( 'cell' => 'headcell_field12' ) ) ),
array( 'section' => 'body',
'cells' => array( array( 'cell' => 'cell_icons' ),
array( 'cell' => 'cell_details' ),
array( 'cell' => 'cell_field' ),
array( 'cell' => 'cell_field2' ),
array( 'cell' => 'cell_field1' ),
array( 'cell' => 'cell_field5' ),
array( 'cell' => 'cell_field10' ) ) ),
array( 'cells' => array( array( 'cell' => 'cell_dpreview',
'colspan' => 7 ) ),
'section' => 'body' ),
array( 'section' => 'foot',
'cells' => array( array( 'cell' => 'footcell_icons' ),
array( 'cell' => 'footcell_details' ),
array( 'cell' => 'footcell_field' ),
array( 'cell' => 'footcell_field2' ),
array( 'cell' => 'footcell_field1' ),
array( 'cell' => 'footcell_field5' ),
array( 'cell' => 'footcell_field8' ) ) ) ),
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
'items' => array( 'simple_grid_field3' ),
'field' => 'id',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_field' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field' ),
'field' => 'id',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_field' => array( 'model' => 'footcell_field',
'items' => array( 'grid_field_totals1' ),
'field' => 'id',
'columnName' => 'field',
'align' => 'center',
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ) ) ),
'headcell_field1' => array( 'model' => 'headcell_field',
'items' => array( 'simple_grid_field4' ),
'field' => 'supplier',
'align' => 'center',
'columnName' => 'field',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_field1' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field2',
'grid_field8' ),
'field' => 'supplier',
'align' => 'left',
'columnName' => 'field',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_field1' => array( 'model' => 'footcell_field',
'items' => array(  ),
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ) ) ),
'cell_dpreview' => array( 'model' => 'cell_dpreview',
'items' => array( 'details_preview',
'details_preview1',
'details_preview2' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'headcell_icons' => array( 'model' => 'headcell_icons',
'items' => array(  ),
'columnName' => 'view',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff',
'align' => 'center' ),
'cell_icons' => array( 'model' => 'cell_icons',
'items' => array( 'grid_view' ),
'columnName' => 'view',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_icons' => array( 'model' => 'footcell_icons',
'items' => array(  ),
'columnName' => 'view',
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ),
array( 'side' => 'left',
'width' => '0' ) ) ),
'headcell_field5' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label1',
'grid_field_label',
'grid_field_label2' ),
'field' => 'total_amount',
'columnName' => 'field',
'align' => 'center',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_field5' => array( 'model' => 'cell_field',
'items' => array( 'grid_field1',
'grid_field',
'grid_field2' ),
'field' => 'total_amount',
'columnName' => 'field',
'align' => 'right',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_field5' => array( 'model' => 'footcell_field',
'items' => array( 'grid_field_totals',
'grid_field_totals2',
'grid_field_totals3' ),
'field' => 'total_amount',
'columnName' => 'field',
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ) ),
'orientation' => 'vertical',
'align' => 'right' ),
'headcell_details' => array( 'model' => 'headcell_details',
'items' => array(  ),
'columnName' => 'details',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_details' => array( 'model' => 'cell_details',
'items' => array( 'grid_details_link',
'grid_details_link1',
'grid_details_link2' ),
'columnName' => 'details',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_details' => array( 'model' => 'footcell_details',
'items' => array( 'text' ),
'columnName' => 'details',
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ),
array( 'side' => 'left',
'width' => '0' ) ),
'align' => 'center' ),
'headcell_field12' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label5',
'simple_grid_field9' ),
'field' => 'status',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'center',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_field10' => array( 'model' => 'cell_field',
'items' => array( 'grid_field5',
'simple_grid_field5' ),
'field' => 'status',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'center',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_field8' => array( 'model' => 'footcell_field',
'items' => array(  ),
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ),
array( 'side' => 'right',
'width' => '0' ) ) ),
'headcell_field2' => array( 'model' => 'headcell_field',
'items' => array( 'simple_grid_field6' ),
'field' => 'date_and_time',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ),
'background' => '#c7ecff' ),
'cell_field2' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field1' ),
'field' => 'date_and_time',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical',
'border' => array( array( 'side' => '',
'width' => '1px',
'color' => '#878383' ) ) ),
'footcell_field2' => array( 'model' => 'footcell_field',
'items' => array(  ),
'align' => 'center',
'border' => array( array( 'side' => 'bottom',
'width' => '5px',
'color' => '#878383' ) ) ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'top' => array( 'modelId' => 'list-sidebar-top',
'grid' => array(  ),
'cells' => array(  ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ) ),
'items' => array( 'page_size' => array( 'type' => 'page_size' ),
'details_found' => array( 'type' => 'details_found' ),
'menu' => array( 'type' => 'menu' ),
'simple_search' => array( 'type' => 'simple_search' ),
'pagination' => array( 'type' => 'pagination' ),
'search_panel' => array( 'type' => 'search_panel',
'items' => array( 'search_panel_field2',
'search_panel_field23',
'search_panel_field20',
'search_panel_field19',
'search_panel_field27',
'search_panel_field26',
'search_panel_field25',
'search_panel_field24',
'search_panel_field22',
'search_panel_field21',
'search_panel_field18',
'search_panel_field17',
'search_panel_field16',
'search_panel_field15',
'search_panel_field14',
'search_panel_field13',
'search_panel_field12',
'search_panel_field11',
'search_panel_field10',
'search_panel_field9',
'search_panel_field8',
'search_panel_field7',
'search_panel_field6',
'search_panel_field5',
'search_panel_field4',
'search_panel_field3',
'search_panel_field',
'search_panel_field1' ) ),
'list_options' => array( 'type' => 'list_options',
'items' => array( 'advsearch_link',
'show_search_panel',
'hide_search_panel' ) ),
'show_search_panel' => array( 'type' => 'show_search_panel' ),
'hide_search_panel' => array( 'type' => 'hide_search_panel' ),
'search_panel_field' => array( 'field' => 'date_and_time',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field1' => array( 'field' => 'id',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field2' => array( 'field' => 'supplier',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'username_button' => array( 'type' => 'username_button',
'items' => array( 'logout_link',
'changepassword_link' ) ),
'loginform_login' => array( 'type' => 'loginform_login',
'popup' => true ),
'logout_link' => array( 'type' => 'logout_link' ),
'changepassword_link' => array( 'type' => 'changepassword_link' ),
'collapse_button' => array( 'type' => 'collapse_button' ),
'grid_view' => array( 'type' => 'grid_view',
'popup' => false,
'tooltip' => array( 'type' => 0,
'text' => '' ),
'icon' => array( 'fa' => 'print' ),
'buttonStyle' => 'success',
'buttonSize' => 'normal' ),
'-' => array( 'type' => '-' ),
'-1' => array( 'type' => '-' ),
'-2' => array( 'type' => '-' ),
'advsearch_link' => array( 'type' => 'advsearch_link' ),
'-3' => array( 'type' => '-' ),
'simple_grid_field' => array( 'field' => 'id',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'simple_grid_field1' => array( 'field' => 'date_and_time',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'simple_grid_field2' => array( 'field' => 'supplier',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'logo1' => array( 'type' => 'logo' ),
'print_details' => array( 'type' => 'print_details',
'tables' => array( 'supplier_advance_cut' => true,
'payment_for_pur' => true,
'purchasing_details' => true ) ),
'simple_grid_field3' => array( 'type' => 'grid_field_label',
'field' => 'id',
'clickSort' => true ),
'search_panel_field3' => array( 'field' => 'tt',
'type' => 'search_panel_field',
'required' => false ),
'simple_grid_field4' => array( 'type' => 'grid_field_label',
'field' => 'supplier',
'clickSort' => true ),
'search_panel_field4' => array( 'field' => 'branch_code',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'simple_grid_field5' => array( 'field' => 'user',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'search_panel_field5' => array( 'field' => 'user',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'simple_grid_field6' => array( 'type' => 'grid_field_label',
'field' => 'date_and_time',
'clickSort' => true ),
'search_panel_field6' => array( 'field' => 'outlet_code',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field7' => array( 'field' => 'payment',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'simple_grid_field9' => array( 'type' => 'grid_field_label',
'field' => 'user',
'clickSort' => true ),
'grid_field_totals' => array( 'type' => 'grid_field_totals',
'field' => 'total_amount',
'totals' => 'TOTAL',
'bold' => true,
'underline' => true ),
'grid_field_totals1' => array( 'type' => 'grid_field_totals',
'field' => 'id',
'totals' => 'COUNT',
'label' => array( 'type' => 0,
'text' => '' ),
'bold' => true,
'underline' => true ),
'search_panel_field8' => array( 'field' => 'company_name',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field9' => array( 'field' => 'address_line_1',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field10' => array( 'field' => 'address_line_2',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field11' => array( 'field' => 'Fax',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field12' => array( 'field' => 'email',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field13' => array( 'field' => 'logo',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field14' => array( 'field' => 'header',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field15' => array( 'field' => 'footer',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field16' => array( 'field' => 'hot_line',
'type' => 'search_panel_field',
'required' => false ),
'search_panel_field17' => array( 'field' => 'h',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field' => array( 'field' => 'paid',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label' => array( 'type' => 'grid_field_label',
'field' => 'paid',
'clickSort' => true ),
'search_panel_field18' => array( 'field' => 'paid',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field1' => array( 'field' => 'total_amount',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label1' => array( 'type' => 'grid_field_label',
'field' => 'total_amount' ),
'search_panel_field19' => array( 'field' => 'total_amount',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field2' => array( 'field' => 'left',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label2' => array( 'type' => 'grid_field_label',
'field' => 'left' ),
'search_panel_field20' => array( 'field' => 'left',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'columns_control' => array( 'type' => 'columns_control',
'showHide' => true,
'reorder' => true ),
'simple_search_field' => array( 'type' => 'simple_search_field' ),
'simple_search_option' => array( 'type' => 'simple_search_option' ),
'search_panel_field21' => array( 'field' => 'f',
'type' => 'search_panel_field' ),
'grid_field_totals2' => array( 'type' => 'grid_field_totals',
'field' => 'paid',
'totals' => 'TOTAL',
'label' => array( 'type' => 0,
'text' => 'Total Paid' ),
'bold' => true,
'underline' => true ),
'details_preview' => array( 'type' => 'details_preview',
'table' => 'payment_for_pur',
'items' => array(  ),
'popup' => false,
'hideEmptyPreview' => true,
'proceedLink' => false,
'pageId' => 'list' ),
'grid_details_link' => array( 'type' => 'grid_details_link',
'table' => 'purchasing_details',
'badge' => false,
'hideIfNone' => true,
'showCount' => true ),
'grid_details_link1' => array( 'type' => 'grid_details_link',
'table' => 'payment_for_pur',
'badge' => false,
'showCount' => true,
'hideIfNone' => true ),
'search_panel_field22' => array( 'field' => 'advance_id',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field5' => array( 'field' => 'status',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label5' => array( 'type' => 'grid_field_label',
'field' => 'status' ),
'search_panel_field24' => array( 'field' => 'status',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field25' => array( 'field' => 'left_advance',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field26' => array( 'field' => 'details',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field8' => array( 'field' => 'supplier_id',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'search_panel_field27' => array( 'field' => 'supplier_id',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_details_link2' => array( 'type' => 'grid_details_link',
'table' => 'supplier_advance_cut',
'showCount' => true,
'hideIfNone' => true,
'badge' => false ),
'details_preview1' => array( 'type' => 'details_preview',
'table' => 'supplier_advance_cut',
'items' => array(  ),
'popup' => false,
'hideEmptyPreview' => true,
'proceedLink' => false,
'pageId' => 'list' ),
'details_preview2' => array( 'type' => 'details_preview',
'table' => 'purchasing_details',
'items' => array(  ),
'hideEmptyPreview' => true,
'proceedLink' => false,
'pageId' => 'list_list',
'popup' => false ),
'grid_field_totals3' => array( 'type' => 'grid_field_totals',
'field' => 'left',
'totals' => 'TOTAL',
'label' => array( 'type' => 0,
'text' => 'Total Left' ),
'bold' => true,
'underline' => true ),
'text' => array( 'type' => 'text',
'label' => array( 'text' => 'Total purchasing',
'type' => 0 ),
'editedByRte' => false,
'bold' => true,
'underline' => true ),
'search_panel_field23' => array( 'field' => 'user2',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'custom_button1' => array( 'type' => 'custom_button',
'eventId' => 'New_Button3',
'label' => array( 'text' => 'Add Purchasing',
'type' => 0 ),
'buttonSize' => 'normal',
'buttonStyle' => 'success' ),
'expand_button' => array( 'type' => 'expand_button' ) ),
'dbProps' => array(  ),
'version' => 4 );
		?>