{# Template For SJCC Collage
 #}
<style>
     td, th { padding: 5px; }
    .pages{
        font-family:"Times New Roman", Times, serif;
    }
    .college-logo{
        height:120px;
        width:120px;
        margin:0 2mm 0 0;
        float:right;
    }
   
    .pages {
        width: 100%;
        height: 100%; 
        padding-left: 1cm;
        padding-right: 1cm;
        background: no-repeat;
        -webkit-background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        background-size: contain;
        page-break-after: always;
        font-family:"Times New Roman", Times, serif;
    } 
    @media print {
        .pages{
            font-family: 'Lora', serif;
        }
        .pageBreak {
            clear: both;
            page-break-after: always;
        }
     } 
  
    .instructions{
        line-height:18px !important;
        font-size:16px !important;
        text-align:justify;
    }
    .instructions li{
        padding-top:15px !important;
    }
    .subject-details{
        height:9mm;
        vertical-align:middle;  
        font-size:15px !important;
    }
    .subject-details tr{
        border: 1px solid #000 !important;
       height:9mm!important;
    }
    .subject-details td{
        border: 1px solid #000 !important;
        padding:1mm 1mm !important; 
        vertical-align: middle; 
        height:5px !important;
        font-size: 15px;
        line-height:14px !important;
        text-align:center;
    }
    .subject-details th{
        border: 1px solid #000 !important;
        padding:2mm 0 !important; 
        vertical-align: middle; 
        font-weight:bold; 
        height:4mm !important;
        font-size:15px !important;
        text-align:center;
    }
    
    .footer-details{
        margin:5mm 0 !important;
    }
    .footer-details tr{
    }
    .footer-details td{
        padding:1mm 0 !important; 
        vertical-align: bottom; 
        height:5px !important;
        font-size:15px !important;
        text-align:center;
        line-height:15px !important;
    }
    .water-mark {
        background-image: url({{data.collegeData.watermark}});
        background-repeat: no-repeat;
        background-size: 80%;
        background-position: center;
    }
    
    .student-image{
        height:120px;
        width:120px;
        padding: 1mm;
        text-align:left;
    }
    .subpage{
        border: 1px solid #000;
    }
    .numbered-line {
        margin: 0;
        line-height: 1.2;
        text-indent: -20px;
        padding-left: 25px;
    }
</style>
{% for student in data.studentData %}
    <div class="pages displayPages" style="">
        <div class="subpage">
            <table style = 'text-align:center;width: 100%; margin-top:10px;' cellpadding='0' cellspacing='0' border='0' class=''>
                <thead>
                    <tr>
                        <td width='25%' class='text-right' rowspan='2'>
                            <img src="{{data.collegeData.collageLogo}}" class="college-logo">
                        </td>
                        <th width='50%' class='text-center' style='height:60px !important;'>
                            <div class='bold m-t-50' style='margin:25px 0 !important;font-size:17pt!important;'>
                                <span class='uppercase'>{{data.collegeData.collegeName}}</span><br>
                                {{data.collegeData.place}}<br>
                            </div>
                        </th>
                        <td width='25%' class='text-left' rowspan='2' style='height:120px !important;'>
                            <img src="{{student.studentImage}}" class="student-image">
                        </td>
                    </tr>
                    <tr>
                        <tr>
                            <th colspan="3" class="text-center" style="height:60px !important;">
                                <span style="font-family: 'Times New Roman', Times, serif; font-size: 22px;">
                                    Exam Hall Ticket
                                </span><br>
                                Programme: {{ student.currentProgramName }}<br>
                                Exam Name: {{ student.examRegistrationName }}
                            </th>
                        </tr>
                    </tr>
                </thead>
            </table>
            <table style = 'margin-top:25px ;!important;text-align:left;width: 100%;' cellpadding='0' cellspacing='0' border='0' class=''>
                <tr>
                    <th style="width: 40% !important;">Reg.No: {{student.registerNo}}</th>
                    <th style="width: 50% !important;">Name: {{student.studentName}}</th>
                </tr>
                <tr>
                    <th tyle="width: 40% !important;">
                        <b>Class: {{student.batchName|raw}}</b>
                    </th>
                    <th tyle="width: 50% !important;">
                        <b>Semester: {{student.semInRomanLetter}}</b>
                    </th>
                </tr>
            </table>
            {% if student.isHallTicketBlocked %}
                <div class="full-width pull-left text-center bold" style="margin:5mm 0;color:red">
                    {{student.blockingMsg |raw}}
                </div>
            {% else %}
            <div style="min-width: 100px; min-height: 300px;">

                <table class='subject-details' cellspacing="0" style="margin:10px auto;text-align:center;width: 98%;border: 1px solid #000 !important;">
                    <thead>
                        <tr>
                            <th class='text-center' width='15%'>Course Code</th>
                            <th class='text-center' width='40%'>Course Name</th>
                            <th class='text-center' width='10%'>Date</th>
                            <th class='text-center' width='10%'>Start Time</th>
                            <th class='text-center' width='10%'>End Time</th>
                            <th class='text-center' width='25%'>Signature of the Invigilator</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for subject in student.subjects %}
                            <tr >
                                <td align="center"  style=""> {{subject.code|raw}}</td>
                                <td align="center" style="">{{subject.name|raw}} </td>
                                {% if subject.isSubjectBlocked %}
                                    <td colspan='3' align="center" style="color:red">{{ subject.blockingMsg|raw }} </td>
                                {% else %}
                                    <td>
                                        {{subject.assessmentDate == "" or subject.assessmentDate == "0000-00-00" ? "" : subject.assessmentDate|date("d-m-Y")}}
                                    </td>
                                    <td>
                                        {{subject.assessmentStartTime}} 
                                    </td>
                                     <td>
                                        {{subject.assessmentEndTime}} 
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                {% endif %}
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
            {% endif %}
            <table style = 'margin-top:30px; text-align:left;width: 100%;' cellpadding='0' cellspacing='0' border='0' class='instructions'>
                 <tr>
                    {% if student.examRegistrationType == 'REGULAR' %}
                       <td>
                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">Note:</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. The Candidate must carry the Exam Hall Ticket with him/her to the Exam Hall on all the days of the Exam.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. The Candidate must read the instructions carefully on the Exam Hall Ticket and follow them strictly.
                            </p>

                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">INSTRUCTIONS TO CANDIDATES</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. Candidates must possess the Exam Hall Ticket and College Identity Card every day for inspection by the Room Invigilator, on all the days of the Examination. Candidates who do not possess the College Identity Card will be allowed to write the Exam only with the permission from COE - Examination Department.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. Candidates must carry with them the required Stationery. <b>They should use only Black Ink pen while answering their papers.</b> Ordinary and Scientific calculators are permitted. High end scientific calculators are not permitted.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                3. Candidates must report in the Campus 30 minutes prior to the Exam Start Time. Candidates should take their place in the Exam Hall at least 15 minutes before the commencement of the examination. <b>For Eg: In case of an examination starting at 9:30 AM, the student must be present in the campus at 9:00 AM and must be seated in the appointed Exam Hall latest by 9:15 AM.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                4. No Candidates will be allowed inside the Exam Hall after the Commencement of the examination and thereafter <b>No Bio Breaks will be allowed.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                5. The Candidate must not leave the Exam Hall until the specified timelines. <b>For a 3-hour paper, you must be seated for at least 2 hours 30 minutes and for a 2-hour 30-minute paper, you must be seated for at least 2 hours.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                6. A Candidate who leaves the room after submitting the Answer Booklet will not be allowed to return to the Exam Hall. No paper must be detached from the Answer Booklet.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                7. No borrowing or exchange of stationery is permitted in the Exam Hall.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                8. In case of any discrepancies in the Hall Ticket, the Exam Timetable displayed on the College Notice Board remains Final.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                9. <b>Do not bring any Eatables and Drinks (hot/soft) inside the Exam Hall.</b>
                            </p>

                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">MALPRACTICE</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. Candidates are prohibited from bringing any material related to the subject of the Examination into the Exam Hall, devices like Mobile Phone, Digital watch, Bluetooth devices etc. which could be used for unfair means.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. Any attempt at copying, assisting another in copying or partaking in the act of copying in any form in the examination, will be severely dealt with according to the Examination Manual approved by the Governing Body.
                            </p>
                        </td>
                    {% else %}
                         <td>
                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">Note:</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. The Candidate must carry the Exam Hall Ticket with him/her to the Exam Hall on all the days of the Exam.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. The Candidate must read the instructions carefully on the Exam Hall Ticket and follow them strictly.
                            </p>

                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">INSTRUCTIONS TO CANDIDATES</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. Candidates must possess the Exam Hall Ticket and College Identity Card every day for inspection by the Room Invigilator, on all the days of the Examination. Candidates who do not possess the College Identity Card will be allowed to write the Exam only with the permission from COE - Examination Department.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. Candidates must carry with them the required Stationery. <b>They should use only Black Ink pen while answering their papers.</b> Ordinary and Scientific calculators are permitted. High end scientific calculators are not permitted.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                3. Candidates must report in the Campus 30 minutes prior to the Exam Start Time. Candidates should take their place in the Exam Hall at least 15 minutes before the commencement of the examination. <b>For Eg: In case of an examination starting at 9:30 AM, the student must be present in the campus at 9:00 AM and must be seated in the appointed Exam Hall latest by 9:15 AM.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                4. No Candidates will be allowed inside the Exam Hall after the Commencement of the examination and thereafter <b>No Bio Breaks will be allowed.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                5. The Candidate must not leave the Exam Hall until the specified timelines. <b>For a 3-hour paper, you must be seated for at least 2 hours 30 minutes and for a 2-hour 30-minute paper, you must be seated for at least 2 hours.</b>
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                6. A Candidate who leaves the room after submitting the Answer Booklet will not be allowed to return to the Exam Hall. No paper must be detached from the Answer Booklet.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                7. No borrowing or exchange of stationery is permitted in the Exam Hall.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                8. In case of any discrepancies in the Hall Ticket, the Exam Timetable displayed on the College Notice Board remains Final.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                9. <b>Do not bring any Eatables and Drinks (hot/soft) inside the Exam Hall.</b>
                            </p>

                            <p style="font-size: 15px; font-weight: bold; margin-top: 10px;">MALPRACTICE</p>

                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                1. Candidates are prohibited from bringing any material related to the subject of the Examination into the Exam Hall, devices like Mobile Phone, Digital watch, Bluetooth devices etc. which could be used for unfair means.
                            </p>
                            <p style="margin: 0; line-height: 1.4; text-indent: -20px; padding-left: 25px; font-size: 14px;">
                                2. Any attempt at copying, assisting another in copying or partaking in the act of copying in any form in the examination, will be severely dealt with according to the Examination Manual approved by the Governing Body.
                            </p>
                        </td>
                    {% endif %}
                </tr>
            </table>
            <table class=" footer-details" cellspacing="0" style="margin:15px auto; text-align:left;width: 100%;">
                <tr>
                    <td class='text-center' width="33%">
                        <img width='200' height='70'  src='{{student.studentSignature}}'><br><br>
                        <i>Signature of The Candidate</i>
                    </td>
                    <td class='text-center' width="33%">
                        {# <img width='200' height='70'  src='{{data.collegeData.coeSign}}'><br><br>
                        <i>COE</i> #}
                    </td>
                    <td class='text-center' width="33%">
                        <img width='200' height='70'  src='{{data.collegeData.principalSign}}'><br><br>
                        <i>Signature of the Principal</i>
                    </td>
                </tr>                    
            </table>



        </div>
    </div>
{% endfor %}