Пример #1
0
 $emailContent_fr = trim(str_replace($body, $post, $tbody_fr));
 //
 $uvdtl['iItemID'] = $verifyid[0]['iVerifiedID'];
 $uvdtl['iOrganizationID'] = $assocs[$l]['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'] = date("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();
 }
 //
 if ($sess_usertype_short == 'OA') {
     $smwhr = " AND eEmailNotification='Yes' AND eStatus='Active' ";
     $smgrs = $secManObj->getDetails('vEmail', $smwhr);
Пример #2
0
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($secManObj)) {
    require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php";
    $secManObj = new SecurityManager();
}
if (!isset($emailObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php';
    $emailObj = new EmailTemplate();
}
if (!isset($userActionObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php';
    $userActionObj = new UserActionVerification();
}
if (!isset($sendMail)) {
    include SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
if (!isset($pohObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderHeading.php";
    $pohObj = new PurchaseOrderHeading();
}
if (!isset($poLineObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderLine.php";
    $poLineObj = new PurchaseOrderLine();
}
if (!isset($invAttachmentObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderAttachment.php";
Пример #3
0
}
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($stMstrObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $stMstrObj = new StatusMaster();
}
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();
}
$Data = PostVar("Data");
if (is_array($Data['vCurrency'])) {
    $Data['vCurrency'] = @implode(',', $Data['vCurrency']);
}
if (trim($Data['eSecureImportExport']) != 'Yes') {
    $Data['eSecureImportExport'] = 'No';
}
$iAdditionalInfoID = PostVar("iAdditionalInfoID");
$iOrganizationID = PostVar("iOrganizationID");
$iASMID = PostVar("iASMID");
Пример #4
0
     $emailContent_fr = trim(str_replace($body, $post, $tbody_fr));
     $Data = array();
     $Data['iItemID'] = $iVerifiedID;
     $Data['eSubject'] = 'User';
     $Data['eType'] = 'Create';
     $Data['iOrganizationID'] = $iOrgID;
     $Data['vMailSubject_en'] = $db_email[0]['vSub_en'];
     $Data['vMailSubject_fr'] = $db_email[0]['vSub_fr'];
     $Data['tMailContent_en'] = $emailContent_en;
     $Data['tMailContent_fr'] = $emailContent_fr;
     $Data['iCreatedBy'] = isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID']) ? $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] : '0';
     $Data['eCreatedType'] = isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT']) ? $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] : '0';
     $Data['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();
     }
     //prints($Data);exit;
     $userActionObj->setAllVar($Data);
     $userActionObj->insert();
     for ($i = 0; $i < count($arr); $i++) {
         $smname = $arr[$i]['vFirstName'] . ' ' . $arr[$i]['vLastName'];
         $emailTo = $arr[$i]['vEmail'];
         //set the values of the body of email format
         $post_arr = array($smname, $userName, $userEmail, $compname, $compcode, $link, $smarty->get_template_vars('LBL_SELF_REGISTRATION'), $MAIL_FOOTER, SITE_URL_DUM);
         //send mail to the Security Manager and Organization's Admin User
         if (trim($smname) != '') {
             $sendMail->Send("New Organization Admin Added", "Member", $emailTo, $body_arr, $post_arr, '', '');
         }
     }
 }
Пример #5
0
}
if (!isset($orgAssocObj)) {
    require_once SITE_CLASS_APPLICATION . "organization/class.OrganizationAssociation.php";
    $orgAssocObj = new OrganizationAssociation();
}
if (!isset($orgAssocVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationAssociationToVerify.php";
    $orgAssocVerifyObj = new OrganizationAssociationToVerify();
}
if (!isset($secManObj)) {
    require_once SITE_CLASS_APPLICATION . "{$usersec}/class.SecurityManager.php";
    $secManObj = new SecurityManager();
}
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($sendMail)) {
    include_once SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
$dt = PostVar('Data');
$view = PostVar('view');
Пример #6
0
    include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php';
    $emailObj = new EmailTemplate();
}
if (!isset($sendMail)) {
    include_once SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php';
    $orgUserObj = new OrganizationUser();
}
$sess_user_name = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_NAME'];
$sess_usertype_short = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
if (!isset($userActionObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php';
    $userActionObj = new UserActionVerification();
}
if ($mode == 'delete') {
    $where = "AND iInvoiceID IN ({$val})";
    //$fields="ioh.*,(select org.vCompanyName from b2b_organization_master org where org.iOrganizationID=ioh.iBuyerOrganizationID) as vBuyerName";
    $fields = "*";
    $arr = $invObj->getJoinTableInfo("", $fields, $where);
    $userId = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
    $orgId = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGID'];
    $where = " AND iOrganizationID='{$orgId}'";
    $emailArr = $orgUserObj->getDetails('vFirstName,vLastName,vEmail', $where);
    $where = "";
    foreach ($arr as $k => $v) {
        $data['eDelete'] = 'Yes';
        $data['iModifiedByID'] = $userId;
        //    $data['eModifiedBy'] = $_SESSION['SESS_'.PRJ_CONST_PREFIX.'_USER_TYPE_SHORT'];
Пример #7
0
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($secManObj)) {
    require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php";
    $secManObj = new SecurityManager();
}
if (!isset($emailObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php';
    $emailObj = new EmailTemplate();
}
if (!isset($userActionObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php';
    $userActionObj = new UserActionVerification();
}
if (!isset($sendMail)) {
    include SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
if (!isset($imgObj)) {
    include_once SITE_CLASS_GEN . "class.imagecrop.php";
    $imgObj = new imagecrop();
}
if (!isset($ioprefObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOtherInformation.php";
    $ioprefObj = new InvoiceOtherInformation();
}
$Data = $_POST['Data'];
$eFrom = $Data['eFrom'];
Пример #8
0
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($orgUserPermObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPermObj = new OrganizationUserPermission();
}
if (!isset($fluplObj)) {
    include_once SITE_CLASS_GEN . "class.imagecrop.php";
    $fluplObj = new imagecrop();
}
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($sendMail)) {
    include SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
if (trim($Data['iRFQ2Id']) != '' && $Data['iRFQ2Id'] > 0) {
    if (trim($view) == '' || trim($view) == 'add') {
        $Data = $r2bdObj->iacalcBidAmount($Data);
        // check for conditions & limits
        $rfq2dtls = $rfq2Obj->select($Data['iRFQ2Id']);
        $r2csts = $rfq2Obj->getB2Rfq2Status($rfq2dtls[0]['iRFQ2Id']);