Reregistration form pdf by sriram

This commit is contained in:
sriramv 2018-06-19 14:29:58 +05:30
parent 6194d3a107
commit 98dd095aaf
7 changed files with 778 additions and 12 deletions

View File

@ -76,12 +76,12 @@ $query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'apollodec.com',
'username' => 'apollod4_SIT',
'password' => 'apollosit1234',
'database' => 'apollod4_ApolloDECNEWSIT',
// 'username' => 'apollod4_DEV',
// 'password' => 'apollo1234',
// 'database' => 'apollod4_ApolloDECDev',
// 'username' => 'apollod4_SIT',
// 'password' => 'apollosit1234',
// 'database' => 'apollod4_ApolloDECNEWSIT',
'username' => 'apollod4_DEV',
'password' => 'apollo1234',
'database' => 'apollod4_ApolloDECDev',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,

View File

@ -268,6 +268,10 @@ $route['updateSheduleDetails'] = 'HallTickets_Controller/updateSheduleDetails';
$route['getSheduleDetails'] = 'HallTickets_Controller/getSheduleDetails';
$route['getUniversityCourseId'] = 'HallTickets_Controller/getUniversityCourseId';
$route['saveBatchSchedule'] = 'HallTickets_Controller/SaveAllBatchSchedule';
// Re Registration Form
$route['getStudentListForRegistrer'] = 'Reregister_Controller/getStudentListForReregister';
$route['getSubject'] = 'Reregister_Controller/getSubject';
$route['getUniversityCourseDetailsforms'] = 'Reregister_Controller/getUniversityCourseDetailsforms';
///PROMOTE BATCH AND RE REG
$route['getUniversityBatchDetails'] = 'Reregister_Controller/getUniversityBatchDetails';

View File

