<commit_before>
<h1 class="page-title"><?php echo $this->student->getFirstname() . " " . $this->student->getInsertion() . " " . $this->student->getLastname(); ?></h1>
<div class="row">
	
	<a href="../index">&laquo;Back</a><br />
</div>
<div class="col-lg-4">
<div class="well table-responsive">
	<table class="table">
		<tr><td colspan="2"> <h4>General Information</h4> </td> </tr>
		<tr><td><strong>Name</strong></td> <td><?php echo $this->student->getFirstname() . " " . $this->student->getInsertion() . " " . $this->student->getLastname(); ?></td> </tr>
		<?php 
		$cnt = 0;
		while ($cnt < count($this->contact))
		{
			?>
			<tr>
					<td><strong><?php echo $this->contact[$cnt]->getContactTypeName()->getName(); ?></strong></td>
					<td><a href="<?php echo $this->contact[$cnt]->getContactTypeName()->getPrefix() . $this->contact[$cnt]->getContent(); ?>">Go to <?php echo $this->contact[$cnt]->getContactTypeName()->getName(); ?> </a></td>
			</tr> 
			<?php
			$cnt = $cnt + 1;
		}
		?>
		<tr><td colspan="2"> <h4>Education</h4> </td> </tr>
		<tr><td><strong>Education name</strong></td> <td><?php echo $this->education->getName(); ?></td></tr>
		<tr><td><strong>First year</strong></td> <td><?php echo $this->student->getSchoolyear(); ?></td></tr>
			
	</table>
</div>
</div>
<div class="col-md-8">
	<input type="hidden" id="search-input"/>
	<div>
		<?php
			if($this->loc == null) 
			{
				?>
				<div class="alert alert-warning">
					<span>There are no activities to display for this student</span>
				</div>
				<?php
			} else {
				$googlemap = $this -> map;
				echo $googlemap -> generate_map();
			}
		?>
	</div>
	</br>
	<div class="table-responsive">
		<h4>Activities</h4>
		<table class="table table-striped">
			<thead>
			<tr>
				<th>Date</th>
				<th>Activity</th>
				<th>Type</th>
				<th>Institute</th>
			</tr>
			</thead>
			<tbody>
			<?php
		foreach($this->activity as $cur_act)
		{
			?>
				<tr>
					<?php
					if($cur_act->getStartDate() != null && $cur_act->getEndDate() != null){
						?>
						<td><?php echo $cur_act->getStartDate()->format('d-m-Y')." - ".$cur_act->getEndDate()->format('d-m-Y');?></td>
						<td><?php echo $cur_act->getActivity()->getName()?></td>
						<td><?php echo $cur_act->getActivity()->getActivityType()->getName()?></td>
						<td>
							<a href="<?php echo "/user/institutes/detail/".$cur_act->getActivity()->getLocation()->getId();?>"><?php echo $cur_act->getActivity()->getLocation()->getName();?></a>
						</td>
					
						<?php
					}
					?>
					
				</tr>
				<?php
			}
		?>
		</tbody>
		</table>
	</div>
</div><commit_msg>Detail student fix Table<commit_after>
<h1 class="page-title"><?php echo $this->student->getFirstname() . " " . $this->student->getInsertion() . " " . $this->student->getLastname(); ?></h1>
<div class="row">
	
	<a href="../index">&laquo;Back</a><br />
</div>
<div class="col-lg-4">
<div class="well table-responsive">
	<table class="table">
		<tr><td colspan="2"> <h4>General Information</h4> </td> </tr>
		<tr><td><strong>Name</strong></td> <td><?php echo $this->student->getFirstname() . " " . $this->student->getInsertion() . " " . $this->student->getLastname(); ?></td> </tr>
		<?php 
		$cnt = 0;
		while ($cnt < count($this->contact))
		{
			?>
			<tr>
					<td><strong><?php echo $this->contact[$cnt]->getContactTypeName()->getName(); ?></strong></td>
					<td><a href="<?php echo $this->contact[$cnt]->getContactTypeName()->getPrefix() . $this->contact[$cnt]->getContent(); ?>">Go to <?php echo $this->contact[$cnt]->getContactTypeName()->getName(); ?> </a></td>
			</tr> 
			<?php
			$cnt = $cnt + 1;
		}
		?>
		<tr><td colspan="2"> <h4>Education</h4> </td> </tr>
		<tr><td><strong>Education name</strong></td> <td><?php echo $this->education->getName(); ?></td></tr>
		<tr><td><strong>First year</strong></td> <td><?php echo $this->student->getSchoolyear(); ?></td></tr>
			
	</table>
</div>
</div>
<div class="col-md-8">
	<input type="hidden" id="search-input"/>
	<div>
		<?php
			if($this->loc == null) 
			{
				?>
				<div class="alert alert-warning">
					<span>There are no activities to display for this student</span>
				</div>
				<?php
			} else {
				$googlemap = $this -> map;
				echo $googlemap -> generate_map();
			}
		?>
	</div>
	</br>
    
    <?php
    if($this->loc != null){ 
        
    ?>
	<div class="table-responsive">
		<h4>Activities</h4>
		<table class="table table-striped">
			<thead>
			<tr>
				<th>Date</th>
				<th>Activity</th>
				<th>Type</th>
				<th>Institute</th>
			</tr>
			</thead>
			<tbody>
			<?php
		foreach($this->activity as $cur_act)
		{
			?>
				<tr>
					<?php
					if($cur_act->getStartDate() != null && $cur_act->getEndDate() != null){
						?>
						<td><?php echo $cur_act->getStartDate()->format('d-m-Y')." - ".$cur_act->getEndDate()->format('d-m-Y');?></td>
						<td><?php echo $cur_act->getActivity()->getName()?></td>
						<td><?php echo $cur_act->getActivity()->getActivityType()->getName()?></td>
						<td>
							<a href="<?php echo "/user/institutes/detail/".$cur_act->getActivity()->getLocation()->getId();?>"><?php echo $cur_act->getActivity()->getLocation()->getName();?></a>
						</td>
					
						<?php
					}
					?>
					
				</tr>
				<?php
			}
		?>
		</tbody>
		</table>
  <?php
  
    }
  ?>
	</div>
</div>
{'fraction_non_alphanumeric': 0.2639124693454065, 'fraction_numerical': 0.005282022259950953, 'mean_word_length': 3.2247011952191236, 'pattern_counts': {'":': 0, '<': 249, '<?xml version=': 0, '>': 346, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1549342', 'n_tokens_mistral': 2325, 'n_tokens_neox': 1971, 'n_words': 332}