{# <!--
    College header STCP ALLOTMENT PASS FOR UG 
--> #}
{% set markDivwidth = 50  %}
{% if ('eleventhMarkEntry' in allFormFields or 'ELEVENTH' in allFormFields) %}
	{% set markDivwidth = 100/3  %}
{% endif %}
{% set index = 1  %}

{% set collegeSite = college.collegeWebsite %}

<html>
	<head>
		<style>
			.page-1 td {
				line-height: 18px;
				font-size: 15px;
			}
			.page-2 td {
				line-height: 18px;
				font-size: 18px;
			}
			.page {
				width: 23cm;
				min-height: 29.7cm;
				padding: 0.1cm;
				margin-left: 1cm;
				background: white;
			}
			* {
				font-family: serif;
			}
			.pull-right {
				float: right !important;
			}
			.inner-table td {
				vertical-align: top;
			}
		</style>
	</head>
	<body>
		<div>
			<div>
				<table cellspacing='0' cellpadding='0' class='table table-bordered page-1 page' width='100%' style='color:black;border:1px solid black; page-break-after:always;'>
					<tr>
						<td align="center" style='margin:auto;'>
							<table class='table' width='100%'>
								 <tr>
                                    {# <td align='center'>
                                        <img style='width: 90px;' src="{{college.url}}/libcommon/images/college/{{college.collegeCode}}/logo.png">
                                    </td> #}
                                    <td width="70%" align="center">
                                        {# <div align='center' style="">
                                            <div style="font: bold 22px 'Times New Roman';margin-top: 0px;margin-bottom: 4px">{{college.collegeName|upper}} {{college.autonomous?( college.autonomous|slice(0, 2)|upper):''}}{{college.autonomous?(college.autonomous|slice(2)|lower  ):''}}</div>
                                        </div> #}
                                        <div align='center'>
                                            <img style='width: 100%;' src="{{college.url}}/libcommon/images/college/{{college.collegeCode}}/banner.png">

                                            {# <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeAddress}} {{college.collegeAddress1}} {{college.collegeAddress2}}</p>
                                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegePhone}}</p>
                                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeWebsite}}</p>
                                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeEmail}}</p> #}
                                        </div>
                                    </td>
                                    <td width='15%'>
                                    </td>
                                    {# <td>
                                        <img style='float: right;width: 120px;height: 150px;'src="{{student.studentPhoto}}" alt='' class='img-responsive' />
                                    </td> #}
                                </tr>
							</table>
							<hr>
						</td>
					</tr>
					<tr>
						<td align='center' style='border:1px solid black;font-size:18px;'>
							<b>ALLOTMENT MEMO</b>
						</td>
					</tr>
					<tr>
						<td>
							<br>
						</td>
					</tr>
					<tr>
						<td valign='top'>
							<table class='table inner-table' width='100%'>
                                <tr>
									<td valign='top' width='5%'>{{index}}.</td>
									<td width='40%'><b>Application No</b>
										<span class='pull-right'>:</span>
									</td>
									<td width='35%'><b>{{student.applicationNo}}</b></td>
									<td width='20%'></td>
								</tr>
								{% set index = index + 1  %}
								<tr>
									<td valign='top' width='5%'>{{index}}.</td>
									<td width='40%'><b>Name of Candidate</b>
										<span class='pull-right'>:</span>
									</td>
									<td width='35%'><b>{{student.studentFirstName|upper}}</b></td>
									<td width='20%'></td>
								</tr>
								{% set index = index + 1  %}
								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Date of Birth
										<span class='pull-right'>:</span>
									</td>
									<td>{{student.dateOfBirth|date("d/m/Y")}}</td>
									<td rowspan="10" align='center'>
										<img style='width: 130px;height: 160px;' src="{{student.studentPhoto}}" alt='' class='img-responsive'/>
									</td>
								</tr>
                                {% set index = index + 1  %}
								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Sex
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.gender|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Religion
										<span class='pull-right'>:</span>
									</td>
									<td>{{student.religion|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

								<tr>
									<td valign='top'>{{index}}</td>
									<td>Caste
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.caste|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

                                <tr>
									<td valign='top'>{{index}}.</td>
									<td>Category
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.studentReservationId}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}
                                <tr>
									<td valign='top'>{{index}}.</td>
									<td>Communication Address
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.commuAddressLine1 ? student.commuAddressLine1 ~ ', ':'' }} 
                                        {{student.commuAddressLine2 ? student.commuAddressLine2 ~ ', ':'' }} 
                                        {{student.commuPostOffice ? student.commuPostOffice ~ ', ':'' }} 
                                        {{student.commuCity ? student.commuCity ~ ', ':'' }} 
                                        {{student.commuState ? student.commuState ~ ', ':'' }} 
                                        {{student.commuCountry ? student.commuCountry ~ ', ':'' }} 
                                        {{student.commuPin ? student.commuPin ~ ', ':'' }}
									</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}
                                {# <tr>
									<td valign='top'>{{index}}.</td>
									<td>Seat Reservation
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.seatReservationQuotaId}}</td>
									
								</tr>
								{% set index = index + 1  %} #}
        

                                <table class='table table-bordered m-b-2 print-table-border' width='100%' style="">
                                    <tr >
                                        <td valign="top">
                                            <table class='table table-bordered m-b-0' width='100%'>
                                                <tr>
                                                    <td style=' width:100px;' valign="top" ><b>Weightage Quotas :</b></td>
                                                    <td style=' width:260px; border-right: 1px solid #000;' valign="top">
                                                        <table class="table table-borderless" width="100%">
                                                            <tr>
                                                                <td style='line-height: 15px;' valign="top">
                                                                    {% for quota in student.dataGridWeightageQuota %}
                                                                    <table class="table table-borderless" width="100%">
                                                                            <tr>
                                                                                <td style='line-height: 15px;'  valign="top">
                                                                                    {{quota.weightageQuota.weightageName}}
                                                                                </td>
                                                                                {# <td style='line-height: 15px;'  valign="top">
                                                                                    {{quota.weightageQuota.weightageDesc}}
                                                                                </td>
                                                                                <td style='line-height: 15px;'  valign="top">
                                                                                    {% for childList in quota.weightageQuota %}
                                                                                        {{childList.selected}}
                                                                                    {% endfor %}
                                                                                </td>  #}
                                                                            </tr>
                                                                        </table>
                                                                    {% endfor %}
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <table class='table table-bordered m-b-2 print-table-border' width='100%' >
                                    <tr>
                                        <td width='15%'><b>Sl No.</b></td>
                                        <td><b>Subject</b></td>
                                        <td><b>Position</b></td>
                                        <td><b>Index Marks</b></td>
                                    </tr>
                                    {% for allotmentDetails in allotmentCourseDetails %}
                                    <tr>
                                        <td>
                                                {{allotmentDetails.prefNo}}
                                        </td>
                                        <td>
                                                {{allotmentDetails.patternCourseName}}
                                        </td>
                                        <td>
                                            {% if allotmentDetails.meritReservation %} 
                                                {{allotmentDetails.meritReservation}} -
                                            {% elseif allotmentDetails.waitingListData|length > 0 %}
                                                {% for wait in allotmentDetails.waitingListData %}
                                                    {{wait.waitReservation}} -
                                                {% endfor %}
                                            {% endif %}
                                            {% if allotmentDetails.meritRank %} 
                                                Merit - {{allotmentDetails.meritRank}}
                                            {% elseif allotmentDetails.waitingListData|length > 0 %} 
                                                Wait -
                                                {% for wait in allotmentDetails.waitingListData %}
                                                    {{wait.waitRank}}
                                                {% endfor %}
                                            {% else %}
                                                You are Not Included in Waiting List
                                            {% endif %}        
                                        </td>
                                        <td>
                                               
                                            {% if allotmentDetails.meritIndexMark %} 
                                                {{allotmentDetails.meritIndexMark}}
                                            {% elseif allotmentDetails.waitingListData|length > 0 %}

                                                {% for wait in allotmentDetails.waitingListData %}
                                                    {{wait.waitingIndexMark}}
                                                {% endfor %}
                                            {% endif %}
                                        </td>
                                    </tr>
                                    {% endfor %}
                                </table>

                               <table class='table inner-table' width='100%' style="margin-top:10px;margin-bottom:10px">
                                <tr>
									<td>You are directed to report at the office of St Thomas College Palai(Autonomous) along with the following documents as per the  schedule of admission available in the college website www.stcp.ac.in.</td>

                                <table class='table table-bordered m-b-2 print-table-border' width='100%' >
                                    <tr>
                                        <td width='10%' height='30' align="center">1</td>
                                        <td width='60%'>College Allotment Memo</td>
                                        <td width='30%'> </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>2</td>
                                        <td> The original / online Marklist  of qualifying examination </td>
                                        <td> </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>3</td>
                                        <td> Transfer Certificate in original from the institution last studied. </td>
                                        <td> </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>4</td>
                                        <td> Conduct Certificate in original from the institution last studied.(obtained within the last 6 months) </td>
                                        <td> </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>5</td>
                                        <td> Two copies of SSLC Certificate </td>
                                        <td> </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>6</td>
                                        <td> Certificate in proof of special reservation (Cultural/Sports/PH Quota) </td>
                                        <td> If applicable </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>7</td>
                                        <td> Certificate in Original in support of Caste/Communal/EWS reservation (obtained within 3 years) </td>
                                        <td> If applicable </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>8</td>
                                        <td> Eligibility/Equivalency Certificate from the M.G. Uty., for those who have qualified from other States/ Boards other than HSE, CBSE, VHSE, CISCE (students from OPEN SCHOOL need Eligibility Certificate)  </td>
                                        <td> If applicable </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>9</td>
                                        <td> NCC/NSS/ Nanmamudra/ Rajyapuraskar Certificate in original at Plus Two level  </td>
                                        <td> If applicable </td>
                                    </tr>
                                    <tr>
                                        <td align="center" height='30'>10</td>
                                        <td> Dependent Certificate from Zilla Sainik Welfare Officer  </td>
                                        <td> If applicable </td>
                                    </tr>
                                </table>
                                <table class='table' width='100%' style="margin-top:50px;">
                                    <tr>
                                        <td align="right">
                                            <b>Principal</b>
                                        </td>
                                    </tr>
                                </table>    
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</body>
</html>

