$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') {
         $rdt['iModifiedByID'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
         $rdt['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
         $rdt['dModifiedDate'] = $Data['dModifiedDate'];
         $rdt['eStatus'] = 'Modified';
         $drs = $orgObj->updateData($rdt, "iOrganizationID={$iOrganizationID}");
         $orgdtls[0]['iModifiedByID'] = $rdt['iModifiedByID'];
         $orgdtls[0]['eModifiedBy'] = $rdt['eModifiedBy'];
         $orgdtls[0]['dModifiedDate'] = $rdt['eModifiedBy'];
         $orgdtls[0]['eStatus'] = 'Modified';
         $org_ndetails = $orgdtls[0];
         $orgvrfObj->setAllVar($org_ndetails);
         $drs = $orgvrfObj->insert($org_ndetails);
     }
     /*if($orgdtls[0]['eOrganizationType'] == 'Supplier'){
     		$opdt['vOrderStatusLevel'] = '';
     		$rs = $orgprefObj->updateData($opdt,"iOrganizationID=$iOrganizationID");
       } else if($orgdtls[0]['eOrganizationType'] == 'Buyer') {
     		$opdt['vInvoiceStatusLevel'] = '';
     		$rs = $orgprefObj->updateData($opdt,"iOrganizationID=$iOrganizationID");
       }*/
     $rs = $orgUserPermObj->clearExtraPermits($iOrganizationID, $orgdtls[0]['eOrganizationType']);
     // $rs = $orgUserPermObj->clearExPermits($iOrganizationID,$orgdtls[0]['eOrganizationType'],$Data1);
 }
 /*     //INSERT THIS RECORD IN USER_ACTION_VERIFICATION TABLE
 	if(count($arr) > 0)
 	{
示例#2
0
if ($mode == 'status') {
    $where = "AND iOrganizationID IN ({$val})";
    $arr = $orgObj->getDetails('*', $where);
    foreach ($arr as $k => $v) {
        $data = $v;
        $data['eNeedToVerify'] = 'Yes';
        $data['iModifiedByID'] = $sess_id;
        $data['eModifiedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
        $data['dModifiedDate'] = date('Y-m-d H:i:s');
        if ($v['eStatus'] == 'Active') {
            $data['eStatus'] = 'Inactive';
            //$orgObj->setAllVar($data);
            $where = "iOrganizationID = " . $v['iOrganizationID'] . "";
            $dtl['eNeedToVerify'] = 'Yes';
            $res = $orgObj->updateData($dtl, $where);
            $orgvrfObj->setAllVar($data);
            $res = $orgvrfObj->insert();
        } elseif ($v['eStatus'] == 'Inactive') {
            $data['eStatus'] = 'Active';
            //$orgObj->setAllVar($data);
            $where = "iOrganizationID = " . $v['iOrganizationID'] . "";
            $dtl['eNeedToVerify'] = 'Yes';
            $res = $orgObj->updateData($dtl, $where);
            //$res = $orgObj->updateData($data, $where);
            $orgvrfObj->setAllVar($data);
            $res = $orgvrfObj->insert();
        } elseif ($v['eStatus'] == 'Modified' || $v['eStatus'] == 'Need to Verify') {
            $var_msg = $smarty->get_template_vars('MSG_VERIFY_NEED_TO_VERIFY_OR_MODIFIED');
            echo $var_msg;
            exit;
        }