Ejemplo n.º 1
0
include "inc/function.php";
include "apis/get_user_details.php";
if (isset($_POST['action']) && !empty($_POST['action'])) {
    $action = $_POST['action'];
} elseif (isset($_GET['action']) && !empty($_GET['action'])) {
    $action = $_GET['action'];
}
switch ($action) {
    case 'fcr_dashboard':
        fcr_dashboard();
        break;
    case 'getCountryList':
        getCountryList();
        break;
    case 'getCountryDetails':
        getCountryDetails();
        break;
    case 'getCustomerVoice':
        getCustomerVoice();
        break;
    case 'getLocations':
        getLocations();
        break;
    case 'getModels':
        getModels();
        break;
    case 'getCategories':
        getCategories();
        break;
    case 'getSubCategories':
        getSubCategories();
Ejemplo n.º 2
0
} catch (Exception $a) {
    throw new Exception("adm_authorize.inc.php : Error in getAdminUserDetailsByID" . $a->getMessage(), 161);
}
$clientdetails = $arrClientdetails[0];
$arrIndustryType = getAllIndustryType($objDataHelper);
$optionIndustryType = "";
for ($cnt = 0; $cnt < count($arrIndustryType); $cnt++) {
    $selected = $clientdetails[$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 = getCountryDetails($objDataHelper);
$optionCountry = "";
for ($cnt = 0; $cnt < count($arrDistinctCountry); $cnt++) {
    $selected = $clientdetails[$form_table_map['frmaddress']['country']] == $arrDistinctCountry[$cnt]['country_name'] ? "selected" : "";
    $optionCountry .= "<option value='" . $arrDistinctCountry[$cnt]['country_name'] . "' " . $selected . ">" . $arrDistinctCountry[$cnt]['country_name'] . " - " . $arrDistinctCountry[$cnt]['country_code'] . "</option>";
}
//data population end
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <!-- HEAD CONTENT AREA -->
        <?php 
include CLIENT_HEAD_INCLUDES_PATH;
?>
Ejemplo n.º 3
0
<?php

require_once '../../includes/global.inc.php';
require_once '../includes/config.inc.php';
require_once CLIENT_CLASSES_PATH . 'client_error.inc.php';
require_once DBS_PATH . 'DataHelper.php';
require_once DBS_PATH . 'objDataHelper.php';
require_once CLIENT_INCLUDES_PATH . 'client_authfunc.inc.php';
$CLIENT_CONST_MODULE = 'cl_user';
$CLIENT_CONST_PAGEID = 'Add User';
require_once CLIENT_INCLUDES_PATH . 'client_authorize.inc.php';
require_once CLIENT_INCLUDES_PATH . 'client_db_function.inc.php';
require_once CLIENT_INCLUDES_PATH . 'client_reports_function.inc.php';
try {
    $arrCountryIddCode = getCountryDetails($objDataHelper);
} catch (Exception $e) {
    throw new Exception("adduser.php : getCountryDetails Failed : " . $e->getMessage(), 541);
}
//License Purchased
$strOptLicenseType = 0;
try {
    $arrTotalLicense = getSumOfClientLicenseByType($strSetClient_ID, $strOptLicenseType, $objDataHelper);
} catch (Exception $a) {
    throw new Exception("index.php : getPlanDetails : Error in populating Plan Details." . $a->getMessage(), 541);
}
$strTotalLicense = $arrTotalLicense[0]['TotalLicense'];
//License Consumed
try {
    $arrTotalConsumedLicense = getTotalConsumedLicenseByClientId($strSetClient_ID, $objDataHelper);
} catch (Exception $a) {
    throw new Exception("adduser.php : getTotalConsumedLicenseByClientId Failed." . $a->getMessage(), 541);