Beispiel #1
0
 		}
           if($chkMulAdmin == '1'){
              $adata = $data;
              $adata['eStatus'] = 'Active';
           } else {
              $adata['eStatus'] = $adata['eStatus'];
           }*/
 //$adata['eNeedToVerify']=$data['eNeedToVerify']='Yes';
 $adata['iModifiedByID'] = $data['iModifiedByID'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
 $adata['eModifiedBy'] = $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
 $adata['dModifiedDate'] = $data['dModifiedDate'] = date('Y-m-d H:i:s');
 $asdt = $orgAssocObj->getDetails('*', " AND vAssociationCode='{$vAssociationCode}'  AND iBuyerOrganizationID={$iBuyerOrganizationID} AND iSupplierAssocationID=" . $iSupplierAssocationID[$l] . " ");
 // echo $iSupplierAssocationID[$l]."hi";
 // prints($asdt); // exit;
 if (count($asdt) > 0) {
     $orgAssocObj->setAllVar($adata);
     // $where = " iAsociationID = '".$assarr[$l]['iAsociationID']."'"; //
     $where = " iAsociationID = '" . $asocd[$iSupplierAssocationID[$l]]['iAsociationID'] . "'";
     //prints($adata);exit;
     $ascid = $orgAssocObj->updateData($adata, $where);
     //print $ascid; exit;
     //exit;
     // $data['iAsociationID'] = $assarr[$l]['iAsociationID']; //
     $data['iAsociationID'] = $asocd[$iSupplierAssocationID[$l]]['iAsociationID'];
 } else {
     $data['iSupplierAssocationID'] = $iSupplierAssocationID[$l];
     $data['vSupplierCode'] = $vSupplierCode[$l];
     //$data['vAssociationCode'] = $vAssociationCode[$l];
     $data['vAssociationCode'] = $vAssociationCode;
     $data['dCreatedDate'] = date("Y-m-d H:i:s");
     //if(count($emlar) > 0)
Beispiel #2
0
    $emailObj = new EmailTemplate();
}
if (!isset($sendMail)) {
    include_once SITE_CLASS_GEN . "class.sendmail.php";
    $sendMail = new SendPHPMail();
}
$where = " AND iAsociationID IN ({$val}) ";
$arr = $orgAssocObj->getDetails('*', $where);
foreach ($arr as $k => $v) {
    if ($v['eNeedToVerify'] != 'Yes') {
        $dlts['eStatus'] = 'Delete';
        // $dlts['eNeedToVerify'] = 'Yes';
        $dlts['iModifiedByID'] = $sess_id;
        $dlts['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
        $dlts['dModifiedDate'] = date('Y-m-d H:i:s');
        $assObj->setAllVar($dlts);
        // $where = " iAsociationID IN (".$v['iAsociationID'].") ";
        $where = " iAsociationID=" . $v['iAsociationID'];
        // prints($where); exit;
        $res = $assObj->updateData($dlts, $where);
        //$assvrfObj->setAllVar($dlts);
        //$res = $assvrfObj->updateData($dlts, $where);
        $where = ' AND iAsociationID = ' . $v['iAsociationID'] . '';
        $dts = $v;
        $dts['iModifiedByID'] = $sess_id;
        $dts['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
        $dts['dModifiedDate'] = date('Y-m-d H:i:s');
        $dts['eStatus'] = 'Delete';
        $assvrfObj->setAllVar($dts);
        $rs = $assvrfObj->insert();
        $orderby = ' iVerifiedID Desc';