<?php

	function template5($institutions, $branch, $students_array, $examination, $array, $result,$class_id, $section_id = null)
	{
	 
	?>
		<div class="container_marksheet_template1">

			<div class="border_template1"><!--border template is not being used-->

				<div class="content_container_template1">

					<!--template 3 logo-->
					<div class="fullstretch header_template1" align="center">
						<div class="logo_div_img_template1">
							<!--<div class="logo_left_template1" align="left">--><img class="images" src="<?php echo $institutions['logo']; ?>"><!--</div>-->
						</div>
						<div class="header_institution">
							<span class="heading_template1"><?php echo $institutions['institution_name']; ?></span><br>
							<span class="heading_code_info_template1"><?php echo $branch['branch_code']; ?></span><?php if ($branch['branch_code'] != "") {
																													?><br><?php
																													}
			?>
							<span class="heading_address_template1"><?php echo $branch['address'];
																		if ($branch['pincode'] != "") {
																			echo " - " . $branch['pincode'];
																		}
																		?></span><br><span class="contact_template1" style="text-transform: lowercase;"><?php echo $branch['contact_number'];
																									if ($branch['email'] != "") {
																										echo ", &nbsp;" . strtolower($branch['email']);
																									}
																									?></span>
						</div>
					</div>

					<div class=" fullstretch header_info_container" align="center">
						<div class="fullstretch heading_report_template1">Progress Report</div>
						<div class="year_template1">Academic Session <?php echo $result; ?></div>
					</div>


					<!--template 1 student info-->
					<!--template 1 student info-->
					<div class="fullstretch" align="center">
						<div class="student_info_template1">
							<table class="student_info_table_template1">
								<tr>
									<td>Name</td>
									<td>:&nbsp;</td>
									<td><?php echo $students_array[0]['name']; ?></td>
								</tr>
								<tr>
									<td>Class</td>
									<td>:&nbsp;</td>
									<td><?php echo $class_id; ?></td>
								</tr>
								<tr>
									<td>Father's Name</td>
									<td>:&nbsp;</td>
									<td><?php echo $students_array[0]['fathername']; ?></td>
								</tr>
							</table>
						</div>
						<div class="student_info_template1">
							<table class="student_info_table_template1">
								<tr>
									<td>Admission Number</td>
									<td>:&nbsp;</td>
									<td><?php echo $students_array[0]['admission_number']; ?></td>
								</tr>
								<tr>
									<td>Stream</td>
									<td>:&nbsp;</td>
									<td><?php echo ucwordS(strtolower("Commerce")); ?></td>
								</tr>
								<tr>
									<td>Mother's Name</td>
									<td>:&nbsp;</td>
									<td><?php echo $students_array[0]['mothername']; ?></td>
								</tr>
							</table>
						</div>
					</div>
					<!--template table 1 container-->

					<!--template table 1 container-->
					<div class="fullstretch table1_container_template1" align="center">
						<table class="table1_template1" border="1">
							<tr>
								<th>&nbsp;</th>
								<th colspan="7">Scholastic Area</th>
							</tr>
							<tr>
								<th class="alignleft">Subject</th>
								<th>Periodic Test (5)</th>
								<th>Portfolio (5)</th>
								<th>Multiple Assessment (5)</th>
								<th>Subject Enrichment Activity (5)</th>
								<th><?php echo ucwords($examination); ?> Exam (80)</th>
								<th>Total Marks Obtained(100)</th>
								<th>Grade</th>
							</tr>

							<?php $temp_count = 0; ?>

							<tr>
								<th class="texttransformupper alignleft">English</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">Punjabi</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">Hindi</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">Mathematics</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">E.V.S.</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">General Knowledge</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

							<tr>
								<th class="texttransformupper alignleft">Computer Education</th>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
								<td><?php echo $array[++$temp_count]; ?></td>
							</tr>

						</table>
					</div>

					<div class="fullstretch margintop20 marginbottom10 flexbox-row-spacearound-start" align="center">
						<div>
							<table class="student_info_table_template1">
								<tr>
									<th class="alignleft">Attendance</th>
									<td class="alignright">&nbsp;&nbsp;<?php echo $array[++$temp_count] . '%'; ?></td>
								</tr>
							</table>
						</div>
						<div>
							<table class="student_info_table_template1">
								<tr>
									<th class="alignleft">Total Marks</th>
									<td class="alignright">&nbsp;&nbsp;<?php echo $array[++$temp_count]; ?></td>
								</tr>
							</table>
						</div>
						<div>
							<table class="student_info_table_template1">
								<tr>
									<th class="alignleft">Percentage</th>
									<td class="alignright">&nbsp;&nbsp;<?php echo $array[++$temp_count]; ?></td>
								</tr>
							</table>
						</div>
						<div>
							<table class="student_info_table_template1">
								<tr>
									<th class="alignleft">Overall Grade</th>
									<td class="alignright">&nbsp;&nbsp;<?php echo $array[++$temp_count]; ?></td>
								</tr>
							</table>
						</div>
					</div>


					<div class="fullstretch table1_container_template1 margintop0" align="center">
						<table class="table1_template1 evaluation_table tablelayout_fixed" border="1">
							<tr>
								<th colspan="2">
									Co - Scholastic Final
								</th>
								<th colspan="2">
									Personality and Social Traits
								</th>
							</tr>
							<tr>
								<th>Particulars</th>
								<th><?php echo ucwords($examination); ?></th>
								<th>Particulars</th>
								<th><?php echo ucwords($examination); ?></th>
							</tr>
							<tr>
								<td>General Awareness</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Team Spirit</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Computer Science</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Neatness</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Sports Discipline</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Courtesy</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Art & Craft</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Confidence</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Club Activities</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Punctuality</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Performing Art - Dance & Music</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Social & Emotional Development</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Work Education</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td>Conversation & Communication</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
							</tr>
							<tr>
								<td>Value Education</td>
								<td class="aligncenter"><?php echo $array[++$temp_count]; ?></td>
								<td></td>
								<td></td>
							</tr>
						</table>
					</div>

					<div class="fullstretch table1_container_template1" align="center">
						<table class="table1_template1 evaluation_table tablelayout_fixed" border="1">
							<?php if ($array[++$temp_count] != '') {
							?>
								<tr>
									<th>Specific Participation</th>
								</tr>
							<?php
							}
							?>
							<tr>
								<td>
									<?php if ($array[$temp_count] != '') {
									?>
										<b>Participation / Positions in various competitions:</b>
										<?php echo ucwords($array[$temp_count]); ?>
										<br>
									<?php
									}
									?>

									<b>Remarks:</b> <?php echo ucwords($array[++$temp_count]); ?>
								</td>
							</tr>
						</table>
					</div>


					<div class="fullstretch margintop35 flexbox-row-spacearound-start fontsize11" align="center">
						<div>
							<table class="student_info_table_template1">
								<tr>
									<td>Class Incharge</td>
								</tr>
							</table>
						</div>
						<div>
							<table class="student_info_table_template1">
								<tr>
									<td>Principal / Headmistress</td>
								</tr>
							</table>
						</div>
						<div>
							<table class="student_info_table_template1">
								<tr>
									<td>Parent</td>
								</tr>
							</table>
						</div>
					</div>

					<div class="fullstretch" align="center" style="color:red;font-size:10pt;margin-top:10px;">* Incase of any discrepancies in marksheet, please contact school administration.</div>

				</div>
			</div>
		</div>

	<?php
	}
	?>