Example #1
0
}
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($poAttachmentObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderAttachment.php";
    $poAttachmentObj = new PurchaseOrderAttachment();
}
if (!isset($poprefObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PoOtherInformation.php";
    $poprefObj = new PoOtherInformation();
}
$eSaved = $_POST['eSaved'];
$Data = $_POST['Data'];
$eFrom = $Data['eFrom'];
unset($Data['eFrom']);
unset($_POST['eFrom']);
$iPurchaseOrderID = $_POST['iPurchaseOrderID'];
$Data['iPurchaseOrderID'] = $iPurchaseOrderID;
$poextdtls = $poprefObj->getDetails("*", " AND iPurchaseOrderID={$iPurchaseOrderID} ");
// prints($poextdtls); exit;
if (is_array($poextdtls) && count($poextdtls) > 0) {
    $rs = $poprefObj->updateData($Data, "iPurchaseOrderID={$iPurchaseOrderID}");
    $msg = "rus";
} else {
    $rs = $poprefObj->insert($Data);
Example #2
0
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($poAttachmentObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderAttachment.php";
    $poAttachmentObj = new PurchaseOrderAttachment();
}
if (!isset($invOrdObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $invOrdObj = new InvoiceOrderHeading();
}
if (!isset($poprefObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PoOtherInformation.php";
    $poprefObj = new PoOtherInformation();
}
$mmsg = '';
$msg = $_GET['msg'];
/*if($msg == 'ras') {
     $msg = $smarty->get_template_vars('MSG_ADD_SUCC');
} elseif($msg == 'raserr') {
     $msg = $smarty->get_template_vars('MSG_ADD_ERR');
} elseif($msg == 'tmm') {
     $mmsg = $smarty->get_template_vars('LBL_PO_TOTAL_MISMATCH');
} else{ $msg=''; }*/
$UserName = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_NAME'];
//$msg=$_REQUEST['msg'];
if (isset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG']) && $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'] != '') {
    $msg = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'];
    unset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG']);
Example #3
0
<?php

include S_SECTIONS . "/member/memberaccess.php";
if (!isset($imgObj)) {
    include_once SITE_CLASS_GEN . "class.imagecrop.php";
    $imgObj = new imagecrop();
}
if (!isset($pohObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderHeading.php";
    $pohObj = new PurchaseOrderHeading();
}
if (!isset($poprefObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PoOtherInformation.php";
    $poprefObj = new PoOtherInformation();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($orgObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
$arr_loaded_ext = get_loaded_extensions();
if (in_array('mcrypt', $arr_loaded_ext)) {
    if (!isset($encobj)) {
        require_once SITE_CLASS_GEN . "class.encryption.php";
        $encobj = new Encryption();
    }
}
$row = 1;