mark card email
This commit is contained in:
parent
7fdc78bf8d
commit
852b4571ea
@ -117,18 +117,19 @@ class StatusUpdation_model extends CI_Model {
|
|||||||
|
|
||||||
$getlastansbookstatus = $this->GetLastAns_status($arr[0]['StudentID'],$arr[0]['Sem'],$arr[0]['CourseID']);
|
$getlastansbookstatus = $this->GetLastAns_status($arr[0]['StudentID'],$arr[0]['Sem'],$arr[0]['CourseID']);
|
||||||
|
|
||||||
$latestappstatus='';
|
// $latestappstatus='';
|
||||||
if(!empty($getlastansbookstatus))
|
// if(!empty($getlastansbookstatus))
|
||||||
{
|
// {
|
||||||
|
|
||||||
foreach($getlastansbookstatus as $get)
|
// foreach($getlastansbookstatus as $get)
|
||||||
{
|
// {
|
||||||
$latestappstatus= $get->ListCode;
|
// $latestappstatus= $get->ListCode;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
$upperresult=strtoupper($getlastansbookstatus);
|
||||||
|
|
||||||
// echo $latestappstatus;
|
// echo $upperresult;
|
||||||
// die();
|
// die();
|
||||||
if($answerBookletStatus['isIssueToStudentExist'] == 0 && $answerBookletStatus['statusCount'] != 0)
|
if($answerBookletStatus['isIssueToStudentExist'] == 0 && $answerBookletStatus['statusCount'] != 0)
|
||||||
{
|
{
|
||||||
@ -138,11 +139,12 @@ $latestappstatus='';
|
|||||||
$studentName = $this->getStudentName($arr[0]['StudentID']);
|
$studentName = $this->getStudentName($arr[0]['StudentID']);
|
||||||
$CmntToMsg = $arr[0]['Comments'];
|
$CmntToMsg = $arr[0]['Comments'];
|
||||||
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
|
$statuToMsg = $this->get_status_name_ListCode($arr[0]['ListCode']);
|
||||||
|
//echo $latestappstatus;die();
|
||||||
|
|
||||||
|
|
||||||
// $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
|
// $cerNamtToMsg = $this->get_certificate_name($arr[0]['CertificationType']);
|
||||||
if( ($statuToMsg == 'received' || $statuToMsg == 'Received' || $statuToMsg == 'RECEIVED') && $latestappstatus == 'S057'){
|
if( ($statuToMsg == 'received' || $statuToMsg == 'Received' || $statuToMsg == 'RECEIVED') && $upperresult == 'RECEIVED'){
|
||||||
|
|
||||||
|
|
||||||
|
// echo 'if';die();
|
||||||
$cerNamtToMsg = 'Mark Card';
|
$cerNamtToMsg = 'Mark Card';
|
||||||
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
||||||
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
||||||
@ -155,6 +157,8 @@ $latestappstatus='';
|
|||||||
// echo $statuToMsg;
|
// echo $statuToMsg;
|
||||||
// die();
|
// die();
|
||||||
} else if($statuToMsg == 'issued' || $statuToMsg == 'Issued' || $statuToMsg == 'ISSUED') {
|
} else if($statuToMsg == 'issued' || $statuToMsg == 'Issued' || $statuToMsg == 'ISSUED') {
|
||||||
|
|
||||||
|
echo 'else if';die();
|
||||||
$cerNamtToMsg = 'Mark Card';
|
$cerNamtToMsg = 'Mark Card';
|
||||||
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
$getSemYearMsg = $this->get_couser_sem_yr_msg($arr[0]['CourseID']);
|
||||||
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
$getSemYearANDType = "$getSemYearMsg $cerNamtToMsg";
|
||||||
@ -616,6 +620,8 @@ $latestappstatus='';
|
|||||||
// Your new password for logging into Apollo student portal is (Password). Please change the password as soon as you login.
|
// Your new password for logging into Apollo student portal is (Password). Please change the password as soon as you login.
|
||||||
// This is the template to be used.
|
// This is the template to be used.
|
||||||
public function smssend($arr, $msg) {
|
public function smssend($arr, $msg) {
|
||||||
|
|
||||||
|
|
||||||
$number = array();
|
$number = array();
|
||||||
foreach ($arr as $ar) {
|
foreach ($arr as $ar) {
|
||||||
$mobi = $this->get_registered_mobile($ar['StudentID']);
|
$mobi = $this->get_registered_mobile($ar['StudentID']);
|
||||||
@ -1082,7 +1088,42 @@ $this->db->insert_batch('T_BroadcastStatus', $data);
|
|||||||
|
|
||||||
$expense = $query->result();
|
$expense = $query->result();
|
||||||
|
|
||||||
return $expense;
|
//print_r($expense);die();
|
||||||
|
|
||||||
|
$latestappstatus='';
|
||||||
|
|
||||||
|
if(!empty($expense))
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach($expense as $get)
|
||||||
|
{
|
||||||
|
$latestappstatus= $get->ListCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//echo $latestappstatus;die();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$this->db->select('ListCode,ListName');
|
||||||
|
$this->db->from('T_PickListDetails');
|
||||||
|
$this->db->where('T_PickListDetails.ListCode',$latestappstatus);
|
||||||
|
|
||||||
|
$Type = $this->db->get();
|
||||||
|
$TypeName = $Type->result();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$LastListname='';
|
||||||
|
foreach($TypeName as $ty)
|
||||||
|
{
|
||||||
|
$LastListname= $ty->ListName;
|
||||||
|
}
|
||||||
|
|
||||||
|
//echo $LastListname;die();
|
||||||
|
|
||||||
|
|
||||||
|
return $LastListname;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user