sms related changes : ps
This commit is contained in:
parent
d61bde0cdd
commit
b4b6342627
@ -186,7 +186,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
|
||||
// print_r($arr);
|
||||
// exit();
|
||||
|
||||
$msgId = "";
|
||||
$this->db->insert_batch(CERTIFICATION_STATUS, $arr);
|
||||
if ($this->db->affected_rows() >= 1) {
|
||||
//If condition for Check ANSWERBOOKLET_STATUS, If it is null or 'Issued to Student' for do not send sms.
|
||||
@ -226,7 +226,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
// print_r($WithoutspaceStatus);
|
||||
// exit;
|
||||
// $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
|
||||
if( ($statuToMsg == 'received' || $statuToMsg == 'Received' || $statuToMsg == 'RECEIVED') && $WithoutspaceStatus == 'RECEIVEDFROMSTUDENT'){
|
||||
if( ($statuToMsg == 'received' || $statuToMsg == 'Received' || $statuToMsg == 'RECEIVED') || $WithoutspaceStatus == 'RECEIVEDFROMSTUDENT'){
|
||||
// if($WithoutspaceStatus == 'SENTTOUNIVERSITY'){
|
||||
// if condition for answerbookletstatus
|
||||
// if(strpos($WithoutspaceStatus,'RECEIVED')){
|
||||
@ -236,7 +236,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
||||
// $mesg = "Status Update : $cerNamtToMsg $getSemYearMsg - $statuToMsg $dateToMsg.";
|
||||
$mesg = "$cerNamtToMsg Received - Dear $studentName, Your $getSemYearANDType had been received, Please come and collect it. APOLLO DEC";
|
||||
$msgid = $this->smssend($arr, $mesg);
|
||||
$msgId = $this->smssend($arr, $mesg);
|
||||
$this->mailsend($arr, $mesg, $cerNamtToMsg);
|
||||
|
||||
|
||||
@ -264,7 +264,7 @@ class StatusUpdation_model extends CI_Model {
|
||||
// }///else {echo "DO NOT SEND SMS";}
|
||||
$result['addStatus'] = true;
|
||||
$result['message'] = "Successfully Mark Card Status Updated";
|
||||
$result['SMSstatus'] = $msgid;
|
||||
$result['SMSstatus'] = $msgId;
|
||||
} else {
|
||||
$result['addStatus'] = false;
|
||||
$result['message'] = "Something went wrong.please try again";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user