$view = isset($view) ? $view : ''; ### CREATE SERVER SIDE VALIDATION MESSAGE ### $vldmsg = ""; if (isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']) && $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION'] != '') { include SITE_CLASS_GEN . "class.validation.php"; $validation = new Validation(); $vldmsg = $validation->CreateHtmlMsg($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']); unset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']); } #### ENDS HERE ### // prints($vldmsg); exit; $state = $cntstObj->getgeneralArr(PRJ_DB_PREFIX . "_state_master", " AND eStatus='Active'", "vStateCode", "vState", "vCountryCode", "vStateCode,vState,vCountryCode"); $stateArr = $state[0]; $db_country = $countryObj->getCountryDetail("iCountryId,vCountry,vCountryCode,iCountryISD,iCurrencyID", "AND eStatus = 'Active'"); //prints($db_country);exit; $db_state = $stateObj->getStateDetail("iStateId, vStateCode, vState", "AND eStatus = 'Active'", "vState"); //$sql="select vOrganizationCode, vCompanyName from b2b_organization_master org,b2b_organization_user user where org.iOrganizationId=user.iOrganizationId and user.vUserName='******'"; //$sql="select vOrganizationCode, vCompanyName from b2b_organization_master org where org.iOrganizationId=$curORGID"; //$res=$dbobj->MySqlSelect($sql); //$curORGID $orgdtls = $orgObj->select($curORGID); $orgname = $orgdtls[0]['vCompanyName']; $OrgCode = $orgdtls[0]['vOrganizationCode']; // prints($orgname);exit; $poad = isset($_SESSION['poadd']) ? $_SESSION['poadd'] : ''; $podtls = array(); $asocdtls = array(); $sorgdtls = array(); $invdl = array(); $poAttachments = array(); if ($view == 'edit') { $podtls = $pohObj->select($iPurchaseOrderID);
// $arr = $orgPrefVrfObj->getDetails('*',$where); } else { $Oarr = $arr = $orgprefObj->getDetails('*', " AND iOrganizationID={$iOrganizationID}"); $OiAdditionalInfoID = $iAdditionalInfoID = $arr[0]['iAdditionalInfoID']; // $where = 'AND iAdditionalInfoID = "'.$iAdditionalInfoID.'"'; //$arr = $orgprefObj->getDetails('*',$where); } //prints($arr);exit; } //Get State Array $state = $cntstObj->getgeneralArr(PRJ_DB_PREFIX . "_state_master", " AND eStatus='Active'", "vStateCode", "vState", "vCountryCode", "vStateCode,vState,vCountryCode"); $stateArr = $state[0]; //prints($stateArr);exit; $db_country = $countryObj->getCountryDetail("iCountryId,vCountry,vCountryCode", "AND eStatus = 'Active'"); //prints($db_country);exit; $db_state = $stateObj->getStateDetail("iStateId, vStateCode, vState", "AND eStatus = 'Active' AND vCountryCode = '" . (isset($arr[0]['vCountry']) ? $arr[0]['vCountry'] : '') . "'", "vState"); //prints($db_state);exit; $where = " AND eFor='Invoice' AND eStatus='Active' AND vStatus_en NOT IN ('Accepted','Issue','Verified') "; $invarr = $stMstrObj->getDetails('*', $where); $selinvarr = @explode(',', $arr[0]['vInvoiceStatusLevel']); $where = " AND eFor='PO' AND eStatus='Active' AND vStatus_en NOT IN ('Accepted','Issue','Verified') "; $POarr = $stMstrObj->getDetails('*', $where); $selPOarr = @explode(',', $arr[0]['vOrderStatusLevel']); $acptInvArr = @explode(',', $arr[0]['vInvoiceAcceptanceLevel']); $acptOrdArr = @explode(',', $arr[0]['vOrderAcceptanceLevel']); if ($orgdtls[0]['eOrganizationType'] == 'Supplier') { $suplvl = 'Yes'; } else { if ($orgdtls[0]['eOrganizationType'] == 'Buyer') { $bylvl = 'Yes'; } else {
$OuserData = $orgUserObj->getJoinTableInfo($jtbl, $fields, " AND ou.iUserID={$iUserID} "); // $iUserID $OuserData = $userData = $userData[0]; $uprmts = $orgUserPerObj->getDetails('*', " AND iUserID={$iUserID} "); $vuprmts = $orgUserPermVerifyObj->getDetails('*', " AND iUserID={$iUserID} ", ' iVerifiedID DESC ', '', ' LIMIT 0,1 '); } $state = $cntstObj->getgeneralArr(PRJ_DB_PREFIX . "_state_master", " AND eStatus='Active'", "vStateCode", "vState", "vCountryCode", "vStateCode,vState,vCountryCode"); $stateArr = $state[0]; //$stateArr = array($stateArr); //echo $stateArr[0][2]; //prints($stateArr);exit; $groupArr = $cntstObj->getgeneralArr(PRJ_DB_PREFIX . "_organization_group", " AND eStatus='Active' ", "iGroupID", "vGroupName", "iOrganizationID", "iGroupID,vGroupName,iOrganizationID"); $groupArr = $groupArr[0]; $db_country = $countryObj->getCountryDetail("iCountryId,vCountry,vCountryCode", "AND eStatus = 'Active'"); //prints($db_country);exit; $db_state = $stateObj->getStateDetail("iStateId, vStateCode, vState", "AND eStatus = 'Active' AND vCountryCode = '" . $userData['vCountry'] . "'", "vState"); $where = " AND iOrganizationID=" . $OuserData['iOrganizationID'] . ""; $organization = $orgObj->getDetails('*', $where); // prints($organization); exit; $msg = $smarty->get_template_vars('MSG_NEED_VERIFY'); //prints($userData);exit; if ($userData['eUserType'] != '') { $userTypeVal = $userData['eUserType']; } else { $userTypeVal = 'User'; } $userTypes = $gdbobj->getEnumSelect("" . PRJ_DB_PREFIX . "_organization_user", "eUserType", "Data[eUserType]", "eUserType", "", $userTypeVal, "style='width:200px;' class='drop-down' ", "Select User Type"); //$eStatus = $gdbobj->getEnumSelect("".PRJ_DB_PREFIX."_organization_user", "eStatus","Data[eStatus]", "eStatus","",$statusVal,"style='width:200px;' class='drop-down' ","Select Status"); $where = 'AND iUserID = ' . $iUserID . ''; $udts = $userToVerifyObj->getDetails('*', $where, ' iVerifiedID desc ', '', ' LIMIT 0,1 '); $udts = $udts[0];
* @package addstate.inc.php * @Section general */ if (!isset($stateObj)) { include_once SITE_CLASS_APPLICATION . "class.State.php"; $stateObj = new State(); } $gdbobj->getRequestVars(); $view = GetVar("view"); $iStateId = GetVar("iStateId"); $arr = array(); if (count($_POST) > 0) { $arr[0] = $_POST; } else { if ($view == 'edit') { $arr = $stateObj->getStateDetail("*", "AND iStateId = '{$iStateId}'"); $selected = isset($arr[0]['vCountryCode']) ? $arr[0]['vCountryCode'] : ""; //$validation = "'iCountryId','vState','vStateCode'"; $topheader = "Update State Information"; } else { $view = "add"; //$validation = "'iCountryId','vState','vStateCode'"; $topheader = "Add State Information"; } } $arr[0]['iCountryId'] = isset($arr[0]['iCountryId']) ? $arr[0]['iCountryId'] : ''; $arr[0]['iStateId'] = isset($arr[0]['iStateId']) ? $arr[0]['iStateId'] : ''; $arr[0]['eStatus'] = isset($arr[0]['eStatus']) ? $arr[0]['eStatus'] : ''; $arr[0]['vState'] = isset($arr[0]['vState']) ? $arr[0]['vState'] : ''; $arr[0]['vStateCode'] = isset($arr[0]['vStateCode']) ? $arr[0]['vStateCode'] : ''; /* Array For Creating Country Combo */