include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php"; $orgUserObj = new OrganizationUser(); } if (!isset($orgUserPerObj)) { require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php"; $orgUserPerObj = new OrganizationUserPermission(); } if (!isset($orgUserPermVerifyObj)) { include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermissionToVerify.php"; $orgUserPermVerifyObj = new OrganizationUserPermissionToVerify(); } if (!isset($userToVerifyObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php'; $userToVerifyObj = new OrganizationUserToverify(); } $orgUserObj->setiUserID($iUserID); if (!isset($orgStaObj)) { require_once SITE_CLASS_APPLICATION . "class.StatusMaster.php"; $orgStaObj = new StatusMaster(); } if (!isset($orgObj)) { include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php"; $orgObj = new Organization(); } if (!isset($orgPrefObj)) { require_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgPrefObj = new OrganizationPreference(); //$sess_id } $userStatus = array(); $userAcpt = array();
//$sess_id } if (!isset($orgPrefObj)) { require_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php"; $orgPrefObj = new OrganizationPreference(); //$sess_id } if (!isset($orgUsrObj)) { require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php"; $orgUsrObj = new OrganizationUser(); } $_GET['q'] = isset($_GET['q']) ? $_GET['q'] : ''; $key = $_GET['q']; $type = $_GET['type']; $iId = $_GET['iId']; $orgUsrObj->setiUserID($iId); $userdtls = $orgUsrObj->select($iId); // prints($userdtls); exit; if (!(is_array($userdtls) && count($userdtls) > 0)) { echo $smarty->get_template_vars('MSG_SELECT_ORG_USER') . " " . $smarty->get_template_vars('LBL_TO_PROCEED') . " !"; exit; } if ($userdtls[0]['eUserType'] == 'Admin') { echo $smarty->get_template_vars('MSG_ADMIN_RIGHTS_NOT_REQ'); exit; } //$where = " AND iGroupID = '".$iId."'"; $ores = $orgPrefObj->getDetails('*', " AND iOrganizationId=" . $userdtls[0]['iOrganizationID']); $orgdtl = $orgObj->select($userdtls[0]['iOrganizationID']); $orgtype = $orgdtl[0]['eOrganizationType']; if ($orgtype == 'Buyer2') {
//$doimport = 'Yes'; $smarty->assign('pocrt', $pocrt); $smarty->assign('invcrt', $invcrt); $smarty->assign('invCreate', $invCreate); $smarty->assign('poCreate', $poCreate); $smarty->assign('doimportpo', $doimportpo); $smarty->assign('doimportinv', $doimportinv); break; case 'orgadmin': $usersec = 'user'; $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] = 'OA'; break; } $orgid = ""; if ($sess_usertype == 'orguser') { $orgUsrObj->setiUserID($sess_id); $udts = $orgUsrObj->select($sess_id); $usrtype = $orgUsrObj->geteUserType(); $orgid = $curORGID; // $orgUsrObj->getiOrganizationID(); // $reqVerification = $opf[0]['eReqVerification']; /*$encInvoice = $opf[0]['eSecureImportExportInvoice']; if($encInvoice == 'Yes') $encInvoice='y'; $encPO = $opf[0]['eSecureImportExportPO']; if ($encPO == 'Yes') $encPO='y';*/ if ($usrtype == 'Admin') { $sess_usertype = 'orgadmin'; $usersec = 'organization'; $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] = 'OA';