<?php
			$optionsArray = array( 'details' => array( 'sales_details' => array( 'displayPreview' => 1,
'previewPageId' => 'list' ),
'payments' => array( 'displayPreview' => 1,
'previewPageId' => 'list1' ),
'sales_history_total' => array( 'displayPreview' => 2,
'previewPageId' => '' ) ),
'master' => array( 'buyers' => array( 'preview' => false ) ),
'captcha' => array( 'captcha' => false ),
'fields' => array( 'gridFields' => array( 'customer_name',
'branch_code',
'user',
'advance_id',
'tt',
'amount',
'details',
'status',
'outlet_code',
'left_advance',
'customer_id' ),
'searchRequiredFields' => array(  ),
'searchPanelFields' => array(  ),
'updateOnEditFields' => array(  ),
'fieldItems' => array( 'customer_name' => array( 'integrated_edit_field',
'edit_field_label1' ),
'branch_code' => array( 'integrated_edit_field1' ),
'user' => array( 'integrated_edit_field2' ),
'advance_id' => array( 'integrated_edit_field3' ),
'tt' => array( 'integrated_edit_field4' ),
'amount' => array( 'integrated_edit_field5',
'edit_field_label' ),
'details' => array( 'integrated_edit_field7' ),
'status' => array( 'integrated_edit_field8' ),
'outlet_code' => array( 'integrated_edit_field10' ),
'left_advance' => array( 'integrated_edit_field6' ),
'customer_id' => array( 'integrated_edit_field9' ) ) ),
'pageLinks' => array( 'edit' => false,
'add' => false,
'view' => false,
'print' => false ),
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( 'collapse_button',
'loginform_login',
'username_button' ),
'left' => array( 'logo1',
'expand_button',
'menu' ),
'top' => array( 'edit_header' ),
'above-grid' => array(  ),
'below-grid' => array( 'edit_save',
'edit_back_list',
'edit_close' ),
'grid' => array( 'edit_field_label1',
'integrated_edit_field',
'edit_field_label',
'integrated_edit_field5',
'details_preview',
'details_preview1',
'integrated_edit_field1',
'text',
'integrated_edit_field8',
'text1',
'integrated_edit_field2',
'text2',
'integrated_edit_field10',
'integrated_edit_field4',
'integrated_edit_field7',
'integrated_edit_field3',
'integrated_edit_field6',
'integrated_edit_field9' ) ),
'formXtTags' => array( 'above-grid' => array(  ),
'below-grid' => array( 'save_edit',
'back_button',
'close_button' ) ),
'itemForms' => array( 'collapse_button' => 'supertop',
'loginform_login' => 'supertop',
'username_button' => 'supertop',
'logo1' => 'left',
'expand_button' => 'left',
'menu' => 'left',
'edit_header' => 'top',
'edit_save' => 'below-grid',
'edit_back_list' => 'below-grid',
'edit_close' => 'below-grid',
'edit_field_label1' => 'grid',
'integrated_edit_field' => 'grid',
'edit_field_label' => 'grid',
'integrated_edit_field5' => 'grid',
'details_preview' => 'grid',
'details_preview1' => 'grid',
'integrated_edit_field1' => 'grid',
'text' => 'grid',
'integrated_edit_field8' => 'grid',
'text1' => 'grid',
'integrated_edit_field2' => 'grid',
'text2' => 'grid',
'integrated_edit_field10' => 'grid',
'integrated_edit_field4' => 'grid',
'integrated_edit_field7' => 'grid',
'integrated_edit_field3' => 'grid',
'integrated_edit_field6' => 'grid',
'integrated_edit_field9' => 'grid' ),
'itemLocations' => array( 'edit_field_label1' => array( 'location' => 'grid',
'cellId' => 'c' ),
'integrated_edit_field' => array( 'location' => 'grid',
'cellId' => 'c' ),
'edit_field_label' => array( 'location' => 'grid',
'cellId' => 'c' ),
'integrated_edit_field5' => array( 'location' => 'grid',
'cellId' => 'c' ),
'details_preview' => array( 'location' => 'grid',
'cellId' => 'c2' ),
'details_preview1' => array( 'location' => 'grid',
'cellId' => 'c3' ),
'integrated_edit_field1' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'text' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'integrated_edit_field8' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'text1' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'integrated_edit_field2' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'text2' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'integrated_edit_field10' => array( 'location' => 'grid',
'cellId' => 'c8' ),
'integrated_edit_field4' => array( 'location' => 'grid',
'cellId' => 'c9' ),
'integrated_edit_field7' => array( 'location' => 'grid',
'cellId' => 'c10' ),
'integrated_edit_field3' => array( 'location' => 'grid',
'cellId' => 'c10' ),
'integrated_edit_field6' => array( 'location' => 'grid',
'cellId' => 'c10' ),
'integrated_edit_field9' => array( 'location' => 'grid',
'cellId' => 'c10' ) ),
'itemVisiblity' => array( 'collapse_button' => 5,
'loginform_login' => 3,
'username_button' => 3,
'expand_button' => 5,
'menu' => 3 ) ),
'itemsByType' => array( 'edit_header' => array( 'edit_header' ),
'edit_back_list' => array( 'edit_back_list' ),
'edit_close' => array( 'edit_close' ),
'edit_field' => array( 'integrated_edit_field',
'integrated_edit_field1',
'integrated_edit_field2',
'integrated_edit_field4',
'integrated_edit_field5',
'integrated_edit_field8',
'integrated_edit_field10' ),
'menu' => array( 'menu' ),
'collapse_button' => array( 'collapse_button' ),
'logo' => array( 'logo1' ),
'details_preview' => array( 'details_preview1',
'details_preview' ),
'edit_save' => array( 'edit_save' ),
'username_button' => array( 'username_button' ),
'changepassword_link' => array( 'changepassword_link' ),
'loginform_login' => array( 'loginform_login' ),
'logout_link' => array( 'logout_link' ),
'integrated_edit_field' => array( 'integrated_edit_field3',
'integrated_edit_field7',
'integrated_edit_field6',
'integrated_edit_field9' ),
'edit_field_label' => array( 'edit_field_label1',
'edit_field_label' ),
'text' => array( 'text',
'text1',
'text2' ),
'expand_button' => array( 'expand_button' ) ),
'cellMaps' => array( 'grid' => array( 'cells' => array( 'c1' => array( 'cols' => array( 0 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'c9' => array( 'cols' => array( 1 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array( 'integrated_edit_field4' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c' => array( 'cols' => array( 0 ),
'rows' => array( 1 ),
'tags' => array(  ),
'items' => array( 'edit_field_label1',
'integrated_edit_field',
'edit_field_label',
'integrated_edit_field5' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c10' => array( 'cols' => array( 1 ),
'rows' => array( 1 ),
'tags' => array(  ),
'items' => array( 'integrated_edit_field7',
'integrated_edit_field3',
'integrated_edit_field6',
'integrated_edit_field9' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c2' => array( 'cols' => array( 0,
1 ),
'rows' => array( 2 ),
'tags' => array(  ),
'items' => array( 'details_preview' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c3' => array( 'cols' => array( 0,
1 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array( 'details_preview1' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c8' => array( 'cols' => array( 0,
1 ),
'rows' => array( 4 ),
'tags' => array(  ),
'items' => array( 'integrated_edit_field1',
'text',
'integrated_edit_field8',
'text1',
'integrated_edit_field2',
'text2',
'integrated_edit_field10' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'c11' => array( 'cols' => array( 0,
1 ),
'rows' => array( 5 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ) ),
'width' => 2,
'height' => 6 ) ) ),
'loginForm' => array( 'loginForm' => 1 ),
'page' => array( 'labeledButtons' => array( 'update_records' => array(  ),
'print_pages' => array(  ),
'register_activate_message' => array(  ),
'details_found' => array(  ) ),
'hasCustomButtons' => false,
'customButtons' => array(  ) ),
'misc' => array( 'type' => 'edit',
'breadcrumb' => false,
'nextPrev' => false ),
'events' => array( 'maps' => array(  ),
'mapsData' => array(  ),
'buttons' => array(  ) ),
'edit' => array( 'updateSelected' => false ) );
			$pageArray = array( 'id' => 'edit',
'type' => 'edit',
'layoutId' => 'leftbar',
'disabled' => 0,
'default' => 0,
'forms' => array( '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( 'collapse_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c2' => array( 'model' => 'c2',
'items' => array( 'loginform_login',
'username_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'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( 'logo1',
'expand_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c1' => array( 'model' => 'c1',
'items' => array( 'menu' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'top' => array( 'modelId' => 'edit-header',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'edit_header' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center' ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'above-grid' => array( 'modelId' => 'edit-above-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array(  ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'below-grid' => array( 'modelId' => 'edit-below-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
'colspan' => 1 ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'edit_save',
'edit_back_list',
'edit_close' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center' ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'grid' => array( 'modelId' => 'simple-edit',
'grid' => array( array( 'section' => '',
'cells' => array( array( 'cell' => 'c1',
'colspan' => 1 ),
array( 'cell' => 'c9' ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c',
'rowspan' => 1 ),
array( 'cell' => 'c10',
'rowspan' => 1 ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c2',
'colspan' => 2 ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c3',
'colspan' => 2 ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c8',
'colspan' => 2 ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c11',
'colspan' => 2 ) ) ) ),
'cells' => array( 'c' => array( 'model' => 'c2',
'items' => array( 'edit_field_label1',
'integrated_edit_field',
'edit_field_label',
'integrated_edit_field5' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'padding' => array( 'bottom' => '30px',
'top' => '20px' ),
'align' => 'left',
'orientation' => 'vertical' ),
'c1' => array( 'model' => 'c3',
'items' => array(  ) ),
'c2' => array( 'model' => 'c3',
'items' => array( 'details_preview' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'orientation' => 'horizontal' ),
'c3' => array( 'model' => 'c3',
'items' => array( 'details_preview1' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'padding' => array( 'bottom' => '30px',
'top' => '20px' ),
'orientation' => 'horizontal' ),
'c8' => array( 'model' => 'c3',
'items' => array( 'integrated_edit_field1',
'text',
'integrated_edit_field8',
'text1',
'integrated_edit_field2',
'text2',
'integrated_edit_field10' ),
'orientation' => 'horizontal',
'align' => 'center' ),
'c9' => array( 'model' => 'c3',
'items' => array( 'integrated_edit_field4' ),
'align' => 'center' ),
'c10' => array( 'model' => 'c3',
'items' => array( 'integrated_edit_field7',
'integrated_edit_field3',
'integrated_edit_field6',
'integrated_edit_field9' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'padding' => array( 'bottom' => '30px',
'top' => '20px' ),
'align' => 'left',
'orientation' => 'vertical' ),
'c11' => array( 'model' => 'c3',
'items' => array(  ),
'orientation' => 'horizontal',
'align' => 'center' ) ),
'deferredItems' => array(  ),
'columnCount' => 1,
'inlineLabels' => false,
'separateLabels' => false ) ),
'items' => array( 'edit_header' => array( 'type' => 'edit_header',
'title' => array( 'page' => 'edit',
'table' => 'credit_sales',
'type' => 7 ) ),
'edit_back_list' => array( 'type' => 'edit_back_list',
'label' => array( 'type' => 0,
'text' => '' ),
'icon' => array( 'file' => 'cancle3.png' ),
'buttonStyle' => 'link-button' ),
'edit_close' => array( 'type' => 'edit_close',
'label' => array( 'type' => 0,
'text' => '' ),
'icon' => array( 'file' => 'cancle3.png' ),
'buttonStyle' => 'link-button' ),
'integrated_edit_field' => array( 'field' => 'customer_name',
'type' => 'edit_field',
'orientation' => 1,
'joined' => false,
'separated' => true,
'italic' => true ),
'menu' => array( 'type' => 'menu' ),
'collapse_button' => array( 'type' => 'collapse_button' ),
'logo1' => array( 'type' => 'logo' ),
'details_preview1' => array( 'type' => 'details_preview',
'table' => 'payments',
'items' => array(  ),
'popup' => false,
'pageId' => 'list1' ),
'edit_save' => array( 'type' => 'edit_save',
'buttonSize' => 'normal',
'buttonStyle' => 'link-button',
'label' => array( 'type' => 0,
'text' => '' ),
'icon' => array( 'file' => 'next.png' ) ),
'username_button' => array( 'type' => 'username_button',
'items' => array( 'logout_link',
'changepassword_link' ) ),
'changepassword_link' => array( 'type' => 'changepassword_link' ),
'loginform_login' => array( 'type' => 'loginform_login',
'popup' => true ),
'logout_link' => array( 'type' => 'logout_link' ),
'integrated_edit_field1' => array( 'field' => 'branch_code',
'type' => 'edit_field',
'orientation' => 0,
'color' => '#aba5a5',
'joined' => false,
'separated' => true ),
'integrated_edit_field2' => array( 'field' => 'user',
'type' => 'edit_field',
'orientation' => 0,
'joined' => false,
'separated' => true,
'color' => '#bfbfbf',
'italic' => true,
'underline' => true ),
'integrated_edit_field3' => array( 'field' => 'advance_id',
'type' => 'integrated_edit_field',
'orientation' => 1 ),
'integrated_edit_field4' => array( 'field' => 'tt',
'type' => 'edit_field',
'orientation' => 0,
'background' => '#000000',
'color' => '#1ddc1d',
'font-size' => '20px',
'label' => array( 'field' => 'tt',
'table' => 'credit_sales',
'type' => 3 ),
'joined' => false,
'separated' => true ),
'integrated_edit_field5' => array( 'field' => 'amount',
'type' => 'edit_field',
'orientation' => 0,
'joined' => false,
'separated' => true ),
'integrated_edit_field7' => array( 'field' => 'details',
'type' => 'integrated_edit_field',
'orientation' => 1 ),
'edit_field_label1' => array( 'type' => 'edit_field_label',
'field' => 'customer_name',
'separated' => true,
'italic' => true,
'bold' => true ),
'edit_field_label' => array( 'type' => 'edit_field_label',
'field' => 'amount',
'separated' => true ),
'details_preview' => array( 'type' => 'details_preview',
'table' => 'sales_details',
'items' => array(  ),
'popup' => false,
'pageId' => 'list' ),
'text' => array( 'type' => 'text',
'label' => array( 'text' => ' / ',
'type' => 0 ),
'editedByRte' => false,
'color' => '#bfbfbf' ),
'integrated_edit_field8' => array( 'field' => 'status',
'type' => 'edit_field',
'orientation' => 0,
'joined' => false,
'separated' => true,
'italic' => true,
'underline' => true,
'color' => '#bfbfbf' ),
'text1' => array( 'type' => 'text',
'label' => array( 'text' => ' / ',
'type' => 0 ),
'editedByRte' => false,
'color' => '#bfbfbf' ),
'text2' => array( 'type' => 'text',
'label' => array( 'text' => ' / ',
'type' => 0 ),
'editedByRte' => false,
'color' => '#bfbfbf' ),
'integrated_edit_field10' => array( 'field' => 'outlet_code',
'type' => 'edit_field',
'orientation' => 0,
'joined' => false,
'separated' => true,
'color' => '#bfbfbf',
'updateOnEdit' => false ),
'integrated_edit_field6' => array( 'field' => 'left_advance',
'type' => 'integrated_edit_field',
'orientation' => 1 ),
'integrated_edit_field9' => array( 'field' => 'customer_id',
'type' => 'integrated_edit_field',
'orientation' => 1 ),
'expand_button' => array( 'type' => 'expand_button' ) ),
'dbProps' => array(  ),
'version' => 4,
'pageWidth' => 'full',
'barWidth' => '150px' );
		?>