Source for file applicationSetupOne.php
Documentation is available at applicationSetupOne.php
* <b>Class Description</b>: Controller for the system's initial setup screen
* Created On: 30 March 2009
* @author Jan van der Breggen
* @subpackage SystemSetupScreens
* @see controllersPackage.php
$this->_init($GLOBALS['lang']['setupHeader'],$GLOBALS['lang']['setupScreenText']);
$this->View['page_to_display'] = 'view_applicationSetupOne';
$db = new model_students();
$this->View['countryCode'] = $countries['code'];
$this->View['countryLabel'] = $countries['stdName'];
$_SESSION['countries']= $countries;
if (!isset ($_SESSION['rvtwo']['locale'])){
$countryConfig = unserialize($_SESSION['rvtwo']['locale']);
$countryConfig->setCountry($_POST['selectValues'],$_SESSION['countries']['iso3'][$_POST['selectValues']],
$_SESSION['countries']['stdName'][$_POST['selectValues']]);
//need to find a way to make setlocale to work reliably for all main countries
//or otherwise store this kind of information in a config text file
if (setlocale(LC_ALL, $countryConfig->getCountryIsoCode(). '.utf8@euro',$countryConfig->getCountryIsoCode(). '.utf8',$countryConfig->getCountryCode(),$countryConfig->getCountryIsoCode(),
$countryConfig->getCountryLabel()))
$countryConfig->setCurrencyNumberConfig(utf8_encode($locale_info['currency_symbol']),utf8_encode($locale_info['int_curr_symbol']),
$_SESSION['rvtwo']['locale'] = serialize($countryConfig);
redirect (applicationSetupTwo);
/*---------------------------------------------------------------------------------*/
/* based on what's in core.php */
/*---------------------------------------------------------------------------------*/
//look at core.php and lookup online resources to find
//a way to set the locale based on the selected country
|