// $award_status = $stMstrObj->getDetails('iStatusId', " AND vForAuction Like '%RFQ2 Award,%' AND (eType='Default' OR vStatus_en IN ('Create','Verify')) "); $awardstslvl = array(); if (is_array($award_status) && count($award_status) > 0) { for ($l = 0; $l < count($award_status); $l++) { $awardstslvl[] = $award_status[$l]['iStatusId']; } } if (isset($_POST['vRFQ2AwardStatusLevel'])) { $awardstslvl = array_merge($awardstslvl, $_POST['vRFQ2AwardStatusLevel']); } sort($awardstslvl); $awardstslvl = @implode(',', $awardstslvl); $Data['vRFQ2AwardStatusLevel'] = $awardstslvl; // prints($Data); exit; $Data['dCreatedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); $orgprefObj->setAllVar($Data); $res = $orgprefObj->insert(); //INSERT THIS RECORD IN ORGANIZATION_MASTER_TOVERIFY TABLE $insID = $gdbobj->getMaxId(PRJ_DB_PREFIX . "_organization_default_settings", 'iAdditionalInfoID'); $Data1 = $Data; $Data1['iAdditionalInfoID'] = $insID[0]['id']; /*foreach($Data1 as $k=>$v) { $Data1[$k] = trim($v); }*/ $orgPrefVrfObj->setAllVar($Data1); $res = $orgPrefVrfObj->insert(); // echo $res; exit; if ($res) { $orgdtls = $orgObj->select($iOrganizationID); if (($orgdtls[0]['eStatus'] == 'Active' || $orgdtls[0]['eStatus'] == 'Inactive') && $orgdtls[0]['eNeedToVerify'] != 'Yes') {
$tbody_en = str_replace($rplarr, " ", $email_cnt[0]['tBody_en']); $emailContent_en = trim(str_replace($body, $post, $tbody_en)); $tbody_fr = str_replace($rplarr, " ", $email_cnt[0]['tBody_fr']); $emailContent_fr = trim(str_replace($body, $post, $tbody_fr)); // $uvdtl['iItemID'] = $verifyid[0]['iVerifiedID']; $uvdtl['iOrganizationID'] = $assocs[0]['iBuyer2Id']; $uvdtl['eSubject'] = 'Association'; $uvdtl['eType'] = $type; $uvdtl['vMailSubject_en'] = $email_cnt[0]['vSub_en']; $uvdtl['vMailSubject_fr'] = $email_cnt[0]['vSub_fr']; $uvdtl['tMailContent_en'] = $emailContent_en; $uvdtl['tMailContent_fr'] = $emailContent_fr; $uvdtl['iCreatedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID']; $uvdtl['eCreatedType'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT']; $uvdtl['dActionDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); if (!isset($userActionObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php'; $userActionObj = new UserActionVerification(); } $ua = $userActionObj->insert($uvdtl); // if (!isset($secManObj)) { require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php"; $secManObj = new SecurityManager(); } if (!isset($orgUserObj)) { include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php'; $orgUserObj = new OrganizationUser(); } //
public function subscribenewsletter($email) { global $dbobj; $data['vEmail'] = $email; $data['dAddeddate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); $ID = $dbobj->MySQLQueryPerform('' . PRJ_DB_PREFIX . '_newsletter', $data); if ($ID) { return "true"; } else { return "false"; } }
$tbody_en = str_replace($rplarr, " ", $db_email[0]['tBody_en']); $emailContent_en = trim(str_replace($body, $post, $tbody_en)); $tbody_fr = str_replace($rplarr, " ", $db_email[0]['tBody_fr']); $emailContent_fr = trim(str_replace($body, $post, $tbody_fr)); $dt = array(); $dt['iItemID'] = $id; $dt['vMailSubject_en'] = $db_email[0]['vSub_en']; $dt['vMailSubject_fr'] = $db_email[0]['vSub_fr']; $dt['tMailContent_en'] = $emailContent_en; $dt['tMailContent_fr'] = $emailContent_fr; $dt['eSubject'] = "RFQ2 Bid"; $dt['eType'] = $typ; $dt['iCreatedBy'] = $bdtls[0]['iCreatedById']; // $_SESSION['SESS_'.PRJ_CONST_PREFIX.'_ID']; $dt['eCreatedType'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT']; $dt['dActionDate'] = calcGTzTime(date("Y-m-d H:i:s"), 'Y-m-d H:i:s'); for ($l = 0; $l < count($b2orgs); $l++) { $dt['iOrganizationID'] = $b2orgs[$l]['iBuyer2Id']; // $userActionObj->setAllVar($dt); $userActionObj->insert(); } // $body_arr = array("#NAME#", "#CREATED_BY#", "#RFQ2CODE#", "#BIDNUM#", "#ADVANCE#", "#PRICE#", "#MAIL_FOOTER#", "#SITE_URL#"); if (is_array($emailArr) && count($emailArr) > 0) { for ($i = 0; $i < count($emailArr); $i++) { $smname = $emailArr[$i]['vFirstName'] . ' ' . $emailArr[$i]['vLastName']; $email = $emailArr[$i]['vEmail']; $post_arr = array($smname, $orgdtls[0]['vCompanyName'] . '(' . $orgdtls[0]['vOrganizationCode'] . ')', $bdtls[0]['vRFQ2Code'], $bdtls[0]['vBidNum'], $bdtls[0]['fBidAdvanceTotal'], $bdtls[0]['fBidPriceTotal'], $MAIL_FOOTER, SITE_URL); $sendMail->Send("{$sub}", "Member", $email, $body_arr, $post_arr); }
} else { if ($view == 'edit') { $podtls = $poLineObj->getDetails('*', " AND vItemCode='" . $Data['vItemCode'] . "'"); if (count($podtls) > 0 && is_array($podtls)) { $ilineItemCode[] = $Data['vItemCode']; $where = " vItemCode='" . $Data['vItemCode'] . "'"; unset($Data['vItemCode']); $id = $poLineObj->updateData($Data, $where); // for adding/updating tax } else { $vItmCode = $poLineObj->getUniqueCode(); $Data['vItemCode'] = $vItmCode; $ilineItemCode[] = $Data['vItemCode']; $vPOItemLineNumber = $generalobj->UniqueID("", PRJ_DB_PREFIX . "_purchase_order_line", "iLineNumber", $charlimit = "10"); $Data['iLineNumber'] = $vPOItemLineNumber; $Data['dETA'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); $poLineObj->setAllVar($Data); $id = $poLineObj->insert(); // for adding/updating tax } if ($id) { $msg = "rus"; } else { $msg = "ruserr"; } } } } //echo "$subt<br/>$dist<br/>$chgt<br/>$ltl"; //exit; $eSaved = $_POST['eSaved'];
$validation = new Validation(); ### SERVER SIDE VALIDATION #### $RequiredFiledArr = array('vFirstName' => $smarty->get_template_vars('LBL_ENTER_FIRST_NAME'), 'vLastName' => $smarty->get_template_vars('LBL_ENTER_LAST_NAME'), 'vCountry' => $smarty->get_template_vars('LBL_ENTER_COUNTRY'), 'vState' => $smarty->get_template_vars('LBL_ENTER_STATE'), 'vZipcode' => $smarty->get_template_vars('LBL_ZIPCODE'), 'vEmail' => $smarty->get_template_vars('LBL_EMAIL_ADDRESS'), 'vCity' => $smarty->get_template_vars('LBL_ENTER_CITY'), 'vAddressLine1' => $smarty->get_template_vars('LBL_ENTER_ADDRESSLINE1')); $resArr = $validation->isEmpty($RequiredFiledArr); //prints($resArr);exit; if ($resArr) { //echo "hi"; exit; header("Location:" . $_SERVER['HTTP_REFERER'] . ""); exit; } if (!isset($Data['eEmailNotification'])) { $Data['eEmailNotification'] = 'No'; } //prints($Data);exit; $Data_access = PostVar("Data_access"); $curr_date = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); $arr = $secManObj->select($iSMID); $secManObj->setAllVar($arr); $Data = array_merge($Data, array("dLastAccessDate" => $curr_date)); // $sql="select vLanguageCode from b2b_language where vLanguage='".$Data['vDefaltLan']."'"; // $res=$dbobj->MySQLSelect($sql); // $_SESSION['SESS_B2B_LANG'] = $res[0]['vLanguageCode']; $secManObj->setAllVar($Data); $where = " iSMID = '" . $iSMID . "'"; $res = $secManObj->update($where); if ($res) { $var_msg = "rus"; } else { $var_msg = "ruserr."; } unset($Data);
$curORGID = isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGID']) ? $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGID'] : ''; $uorg_type = isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGTYPE']) ? $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGTYPE'] : ''; //echo getenv("HTTP_REFERER"); //echo $_SERVER['HTTP_REFERER']; if (isset($_SERVER['HTTP_REFERER']) && isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'])) { if (strpos($_SERVER['HTTP_REFERER'], 'B2B') === false && $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] > 0) { //echo "Multi browsing in this site is not allowed !"; exit; } } if ($sess_id > 0) { if (!in_array($file, $notincludeindex) && !in_array($file, $notUserLeft) && !in_array($file, $notUserTop) && strpos($file, "aj_") === false) { if (isset($_COOKIE['bt_prc']) && isset($_SESSION['prc']) && $_COOKIE['bt_prc'] != $_SESSION['prc']) { // echo "Multi browsing in this site is not allowed !"; exit; } else { $dv[0] = ""; $dv[1] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s'); $c = $generalobj->genUniqueCode($dv); $prc = $_SESSION['prc'] = $c . "/" . $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID']; // setcookie('bt_prc',$prc); $smarty->assign("prc", $prc); } } } $dv = ""; if (!isset($stPageObj)) { include_once SITE_CLASS_APPLICATION . "class.StaticPage.php"; $stPageObj = new StaticPage(); } if (!isset($lhObj)) { include_once SITE_CLASS_APPLICATION . "class.LoginHistory.php"; $lhObj = new LoginHistory();