assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); if (isset($_REQUEST['return_module'])) $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']); if (isset($_REQUEST['return_action'])) $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']); if (isset($_REQUEST['return_id'])) $xtpl->assign("RETURN_ID", $_REQUEST['return_id']); if (empty($_REQUEST['return_id'])) $xtpl->assign("RETURN_ACTION", 'index'); //$xtpl->assign("CENTRAL_AREACODE",$ecmcalls_config['central_areacode']); $xtpl->assign("PHONE_LIST", EcmCall::getPhoneList()); $json = getJSONobj(); $scriptOpt = ''; echo $scriptOpt; //// Timezone require_once('include/timezone/timezones.php'); global $timezones; $timezoneOptions = ''; ksort($timezones); foreach($timezones as $key => $value) { $selected =($ecmcalls_config['central_timezone'] == $key) ? ' SELECTED="true"' : ''; $dst = !empty($value['dstOffset']) ? '(+DST)' : ''; $gmtOffset =($value['gmtOffset'] / 60); if(!strstr($gmtOffset,'-')) { $gmtOffset = '+'.$gmtOffset; } $timezoneOptions .= ""; } $xtpl->assign('CENTRAL_TIMEZONE_OPTIONS', $timezoneOptions); echo "\n

\n"; echo get_module_title('EcmGroupSales', $GLOBALS['mod_strings']['LBL_ECMGROUPSALES_SETTINGS_TITLE'], true); echo "\n

\n"; $xtpl->parse("main"); $xtpl->out("main"); // require_once('include/javascript/javascript.php'); // $javascript = new javascript(); // $javascript->setFormName('Settings'); // $javascript->addAllFields(''); //BUILDER:START Pro only // $javascript->addFieldGeneric( 'team_name', 'varchar', $app_strings['LBL_TEAM'] ,'true'); // $javascript->addToValidateBinaryDependency('team_name', 'alpha', $app_strings['ERR_SQS_NO_MATCH_FIELD'] . $app_strings['LBL_TEAM'], 'false', '', 'team_id'); //BUILDER:END Pro only // $javascript->addFieldGeneric('central_areacode', 'varchar', $mod_strings['LBL_CENTRAL_AREACODE'] , 'true'); // $javascript->addToValidateBinaryDependency('central_areacode', 'alpha' ,$app_strings['ERR_SQS_NO_MATCH_FIELD'].$mod_strings['LBL_CENTRAL_AREACODE'], 'false', '', 'team_id'); // $javascript->addToValidateBinaryDependency('assigned_user_name', 'alpha', $app_strings['ERR_SQS_NO_MATCH_FIELD'] . $app_strings['LBL_ASSIGNED_TO'], 'false', '', 'assigned_user_id'); // echo $javascript->getScript(); ?>