hallticket changes

This commit is contained in:
gayathri1990 2018-08-25 17:49:12 +05:30
parent 446f7c7ebf
commit f130c301f3
2 changed files with 34 additions and 20 deletions

View File

@ -1030,8 +1030,8 @@ app.controller('HallTicketPDFCtrl', ["$scope", "$modalInstance", "pdfitems", fun
popupWinindow.document.open(); popupWinindow.document.open();
popupWinindow.document.write('<html>'); popupWinindow.document.write('<html>');
popupWinindow.document.write('<style type="text/css" media="print">'); popupWinindow.document.write('<style type="text/css" media="print">');
popupWinindow.document.write('@page { size: portrait; }'); popupWinindow.document.write('@page { size: portrait; }');
//popupWinindow.document.write('.title{border:3px solid black;}'); // popupWinindow.document.write('.title{border:3px solid black;}');
popupWinindow.document.write('</style>'); popupWinindow.document.write('</style>');
popupWinindow.document.write(innerContents); popupWinindow.document.write(innerContents);
popupWinindow.document.write('</br>'); popupWinindow.document.write('</br>');

View File

@ -1,8 +1,8 @@
<!--<style> <style>
.table{ .table{
border: 1px solid #000 !important; border-collapse: collapse;
} }
</style> --> </style>
<div class="container-fluid container-fullw bg-white" style="width: 786px;" ng-controller="generateHallTicketCtrl"> <div class="container-fluid container-fullw bg-white" style="width: 786px;" ng-controller="generateHallTicketCtrl">
@ -16,23 +16,37 @@
<div ng-repeat="studentObj in localPdfStudentDetails" and ng-if="studentObj.Firstname"> <div ng-repeat="studentObj in localPdfStudentDetails" and ng-if="studentObj.Firstname">
<div id="university_header"> <div id="university_header">
<table width="100%" border="1" id = "" style="background-color:#fff;">
<table width="100%" border="1" cellpadding="0" cellspacing="0" id = "" style="background-color:#fff;">
<tbody> <tbody>
<tr> <tr>
<td rowspan="3" width="14%"><img src="images/{{universityLogoPDF}}" id="logo" alt="NAN" height="100" width="100"/></td> <td rowspan="3" width="14%"><img src="images/{{universityLogoPDF}}" id="logo" alt="NAN" height="100" width="100"/></td>
<td><center><strong style="font-size:16px;">{{universityNamePDF}}</strong></center></td>
</tr> <td>
<tr> <table>
<td><center><strong style="font-size:14px;">{{universityEmailPDF}}</strong></center></td> <tbody>
</tr> <tr>
<tr> <td><center><strong style="font-size:16px;">{{universityNamePDF}}</strong></center></td>
<td><center><strongstyle="font-size:14px;">{{universityAddressPDF}}</strong></center></td> </tr>
<tr>
<td><center><strong style="font-size:14px;">{{universityEmailPDF}}</strong></center></td>
</tr>
<tr>
<td><center><strongstyle="font-size:14px;">{{universityAddressPDF}}</strong></center></td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table width="100%" border="1" id = "" style="background-color:#fff;"> <table width="100%" border="1" cellpadding="0" cellspacing="0" id = "" style="background-color:#fff;">
<tbody> <tbody>
<tr> <tr>
<td><center><strong>ADMIT CARD :</strong> {{courseNamePDF}} EXAMINATION {{batchNamePDF}}</center></td><td rowspan="2" width="20%"><img src="images/{{studentObj.ProfilePicPath}}" id="sprofile" alt="NAN" height="100" width="100"/></td> <td><center><strong>ADMIT CARD :</strong> {{courseNamePDF}} EXAMINATION {{batchNamePDF}}</center></td><td rowspan="2" width="20%"><img src="images/{{studentObj.ProfilePicPath}}" id="sprofile" alt="NAN" height="100" width="100"/></td>
@ -46,7 +60,7 @@
<!-- FOR SEMESTER TYPE STUDENTS--> <!-- FOR SEMESTER TYPE STUDENTS-->
<table width="100%" border="1" ng-repeat ="subjects in studentObj.FeeDetails" and ng-if="semDataTypePDF == 'SEM'" id = "{{studentObj.StudentID}}{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-repeat ="subjects in studentObj.FeeDetails" and ng-if="semDataTypePDF == 'SEM'" id = "{{studentObj.StudentID}}{{$index}}">
<thead> <thead>
<!-- <tr> --> <!-- <tr> -->
<!-- <th colspan="6">SEMESTER</th> --> <!-- <th colspan="6">SEMESTER</th> -->
@ -66,7 +80,7 @@
<!-- END OF SEMESTER TYPE STUDENTS--> <!-- END OF SEMESTER TYPE STUDENTS-->
<!-- FOR YEAR TYPE STUDENTS--> <!-- FOR YEAR TYPE STUDENTS-->
<table width="100%" border="1" ng-if="studentObj.FeeDetails[0] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year1{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-if="studentObj.FeeDetails[0] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year1{{$index}}">
<thead> <thead>
<tr> <tr>
@ -83,7 +97,7 @@
<table width="100%" border="1" ng-if = "studentObj.FeeDetails[1] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year2{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-if = "studentObj.FeeDetails[1] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year2{{$index}}">
<thead> <thead>
<tr> <tr>
@ -100,7 +114,7 @@
<table width="100%" border="1" ng-if ="studentObj.FeeDetails[2] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year3{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-if ="studentObj.FeeDetails[2] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year3{{$index}}">
<thead> <thead>
<tr> <tr>
@ -117,7 +131,7 @@
<table width="100%" border="1" ng-if = "studentObj.FeeDetails[3] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year4{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-if = "studentObj.FeeDetails[3] && semDataTypePDF == 'YEAR'" id = "{{studentObj.StudentID}}year4{{$index}}">
<thead> <thead>
<tr> <tr>
@ -137,7 +151,7 @@
<!-- FOR OF REG AND LAT TYPE STUDENTS--> <!-- FOR OF REG AND LAT TYPE STUDENTS-->
<table width="100%" border="1" ng-repeat = "subjects in studentObj.FeeDetails[0]" ng-if="semDataTypePDF == 'REG' || semDataTypePDF == 'LAT' && subjects.length != 0" id = "{{studentObj.StudentID}}{{$index}}"> <table width="100%" border="1" cellpadding="0" cellspacing="0" ng-repeat = "subjects in studentObj.FeeDetails[0]" ng-if="semDataTypePDF == 'REG' || semDataTypePDF == 'LAT' && subjects.length != 0" id = "{{studentObj.StudentID}}{{$index}}">
<thead> <thead>
<tr> <tr>