<?php require_once '../includes/global.inc.php'; require_once CLASSES_PATH . 'error.inc.php'; require_once DBS_PATH . 'DataHelper.php'; require_once DBS_PATH . 'objDataHelper.php'; require_once INCLUDES_PATH . 'cm_authfunc.inc.php'; $CONST_MODULE = 'personal details'; $CONST_PAGEID = 'My Profile'; require_once INCLUDES_PATH . 'cm_authorize.inc.php'; require_once INCLUDES_PATH . 'common_function.inc.php'; require_once INCLUDES_PATH . 'profile_function.inc.php'; //data population start $form_table_map = profile_form_table_map(); $userdetails = getUserDetailsByID($strCK_user_id, $objDataHelper); $userdetails = $userdetails[0]; $arrIndustryType = getAllIndustryType($objDataHelper); $optionIndustryType = ""; for ($cnt = 0; $cnt < count($arrIndustryType); $cnt++) { $selected = $userdetails[$form_table_map['frmCompany']['indutrytype']] == $arrIndustryType[$cnt]['industry_id'] ? "selected" : ""; $optionIndustryType .= "<option value='" . $arrIndustryType[$cnt]['industry_id'] . "' " . $selected . ">" . $arrIndustryType[$cnt]['industry_name'] . "</option>"; } $arrTimezonesType = getTimezoneList($objDataHelper); $optionTimezonesType = ""; for ($cnt = 0; $cnt < count($arrTimezonesType); $cnt++) { $optionTimezonesType .= "<option value='" . $arrTimezonesType[$cnt]['ct_id'] . "'>" . $arrTimezonesType[$cnt]['timezones'] . " - " . $arrTimezonesType[$cnt]['country_name'] . "</option>"; } $arrDistinctCountry = getDistinctCountry($objDataHelper); $optionCountry = ""; for ($cnt = 0; $cnt < count($arrDistinctCountry); $cnt++) { $selected = $userdetails[$form_table_map['frmaddress']['country']] == $arrDistinctCountry[$cnt]['country_name'] ? "selected" : "";
require_once DBS_PATH . 'DataHelper.php'; require_once DBS_PATH . 'objDataHelper.php'; require_once INCLUDES_PATH . 'cm_authfunc.inc.php'; require_once INCLUDES_PATH . 'cm_authorize.inc.php'; require_once INCLUDES_PATH . 'common_function.inc.php'; require_once INCLUDES_PATH . 'profile_function.inc.php'; require_once INCLUDES_PATH . 'mail_common_function.inc.php'; if (isset($_REQUEST["action"])) { switch ($_REQUEST["action"]) { case "reset": $formMaps = profile_form_table_map(); $updateparams = getUpdateQueryString($_REQUEST, $formMaps); $result = updateUserProfile($updateparams, $objDataHelper, $strCK_user_id, $_REQUEST["action"]); echo $result; break; case "resetpwd": $formMaps = profile_form_table_map(); $updateparams = getUpdateQueryString($_REQUEST, $formMaps); $result = updateUserProfile($updateparams, $objDataHelper, $strCK_user_id, $_REQUEST["action"]); echo $result; break; case "forgotpwd": //print_r($_REQUEST); $result = forgotPwd($objDataHelper); echo $result; break; } } ?>