@ -76,8 +76,72 @@ class Reregister_Controller extends REST_Controller {
], REST_Controller::HTTP_NOT_FOUND);
}
}
/*
*Created by Visual Studio.
* User: sriram
* Date: 6/12/18
* Reregiter function
*/
public function getUniversityCourseDetailsforms_post(){
$branchId = $this->post('branchId');
$getUnivDetails = $this->Reregister_model->getUniversityDetails($branchId);
//$getCenterDetails = $this->Reregister_model->getCenterDetails($branchId);
if ($getUnivDetails)
{
$getUnivDetails['status'] = REST_Controller::HTTP_OK;
// Set the response and exit
$this->response($getUnivDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
// Set the response and exit
$this->response([
'message' => 'No records found!',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
public function getStudentListForReregister_post(){
// echo "function in";die;
$UID = $this->post('university');
$courseID = $this->post('course');
$batch = $this->post('batch');
$requestedBy = $this->post('requestedBy');
$branchId = $this->post('branchId');
//echo $branchId;die;
$res = $this->Reregister_model->getStudentListForReregistermodel($UID,$courseID,$batch,$requestedBy,$branchId);
if(count($res) > 0)
{
$data['status'] = REST_Controller::HTTP_OK;
$data['studentStatus'] = true;
$data['studentDetails'] = $res;
$this->response($data, REST_Controller::HTTP_OK);
}
else
{
$this->response([
'message' => 'Something Went Wrong!',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND);
}
}
public function getSubject_post(){
$SemesterID = $this->post('SemNum');
$branchId = $this->post('branchId');
$subjectDetails = $this->Reregister_model->getsubject($SemesterID,$branchId);
if(sizeof($subjectDetails)>0){
$data['status'] = REST_Controller::HTTP_OK;
$data['SubjectStatus'] = true;
$data['SubjectDetails'] = $subjectDetails;
$this->response($data,REST_Controller::HTTP_OK);
}else{
$this->response([
'message' => 'Something Went Wrong!',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND);
}
}
}

View File

@ -115,4 +115,166 @@ class Reregister_model extends CI_Model
return $data;
}
/**
* Created by Viual Studio.
* User: sriram
* Date: 6/19/18
* Reregister Function Query
*/
public function getUniversityDetails($branchId)
{
$this->db->select('UniversityID,UniversityName,ProfilePicPath,Address,EmailID,MobileNumber');
$this->db->where('IsActive','1');
$this->db->where('BranchCode',$branchId);
$this->db->order_by('UniversityID','ASC');
$unviversityDetails = $this->db->get(UNIVERSITY);
if($unviversityDetails->result()){
$result_university = array();
$result_university['universityStatus'] = true;
foreach ($unviversityDetails->result() as $row)
{
$university_array['universityID'] = $row->UniversityID;
$university_array['universityName'] = $row->UniversityName;
$university_array['ProfilePicPath'] = $row->ProfilePicPath;
$university_array['EmailID'] = $row->EmailID;
$university_array['Address'] = $row->Address;
$university_array['MobileNumber'] = $row->MobileNumber;
$university_array['courseDetails']= $this->getCourseDetails($row->UniversityID,$branchId);
$university_array['batchDetails']= $this->getformBatchDetails($row->UniversityID,$branchId);
$result_array[]=$university_array;
}
$result_university['univerSityDetails']= $result_array;
$result_university['centerDetails'] = $this->getCenterDetails($branchId);
}
else {
$result_university['universityStatus'] = false;
$result_university['message'] = "No records found!";
$result_university['universityID'] = "";
$result_university['universityName'] = "";
$result_university['courseDetails']= "";
}
return $result_university;
}
public function getCourseDetails($universityID=null,$branchId)
{
$this->db->select('CourseID,CONCAT(CourseName, "(",CourseCode,")") AS CourseName,concat(Specilization1," ",Specilization2) as Specilization');
$this->db->where('UniversityID',$universityID);
$this->db->where('BranchCode',$branchId);
$this->db->where('IsActive','1');
$this->db->group_by('CourseName');
$this->db->order_by('CourseID','ASC');
$courseDetails = $this->db->get(COURSE);
return $courseDetails->result();
}
public function getformBatchDetails($UniversityID,$branchId)
{
$this->db->select("BatchID,BatchCode,BatchName,str_to_date( BatchDate,'%d-%m-%Y') as BD");
$this->db->from('T_BatchMaster');
$this->db->where('UniversityID',$UniversityID);
$this->db->where('IsActive',1);
$this->db->where('BranchCode',$branchId);
$this->db->order_by("BD","DESC");
$res = $this->db->get();
return $res->result();
}
public function getCenterDetails($branchId)
{
$this->db->select('CenterID,CenterCode,CenterName,CenterAddress');
$this->db->from('T_CenterMaster');
$this->db->where('IsActive',1);
$this->db->where('BranchCode',$branchId);
$res = $this->db->get();
return $res->result();
}
public function getStudentListForReregistermodel($UID,$courseID,$batch,$requestedBy,$branchId)
{
$this->db->distinct();
$this->db->select('T_StudentDetails.StudentID,T_StudentDetails.MobileNumber,T_StudentDetails.Firstname,T_StudentDetails.Lastname,T_StudentDetails.EmailID,T_StudentDetails.Fathername,T_StudentDetails.MotherName,T_StudentDetails.PermanentAddress,T_Student_CourseDetails.EnrollmentID');
$this->db->from('T_Students_Fees_Status');
$this->db->join('T_StudentDetails','T_Students_Fees_Status.StudentID=T_StudentDetails.StudentID and T_StudentDetails.IsActive = 1');
$this->db->join('T_Student_CourseDetails','T_StudentDetails.StudentID = T_Student_CourseDetails.StudentID');
$this->db->where('T_Students_Fees_Status.BatchCode',$batch);
$this->db->where('T_Students_Fees_Status.BranchCode',$branchId);
$this->db->where('T_Students_Fees_Status.CourseID',$courseID);
$res = $this->db->get();
$data = $res->result();
$result_array = array();
//print_r($data);die;
if(count($data) > 0)
{
$result = array();
$prestu = "";
foreach($data as $r)
{
// if($prestu != $r->StudentID)
// {
$studentdetails['StudentID'] = $r->StudentID;
$studentdetails['MobileNumber'] = $r->MobileNumber;
$studentdetails['Firstname'] = $r->Firstname;
$studentdetails['Lastname'] = $r->Lastname;
$studentdetails['EmailID'] = $r->EmailID;
$studentdetails['Fathername'] = $r->Fathername;
$studentdetails['MotherName'] = $r->MotherName;
$studentdetails['PermanentAddress'] = $r->PermanentAddress;
$studentdetails['EnrollmentID'] = $r->EnrollmentID;
$studentdetails['FeeDetails'] = $this->getFeeSemesterDetails($r->StudentID,$batch,$branchId,$courseID);
// if(!empty($studetdetails['FeeDetails'])){
$result[] = $studentdetails;
//}
// $prestu = $r->StudentID;
// }
//print_r($result_array);
}
}
//print_r($studentdetails);die;
//print_r($studentdetails);die;
return $result;
}
function getFeeSemesterDetails($stuid,$bcode,$branchId,$courseID)
{
$this->db->select("T_Course_Fees_Details.FeesType,T_Course_Fees_Details.ID as FeesID,if(substr(substr(T_Course_Fees_Details.sem_Year,-4),1,3) = 'sem',substr(sem_Year,-1),if(substr(substr(T_Course_Fees_Details.sem_Year,-5),1,4) = 'year',substr(T_Course_Fees_Details.sem_Year,-1),false)) as SemID,if(substr(substr(T_Course_Fees_Details.sem_Year,-4),1,3) = 'sem','SEM',if(substr(substr(T_Course_Fees_Details.sem_Year,-5),1,4) = 'year','YEAR',false)) as SubType,T_Course_Fees_Details.Sem_Year,if(T_Course_Fees_Details.ProgramType = 'Y001','SEM',if(ProgramType = 'P001','REG',if(ProgramType = 'P002','LAT','FALSE'))) as Type");
$this->db->from('T_Students_Fees_Status');
//$this->db->join('T_StudentDetails','T_Students_Fees_Status.StudentID=T_StudentDetails.StudentID');
$this->db->join('T_Course_Fees_Details','T_Students_Fees_Status.FeesType=T_Course_Fees_Details.ID');
$this->db->where('T_Students_Fees_Status.BatchCode',$bcode);
$this->db->where('T_Students_Fees_Status.BranchCode',$branchId);
$this->db->where('T_Students_Fees_Status.CourseID',$courseID);
$this->db->where('T_Students_Fees_Status.StudentID',$stuid);
$this->db->where("T_Course_Fees_Details.FeesType !='F001'");
$this->db->order_by('T_Course_Fees_Details.Sem_Year','DESC');
$this->db->limit(1);
$res = $this->db->get();
return $res->result();
}
function getSubject($sem,$branch){
$this->db->select('sub.*');
$this->db->join('T_SemSubMap_Child SC','SC.MapID = SM.MapID','left');
$this->db->join('T_SubjectMaster sub','sub.SubjectID = SC.SubjectID');
$this->db->where('SM.SemesterID',$sem);
$this->db->where('SM.BranchCode',$branch);
$query = $this->db->get('T_SemSubMap_Master SM');
//print_r($query->result());die;
return $query->result();
}
}

View File

@ -7,9 +7,317 @@ app.controller('reregistrationformCtrl', ["$scope","$rootScope","toaster", "$fil
$scope.myModel = {
"universityName":"",
"courseName":"",
"batchName":""
"batchName":"",
"selectSem":""
};
$scope.sort = function(keyname){
$scope.sortKey = keyname; //set the sortKey to the param passed
$scope.reverse = !$scope.reverse; //if true make it false and vice versa
}
$scope.init = function () {
$scope.Sem = [
{Sem:"SEM1",SemNum:1},
{Sem:"SEM2",SemNum:2},
{Sem:"SEM3",SemNum:3},
{Sem:"SEM4",SemNum:4},
{Sem:"SEM5",SemNum:5},
{Sem:"SEM6",SemNum:6},
{Sem:"SEM7",SemNum:7},
{Sem:"SEM8",SemNum:8},
];
// console.log($scope.Sem);
var getUniv = {
method: 'POST',
url: apiPoint.url + 'getUniversityCourseDetailsforms/',
headers: {
'Content-Type': 'application/json'
},
data: {
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchId:JSON.parse(localStorage.getItem('localObj')).localBranchID
}
};
$http(getUniv).then(function (response) {
if (response.data.status==200 && response.data.universityStatus) {
$scope.university = response.data.univerSityDetails;
$scope.centers = response.data.centerDetails;
//console.log( $scope.university);
} else {
$scope.university = "";
}
});
}
$scope.studentInfo="";
$scope.getStudentDetails = function (form,myModel) {
if(myModel.universityName == null || myModel.universityName == '' || myModel.universityName == undefined){
swal('Select University','','warning');
return false;
}
if(myModel.courseName == '' || myModel.courseName == null || myModel.courseName == undefined){
swal('Select Course','','warning');
return false;
}
if(myModel.batchName == null || myModel.batchName == '' || myModel.batchName == undefined){
swal('Select Batch','','warning');
return false;
}
var firstError = null;
if (form.$invalid) {
var field = null, firstError = null;
for (field in form) {
if (field[0] != '$') {
if (firstError === null && !form[field].$valid) {
firstError = form[field].$name;
}
if (form[field].$pristine) {
form[field].$dirty = true;
}
}
}
angular.element('.ng-invalid[name=' + firstError + ']').focus();
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
} else {
$scope.selectedStudentsID = [];
$scope.isLoaderShow = true;
$scope.myModel.all = false;
$scope.isTblShow = false;
var university = myModel.universityName;
var course = myModel.courseName;
var batch = myModel.batchName;
$scope.isLoaderTxt = "Loading...";
var getStudents = {
method: 'POST',
url: apiPoint.url + 'getStudentListForRegistrer/',
headers: {
'Content-Type': 'application/json'
},
data: {
university: university,
course:course,
batch:batch,
requestedtBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
requestedDept: JSON.parse(localStorage.getItem('localObj')).localType,
}
};
$http(getStudents).then(function (response) {
if (response.data.status == 200 && response.data.studentStatus) {
$scope.studentInfo = response.data.studentDetails;
$scope.isLoaderShow = false;
$scope.isTblShow = true;
// console.log('API');
//console.log($scope.studentInfo);
}
else
{
$scope.studentInfo="";
$scope.isLoaderShow = true;
$scope.isTblShow = false;
$scope.isLoaderTxt = "No Records Found";
}
},function(error){
$scope.isLoaderShow = true;
$scope.isTblShow = false;
$scope.isLoaderTxt = "No Records Found";
});
}
}
//console.log($scope.Sem);
$scope.changeSem = function(sem,stuDetails,universityId,course){
var coursefiltered = universityId.courseDetails.filter((universitycourse)=>universitycourse.CourseID == course);
if(sem !=''){
//console.log(stuDetails);
var getsubject = {
method:'post',
url:apiPoint.url +"getSubject",
headers: {
'Content-Type': 'application/json'
},
data:{
SemNum:sem,
branchId: JSON.parse(localStorage.getItem('localObj')).localBranchID,
}
};
$http(getsubject).then(function(response){
//console.log(response);
if(response.data.status ==200 && response.data.SubjectStatus){
$scope.open(stuDetails,sem,universityId,response.data.SubjectDetails,coursefiltered);
}
// if(response.data.message == "Something Went Wrong!" ){
// //alert();
// swal('No Subject Available','','warning');
},function(error){
swal('No Subject Available','','warning');
});
}
}
$scope.open = function(PDFdata,sem,universityId,Subjects,coursefiltered){
// console.log(PDFdata);
$rootScope.Student = PDFdata;
// console.log(PDFdata);
$rootScope.sem = sem;
$rootScope.Course = coursefiltered[0];
console.log($rootScope.Course);
$rootScope.university = universityId;
$rootScope.Subject = Subjects;
var modalInstance = $modal.open({
templateUrl: 'assets/views/reregistration/reregistrationformpdf.html',
controller: 'reregistrationformCtrl',
// size: size,
resolve: {
pdfitems: function () {
//return $scope.FeesName;
return PDFdata;
}
}
});
modalInstance.result.then(function (selectedItem) {
$scope.selected = selectedItem;
}, function () {
$log.info('Modal dismissed at: ' + new Date());
});
};
$scope.generatePDF = function(){
$scope.universityAddress = $scope.university.Address;
$scope.universitydetails = "Mobile: "+$scope.university.MobileNumber+",E-mail id:"+$scope.university.EmailID+
",Website:-";
$scope.Enroll = "Enrolment No: ";
$scope.corseDetails = "Course Name: "+$scope.Course.CourseName+" specialization: "+$scope.Course.Specilization +"Sem/Year: SEM"+$scope.sem;
$scope.StudentName = "Name of the Candidate: "+$scope.Student.Firstname +' '+ $scope.Student.Lastname;
$scope.StudentFatername = "Father's Name: "+$scope.Student.Fathername;
$scope.StudentMotherName = "Mother's Name: "+$scope.Student.MotherName;
//var str = $scope.Student.PresentAddress;
var str = escape($scope.Student.PermanentAddress);
$scope.StudnetAddress = "Address: "+ str.replace("%0A"," ");
$scope.StudentPin = "Pincode: .................. Mobile No: "+$scope.Student.MobileNumber+"Email ID: "+$scope.Student.EmailID;
// var sem1 = doc.autoTableHtmlToJson(document.getElementById(subject));
var universityname = $scope.university.universityName;
var universityCap = universityname.toUpperCase();
var doc = new jsPDF('A4');
var img = document.getElementById("logo");
//console.log(img);
var canvas = document.createElement("canvas");
canvas.width = 100;
canvas.height = 100;
var ctx = canvas.getContext("2d");
ctx.drawImage(img, 0, 0,100,100);
var dataURL = canvas.toDataURL("image/png");
doc.rect(10, 10, 190, 280);
doc.text(70, 20, universityCap);
doc.addImage(dataURL, 'jpeg', 50, 13, 10, 10);
doc.setFontSize(14);
doc.text(70,32,"RE-REGISTRATION FORM");
doc.setFontSize(12);
doc.text(35,35,$scope.universityAddress);
doc.text(20,40,$scope.universitydetails);
doc.setFontSize(10);
doc.setFontSize(10);
var formdetails = "The from should be complete in all respects and to be filled by student in English CAPITAL letters in blue /black ink.";
var details = doc.splitTextToSize(formdetails,200);
doc.text(15,50,details);
doc.setFontSize(12);
doc.line(10, 45, 200, 45);
var col = 45;
var EnLen = $scope.Student.EnrollmentID.length;
console.log(EnLen);
var k = 0;
while( k<= EnLen-1){
//console.log(k);
doc.text(15,60,$scope.Enroll);doc.rect(col,57,5,5);
col = col+1;
doc.text(col,61,$scope.Student.EnrollmentID[k]);
col = parseInt(col)+4;
k++;
}
//doc.rect(45,55,5,5);doc.rect(50,55,5,5);doc.rect(55,55,5,5);doc.rect(60,55,5,5);doc.rect(65,55,5,5);doc.rect(70,55,5,5);doc.rect(75,55,5,5);doc.rect(80,55,5,5);doc.rect(85,55,5,5);doc.rect(90,55,5,5);doc.rect(95,55,5,5);doc.rect(100,55,5,5);doc.rect(105,55,5,5);doc.rect(110,55,5,5);doc.rect(115,55,5,5);doc.rect(120,55,5,5);doc.rect(125,55,5,5);
// doc.text(46,59,$scope.Student.EnrollmentID[0]);doc.text(51,59,$scope.Student.EnrollmentID[1]);doc.text(56,59,$scope.Student.EnrollmentID[2]);doc.text(61,59,$scope.Student.EnrollmentID[3]);doc.text(66,59,$scope.Student.EnrollmentID[4]);
// doc.text(71,59,$scope.Student.EnrollmentID[5]);doc.text(76,59,$scope.Student.EnrollmentID[6]);doc.text(81,59,$scope.Student.EnrollmentID[7]);doc.text(86,59,$scope.Student.EnrollmentID[8]);doc.text(91,59,$scope.Student.EnrollmentID[9]);
// doc.text(96,59,$scope.Student.EnrollmentID[10]);doc.text(101,59,$scope.Student.EnrollmentID[11]);doc.text(106,59,$scope.Student.EnrollmentID[12]);
// //doc.text(111,59,$scope.Student.EnrollmentID[13]);doc.text(116,59,$scope.Student.EnrollmentID[14]);doc.text(121,59,$scope.Student.EnrollmentID[15]);
doc.text(15,70,$scope.corseDetails);
doc.text(15,80,"Examination Session: January ");doc.rect(73,77,5,5);doc.text(80,80,"June");doc.rect(90,77,5,5);doc.text(100,80,"Semester Mode");doc.rect(131,77,5,5);doc.text(140,80,"Yearly Mode");doc.rect(165,77,5,5);
// doc.autoTable(sem1.columns, sem1.data, {margin: {top: 100},theme:'grid'});
doc.line(10, 83, 200, 83);
doc.text(15,88,$scope.StudentName);
doc.text(60,89,"......................................................................................................................");
doc.text(15,95,$scope.StudentFatername);
doc.text(43,96,"....................................................................................................................................");
doc.text(15,102,$scope.StudentMotherName);
doc.text(43,103,"....................................................................................................................................");
doc.text(15,110,$scope.StudnetAddress);
doc.text(30,111,"................................................................................................................................................");
doc.text(15,121,$scope.StudentPin);
doc.text
doc.line(10, 125, 200,125);
doc.text(45,130,"SUBJECT / PAPER IN WHICH CANDIDATE APPEARING")
doc.line(10, 131, 200, 131);
doc.text(25,135,"SR.NO");
doc.text(75,135,"Subject Code");
doc.text(124,135,"Subject/Paper Code");
doc.line(10,137,200,137);
var row = 137;
var no = 1;
for(var i=0;i<=$scope.Subject.length-1;i++){
// doc.line(10,row,200,row);
no = no.toString();
doc.text(25,row+5,no);
doc.text(75,row+5,$scope.Subject[i].SubjectCode);
doc.text(126,row+5,$scope.Subject[i].SubjectName);
row = row+6;
no = parseInt(no)+1;
doc.line(10,row,200,row);
}
var index = 14;
var len = index-$scope.Subject.length;
for(var j=0;j<=len;j++){
no = no.toString();
doc.text(25,row+5,no);
// doc.text(75,row+5,"--");
// doc.text(120,row+5,"--");
row = row+6;
no = parseInt(no)+1;
doc.line(10,row,200,row);
}
doc.line(10,240,200,240);
doc.text(15,250,"Fees Details: Cash / Cheque / DD");
doc.text(15,260,"DD No / Cheque No ....................... Dated ............... Bank ....................");
doc.text(15,270,"Amount ...................");
doc.text(150,280,"Signature of Candidate");
doc.save($scope.Student.Firstname +'_'+ $scope.Student.Lastname+'_sem'+$scope.sem+'.pdf');
}
}]);

View File

@ -37,7 +37,123 @@
<!-- start: LIST GROUP -->
<div class="container-fluid container-fullw bg-white" ng-controller="reregistrationformCtrl" data-ng-init="init()">
</div>
<div class="row">
<form name="Form" id="form" novalidate method="post">
<fieldset>
<legend>Search</legend>
<div class="col-md-12 ">
<div class="col-md-3 form-group">
<label>
University
</label>
<select class="form-control" name="university" tabindex="1" id="university"
ng-model="myModel.universityName"
ng-options="i.universityName for i in university" >
<option value=""> Select University</option>
</select>
<!-- <pre>{{myModel.universityName | json}}</pre>-->
</div>
<div class="col-md-3 form-group">
<label>
Course
</label>
<select ui-select2 class="form-control" name="course" tabindex="4" id="course"
ng-model="myModel.courseName" >
<option value=""> Select Course</option>
<option ng-repeat="courseDetails in myModel.universityName.courseDetails" value="{{courseDetails.CourseID}}"><span ng-show="courseDetails.CourseCode != ''"><strong>{{courseDetails.CourseName}}</strong></span></option>
</select>
<!-- <pre>{{myModel.courseName|json}}</pre> -->
</div>
<div class="col-md-2 form-group">
<label>
Batch Name
</label>
<select ui-select2 class="form-control" name="batch" tabindex="4" id="batch"
ng-model="myModel.batchName"
>
<option value=""> Select Batch</option>
<option ng-repeat="batchDetails in myModel.universityName.batchDetails" value="{{batchDetails.BatchCode}}"><span ng-show="batchDetails.BatchCode != ''"><strong>{{batchDetails.BatchName}}</strong></span></option>
</select>
<!-- <pre>{{myModel.batchName | json}}</pre> -->
</div>
<div class="col-md-2 form-group">
<br>
<button type="button" ladda="ldloading1.zoom_in" tabindex="5" class="btn btn-wide btn-info" data-style="zoom-in" ng-click="getStudentDetails(Form,myModel);">GET STUDENTS</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="row">
<div class="col-md-12" ng-if="isLoaderShow">
<center> <h1>{{isLoaderTxt}}</h1> </center>
</div>
</div>
<div class="row">
<div class="col-md-12" ng-if="isTblShow">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Student Name
<span class="glyphicon sort-icon" ng-show="sortKey=='Firstname'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<!-- <th ng-click="sort('UniversityShortName')">University Short Name -->
<!-- <span class="glyphicon sort-icon" ng-show="sortKey=='UniversityShortName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> -->
<!-- </th> -->
<th ng-click="sort('MobileNumber')">Mobile No
<span class="glyphicon sort-icon" ng-show="sortKey=='MobileNumber'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th ng-click="sort('EmailID')">EmailID
<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th ng-click="sort('SemYear ')">Sem Year
<span class="glyphicon sort-icon" ng-show="sortKey=='SemYear'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th>Select Sem</th>
<!-- <th>Status</th> -->
<!-- <th style="text-align: center;"> Action -->
<!-- </th> -->
</tr>
</thead>
<tbody dir-paginate="p in studentInfo|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10">
<tr>
<td>{{p.Firstname}}{{p.Lastname}}</td>
<!-- <td>{{p.UniversityShortName}}</td> -->
<td>{{p.MobileNumber}}</td>
<td>{{p.EmailID}}</td>
<td>{{p.FeeDetails[0].Sem_Year}}</td>
<td><select class="form-control" name="sem" tabindex="4" id="sem"
ng-model="myModel.selectSum" ng-change="changeSem(myModel.selectSum,p,myModel.universityName,myModel.courseName);">
<option value=""> Select Sem</option>
<option ng-repeat="s in Sem" ng-selected="p.FeeDetails[0].Sem_Year == s.Sem"value="{{s.SemNum}}"><span ng-show="courseDetails.CourseCode != ''"><strong>{{s.Sem}}</strong></span></option>
</select></td>
</tr>
</tbody>
</table>
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,112 @@
<div class="container-fluid container-fullw bg-white" ng-controller="reregistrationformCtrl">
<div class="col-md-offset-10 col-md-1">
<button class="btn btn-success" id="print"ng-click="generatePDF();">Print</button></div>
<div id="reregisterform">
<table style="height: 341px;background-color: white;" width="578" border=1 >
<tbody>
<tr>
<td style="width: 185px; text-align: right;border-right-style: hidden;border-bottom-style: hidden;"><img src="images/{{university.ProfilePicPath}}" id="logo" style="width: 30%;"></td>
<td style="width: 185px;border-bottom-style: hidden;" colspan="2">
<h1 style="color:blue;"><strong>{{university.universityName}}</strong></h1>
</td>
</tr>
<tr>
<td style="width: 185px; text-align: center;" colspan="3">
<h5><strong>RE-REGISTRATION FORM</strong></h5>
<p>{{university.Address}} &nbsp;Mob-{{university.MobileNumber}}, E-mail id:{{university.EmailID}}, Website:-</p>
</td>
</tr>
<tr>
<td style="width: 185px;" colspan="3">
<p style="text-align: center;">The from should be complete in all respects and to be filled by student&nbsp;in English CAPITAL letters in blue /black ink.</p>
<table width="80%">
<tbody>
<tr style="height: 3px;">
<td style="">Enrolment No: </td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[0]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[1]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[2]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[3]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[4]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[5]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[6]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[7]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[8]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[9]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[10]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[11]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[12]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[13]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[14]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[15]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[16]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[17]}}</td>
<td style="height: 5px;border: 1px solid;padding: 0px 5px 0px 8px;">{{Student.EnrollmentID[18]}}</td>
</tr>
</tbody>
</table>
&nbsp;
<p>Course Name: {{Course.CourseName}} specialization {{Course.Specilization}} Sem/Year <span style="text-decoration:underline;">SEM{{sem}}</span></p>
&nbsp;
<p>Examination Session:&nbsp;&nbsp;&nbsp; January&nbsp;&nbsp;&nbsp;<span style="border:1px solid black;padding: 0px 0px 0px 18px;"></span>&nbsp;&nbsp;&nbsp; June &nbsp;&nbsp;&nbsp;<span style="border:1px solid black;padding: 0px 0px 0px 18px;"></span>&nbsp;&nbsp;&nbsp; Semester Mode &nbsp;&nbsp;&nbsp;<span style="border:1px solid black;padding: 0px 0px 0px 18px;"></span>&nbsp;&nbsp;&nbsp; Yearly Mode &nbsp;&nbsp;&nbsp;<span style="border:1px solid black;padding: 0px 0px 0px 18px;"></span></p>
</td>
</tr>
<tr>
<td colspan="3">
<table style="height: 105px; width: 100%;">
<tbody>
<tr>
<td style="width: 28.0547%;">Name of the Cadidate:</td>
<td style="width: 68.9453%; border-bottom: 1px dotted;">{{Student.Firstname}} {{Student.Lastname}}</td>
</tr>
<tr>
<td style="width: 28.0547%;">Father's Nmae:</td>
<td style="width: 68.9453%; border-bottom: 1px dotted;">{{Student.Fathername}}</td>
</tr>
<tr>
<td style="width: 28.0547%;">Mother's Name:</td>
<td style="width: 68.9453%; border-bottom: 1px dotted;">{{Student.MotherName}}</td>
</tr>
<tr>
<td style="width: 28.0547%;">Address</td>
<td style="width: 68.9453%; border-bottom: 1px dotted;">{{Student.PermanentAddress}}</td>
</tr>
</tbody>
</table>
<p>Pin Code: __________ Mobile No: <span style="text-decoration:underline;">{{Student.MobileNumber}}</span> E-mail ID: <span style="text-decoration:underline;">{{Student.EmailID}}</span></p>
</td>
</tr>
<tr>
<td style="width: 185px; text-align: center;" colspan="3">&nbsp;SUBJECT / PAPER IN WHICH CANDIDATE APPEARING&nbsp;</td>
</tr>
<tr>
<th style="width: 185px; text-align: center;"><strong>&nbsp;SR.NO</strong></th>
<th style="width: 185px; text-align: center;"><strong>&nbsp;Subject Code</strong></th>
<th style="width: 186px; text-align: center;"><strong>&nbsp;Subject / Paper Code</strong></th>
</tr>
<tr ng-repeat="sub in Subject">
<td style="width: 185px;">{{$index+1}}</td>
<td style="width: 185px;">{{sub.SubjectCode}}</td>
<td style="width: 186px;">{{sub.SubjectName}}</td>
</tr>
</tbody>
<br/>
<tfoot>
<tr>
<td style="width: 185px;" colspan="3">
<p>&nbsp;<strong>Fees Details: Cash / Cheque / DD</strong></p>
<p>DD No / Cheque no ________________Dated____________Bank_________________</p>
<p>Amount______________</p>
<p style="text-align: right;"><strong>Signature of Candidate</strong></p>
</td>
</tr>
</tfoot>
</table>
</div>
</div>