<?php include S_SECTIONS . "/member/memberaccess.php"; $mode = $_POST['mod']; $val = $_POST['val']; $vCompanyName = $_POST['org_name']; $vOrganizationCode = $_POST['org_code']; $eOrganizationType = $_POST['org_type']; $vCountry = $_POST['country']; $page = $_POST['page']; if (trim($page) == '' || trim($page) < 1) { $page = 1; } if (!isset($orgprefvrfyObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgprefvrfyObj = new OrganizationPreferenceToverify(); } $where = ""; if ($mode == 'all') { $where = " AND (org.vCompanyName LIKE '%{$val}%' OR org.vOrganizationCode LIKE '%{$val}%' OR org.eOrganizationType LIKE '%{$val}%' OR org.vCountry LIKE '%{$val}%')"; } else { if ($mode == 'srch') { if (trim($vCompanyName) != '') { $where = " AND org.vCompanyName LIKE '%{$vCompanyName}%'"; } if (trim($vOrganizationCode) != '') { $where .= " AND org.vOrganizationCode LIKE '%{$vOrganizationCode}%'"; } if (trim($eOrganizationType) != '') { $where .= " AND org.eOrganizationType='{$eOrganizationType}'"; }
<?php include S_SECTIONS . "/member/memberaccess.php"; //sendmail class incude include SITE_CLASS_GEN . "class.sendmail.php"; //initialization of senmail class object $sendMail = new SendPHPMail(); if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } if (!isset($orgObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php"; $orgObj = new Organization(); } if (!isset($orgvrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization_Toverify.php"; $orgvrfObj = new Organization_Toverify(); } if (!isset($orgUserObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php'; $orgUserObj = new OrganizationUser(); } if (!isset($orgUserPermObj)) { include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php"; $orgUserPermObj = new OrganizationUserPermission(); }
} if (!isset($userToVerifyObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php'; $userToVerifyObj = new OrganizationUserToverify(); } if (!isset($stMstrObj)) { include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php"; $stMstrObj = new StatusMaster(); } if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } if (isset($_POST) && is_array($_POST) && count($_POST) > 0) { $ere = ''; // ### SERVER SIDE VALIDATION #### include SITE_CLASS_GEN . "class.validation.php"; $validation = new Validation(); $RequiredFiledArr = array('vUserName' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_USER_NAME'), 'vPassword' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_PASSWORD'), 'vFirstName' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_FIRST_NAME'), 'vLastName' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_LAST_NAME'), 'vCompanyName' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_ORGANIZATION'), 'vCompCode' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_COMP_CODE'), 'vCompanyRegNo' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_COMP_REG_NO'), 'eOrganizationType' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_ORGANIZATION'), 'vEmail' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_COMPANY') . ' ' . $smarty->get_template_vars('LBL_EMAIL'), 'vpEmail' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_PERSONAL') . ' ' . $smarty->get_template_vars('LBL_EMAIL'), 'vPhone' => $smarty->get_template_vars('LBL_ENTER_PHONE_NO'), 'vCity' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_CITY'), 'vCountry' => $smarty->get_template_vars('LBL_SELECT_COUNTRY'), 'vState' => $smarty->get_template_vars('LBL_SELECT_STATE'), 'vZipcode' => $smarty->get_template_vars('LBL_SELECT_STATE'), 'vVatId' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_ZIP_CODE'), 'vAddressLine1' => $smarty->get_template_vars('LBL_ENTER') . ' ' . $smarty->get_template_vars('LBL_COMPANY') . ' ' . $smarty->get_template_vars('LBL_ADDR_LINE')); $resArr = $validation->isEmpty($RequiredFiledArr); $tempData = $_POST; $vNum = $validation->isNum(array($tempData['vPhone'], $tempData['vZipcode']), array('Valid Phone Number', 'Valid ZipCode'), 'empty'); ###check Valid Email### // prints($tempData['vEmail']);exit; if ($tempData['vEmail'] != '') { $vmail = $validation->isEmail(array($tempData['vEmail']), array($smarty->get_template_vars('MSG_VALID_EMAIL')));
include S_SECTIONS . "/member/memberaccess.php"; $iASMID = $sess_id; $iAdditionalInfoID = GetVar('id'); $iOrganizationID = GetVar('orgid'); $pg = GetVar('pg'); if ($sess_usertype == 'orgadmin' && $orgid != $iOrganizationID) { header("Location: " . SITE_URL_DUM . "oadashboard"); exit; } if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } if (!isset($stMstrObj)) { include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php"; $stMstrObj = new StatusMaster(); } if (!isset($orgObj)) { require_once SITE_CLASS_APPLICATION . "organization/class.Organization.php"; $orgObj = new Organization(); } if (!isset($orgvrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization_Toverify.php"; $orgvrfObj = new Organization_Toverify(); } if ($iOrganizationID != '') { $view = 'edit';
$pg = GetVar('pg'); if (!isset($orgObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php"; $orgObj = new Organization(); } if (!isset($orgvrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization_Toverify.php"; $orgvrfObj = new Organization_Toverify(); } if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } if (!isset($stMstrObj)) { include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php"; $stMstrObj = new StatusMaster(); } if (!isset($countryObj)) { include_once SITE_CLASS_APPLICATION . "class.Country.php"; $countryObj = new Country(); } if (!isset($stateObj)) { include_once SITE_CLASS_APPLICATION . "class.State.php"; $stateObj = new State(); } if (!isset($cntstObj)) { include_once SITE_CLASS_GEN . "class.countrystate.php";
} if (!isset($orgvrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization_Toverify.php"; $orgvrfObj = new Organization_Toverify(); } if (!isset($userToVerifyObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php'; $userToVerifyObj = new OrganizationUserToverify(); } if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } $activationcode = GetVar('msg'); if (trim($activationcode) == '') { header("Location: " . SITE_URL_DUM . "home"); exit; } //$id = $orgObj->getid($activationcode); $where = " vActivationCode='{$activationcode}' "; $data['eStatus'] = 'Active'; $data['vActivationCode'] = ''; $dtls = $orgObj->getDetails('*', ' AND ' . $where); if (is_array($dtls) && count($dtls) > 0 && isset($dtls[0]['iOrganizationID']) && $dtls[0]['iOrganizationID'] > 0) { $rs = $orgObj->updateData($data, $where); $r = $orgUsrObj->updateData($data, $where); // unset($data['vActivationCode']);
} if (!isset($userActionObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php'; $userActionObj = new UserActionVerification(); } if (!isset($emailObj)) { include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php'; $emailObj = new EmailTemplate(); } if (!isset($orgprefObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgprefObj = new OrganizationPreference(); } if (!isset($orgPrefVrfObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreferenceToverify.php"; $orgPrefVrfObj = new OrganizationPreferenceToverify(); } if (!isset($orgUserObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php'; $orgUserObj = new OrganizationUser(); } if (!isset($orgUserPermObj)) { include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php"; $orgUserPermObj = new OrganizationUserPermission(); } if (!isset($orgStaObj)) { require_once SITE_CLASS_APPLICATION . "class.StatusMaster.php"; $orgStaObj = new StatusMaster(); //$sess_id } if (!isset($statusmasterObj)) {