"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["wizard-install-InstallWizardController"],{6868:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"InstallWizardController\": () => (/* binding */ InstallWizardController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass InstallWizardController extends BaseWizardController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '.install-wizard',\n\n\t\t\ttype_array: null,\n\n\t\t\tcountry_array: null,\n\n\t\t\ttime_zone_array: null,\n\n\t\t\texternal_installer: null,\n\n\t\t\tcompany_id: null,\n\n\t\t\tuser_id: null,\n\n\t\t\tedit_view_error_ui_dic: {},\n\n\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.title_1 = $( this.el ).find( '.title-1' );\n\t\tthis.steps = 5;\n\t\tthis.script_name = 'wizard_install';\n\t\tthis.wizard_id = 'InstallWizard';\n\t\tthis.api = TTAPI.APIInstall;\n\t\tServiceCaller.extra_url = '&disable_db=1';\n\t\tif ( _.size( LocalCacheData.getAllURLArgs() ) > 0 ) {\n\t\t\tvar url_args = LocalCacheData.getAllURLArgs();\n\t\t\tthis.current_step = url_args.a;\n\t\t\tthis.external_installer = url_args.external_installer;\n\t\t} else {\n\t\t\tthis.current_step = 'license';\n\t\t\tthis.external_installer = 0;\n\t\t}\n\n\t\tthis.render();\n\t}\n\n\trender() {\n\t\tvar $this = this;\n\t\tvar title = $( this.el ).find( '.title' );\n\n\t\tthis.next_btn = $( this.el ).find( '.forward-btn' );\n\t\tthis.back_btn = $( this.el ).find( '.back-btn' );\n\t\tthis.done_btn = $( this.el ).find( '.done-btn' );\n\n\t\ttitle.text( $.i18n._( 'Install Wizard' ) );\n\n\t\tthis.initCurrentStep();\n\t}\n\n\tinitCurrentStep( step ) {\n\t\tvar $this = this;\n\n\t\tif ( step ) {\n\t\t} else {\n\t\t\tstep = this.current_step;\n\t\t}\n\n\t\tProgressBar.showOverlay();\n\n\t\tswitch ( step ) {\n\t\t\tcase 'license':\n\t\t\t\tthis.api.getLicense( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'requirements':\n\t\t\t\tthis.api.getRequirements( this.external_installer, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\tif ( res.getResult().action ) {\n\t\t\t\t\t\t\t\t$this.onNextClick();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'databaseSchema':\n\t\t\t\tServiceCaller.extra_url = false;\n\t\t\t\tthis.api.getDatabaseSchema( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'databaseConfig':\n\t\t\t\tthis.api.getDatabaseConfig( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this.type_array = res.getResult().type_options;\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'postUpgrade':\n\t\t\t\tthis.api.postUpgrade( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'systemSettings':\n\t\t\t\tthis.api.getSystemSettings( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this.time_zone_array = res.getResult().time_zone_options;\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'company':\n\t\t\t\tthis.api.getCompany( this.company_id, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'user':\n\t\t\t\tvar company_id = '';\n\t\t\t\tif ( Global.isSet( this.stepsDataDic[this.current_step] ) ) {\n\t\t\t\t\tcompany_id = this.stepsDataDic[this.current_step]['company_id'];\n\t\t\t\t}\n\t\t\t\tthis.api.getUser( company_id, this.user_id, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'installDone':\n\t\t\t\tvar upgrade = '';\n\t\t\t\tif ( Global.isSet( $this.stepsDataDic[$this.current_step] ) ) {\n\t\t\t\t\tupgrade = $this.stepsDataDic[$this.current_step]['upgrade'];\n\t\t\t\t}\n\t\t\t\tthis.api.installDone( upgrade, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'maintenanceJobs':\n\t\t\t\tthis.api.getMaintenanceJobs( {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\tif ( res.getResult() === true ) {\n\t\t\t\t\t\t\t\t$this.current_step = 'installDone';\n\t\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.current_step = 'license';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t_initCurrentStep( step ) {\n\t\tvar $this = this;\n\t\t$this.setButtonsStatus(); // set button enabled or disabled\n\t\t$this.buildCurrentStepUI();\n\t\t$this.buildCurrentStepData();\n\t\t$this.setCurrentStepValues();\n\t}\n\n\tsetButtonsStatus() {\n\t\tif ( this.current_step === 'license' ) {\n\t\t\tGlobal.setWidgetEnabled( this.back_btn, false );\n\t\t\tGlobal.setWidgetEnabled( this.next_btn, false );\n\t\t} else {\n\t\t\tGlobal.setWidgetEnabled( this.back_btn, true );\n\t\t\tGlobal.setWidgetEnabled( this.next_btn, true );\n\t\t}\n\n\t\tif ( this.current_step !== 'installDone' ) {\n\t\t\tGlobal.setWidgetEnabled( this.done_btn, false );\n//\t\t\tGlobal.setWidgetEnabled( this.next_btn, true );\n\t\t} else {\n\t\t\tGlobal.setWidgetEnabled( this.done_btn, true );\n\t\t\tGlobal.setWidgetEnabled( this.next_btn, false );\n\t\t}\n\t}\n\n\t//Create each page UI\n\tbuildCurrentStepUI() {\n\n\t\tvar $this = this;\n\t\tvar step_title = this.content_div.find( '.step-title > .wizard-label' );\n\t\tvar license = this.content_div.find( '.license' );\n\t\tvar requirements = this.content_div.find( '.requirements' );\n\t\tvar databaseConfig = this.content_div.find( '.databaseConfig' );\n\t\tvar databaseSchema = this.content_div.find( '.databaseSchema' );\n\t\tvar postUpgrade = this.content_div.find( '.postUpgrade' );\n\t\tvar systemSettings = this.content_div.find( '.systemSettings' );\n\t\tvar company = this.content_div.find( '.company' );\n\t\tvar user = this.content_div.find( '.user' );\n\t\tvar installDone = this.content_div.find( '.installDone' );\n\t\tvar maintenanceJobs = this.content_div.find( '.maintenanceJobs' );\n\n\t\tvar form_item_input;\n\t\tvar stepData = this.stepsDataDic[this.current_step];\n\t\tthis.content_div.find( '.step' ).hide();\n\t\tthis.content_div.find( '.content-handle-btn' ).empty();\n\n\t\tif ( Global.isSet( this.stepsWidgetDic[this.current_step] ) ) {\n\n\t\t} else {\n\t\t\tthis.stepsWidgetDic[this.current_step] = {};\n\t\t}\n\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 'license':\n\t\t\t\tlicense.empty();\n\t\t\t\tthis.title_1.text( $.i18n._( 'License Acceptance' ) );\n\t\t\t\tif ( stepData['install_mode'] ) {\n\t\t\t\t\tif ( stepData['license_text'] ) {\n\t\t\t\t\t\tstep_title.text( $.i18n._( 'Please read through the following license and if you agree and accept it, click the ' + '\"' + $.i18n._( 'I Accept' ) + '\"' + 'checkbox at the bottom.' ) );\n\n\t\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_AREA );\n\t\t\t\t\t\tform_item_input.TTextArea( { field: 'license_text', width: '65%', height: '80%' } );\n\t\t\t\t\t\tthis.stepsWidgetDic[this.current_step][form_item_input.getField()] = form_item_input;\n\n\t\t\t\t\t\tlicense.append( form_item_input );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlicense.append( stepData['error_message'] );\n\t\t\t\t\t}\n\n\t\t\t\t\tlicense.append( '
' );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.CHECKBOX );\n\t\t\t\t\tform_item_input.TCheckbox( { field: 'license_accept' } );\n\t\t\t\t\tform_item_input.unbind( 'formItemChange' ).bind( 'formItemChange', function( e, target ) {\n\t\t\t\t\t\tif ( target.getValue() ) {\n\t\t\t\t\t\t\tGlobal.setWidgetEnabled( $this.next_btn, true );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tGlobal.setWidgetEnabled( $this.next_btn, false );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\n\t\t\t\t\tthis.stepsWidgetDic[this.current_step][form_item_input.getField()] = form_item_input;\n\n\t\t\t\t\tlicense.append( form_item_input );\n\n\t\t\t\t\tvar accept_label = ' ' + $.i18n._( 'I Accept' ) + '';\n\n\t\t\t\t\tlicense.append( accept_label );\n\n\t\t\t\t} else {\n\t\t\t\t\tvar license_html = $.i18n._( 'The installer has already been run, as a safety measure it has been disabled from running again. If you are absolutely sure you want to run it again, or upgrade your system, please go to your timetrex.ini.php file and set \"installer_enabled\" to \"TRUE\". The line should look like' ) + ':';\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + '\"' + 'installer_enabled = TRUE' + '\"';\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + $.i18n._( 'After this change has been made, you can click the \"Re-Check\" button below to begin your installation.' );\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + '
';\n\t\t\t\t\tlicense_html = license_html + $.i18n._( 'For help, please visit' ) + ' www.timetrex.com ';\n\t\t\t\t\tlicense.append( license_html );\n\n\t\t\t\t\tvar ribbon_button_box = this.getRibbonButtonBox();\n\n\t\t\t\t\tvar ribbon_btn = $( '
  • ' );\n\t\t\t\t\tribbon_btn.unbind( 'click' ).bind( 'click', function() {\n\t\t\t\t\t\tProgressBar.showOverlay();\n\t\t\t\t\t\t$this.api.getLicense( {\n\t\t\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\n\t\t\t\t\t} );\n\n\t\t\t\t\tribbon_button_box.children().eq( 0 ).append( ribbon_btn );\n\n\t\t\t\t\tthis.content_div.find( '.content-handle-btn' ).html( ribbon_button_box );\n\n\t\t\t\t}\n\n\t\t\t\tlicense.show();\n\t\t\t\tbreak;\n\n\t\t\tcase 'requirements':\n\n\t\t\t\tvar step_title_htm = $.i18n._( 'In order for your' ) + ' '\n\t\t\t\t\t+ $.i18n._( stepData.application_name ) + ' '\n\t\t\t\t\t+ $.i18n._( 'installation to function properly, please ensure all of the system check items listed below are marked as' ) + ' '\n\t\t\t\t\t+ 'OK' + '. '\n\t\t\t\t\t+ $.i18n._( 'If any are red, please take the necessary steps to fix them.' );\n\n\t\t\t\tif ( stepData.check_all_requirements != 0 ) {\n\n\t\t\t\t\tif ( stepData.tt_product_edition > 10 ) {\n\t\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t\t+ $.i18n._( 'For installation assistance, please contact' ) + ' '\n\t\t\t\t\t\t\t+ '' + $.i18n._( 'TimeTrex support' ) + '';\n\t\t\t\t\t} else if ( stepData.tt_product_edition == 10 ) {\n\n\t\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t\t+ $.i18n._( 'For installation assistance, please join our community' ) + ' '\n\t\t\t\t\t\t\t+ '' + $.i18n._( 'forums' ) + ''\n\t\t\t\t\t\t\t+ ' ' + $.i18n._( 'or contact a TimeTrex support expert for' ) + ' '\n\t\t\t\t\t\t\t+ '' + $.i18n._( 'Implementation Support Services' ) + '

    ';\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif ( stepData.check_all_requirements == 1 ) {\n\t\t\t\t\tGlobal.setWidgetEnabled( this.next_btn, false );\n\t\t\t\t}\n\n\t\t\t\tif ( _.size( stepData.extended_error_messages ) > 0 ) {\n\t\t\t\t\tGlobal.setWidgetEnabled( this.next_btn, false );\n\t\t\t\t}\n\n\t\t\t\tstep_title.html( step_title_htm );\n\n\t\t\t\tthis.title_1.text( $.i18n._( 'System Check Acceptance' ) );\n\n\t\t\t\t// timetrex version, php version.\n\t\t\t\tvar requirements_column1 = requirements.find( '.first-column' );\n\t\t\t\trequirements_column1.empty();\n\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\tform_item_input.TText( { field: 'timetrex_version' } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'TimeTrex Version' ), form_item_input, requirements_column1, '' );\n\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\tform_item_input.TText( { field: 'php_version' } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP Version' ), form_item_input, requirements_column1, '' );\n\n\t\t\t\trequirements.find( '.first-label' ).empty();\n\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.SEPARATED_BOX );\n\t\t\t\tform_item_input.SeparatedBox( { label: $.i18n._( 'PHP Requirements' ) } );\n\t\t\t\tthis.addEditFieldToColumn( null, form_item_input, requirements.find( '.first-label' ) );\n\n\t\t\t\tvar requirements_column2 = requirements.find( '.second-column' );\n\t\t\t\trequirements_column2.empty();\n\t\t\t\tif ( stepData.check_all_requirements == 0 ) {\n\t\t\t\t\trequirements_column2.html( $.i18n._( 'All System Requirements have been met successfully' ) + '!' );\n\t\t\t\t\trequirements_column2.addClass( 'all-ok' );\n\t\t\t\t} else {\n\t\t\t\t\t// php requirements\n\t\t\t\t\trequirements_column2.removeClass( 'all-ok' );\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'database_engine' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PostgreSQL Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'bcmath' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'BCMATH Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'mbstring' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'MBSTRING Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'gettext' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'GETTEXT Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'intl' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'INTL Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'soap' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'SOAP Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'gd' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'GD Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'json' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'JSON Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'simplexml' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'SimpleXML Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'curl' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'CURL Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'zip' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'ZIP Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'mail' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'MAIL Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'openssl' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'OpenSSL Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'pear' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PEAR Enabled' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'safe_mode' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Safe Mode Turned Off' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'disabled_functions' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP DISABLE_FUNCTIONS' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'allow_fopen_url' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'ALLOW_FOPEN_URL Turned Off' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'disk_space' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Disk Space' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\t// other requirements\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'memory_limit' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Memory Limit' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'post_size' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Max Post Size' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'upload_size' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Max Upload Size' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'base_url' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Base URL' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'system_timezone' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'System TimeZone' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'php_int_size' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP 64-bit Support' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'base_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP Open BaseDir' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'cli_executable' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP CLI Executable' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'config_file' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Writable' ) + ' ' + $.i18n._( stepData.application_name ) + ' ' + $.i18n._( 'Configuration File' ) + '
    ' + '(timetrex.ini.php)', form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'cache_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Writable Cache Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'safe_cache_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Secure Cache Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'storage_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Writable Storage Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'safe_storage_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Secure Storage Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'log_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Writable Log Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'safe_log_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Secure Log Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'empty_cache_dir' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Empty Cache Directory' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'file_permission' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'File Permissions' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'file_checksums' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'File CheckSums' ), form_item_input, requirements_column2, '', null, true, true );\n\n\t\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\t\tform_item_input.TText( { field: 'cli_requirements' } );\n\t\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'PHP CLI Requirements' ), form_item_input, requirements_column2, '', null, true, true );\n\t\t\t\t}\n\n\t\t\t\t// forth column\n\n\t\t\t\tvar requirements_column4 = requirements.find( '.forth-column' );\n\t\t\t\trequirements_column4.empty();\n\n\t\t\t\tif ( _.size( stepData.extended_error_messages ) > 0 ) {\n\t\t\t\t\tvar error_html = '' + $.i18n._( 'Detailed Error Messages' ) + '';\n\t\t\t\t\terror_html = error_html + '
    ';\n\t\t\t\t\terror_html = error_html + '
    ';\n\t\t\t\t\tfor ( var i in stepData.extended_error_messages ) {\n\t\t\t\t\t\tvar errors = stepData['extended_error_messages'][i];\n\t\t\t\t\t\tfor ( var key in errors ) {\n\t\t\t\t\t\t\terror_html = error_html + errors[key];\n\t\t\t\t\t\t\terror_html = error_html + '
    ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\trequirements_column4.html( error_html );\n\t\t\t\t\trequirements_column4.addClass( 'dataError' );\n\t\t\t\t} else {\n\t\t\t\t\trequirements_column4.removeClass( 'dataError' );\n\t\t\t\t}\n\n\t\t\t\t// fifth column\n\t\t\t\tvar requirements_column5 = requirements.find( '.fifth-column' );\n\t\t\t\trequirements_column5.empty();\n\n\t\t\t\tvar columns_html = $.i18n._( 'Your' ) + ' ' + $.i18n._( stepData['application_name'] ) + ' ' + $.i18n._( 'configuration file' ) + ' ';\n\t\t\t\tcolumns_html = columns_html + '(timetrex.ini.php)';\n\t\t\t\tcolumns_html = columns_html + ' ' + $.i18n._( 'is located at' ) + ':';\n\t\t\t\tcolumns_html = columns_html + '
    ';\n\t\t\t\tcolumns_html = columns_html + '

    ' + stepData['config_file_loc'] + '

    ';\n\t\t\t\tcolumns_html = columns_html + '
    ';\n\t\t\t\tcolumns_html = columns_html + $.i18n._( 'Your PHP configuration file' ) + ' ' + '(php.ini)' + ' ' + $.i18n._( 'is located at' ) + ':';\n\t\t\t\tcolumns_html = columns_html + '
    ';\n\n\t\t\t\tif ( stepData['php_include_path'] ) {\n\t\t\t\t\tcolumns_html = columns_html + '

    ' + stepData['php_config_file'] + '' + ', ' + $.i18n._( 'the include path is' ) + ': ' + '\"' + '' + stepData['php_include_path'] + '' + '\"' + '

    ';\n\t\t\t\t} else {\n\t\t\t\t\tcolumns_html = columns_html + '

    ' + stepData['php_config_file'] + '' + ', ' + $.i18n._( 'the include path is' ) + ': ' + '\"\"' + '

    ';\n\t\t\t\t}\n\n\t\t\t\tcolumns_html = columns_html + $.i18n._( 'Detailed' ) + ' ';\n\t\t\t\tcolumns_html = columns_html + '' + $.i18n._( 'PHP Information' ) + '';\n\n\t\t\t\tif ( stepData.check_all_requirements == 0 ) {\n\n\t\t\t\t} else {\n\t\t\t\t\trequirements_column5.html( columns_html );\n\t\t\t\t}\n\n\t\t\t\tvar ribbon_button_box = this.getRibbonButtonBox();\n\n//\t\t\t\tribbon_button_box.css( 'width', '96%' );\n\t\t\t\tvar ribbon_btn = $( '
  • ' );\n\t\t\t\tribbon_btn.unbind( 'click' ).bind( 'click', function() {\n\t\t\t\t\tProgressBar.showOverlay();\n\t\t\t\t\t$this.api.getRequirements( $this.external_installer, {\n\t\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\t\tif ( res.getResult().action ) {\n\t\t\t\t\t\t\t\t$this.onNextClick();\n\t\t\t\t\t\t\t} else if ( res.isValid() ) {\n\t\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\n\t\t\t\t} );\n\n\t\t\t\tribbon_button_box.children().eq( 0 ).append( ribbon_btn );\n\n\t\t\t\tthis.content_div.find( '.content-handle-btn' ).html( ribbon_button_box );\n\n\t\t\t\trequirements.show();\n\t\t\t\tbreak;\n\t\t\tcase 'user':\n\t\t\t\tstep_title.html( $.i18n._( 'Please enter the administrator user name and password' )\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '' + '*' + $.i18n._( 'IMPORTANT' ) + '*' + ':' + '' + ' '\n\t\t\t\t\t+ $.i18n._( 'Please write this information down, as you will need it later to login to' ) + ' '\n\t\t\t\t\t+ $.i18n._( stepData.application_name )\n\t\t\t\t);\n\t\t\t\tthis.title_1.text( $.i18n._( 'Administrator Login' ) );\n\t\t\t\tvar user_column1 = user.find( '.first-column' );\n\t\t\t\tuser_column1.empty();\n\n\t\t\t\t// User Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'user_name', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'User Name' ), form_item_input, user_column1 );\n\n\t\t\t\t// Password\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.PASSWORD_INPUT );\n\n\t\t\t\tform_item_input.TTextInput( { field: 'password', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Password' ), form_item_input, user_column1 );\n\n\t\t\t\t// Password(confirm)\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.PASSWORD_INPUT );\n\n\t\t\t\tform_item_input.TTextInput( { field: 'password2', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Password (Confirm)' ), form_item_input, user_column1 );\n\n\t\t\t\t// First Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'first_name', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'First Name' ), form_item_input, user_column1 );\n\n\t\t\t\t// Last Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'last_name', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Last Name' ), form_item_input, user_column1 );\n\n\t\t\t\t// Email\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'work_email', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Email' ), form_item_input, user_column1 );\n\n\t\t\t\tuser.show();\n\t\t\t\tbreak;\n\n\t\t\tcase 'company':\n\t\t\t\tstep_title.text( $.i18n._( 'Please enter your company information below.' ) );\n\t\t\t\tthis.title_1.text( $.i18n._( 'Company Information' ) );\n\t\t\t\tvar company_column1 = company.find( '.first-column' );\n\t\t\t\tcompany_column1.empty();\n\n\t\t\t\t// Company Full Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'name', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Company Full Name' ), form_item_input, company_column1 );\n\n\t\t\t\t// Company Short Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'short_name', width: 200 } );\n\n\t\t\t\tvar widgetContainer = $( '
    ' );\n\t\t\t\tvar label = $( ' ( ' + $.i18n._( 'ie' ) + ': ' + $.i18n._( 'America Online' ) + ' = ' + $.i18n._( 'AOL' ) + ', ' + $.i18n._( 'no spaces' ) + ' )' );\n\n\t\t\t\twidgetContainer.append( form_item_input );\n\t\t\t\twidgetContainer.append( label );\n\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Company Short Name' ), form_item_input, company_column1, '', widgetContainer, null, true );\n\n\t\t\t\t// Industry\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\t\tform_item_input.TComboBox( { field: 'industry_id' } );\n\t\t\t\tform_item_input.setSourceData( this.stepsDataDic[this.current_step]['industry_options'] );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Industry' ), form_item_input, company_column1 );\n\n\t\t\t\t// Address (Line 1)\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'address1', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Address (Line 1)' ), form_item_input, company_column1 );\n\n\t\t\t\t// Address (Line 2)\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'address2', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Address (Line 2)' ), form_item_input, company_column1 );\n\n\t\t\t\t// City\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'city', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'City' ), form_item_input, company_column1 );\n\n\t\t\t\t// Country\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\t\tform_item_input.TComboBox( { field: 'country' } );\n\t\t\t\tform_item_input.setSourceData( this.stepsDataDic[this.current_step]['country_options'] );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Country' ), form_item_input, company_column1 );\n\n\t\t\t\t// Province / State\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\t\tform_item_input.TComboBox( { field: 'province' } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Province / State' ), form_item_input, company_column1 );\n\n\t\t\t\t// Postal / ZIP Code\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'postal_code', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Postal / ZIP Code' ), form_item_input, company_column1 );\n\n\t\t\t\t// Phone\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'work_phone', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Phone' ), form_item_input, company_column1 );\n\t\t\t\t//company.find( '.first-column' ).css( 'border', '1px solid #C7C7C7' );\n\t\t\t\t//\n\t\t\t\t//this.content_div.find( '.company' ).css( {height: this.content_div.height() - step_title.height() - 15} );\n\t\t\t\t//$( window ).resize( function() {\n\t\t\t\t//\t$this.content_div.find( '.company' ).css( {height: $this.content_div.height() - step_title.height() - 15} );\n\t\t\t\t//} );\n\n\t\t\t\tcompany.show();\n\t\t\t\tbreak;\n\n\t\t\tcase 'systemSettings':\n\t\t\t\tstep_title.text( $.i18n._( 'Please enter your site configuration information below. If you are unsure of the fields, we suggest that you use the default values.' ) );\n\t\t\t\tthis.title_1.text( $.i18n._( 'System Settings' ) );\n\t\t\t\tvar systemSettings_column1 = systemSettings.find( '.first-column' );\n\t\t\t\tsystemSettings_column1.empty();\n\t\t\t\t// URL\n\t\t\t\tvar widgetContainer = $( '
    ' );\n\n\t\t\t\tvar form_item_host_input = Global.loadWidgetByName( FormItemType.TEXT );\n\t\t\t\tform_item_host_input.TText( { field: 'host_name' } );\n\t\t\t\tform_item_host_input.setValue( 'http://' + this.stepsDataDic[this.current_step]['host_name'] );\n\t\t\t\twidgetContainer.append( form_item_host_input );\n\n\t\t\t\tvar form_item_url_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_url_input.TTextInput( { field: 'base_url', width: 200 } );\n\n\t\t\t\twidgetContainer.append( form_item_url_input );\n\n\t\t\t\tvar ie_label = $( '(' + $.i18n._( 'No trailing slash' ) + ')' );\n\n\t\t\t\twidgetContainer.append( ie_label );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'URL' ), [form_item_host_input, form_item_url_input], systemSettings_column1, '', widgetContainer, null, true );\n\n\t\t\t\t// Log Directory\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'log_dir', width: 400 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Log Directory' ), form_item_input, systemSettings_column1 );\n\n\t\t\t\t// Storage Directory\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'storage_dir', width: 400 } );\n\n\t\t\t\tvar widgetContainer = $( '
    ' );\n\t\t\t\tvar label = $( ' (' + $.i18n._( 'for things like attachments, logos, etc...' ) + ')' );\n\n\t\t\t\twidgetContainer.append( form_item_input );\n\t\t\t\twidgetContainer.append( label );\n\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Storage Directory' ), form_item_input, systemSettings_column1, '', widgetContainer, null, true );\n\n\t\t\t\t// Cache Directory\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'cache_dir', width: 400 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Cache Directory' ), form_item_input, systemSettings_column1 );\n\n\t\t\t\t// System timezone\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\t\tform_item_input.TComboBox( { field: 'time_zone' } );\n\t\t\t\tform_item_input.setSourceData( $this.time_zone_array );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Server Time Zone' ), form_item_input, systemSettings_column1 );\n\n\t\t\t\tsystemSettings.show();\n\t\t\t\tbreak;\n\t\t\tcase 'databaseConfig':\n\n\t\t\t\tdatabaseConfig.find( '.step-tip' ).text( $.i18n._( 'Privileged Database User Name / Password. This is only used to create the database schema if the above user does not have permissions to do so.' ) );\n\n\t\t\t\tvar step_title_htm = '';\n\t\t\t\tstep_title_htm = step_title_htm + $.i18n._( 'Please enter your database configuration information below. If you are unsure, use the default values.' );\n\n\t\t\t\tstep_title.html( step_title_htm );\n\t\t\t\tthis.title_1.text( $.i18n._( 'Database Configuration' ) );\n\n\t\t\t\tvar databaseConfig_column1 = databaseConfig.find( '.first-column' );\n\t\t\t\tdatabaseConfig_column1.empty();\n\n\t\t\t\t// database type\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.COMBO_BOX );\n\t\t\t\tform_item_input.TComboBox( { field: 'type' } );\n\t\t\t\tform_item_input.setSourceData( $this.type_array );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Database Type' ), form_item_input, databaseConfig_column1 );\n\n\t\t\t\t// host name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'host', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Host Name' ), form_item_input, databaseConfig_column1 );\n\n\t\t\t\t// database name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'database_name', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Database Name' ), form_item_input, databaseConfig_column1 );\n\n\t\t\t\t// Database User Name\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'user', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Database User Name' ), form_item_input, databaseConfig_column1 );\n\n\t\t\t\t// Database Password\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'password', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Database Password' ), form_item_input, databaseConfig_column1 );\n\n\t\t\t\tvar databaseConfig_column2 = databaseConfig.find( '.second-column' );\n\t\t\t\tdatabaseConfig_column2.empty();\n\n\t\t\t\t// Privileged Database User Name\n\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'priv_user', width: 200 } );\n\n\t\t\t\tvar widgetContainer = $( '
    ' );\n\t\t\t\tvar label = $( '( ' + $.i18n._( 'ie: root, postgres' ) + ' )' );\n\n\t\t\t\twidgetContainer.append( form_item_input );\n\t\t\t\twidgetContainer.append( label );\n\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Privileged Database User Name' ), form_item_input, databaseConfig_column2, '', widgetContainer );\n\n\t\t\t\t// Privileged Database User Password\n\t\t\t\tform_item_input = Global.loadWidgetByName( FormItemType.TEXT_INPUT );\n\t\t\t\tform_item_input.TTextInput( { field: 'priv_password', width: 200 } );\n\t\t\t\tthis.addEditFieldToColumn( $.i18n._( 'Privileged Database User Password' ), form_item_input, databaseConfig_column2 );\n\n\t\t\t\tvar ribbon_button_box = this.getRibbonButtonBox();\n\t\t\t\tvar ribbon_btn = $( '
  • ' );\n\t\t\t\tvar $this = this;\n\t\t\t\tribbon_btn.unbind( 'click' ).bind( 'click', function() {\n\t\t\t\t\t$this.onTestDatabaseConnectionClick( $this, true );\n\t\t\t\t} );\n\n\t\t\t\tribbon_button_box.children().eq( 0 ).append( ribbon_btn );\n\n\t\t\t\tthis.content_div.find( '.content-handle-btn' ).html( ribbon_button_box );\n\t\t\t\t//databaseConfig.find( '.first-column' ).css( 'border', '1px solid #C7C7C7' );\n\n\t\t\t\t//this.content_div.find( '.databaseConfig' ).css( {height: this.content_div.height() - step_title.height() - 65} );\n\t\t\t\t//$( window ).resize( function() {\n\t\t\t\t//\t$this.content_div.find( '.databaseConfig' ).css( {height: $this.content_div.height() - step_title.height() - 65} );\n\t\t\t\t//} );\n\n\t\t\t\tdatabaseConfig.show();\n\t\t\t\tbreak;\n\t\t\tcase 'databaseSchema':\n\t\t\t\tthis.title_1.text( $.i18n._( 'Database Configuration' ) );\n\t\t\t\tif ( stepData.upgrade ) {\n\t\t\t\t\tdatabaseSchema.find( '.s-label' ).text( $.i18n._( 'Upgrading database, please wait...' ) );\n\t\t\t\t} else {\n\t\t\t\t\tdatabaseSchema.find( '.s-label' ).text( $.i18n._( 'Initializing database, please wait...' ) );\n\t\t\t\t}\n\n\t\t\t\tstep_title.empty();\n\t\t\t\tdatabaseSchema.show();\n\t\t\t\tbreak;\n\t\t\tcase 'postUpgrade':\n\t\t\t\tstep_title.empty();\n\t\t\t\tthis.title_1.text( $.i18n._( 'Upgrade Complete' ) );\n\t\t\t\tpostUpgrade.html( '' + $.i18n._( 'Congratulations!' ) + '' + ' '\n\t\t\t\t\t+ $.i18n._( 'You have successfully upgraded' ) + ' '\n\t\t\t\t\t+ $.i18n._( stepData.application_name ) + ' '\n\t\t\t\t\t+ $.i18n._( 'to' ) + ' '\n\t\t\t\t\t+ '' + stepData.application_version + ''\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '' + $.i18n._( 'Note' ) + ':' + '' + ' '\n\t\t\t\t\t+ $.i18n._( 'In order to access new features you may need to re-apply the' ) + ' '\n\t\t\t\t\t+ '' + $.i18n._( 'Administrator' ) + '' + ' '\n\t\t\t\t\t+ $.i18n._( 'permission preset to each administrator employee in' ) + ' '\n\t\t\t\t\t+ $.i18n._( stepData.application_name ) + '.'\n\t\t\t\t);\n\t\t\t\tpostUpgrade.show();\n\t\t\t\tbreak;\n\t\t\tcase 'installDone':\n\t\t\t\tvar loc = window.location;\n\t\t\t\tvar currentURL = loc.protocol + '//' + loc.host + loc.pathname;\n\t\t\t\tvar login_url = currentURL + '#!m=Login';\n\n\t\t\t\tstep_title.empty();\n\t\t\t\tthis.title_1.text( $.i18n._( 'Done!' ) );\n\t\t\t\tif ( stepData.upgrade == 1 ) {\n\t\t\t\t\tinstallDone.html( '' + $.i18n._( 'Congratulations!' ) + '' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'You have successfully upgraded' ) + ' ' + $.i18n._( stepData.application_name )\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ $.i18n._( 'You may now' ) + ' '\n\t\t\t\t\t\t+ '' + $.i18n._( 'login' ) + '' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'with the user name/password that you created earlier.' )\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tinstallDone.html( '' + $.i18n._( 'Congratulations!' ) + ' ' + '' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'You have successfully installed' ) + ' ' + $.i18n._( stepData.application_name )\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ $.i18n._( 'You may now' ) + ' '\n\t\t\t\t\t\t+ '' + $.i18n._( 'login' ) + '' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'with the user name/password that you created earlier.' )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tinstallDone.show();\n\t\t\t\tbreak;\n\t\t\tcase 'maintenanceJobs':\n\t\t\t\tstep_title.empty();\n\t\t\t\tthis.title_1.text( $.i18n._( 'Maintenance Jobs' ) );\n\t\t\t\tvar maintenanceJob_html = $.i18n._( stepData.application_name ) + ' '\n\t\t\t\t\t+ '' + $.i18n._( 'requires' ) + '' + ' '\n\t\t\t\t\t+ $.i18n._( 'that maintenance jobs be run regularly throughout the day.' )\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '

    '\n\t\t\t\t\t+ ''\n\t\t\t\t\t+ $.i18n._( 'This is extremely important and without these maintenance jobs running' ) + ' '\n\t\t\t\t\t+ $.i18n._( stepData.application_name ) + ' '\n\t\t\t\t\t+ $.i18n._( 'will fail to operate correctly.' )\n\t\t\t\t\t+ ''\n\t\t\t\t\t+ '

    '\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '
    '\n\t\t\t\t\t+ '
    ';\n\n\t\t\t\tif ( stepData.php_os == 'WINNT' ) {\n\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + $.i18n._( 'In Windows simply run this command as Administrator.' ) + '

    ' + stepData.schedule_maintenance_job_command;\n\t\t\t\t} else {\n\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + $.i18n._( 'In most Linux distributions, you can run the following command' );\n\t\t\t\t\tif ( stepData.is_sudo_installed == false ) {\n\t\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + +' ' + $.i18n._( 'as root' );\n\t\t\t\t\t}\n\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + ':' + '
    ' + '';\n\n\t\t\t\t\tif ( stepData.is_sudo_installed ) {\n\t\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + 'sudo';\n\t\t\t\t\t}\n\n\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + ' crontab -u ' + stepData.web_server_user + ' -e';\n\n\t\t\t\t\tmaintenanceJob_html = maintenanceJob_html + ''\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ $.i18n._( 'Then add the following line to the bottom of the file' ) + ':'\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '' + '* * * * * php ' + stepData.cron_file + ' > /dev/null 2>&1' + ''\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '
    '\n\t\t\t\t\t\t+ '
    ';\n\n\t\t\t\t}\n\n\t\t\t\tmaintenanceJobs.html( maintenanceJob_html );\n\n\t\t\t\tmaintenanceJobs.show();\n\t\t\t\tbreak;\n\n\t\t}\n\t}\n\n\t/**\n\t * tests database connection:\n\t * @param $this\n\t * @param deferred (optional)\n\t */\n\tonTestDatabaseConnectionClick( $this, showTrue ) {\n\t\tvar $data = {};\n\t\tfor ( var key in $this.stepsWidgetDic[$this.current_step] ) {\n\t\t\tvar widget = $this.stepsWidgetDic[$this.current_step][key];\n\t\t\t$data[key] = widget.getValue();\n\t\t}\n\t\tProgressBar.showOverlay();\n\t\tvar res = $this.api.testConnection( $data, { async: false } );\n\n\t\tif ( res.isValid() ) {\n\t\t\tvar result = res.getResult();\n\t\t\tvar step_title_htm = '';\n\t\t\tif ( result.test_connection !== null ) {\n\t\t\t\tif ( result.test_connection === true ) {\n\t\t\t\t\tif ( result.database_version === 1 ) {\n\t\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t\t+ $.i18n._( 'Database version check' ) + ' '\n\t\t\t\t\t\t\t+ '' + $.i18n._( 'FAILED' ) + '' + '!' + ' '\n\t\t\t\t\t\t\t+ $.i18n._( 'Please upgrade your database to meet the minimum version requirements and try again.' )\n\t\t\t\t\t\t\t+ '

    ';\n\t\t\t\t\t\tTAlertManager.showAlert( step_title_htm );\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t\t+ $.i18n._( 'Connection test to your database as a non-privileged user has' ) + ' '\n\t\t\t\t\t\t\t+ '' + $.i18n._( 'SUCCEEDED' ) + '' + '!' + ' '\n\t\t\t\t\t\t\t+ $.i18n._( 'You may continue.' )\n\t\t\t\t\t\t\t+ '

    ';\n\t\t\t\t\t\tif ( showTrue ) {\n\t\t\t\t\t\t\tTAlertManager.showAlert( step_title_htm );\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t} else if ( result.test_connection === false ) {\n\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t+ $.i18n._( 'Connection test to your database as a non-privileged user has' ) + ' '\n\t\t\t\t\t\t+ '' + $.i18n._( 'FAILED' ) + '' + '!' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'Please correct your settings and try again.' )\n\t\t\t\t\t\t+ '

    ';\n\n\t\t\t\t\tTAlertManager.showAlert( step_title_htm );\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( result.test_priv_connection !== null ) {\n\t\t\t\tif ( result.test_priv_connection === false ) {\n\t\t\t\t\tstep_title_htm = step_title_htm\n\t\t\t\t\t\t+ '

    '\n\t\t\t\t\t\t+ $.i18n._( 'Connection test to your database as a privileged user has' ) + ' '\n\t\t\t\t\t\t+ '' + $.i18n._( 'FAILED' ) + '' + '!' + ' '\n\t\t\t\t\t\t+ $.i18n._( 'Please correct the user name/password and try again.' )\n\t\t\t\t\t\t+ '

    ';\n\n\t\t\t\t\tTAlertManager.showAlert( step_title_htm );\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\n\tonFormItemChange( target ) {\n\t\tvar widgets = this.stepsWidgetDic[this.current_step];\n\n\t\tvar key = target.getField();\n\t\tvar c_value = target.getValue();\n\t\tswitch ( key ) {\n\t\t\tcase 'country':\n\t\t\t\tthis.api.getProvinceOptions( c_value, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\twidgets.province.setSourceData( [] );\n\t\t\t\t\t\t\twidgets.province.setSourceData( res.getResult() );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'type':\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonBackClick() {\n\t\tvar $this = this;\n\t\tthis.saveCurrentStep();\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 'license':\n\t\t\t\tbreak;\n\t\t\tcase 'requirements':\n\t\t\t\tthis.current_step = 'license';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'databaseConfig':\n\t\t\t\tthis.current_step = 'requirements';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'postUpgrade':\n\t\t\tcase 'systemSettings':\n\t\t\t\tthis.current_step = 'databaseConfig';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'company':\n\t\t\t\tthis.current_step = 'systemSettings';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'maintenanceJobs':\n\t\t\tcase 'installDone':\n\t\t\t\tthis.current_step = 'user';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'user':\n\t\t\t\tthis.current_step = 'company';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tonNextClick() {\n\t\tvar $data;\n\n\t\tvar $this = this;\n\t\tthis.saveCurrentStep();\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 'license':\n\t\t\t\t// the next interface is system requirements, so set the current step to the requirements\n\t\t\t\tthis.current_step = 'requirements';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'requirements':\n\t\t\t\tif ( this.external_installer == 1 ) {\n\t\t\t\t\tthis.current_step = 'databaseSchema';\n\t\t\t\t\tthis.initCurrentStep();\n\t\t\t\t} else {\n\t\t\t\t\tthis.current_step = 'databaseConfig';\n\t\t\t\t\tthis.initCurrentStep();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'databaseConfig':\n\t\t\t\t// need to save the database configure first.\n\t\t\t\t$data = {};\n\t\t\t\tfor ( var key in this.stepsWidgetDic[this.current_step] ) {\n\t\t\t\t\tvar widget = this.stepsWidgetDic[this.current_step][key];\n\t\t\t\t\t$data[key] = widget.getValue();\n\t\t\t\t}\n\n\t\t\t\tif ( this.onTestDatabaseConnectionClick( this, false ) ) {\n\t\t\t\t\tTAlertManager.showConfirmAlert( $.i18n._( 'Installing/Upgrading the TimeTrex database may take up to 10 minutes. Please do not stop the process in any way, including pressing STOP or BACK in your web browser, doing so may leave your database in an unusable state.' ), null, function( result ) {\n\t\t\t\t\t\tif ( result ) {\n\t\t\t\t\t\t\t$this.api.createDatabase( $data, {\n\t\t\t\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\t\t\t\tif ( res.getResult().next_page ) {\n\t\t\t\t\t\t\t\t\t\t\t$this.current_step = res.getResult().next_page;\n\t\t\t\t\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = res.getResult();\n\t\t\t\t\t\t\t\t\t\t\t$this._initCurrentStep();\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'postUpgrade':\n\t\t\t\tthis.current_step = 'installDone';\n\t\t\t\tthis.stepsDataDic[this.current_step] = { upgrade: 1 };\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'maintenanceJobs':\n\t\t\t\tthis.current_step = 'installDone';\n\t\t\t\tthis.initCurrentStep();\n\t\t\t\tbreak;\n\t\t\tcase 'systemSettings':\n\t\t\t\t$data = {};\n\t\t\t\tfor ( var key in this.stepsWidgetDic[this.current_step] ) {\n\t\t\t\t\tvar widget = this.stepsWidgetDic[this.current_step][key];\n\t\t\t\t\t$data[key] = widget.getValue();\n\t\t\t\t}\n\n\t\t\t\tthis.api.setSystemSettings( $data, this.external_installer, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\n\t\t\t\t\t\t\t$this.current_step = 'company';\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'company':\n\t\t\t\t$data = {};\n\t\t\t\t$data['company_id'] = $this.company_id;\n\t\t\t\tfor ( var key in this.stepsWidgetDic[this.current_step] ) {\n\t\t\t\t\tvar widget = this.stepsWidgetDic[this.current_step][key];\n\t\t\t\t\t$data[key] = widget.getValue();\n\t\t\t\t}\n\n\t\t\t\tthis.api.setCompany( $data, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\tvar company_id = res.getResult();\n\t\t\t\t\t\t\t$this.current_step = 'user';\n\t\t\t\t\t\t\t$this.company_id = company_id;\n\t\t\t\t\t\t\t$this.stepsDataDic[$this.current_step] = { company_id: company_id };\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.setErrorTips( res );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\n\t\t\t\tbreak;\n\t\t\tcase 'user':\n\t\t\t\t$data = {};\n\t\t\t\t$data['user_id'] = this.user_id;\n\t\t\t\tfor ( var key in this.stepsWidgetDic[this.current_step] ) {\n\t\t\t\t\tvar widget = this.stepsWidgetDic[this.current_step][key];\n\t\t\t\t\t$data[key] = widget.getValue();\n\t\t\t\t}\n\n\t\t\t\t$data = $.extend( {}, $data, this.stepsDataDic[$this.current_step] );\n\t\t\t\tthis.api.setUser( $data, this.external_installer, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\tvar next_page = res.getResult().next_page;\n\t\t\t\t\t\t\t$this.user_id = res.getResult().user_id;\n\t\t\t\t\t\t\t$this.current_step = next_page;\n\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this.setErrorTips( res );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tbuildCurrentStepData() {\n\t\tvar args = {};\n\t\tvar $this = this;\n\t\tvar stepData = this.stepsDataDic[this.current_step];\n\t\tvar widgets = this.stepsWidgetDic[this.current_step];\n\t\tswitch ( this.current_step ) {\n\t\t\tcase 'systemSettings':\n\t\t\tcase 'databaseConfig':\n\t\t\tcase 'license':\n\t\t\tcase 'user':\n\t\t\t\tfor ( var key in widgets ) {\n\t\t\t\t\tif ( stepData[key] ) {\n\t\t\t\t\t\twidgets[key].setValue( stepData[key] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\tbreak;\n\t\t\tcase 'company':\n\t\t\t\tfor ( var key in widgets ) {\n\t\t\t\t\tif ( stepData[key] ) {\n\t\t\t\t\t\twidgets[key].setValue( stepData[key] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar country = widgets.country.getValue();\n\t\t\t\tthis.api.getProvinceOptions( country, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\twidgets.province.setSourceData( res.getResult() );\n\t\t\t\t\t\t\twidgets.province.setValue( stepData['province'] );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tcase 'requirements':\n\t\t\t\tfor ( var key in widgets ) {\n\t\t\t\t\tvar edit_view_form_item_dic = $( this.edit_view_form_item_dic[key] );\n\n\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t} else {\n\t\t\t\t\t\tedit_view_form_item_dic.show();\n\t\t\t\t\t}\n\n\t\t\t\t\tvar widget = widgets[key];\n\t\t\t\t\twidget.removeClass( 't-text' );\n\t\t\t\t\twidget.removeClass( 'dataError' );\n\t\t\t\t\twidget.removeClass( 'dataWarning' );\n\t\t\t\t\twidget.addClass( 'custom-t-text' );\n\n\t\t\t\t\tswitch ( key ) {\n\t\t\t\t\t\tcase 'timetrex_version':\n\t\t\t\t\t\t\tif ( stepData[key].check_timetrex_version == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) + '(v' + stepData[key].current_timetrex_version + ')' );\n\t\t\t\t\t\t\t} else if ( stepData[key].check_timetrex_version == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Unable to Check Latest Version' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataWarning' );\n\t\t\t\t\t\t\t} else if ( stepData[key].check_timetrex_version == 2 ) {\n\t\t\t\t\t\t\t\twidget.html(\n\t\t\t\t\t\t\t\t\t$.i18n._( 'A Newer Version of TimeTrex is Available.' ) + ' '\n\t\t\t\t\t\t\t\t\t+ '' + $.i18n._( 'Download' ) + ' v' + stepData[key].latest_timetrex_version + ' ' + $.i18n._( 'Now' ) + '' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataWarning' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'php_version':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_version == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) + ' (v' + stepData[key].php_version + ')' );\n\t\t\t\t\t\t\t} else if ( stepData[key].check_php_version == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Invalid' ) + ' (v' + stepData[key].php_version + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t} else if ( stepData[key].check_php_version == 2 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Unsupported' ) + ' (v' + stepData[key].php_version + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataWarning' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'php_int_size':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Invalid (Only 32-bit)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'database_engine':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (PGSQL extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'bcmath':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (BCMATH extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'mbstring':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (MBSTRING extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'gettext':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (GETTEXT extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'intl':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (INTL extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'soap':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (SOAP extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'gd':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (GD extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'json':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (JSON extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'mcrypt':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (MCRYPT extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'simplexml':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (SimpleXML extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'curl':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (CURL extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'zip':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (ZIP extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'mail':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (MAIL extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'openssl':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed. (OpenSSL extension must be enabled)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'pear':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\tif ( stepData.php_os == 'WINNT' ) {\n\t\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed.' )\n\t\t\t\t\t\t\t\t\t\t+ '(' + $.i18n._( 'try running' ) + ': ' + '\"go-pear.bat\"' + ')'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not Installed.' )\n\t\t\t\t\t\t\t\t\t\t+ '('\n\t\t\t\t\t\t\t\t\t\t+ $.i18n._( 'install the PEAR RPM or package from' ) + ' '\n\t\t\t\t\t\t\t\t\t\t+ 'http://pear.php.net'\n\t\t\t\t\t\t\t\t\t\t+ ')'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'safe_mode':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Safe Mode is On. (Please disable it in php.ini)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'allow_fopen_url':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'ALLOW_FOPEN_URL is Off. (Please enable it in php.ini)' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'disk_space':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not enough disk space available, please free up disk space and try again.' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'memory_limit':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_memory_limit == 0 ) {\n\t\t\t\t\t\t\t\tvar str = $.i18n._( 'OK' );\n\t\t\t\t\t\t\t\tif ( stepData[key].memory_limit > 0 ) {\n\t\t\t\t\t\t\t\t\tstr += '(' + stepData[key].memory_limit + ' bytes' + ')';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twidget.html( str );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else if ( stepData[key].check_php_memory_limit == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( stepData[key].memory_limit + ' bytes' + ' (' + $.i18n._( 'Set this to 512M or higher' ) + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'post_size':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_post_size == 0 ) {\n\t\t\t\t\t\t\t\tvar str = $.i18n._( 'OK' );\n\t\t\t\t\t\t\t\tif ( stepData[key].post_size > 0 ) {\n\t\t\t\t\t\t\t\t\tstr += '(' + stepData[key].post_size + ' bytes' + ')';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twidget.html( str );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else if ( stepData[key].check_php_post_size == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( stepData[key].post_size + ' bytes' + ' (' + $.i18n._( 'Set this to 25M or higher, recommend 128M' ) + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'upload_size':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_upload_size == 0 ) {\n\t\t\t\t\t\t\t\tvar str = $.i18n._( 'OK' );\n\t\t\t\t\t\t\t\tif ( stepData[key].upload_size > 0 ) {\n\t\t\t\t\t\t\t\t\tstr += '(' + stepData[key].post_size + ' bytes' + ')';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twidget.html( str );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else if ( stepData[key].check_php_upload_size == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( stepData[key].upload_size + ' bytes' + ' (' + $.i18n._( 'Set this to 25M or higher, recommend 128M' ) + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'disabled_functions':\n\t\t\t\t\t\t\tif ( stepData[key].check_disabled_functions == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else if ( stepData[key].check_disabled_functions == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Critical functions disabled' ) + ': ' + stepData[key].disabled_function_list + ' (' + $.i18n._( 'Please enable them in php.ini' ) + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'base_url':\n\t\t\t\t\t\t\tif ( stepData[key].check_base_url == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( key + ' ' + $.i18n._( 'in' ) + ' timetrex.ini.php ' + $.i18n._( 'is incorrect, perhaps it should be' ) + ' ' + stepData[key].recommended_base_url + ' ' + $.i18n._( 'instead' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'base_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_open_base_dir == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'PHP OPEN_BASEDIR setting' ) + ' ' + '(' + stepData[key].php_open_base_dir + ') ' + $.i18n._( 'does not include directory of PHP CLI binary' ) + ' ' + '(' + stepData[key].php_cli_directory + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'system_timezone':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else if ( stepData[key] == 1 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'system_timezone in timetrex.ini.php is invalid!' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'cli_executable':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_cli_binary == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'PHP CLI' ) + ' ' + '(' + stepData[key].php_cli + ')' + ' ' + $.i18n._( 'does not exist or is not executable.' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'cli_requirements':\n\t\t\t\t\t\t\tif ( stepData[key].check_php_cli_requirements == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'PHP CLI requirements failed while executing' ) + ':
    '\n\t\t\t\t\t\t\t\t\t+ stepData[key].php_cli_requirements_command + '
    '\n\t\t\t\t\t\t\t\t\t+ $.i18n._( 'Likely caused by having two PHP.INI files with different settings.' )\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'config_file':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not writable' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'cache_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_writable_cache_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not writable' ) + ' (' + stepData[key].cache_dir + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'safe_cache_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_safe_cache_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'INSECURE, must not be a sub-directory of base path.' ) + ' (' + stepData[key].base_path + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'storage_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_writable_storage_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not writable' ) + ' (' + stepData[key].storage_path + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'safe_storage_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_safe_storage_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'INSECURE, must not be a sub-directory of base path.' ) + ' (' + stepData[key].base_path + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'log_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_writable_log_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Not writable' ) + ' (' + stepData[key].log_path + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'safe_log_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_safe_log_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'INSECURE, must not be a sub-directory of base path.' ) + ' (' + stepData[key].base_path + ')' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'empty_cache_dir':\n\t\t\t\t\t\t\tif ( stepData[key].check_clean_cache_directory == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t\tedit_view_form_item_dic.hide();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'Please delete all files/directories in' ) + ': ' + ' ' + stepData[key].cache_dir + '' );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'file_permission':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'File permissions are invalid, some' ) + ' ' + $.i18n._( stepData.application_name ) + ' ' + $.i18n._( 'files are not readable/writable. See detailed error messages below.' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'file_checksums':\n\t\t\t\t\t\t\tif ( stepData[key] == 0 ) {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'OK' ) );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twidget.html( $.i18n._( 'File checksums do not match, some' ) + ' ' + $.i18n._( stepData.application_name ) + ' ' + $.i18n._( 'files may be corrupted, missing, or not installed properly. See detailed error messages below.' ) );\n\t\t\t\t\t\t\t\twidget.addClass( 'dataError' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\tbreak;\n\t\t\tcase 'databaseSchema':\n\t\t\t\tthis.api.setDatabaseSchema( this.external_installer, {\n\t\t\t\t\tonResult: function( res ) {\n\t\t\t\t\t\tif ( res.isValid() ) {\n\t\t\t\t\t\t\tvar result = res.getResult();\n\t\t\t\t\t\t\tif ( result.next_page ) {\n\t\t\t\t\t\t\t\t$this.current_step = result.next_page;\n\t\t\t\t\t\t\t\tswitch ( result.next_page ) {\n\t\t\t\t\t\t\t\t\tcase 'postUpgrade':\n\t\t\t\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 'systemSettings':\n\t\t\t\t\t\t\t\t\t\tif ( result.action ) {\n\t\t\t\t\t\t\t\t\t\t\t$this.onNextClick(); // skip system setting to company information directly.\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t$this.initCurrentStep();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tProgressBar.closeOverlay();\n\t\t\t\tbreak;\n\n\t\t}\n\t}\n\n\tsetErrorTips( result ) {\n\t\tthis.clearErrorTips();\n\n\t\tvar details = result.getDetails();\n\t\tvar error_list = details[0];\n\n\t\tfor ( var key in error_list ) {\n\n\t\t\tif ( !error_list.hasOwnProperty( key ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( !Global.isSet( this.stepsWidgetDic[this.current_step][key] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( this.stepsWidgetDic[this.current_step][key].is( ':visible' ) ) {\n\n\t\t\t\tthis.stepsWidgetDic[this.current_step][key].setErrorStyle( error_list[key], true );\n\n\t\t\t} else {\n\n\t\t\t\tthis.stepsWidgetDic[this.current_step][key].setErrorStyle( error_list[key] );\n\t\t\t}\n\n\t\t\tthis.edit_view_error_ui_dic[key] = this.stepsWidgetDic[this.current_step][key];\n\n\t\t}\n\t}\n\n\tclearErrorTips() {\n\n\t\tfor ( var key in this.edit_view_error_ui_dic ) {\n\n\t\t\t//Error: Uncaught TypeError: Cannot read property 'clearErrorStyle' of undefined in /interface/html5/views/BaseViewController.js?v=8.0.0-20141117-111140 line 1779\n\t\t\tif ( !this.edit_view_error_ui_dic.hasOwnProperty( key ) || !this.edit_view_error_ui_dic[key] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.edit_view_error_ui_dic[key].clearErrorStyle();\n\t\t}\n\n\t\tthis.edit_view_error_ui_dic = {};\n\t}\n\n\tonDoneClick() {\n\t\tthis.cleanStepsData();\n\n//\t\tif ( this.call_back ) {\n//\t\t\tthis.call_back();\n//\t\t}\n//\t\tvar baseURI = $(\"*\").context.baseURI;\n\n\t\tvar loc = window.location;\n\t\tvar currentURL = loc.protocol + '//' + loc.host + loc.pathname;\n\t\tGlobal.setURLToBrowser( currentURL + '#!m=Login' );\n\t\t$( this.el ).remove();\n\t}\n\n\tonCloseClick() {\n\t\tif ( this.script_name ) {\n\t\t\tthis.saveCurrentStep();\n\t\t}\n\t\tvar loc = window.location;\n\t\tvar currentURL = loc.protocol + '//' + loc.host + loc.pathname;\n\t\tGlobal.setURLToBrowser( currentURL + '#!m=Login' );\n\t\t$( this.el ).remove();\n\t}\n\n\tcleanStepsData() {\n\t\tthis.stepsDataDic = {};\n\t\tthis.current_step = 'license';\n\t}\n\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjg2OC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTztBQUNQLDJCQUEyQjtBQUMzQixFQUFFLENBQUM7QUFDSDs7QUFFQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFFQSw2QkFBNkI7OztBQUc3QixJQUFJOztBQUVKO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLGlCQUFpQixDQUFDO0FBQ2xCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxPQUFPLENBQUM7QUFDUjtBQUNBO0FBQ0E7QUFDQSxJQUFJO0FBQ0o7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLGN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