Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.137.174.253
<?php
class candidate_certificate
{
function __construct($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->aobj_context=$aobj_context;
$this->ip=$_SERVER["REMOTE_ADDR"];
$this->collcode=$_SESSION['f_college_code'];
$this->login_cnt=$_SESSION['login_cnt'];
$this->f_user_name=$_SESSION['f_user_name'];
}
function GetCandidateCertificates()
{
$from_app=trim($this->aobj_context->mobj_data["from_app"]);
$to_app=trim($this->aobj_context->mobj_data["to_app"]);
$get_qry="SELECT s.FCONVNO,s.FNAME,c.FCOLLNAME,d.FDESCPN,s.FREGNO,s.FPAYSTATUS
FROM dctran s, studdc st,college c, degree d
WHERE st.FREGNO = s.FREGNO and st.FCOLLCODE = c.FCOLLCODE and st.FDEGREE = d.FDEGREE
and IFNULL(s.FCONVNO,'')!='' and s.FCONVNO>='{$from_app}' and s.FCONVNO<='{$to_app}'
and FPAYSTATUS = 'success'
GROUP BY s.FCONVNO ORDER BY s.FCONVNO";
$this->aobj_context->mobj_db->execute("SET @@session.group_concat_max_len=10000");
$up_obj=$this->aobj_context->mobj_db->GetAll($get_qry);
$html=' <div class="row"> <div class="col-md-10"> <div class="portlet box green">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-picture"></i>Candidate List
</div>
</div>
<div class="portlet-body">
<div class="table-responsive">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>
#
</th>
<th>
APP No
</th>
<th>
Candidate Name
</th>
<th>
College
</th>
<th>
Degree
</th>
<th>
Reg. No.
</th>
<th>
Payment Status
</th>
</tr>
</thead>
<tbody>';
$sl=1;
$col_span="9";
foreach($up_obj as $ak=>$av)
{
$html.="<tr ondblclick = \"javascript:CMS.viewCandidateDetails('{$av['FCONVNO']}','{$av['FCOLLCODE']}')\">";
$html.="<td>{$sl}</td>";
$html.="<td>{$av['FCONVNO']}</td>";
$html.="<td>{$av['FNAME']}</td>";
$html.="<td>{$av['FCOLLNAME']}</td>";
$html.="<td>{$av['FDESCPN']}</td>";
$html.="<td>{$av['FREGNO']}</td>";
$html.="<td>{$av['FPAYSTATUS']}</td>";
$html.="</tr>";
$sl++;
}
$html.='</tbody>
</table>
</div>
</div>
</div>
</div></div>';
$arr['html']=$html;
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"Success");
return;
}
function GetCandidateDetails()
{
$collcode=trim($this->aobj_context->mobj_data["collcode"]);
$appno=trim($this->aobj_context->mobj_data["appno"]);
$get_qry="SELECT s.*,date_format(s.FDOB,'%d/%m/%Y') as dob,d.FDESCPN,
concat(c.FCOLLCODE,' - ',c.FCOLLNAME) as collname FROM dctran s
inner join studdc st on st.FREGNO = s.FREGNO
LEFT JOIN college c on c.FCOLLCODE = st.FCOLLCODE
LEFT JOIN degree d on d.FDEGREE = st.FDEGREE
WHERE IFNULL(s.FCONVNO,'')!='' and s.FCONVNO = '{$appno}'
GROUP BY s.FCONVNO ORDER BY s.FCONVNO";
$this->aobj_context->mobj_db->execute("SET @@session.group_concat_max_len=10000");
$up_obj=$this->aobj_context->mobj_db->GetAll($get_qry);
foreach($up_obj as $ak=>$av)
{
$html = "<div class='portlet-body form' style='margin-left:10px;'>
<div class='row'><div class='col-md-10'> <div class='portlet box green'>
<div class='portlet-title'>
<div class='caption'>
<i class='fa fa-picture'></i>Candidate Details
</div>
</div>
</div>
<!-- BEGIN FORM-->
<form class='form-horizontal' id='form_module_details_upload' enctype='multipart/form-data' method='POST'>
<div class='col-md-8'>
<input type='hidden' name= 'MAX_FILE_SIZE' value='10000000000' />
<div class='form-body' >
<div class='form-group' >
<label class='col-md-3 control-label' style='text-align:left;font-size:18px;'>Application no.</label>
<label class='col-md-5 control-label' style='text-align:left;font-size:18px;'>
{$av['FCONVNO']}
</label>
</div>
<div class='form-group'>
<label class='col-md-3 control-label' style='text-align:left;'>College</label>
<label class='col-md-5 control-label' style='text-align:left;'>
{$av['collname']}
</label>
</div>
<div class='form-group'>
<label class='col-md-3 control-label' style='text-align:left;'>Degree</label>
<label class='col-md-5 control-label' style='text-align:left;'>
{$av['FDESCPN']}
</label>
</div>
<div class='form-group'>
<label class='col-md-3 control-label' style='text-align:left;'>Candidate name</label>
<label class='col-md-5 control-label' style='text-align:left;'>
{$av['FNAME']}
</label>
</div>
<div class='form-group'>
<label class='col-md-3 control-label' style='text-align:left;'>DOB</label>
<label class='col-md-5 control-label' style='text-align:left;'>
{$av['dob']}
</label>
</div>
</div>
</div>
<div class='col-md-4'>
<div class='form-group'>
<img id='student_entry_photo' style='width:148px;z-index:1;height:187px; width:148px' src='{$av[FPHOTOPATH]}' class='img-responsive' >
</div>
</div>
</form>
</div>
<div class='form-body' style='clear:both;'>
<h3 class='form-section'>Personnel Information</h3>
<!--/row-->
<div class='row'>
<div class='col-md-4 '>
<div class='form-group'>
<label class='control-label'>Postal Address : </label>
{$av['FPOSTADDR1']}<br>
{$av['FPOSTADDR2']}<br>
{$av['FPOSTADDR3']}<br>
{$av['FPOSTADDR4']}<br>
</div>
</div>
<!--/span-->
</div>
<div class='row'>
<!--/span-->
<div class='col-md-3'>
<div class='form-group'>
<label>Mobile No. : </label>
{$av['FMOBILE']}
</div>
</div>
<div class='col-md-3'>
<div class='form-group'>
<label>Email Id. : </label>
{$av['FEMAIL']}
</div>
</div>
<!--/span-->
</div>
</div>
<div class='row'>
<div class='col-md-10'>
<div id='emp_docs_div'>
<!-- END SAMPLE TABLE PORTLET-->
</div>
</div>
</div>
</div></div>";
}
$arr['html']=$html;
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"Success");
return;
}
}
function GetCollwiseCandidateList($aobj_context)
{
$obj=new candidate_certificate($aobj_context);
$obj->GetCandidateCertificates();
}
function GetCandidateDetails($aobj_context)
{
$obj=new candidate_certificate($aobj_context);
$obj->GetCandidateDetails();
}
?>
|