Esempio n. 1
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
$where = '';
// --- Statistics --------------------------------------------------------------------------------------------
$orgstats = $secManObj->getSMDashboardOrgStats(PRJ_DB_PREFIX . "_organization_master", $where);
$assostats = $secManObj->getSMDashboardOrgStats(PRJ_DB_PREFIX . "_organization_association", $where);
$orgadminstats = $secManObj->getSMDashboardUsrStats(PRJ_DB_PREFIX . "_organization_user", 'Admin');
$orguserstats = $secManObj->getSMDashboardUsrStats(PRJ_DB_PREFIX . "_organization_user", 'User');
$where_user = "******" . PRJ_DB_PREFIX . "_organization_user where eUserType='User' ) ";
$userrightsstats = $orgUserObj->getOADashboardUsrStats(PRJ_DB_PREFIX . "_organization_user_permission", $where_user);
$grpstats = $secManObj->getSMDashboardOrgStats(PRJ_DB_PREFIX . "_organization_group", $where);
$smarty->assign("orgstats", $orgstats);
$smarty->assign("grpstats", $grpstats);
$smarty->assign("assostats", $assostats);
$smarty->assign("orgadminstats", $orgadminstats);
$smarty->assign("orguserstats", $orguserstats);
$smarty->assign("userrightsstats", $userrightsstats);
// -----------------------------------------------------------------------------------------------------------
// --- Last Logins -------------------------------------------------------------------------------------------
if (!isset($lghObj)) {
    require_once SITE_CLASS_APPLICATION . "class.LoginHistory.php";
    $lghObj = new LoginHistory();
}
$lastlogins = $lghObj->getDetails("*", " AND iAdminId={$sess_id} AND eType='SM' ", " dLoginDate DESC ", '', " LIMIT 0,3");
$lastLoginDate = $lastlogins[0]['dLoginDate'];
$smarty->assign("lastlogins", $lastlogins);
Esempio n. 2
0
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
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";
}
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($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';
Esempio n. 4
0
    if ($msg != 'pop') {
        $msg = '';
    }
}
$iInvoiceID = $_GET['id'];
if (!isset($invOrderObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $invOrderObj = new InvoiceOrderHeading();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
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($pohObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderHeading.php";
    $pohObj = new PurchaseOrderHeading();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
$crtsts = $statusmasterObj->getDetails('*', " AND eFor='Invoice' AND vStatus_en='Create' ");
$stsdtls = $statusmasterObj->getDetails('*', " AND eFor='Invoice' AND vStatus_en='Rejected' ");
Esempio n. 5
0
}
if (!isset($sendMail)) {
    include SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
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 (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
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";
Esempio n. 6
0
$vldmsg = '';
if (isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']) && $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION'] != '') {
    if (!isset($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 ###
$binvp = '';
if ($uorg_type == 'Buyer') {
    // echo $uorg_type; exit;
    if (!isset($orgUserObj)) {
        include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
        $orgUserObj = new OrganizationUser();
    }
    $binvp = $invCreate = $orgUserObj->hasBuyerInvPermit($sess_id);
    $smarty->assign('invCreate', $invCreate);
}
if ($sess_usertype_short == 'OU' && $invCreate != 'Yes') {
    header("Location: " . SITE_URL_DUM . "invoicelist/all");
    exit;
}
$invad = isset($_SESSION['invadd']) ? $_SESSION['invadd'] : '';
// unset($_SESSION['invadd']);
$invoiceTypes = $gdbobj->getEnumSelect("" . PRJ_DB_PREFIX . "_invoice_detail_line", "eInvoiceType", "eInvoiceType[]", "eInvoiceType", "", "", "class='drop-down required' ", $smarty->get_template_vars('LBL_SELECT_INV_TYPE'), "---" . $smarty->get_template_vars('LBL_SELECT_INV_TYPE') . "----");
$orgdtls = $orgObj->select($curORGID);
$orgname = $orgdtls[0]['vCompanyName'];
$OrgCode = $orgdtls[0]['vOrganizationCode'];
if (trim($invid) != '' && is_numeric($invid)) {
Esempio n. 7
0
//print $generalobj->encrypt('user');
//prints($_SERVER);exit;
if ($msg == 'rus') {
    $msg = $smarty->get_template_vars('MSG_UPDATE_SUCC');
} elseif ($msg == 'ruserr') {
    $msg = $smarty->get_template_vars('MSG_UPDATE_ERR');
} else {
    $msg = '';
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
//print_r($orgUserObj);
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";
    $cntstObj = new CountryState();
}
$userData = $orgUserObj->select($iUserID);
Esempio n. 8
0
}
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($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
if ($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] == 'SM') {
    $smdt = $secManObj->getDetails('*', " AND iSMID!=" . $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] . " AND eStatus='Active' AND eEmailNotification='Yes' ");
    $ordt = $orgUsrObj->getDetails('*', " AND eStatus='Active' AND eEmailNotification='Yes' AND eUserType='Admin' AND iOrganizationID=" . $usrdt[0]['iOrganizationID']);
} else {
    if ($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'] == 'OA') {
        $smdt = $secManObj->getDetails('*', " AND eStatus='Active' AND eEmailNotification='Yes' ");
        $ordt = $orgUsrObj->getDetails('*', " AND iUserID!=" . $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] . " AND eStatus='Active' AND eUserType='Admin' AND eEmailNotification='Yes' AND iOrganizationID=" . $usrdt[0]['iOrganizationID']);
    }
}
if (is_array($smdt) && is_array($ordt)) {
Esempio n. 9
0
}
if (!isset($orgUserPermObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPermObj = new OrganizationUserPermission();
}
if (!isset($orgUserPermVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermissionToVerify.php";
    $orgUserPermVerifyObj = new OrganizationUserPermissionToVerify();
}
if (!isset($secManObj)) {
    require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php";
    $secManObj = new SecurityManager();
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($userToVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php';
    $userToVerifyObj = new OrganizationUserToverify();
}
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";
Esempio n. 10
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
$mode = $_POST['mode'];
$val = $_POST['val'];
//prints($_POST); exit;
if (!isset($orgObj)) {
    require_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($UsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $UsrObj = new OrganizationUser();
}
if (!isset($userToVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php';
    $userToVerifyObj = new OrganizationUserToverify();
}
if (!isset($userActionObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.UserActionVerification.php';
    $userActionObj = new UserActionVerification();
}
if (!isset($orgUserPermObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPermObj = new OrganizationUserPermission();
}
if (!isset($orgUserPermVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermissionToVerify.php";
    $orgUserPermVerifyObj = new OrganizationUserPermissionToVerify();
}
if (!isset($emailObj)) {
Esempio n. 11
0
include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgAssocObj)) {
    require_once SITE_CLASS_APPLICATION . "organization/class.OrganizationAssociation.php";
    $orgAssocObj = new OrganizationAssociation();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($orgGroupObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationGroup.php";
    $orgGroupObj = new OrganizationGroup();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
if (!isset($r2bdobj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Bids.php";
    $r2bdobj = new Rfq2Bids();
}
if (!isset($rfq2awardObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Award.php";
    $rfq2awardObj = new Rfq2Award();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
$sts = $statusmasterObj->getDetails(" DISTINCT iStatusID, vStatus_en, vStatus_fr, vStatus_" . LANG . " as vStatus ", " AND vForAuction LIKE '%RFQ2%'");
$smarty->assign("sts", $sts);
Esempio n. 12
0
    // prints( $_SESSION['SESS_'.PRJ_CONST_PREFIX.'_VALIDATION']);
    $vldmsg = $validation->CreateHtmlMsg($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']);
    unset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']);
}
if (!isset($orgGroupObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationGroup.php";
    $orgGroupObj = new OrganizationGroup();
}
//print_r($orgGroupObj);
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($UsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $UsrObj = new OrganizationUser();
}
$grpData = array();
$orgdata = array();
$userdata = array();
if ($iGroupID != '') {
    $view = 'edit';
    $grpData = $orgGroupObj->select($iGroupID);
    if ($sess_usertype_short == 'OA' && $grpData[0]['iOrganizationID'] != $curORGID) {
        header("Location: " . SITE_URL_DUM . "grouplist");
        exit;
    }
    //prints($grpData);exit;
    if ($grpData[0]['eStatus'] == 'Need to Verify' || $grpData[0]['eStatus'] == 'Modified' || $grpData[0]['eStatus'] == 'Delete' || $grpData[0]['eNeedToVerify'] == 'Yes') {
        header('Location:' . SITE_URL_DUM . 'groupview/' . $iGroupID);
        exit;
Esempio n. 13
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($stMstrObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $stMstrObj = new StatusMaster();
}
if (!isset($poheadingObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderHeading.php";
    $poheadingObj = new PurchaseOrderHeading();
}
if (!isset($invordheadingObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $invordheadingObj = new InvoiceOrderHeading();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
if (!isset($r2bdobj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Bids.php";
    $r2bdobj = new Rfq2Bids();
}
Esempio n. 14
0
<?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($secManObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.SecurityManager.php';
    $secManObj = new SecurityManager();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php';
    $orgUserObj = new OrganizationUser();
}
if (!isset($userToVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php';
    $userToVerifyObj = new OrganizationUserToverify();
}
if (!isset($emailObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php';
    $emailObj = new EmailTemplate();
}
if (!isset($orgUserPermObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPermObj = new OrganizationUserPermission();
}
if (!isset($orgUserPermVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermissionToVerify.php";
    $orgUserPermVerifyObj = new OrganizationUserPermissionToVerify();
}
    $orgUserPerObj = new OrganizationUserPermission();
    //$sess_id
}
if (!isset($orgStaObj)) {
    require_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $orgStaObj = new StatusMaster();
    //$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;
Esempio n. 16
0
if (!isset($orgGroupObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationGroup.php";
    $orgGroupObj = new OrganizationGroup();
}
//print_r($orgGroupObj);
if (!isset($orgGroupVerifyfObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationGroupToVerify.php";
    $orgGroupVerifyfObj = new OrganizationGroupToVerify();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($UsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $UsrObj = new OrganizationUser();
}
if (!isset($orgStaObj)) {
    require_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $orgStaObj = new StatusMaster();
    //$sess_id
}
if (!isset($orgPrefObj)) {
    require_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgPrefObj = new OrganizationPreference();
    //$sess_id
}
if ($iGroupID != '') {
    $view = 'verify';
    $OgrpData = $grpData = $orgGroupObj->select($iGroupID);
    if ($sess_usertype_short == 'OA' && $grpData[0]['iOrganizationID'] != $curORGID) {
Esempio n. 17
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($stMstrObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $stMstrObj = new StatusMaster();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
if (!isset($r2bdobj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Bids.php";
    $r2bdobj = new Rfq2Bids();
}
if (!isset($rfq2awardObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Award.php";
    $rfq2awardObj = new Rfq2Award();
}
// --- Statistics --------------------------------------------------------------------------------------------
// -----------
$sts = $statusmasterObj->getDetails(" DISTINCT iStatusID, vStatus_en, vStatus_fr, vStatus_" . LANG . " as vStatus ", " AND vForAuction LIKE '%RFQ2%'");
#pr($sts);exit;
Esempio n. 18
0
}
if (!isset($rfq2flObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Files.php";
    $rfq2flObj = new Rfq2Files();
}
if (!isset($rpb2Obj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2ProductBuyer2.php";
    $rpb2Obj = new Rfq2ProductBuyer2();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.Organization.php';
    $orgObj = new Organization();
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($fluplObj)) {
    include_once SITE_CLASS_GEN . "class.imagecrop.php";
    $fluplObj = new imagecrop();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = 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';
Esempio n. 19
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
$iUserID = $_GET['id'];
if (!isset($orgUserObj)) {
    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();
}
$usrdtls = $orgUserObj->select($iUserID);
$orgdtls = $orgObj->select($usrdtls[0]['iOrganizationID']);
$urightshistory = $orgUserPermVerifyObj->getHistory($iUserID);
$smarty->assign('usrdtls', $usrdtls);
$smarty->assign('urightshistory', $urightshistory);
Esempio n. 20
0
<?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($secManObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.SecurityManager.php';
    $secManObj = new SecurityManager();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php';
    $orgUserObj = new OrganizationUser();
}
if (!isset($userToVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php';
    $userToVerifyObj = new OrganizationUserToverify();
}
if (!isset($emailObj)) {
    include_once SITE_CLASS_APPLICATION . 'class.EmailTemplate.php';
    $emailObj = new EmailTemplate();
}
$Data = PostVar("Data");
if (!isset($Data['eEmailNotification'])) {
    $Data['eEmailNotification'] = 'No';
}
$Data['vPhone'] = $_POST['vPhoneCode'] . "-" . $Data['vPhone'];
$Data['vMobile'] = $_POST['vMobileCode'] . "-" . $Data['vMobile'];
//prints($Data);exit;
if (count($emailArr) > 0) {
Esempio n. 21
0
include S_SECTIONS . "/member/memberaccess.php";
$iUserID = GetVar('id');
if ($sess_usertype == 'orguser') {
    $iUserID = $sess_id;
}
//$msg = GetVar('msg');
$msg = isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG']) ? $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'] : '';
if ($msg == 'ras') {
    $msg = $smarty->get_template_vars('MSG_ADD_SUCC');
} elseif ($msg == 'raerr') {
    $msg = $smarty->get_template_vars('MSG_ADD_ERR');
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
//print_r($orgUserObj);
if (!isset($userToVerifyObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUserToverify.php';
    $userToVerifyObj = new OrganizationUserToverify();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($countryObj)) {
    include_once SITE_CLASS_APPLICATION . "class.Country.php";
    $countryObj = new Country();
}
if (!isset($stateObj)) {
Esempio n. 22
0
    $orgUserPerObj = new OrganizationUserPermission();
    //$sess_id
}
if (!isset($orgStaObj)) {
    require_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $orgStaObj = new StatusMaster();
    //$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'];
// prints($_GET); exit;
// $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');
Esempio n. 23
0
}
if (!isset($invObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $invObj = new InvoiceOrderHeading();
}
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($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}'";
Esempio n. 24
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
$iUserID = $_GET['id'];
$msg = isset($_GET['msg']) ? $_GET['msg'] : '';
if (!isset($orgUserObj)) {
    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)) {
Esempio n. 25
0
<?php

$UserName = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_NAME'];
//echo $UserName;exit;
$var_msg = $_GET['msg'];
include S_SECTIONS . "/member/memberaccess.php";
$iPurchaseOrderID = $_GET['id'];
if (!isset($pohObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderHeading.php";
    $pohObj = new PurchaseOrderHeading();
}
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . 'user/class.OrganizationUser.php';
    $orgUserObj = new OrganizationUser();
}
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($iohObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $iohObj = new InvoiceOrderHeading();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
Esempio n. 26
0
    }
 */
 if ($memtype == 'securitymanager') {
     if (!isset($secManObj)) {
         require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php";
         $secManObj = new SecurityManager();
     }
     $where = " (vUserName='******') ";
     $data['vActivationCode'] = '';
     $data['vPassword'] = $generalobj->encrypt($newpass);
     $id = $secManObj->updateData($data, $where);
 } else {
     if ($memtype == 'orguser') {
         if (!isset($orgUsrObj)) {
             require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
             $orgUsrObj = new OrganizationUser();
         }
         $where = " (vUserName='******') ";
         $data['vActivationCode'] = '';
         $data['vPassword'] = $generalobj->encrypt($newpass);
         $id = $orgUsrObj->updateData($data, $where);
         if (!isset($orgObj)) {
             include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
             $orgObj = new Organization();
         }
         $orgDetail = $orgObj->select($memArr[0]['iOrganizationID']);
     }
 }
 $name = $memArr[0]['vFirstName'] . " " . $memArr[0]['vLastName'];
 if (!isset($sendMail)) {
     require_once SITE_CLASS_GEN . "class.sendmail.php";
Esempio n. 27
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($orgUsrObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
$order = $_POST['order'];
$Data['tDashboard'] = $order;
//$orgObj->setAllVar($Data);
$where = " iUserID = '" . $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'] . "'";
$res = $orgUsrObj->updateData($Data, $where);
exit;
Esempio n. 28
0
$val = isset($_POST['val']) ? $_POST['val'] : '';
$vUserName = isset($_POST['vUserName']) ? $_POST['vUserName'] : '';
$vEmail = isset($_POST['vEmail']) ? $_POST['vEmail'] : '';
$eUserType = isset($_POST['eUserType']) ? $_POST['eUserType'] : '';
$vCountry = isset($_POST['vCountry']) ? $_POST['vCountry'] : '';
$vCompanyName = isset($_POST['vCompanyName']) ? $_POST['vCompanyName'] : '';
$page = $_POST['page'];
$sfor = isset($_POST['slfor']) ? $_POST['slfor'] : '';
$stype = isset($_POST['styp']) ? $_POST['styp'] : '';
if (trim($page) == '' || trim($page) < 1) {
    $page = 1;
}
// prints($_POST); exit;
if (!isset($orgUserObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUserObj = new OrganizationUser();
}
$where = "";
if ($mode == 'all') {
    if ($val != '') {
        $where = " AND (ou.vFirstName LIKE '%{$val}%' OR ou.vLastName LIKE '%{$val}%' OR ou.vEmail LIKE '%{$val}%' OR ou.eUserType LIKE '%{$val}%' OR ou.vCountry LIKE '%{$val}%' OR CONCAT(ou.vFirstName,' ',ou.vLastName) LIKE '%{$val}%' )";
    }
} else {
    if ($mode == 'srch') {
        if (trim($vUserName) != '') {
            $where = " AND (ou.vFirstName LIKE '%{$vUserName}%' || ou.vLastName LIKE '%{$vUserName}%') ";
        }
        if (trim($vEmail) != '') {
            $where .= " AND ou.vEmail LIKE '%{$vEmail}%'";
        }
        if (trim($eUserType) != '') {
Esempio n. 29
0
 $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);
     $oawhr = " AND iUserID!='" . $sess_id . "' AND eStatus='Active' AND eUserType='Admin' AND iOrganizationID='" . $assocs[$l]['iBuyer2Id'] . "' AND eEmailNotification='Yes' ";
     $oadms = $orgUserObj->getDetails('vEmail', $oawhr);
 } else {
     $smgrs = '';
     $smwhr = " AND iSMID!='" . $sess_id . "' AND eEmailNotification='Yes' AND eStatus='Active' ";
     $smgrs = $secManObj->getDetails('vEmail', $smwhr);
 }
 $smemails = '';
 $oaemails = '';
 if (is_array($smgrs) && count($smgrs) > 0) {
Esempio n. 30
0
$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();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
if (!isset($orgUsrObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php";
    $orgUsrObj = new OrganizationUser();
}
if (!isset($orgUserPerObj)) {
    require_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPerObj = new OrganizationUserPermission();
}
if (!isset($secManObj)) {
    require_once SITE_CLASS_APPLICATION . "securitymanager/class.SecurityManager.php";
    $secManObj = new SecurityManager();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";