application status
This commit is contained in:
parent
6533bcb6a3
commit
872e039bf5
@ -591,24 +591,69 @@ class Studentview_model extends CI_Model
|
|||||||
{
|
{
|
||||||
|
|
||||||
// echo 'in';
|
// echo 'in';
|
||||||
$this->db->select('T_ApplicationStatus.StudentID,AppDate,CertificateName,ListName,Firstname,Lastname,T_ApplicationStatus.Comments,CourseName,T_ApplicationStatus.CertificationNo');
|
// $this->db->select('T_ApplicationStatus.StudentID,AppDate,CertificateName,ListName,Firstname,Lastname,T_ApplicationStatus.Comments,CourseName,T_ApplicationStatus.CertificationNo');
|
||||||
$this->db->from('T_ApplicationStatus');
|
// $this->db->from('T_ApplicationStatus');
|
||||||
$this->db->join('T_PickListDetails','T_PickListDetails.ListCode = T_ApplicationStatus.ListCode','left');
|
// $this->db->join('T_PickListDetails','T_PickListDetails.ListCode = T_ApplicationStatus.ListCode','left');
|
||||||
$this->db->join('T_CertificationMaster','T_CertificationMaster.CertificationID = T_ApplicationStatus.CertificationType','left');
|
// $this->db->join('T_CertificationMaster','T_CertificationMaster.CertificationID = T_ApplicationStatus.CertificationType','left');
|
||||||
$this->db->join('T_StudentDetails','T_StudentDetails.StudentID = T_ApplicationStatus.StudentID','left');
|
// $this->db->join('T_StudentDetails','T_StudentDetails.StudentID = T_ApplicationStatus.StudentID','left');
|
||||||
$this->db->join('T_CourseMaster','T_CourseMaster.CourseID = T_ApplicationStatus.CourseID','left');
|
// $this->db->join('T_CourseMaster','T_CourseMaster.CourseID = T_ApplicationStatus.CourseID','left');
|
||||||
$this->db->where('T_ApplicationStatus.CourseID',$courseid);
|
// $this->db->where('T_ApplicationStatus.CourseID',$courseid);
|
||||||
$this->db->where('T_ApplicationStatus.StudentID',$studentid);
|
// $this->db->where('T_ApplicationStatus.StudentID',$studentid);
|
||||||
$this->db->group_by('CertificationType');
|
// $this->db->group_by('CertificationType');
|
||||||
$this->db->order_by('T_ApplicationStatus.CreatedOn','desc');
|
// $this->db->order_by('T_ApplicationStatus.CreatedOn','desc');
|
||||||
|
|
||||||
$appDetails = $this->db->get();
|
// $appDetails = $this->db->get();
|
||||||
|
|
||||||
if ($appDetails->result()){
|
// if ($appDetails->result()){
|
||||||
return $appDetails->result();
|
// return $appDetails->result();
|
||||||
}
|
// }
|
||||||
else{
|
// else{
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$this->db->select('max(t1.CreatedOn) as maxdate');
|
||||||
|
$this->db->from('T_ApplicationFormStatus as t1');
|
||||||
|
$this->db->join('T_Registration_Details as t2', 't2.ID = t1.Registration_Details_ID');
|
||||||
|
$this->db->where('t2.StudentID',$studentid);
|
||||||
|
$this->db->where('t2.CourseID', $courseid);
|
||||||
|
|
||||||
|
$dateres=$this->db->get();
|
||||||
|
|
||||||
|
$dateval = $dateres->result();
|
||||||
|
|
||||||
|
$madate ='';
|
||||||
|
|
||||||
|
foreach($dateval as $va)
|
||||||
|
{
|
||||||
|
$madate = $va->maxdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
// echo $madate;
|
||||||
|
// die();
|
||||||
|
|
||||||
|
|
||||||
|
$this->db->select('t1.ID, t2.BatchCode, t2.FeeType as SemID, CFD.Sem_Year as Sem_Year, t2.RegistrationMode, t2.RegistrationType, t1.AppFormDate as StatusUpdateDate,t3.ListName ,t1.Comments');
|
||||||
|
$this->db->from('T_ApplicationFormStatus as t1');
|
||||||
|
$this->db->join('T_Registration_Details as t2', 't2.ID = t1.Registration_Details_ID');
|
||||||
|
$this->db->join('T_Course_Fees_Details as CFD', 'CFD.ID = t2.FeeType');
|
||||||
|
$this->db->join('' . PICK_LIST_DETAILS . ' as t3', 't3.ListCode = t1.ListCode', 'LEFT');
|
||||||
|
|
||||||
|
$this->db->where('t2.StudentID', $studentid);
|
||||||
|
$this->db->where('t2.CourseID', $courseid);
|
||||||
|
$this->db->where('t1.CreatedOn',$madate);
|
||||||
|
$fromTypes = $this->db->get();
|
||||||
|
$formTypeDetails = $fromTypes->result();
|
||||||
|
if($formTypeDetails)
|
||||||
|
{
|
||||||
|
return $fromTypes->result();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// print_r($formTypeDetails);exit();
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -304,7 +304,7 @@
|
|||||||
|
|
||||||
</tab>
|
</tab>
|
||||||
|
|
||||||
<!-- {{course.applicationDetails}} -->
|
<!-- {{course.applicationDetails}} -->
|
||||||
<tab heading="Application Details" id="application">
|
<tab heading="Application Details" id="application">
|
||||||
<div class="panel-scroll ng-scope ps-container ps-theme-default ps-active-y" perfect-scrollbar="" data-ps-id="6fc3054c-6292-144d-eff7-cd557f527468">
|
<div class="panel-scroll ng-scope ps-container ps-theme-default ps-active-y" perfect-scrollbar="" data-ps-id="6fc3054c-6292-144d-eff7-cd557f527468">
|
||||||
<div ng-if="course.applicationDetails==false">
|
<div ng-if="course.applicationDetails==false">
|
||||||
@ -321,13 +321,12 @@
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Comments</th> -->
|
<th>Comments</th> -->
|
||||||
|
|
||||||
<th>Certificate Number</th>
|
<th>Status</th>
|
||||||
<th>Certificate Type</th>
|
|
||||||
<th>Course</th>
|
|
||||||
<th>Comments</th>
|
<th>Comments</th>
|
||||||
|
<th>Batch</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Status</th>
|
<th>SEM/YEAR</th>
|
||||||
|
<th>Form Type</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -346,12 +345,12 @@
|
|||||||
</td> -->
|
</td> -->
|
||||||
|
|
||||||
|
|
||||||
<td><span>{{apps.CertificationNo}} </span></td>
|
<td><span>{{apps.ListName}} </span></td>
|
||||||
<td><span>{{apps.CertificateName}}</span></td>
|
<td><span>{{apps.Comments}}</span></td>
|
||||||
<td><span>{{apps.CourseName}}</span></span></td>
|
<td><span>{{apps.BatchCode}}</span></span></td>
|
||||||
<td><span>{{apps.Comments}}</span></span></td>
|
<td><span>{{apps.StatusUpdateDate}}</span></span></td>
|
||||||
<td><span>{{apps.AppDate}}</span></td>
|
<td><span>{{apps.Sem_Year}}</span></td>
|
||||||
<td><span>{{apps.ListName}}</span></td>
|
<td><span>{{apps.RegistrationType}}</span></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user