<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title>Hi <?php echo $name; ?></title></head>
<body>
<div style="max-width: 800px; margin: 0; padding: 30px 0;">
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5%"></td>
<td align="left" width="95%" style="font: 13px/18px Arial, Helvetica, sans-serif;">

<?
$val = "{$name}_mail_list";
//dump($$val);
?>
Hi <?=$name_text?>,<br />
Final assesment moderation pending list of student from <?=$date?>
<?php
	
	
	$student_list_arr = $$val;
	
	if((isset($student_list_arr)) && is_array($student_list_arr)){
		$html = "<br/><br/><table border='1'>";		
		$html .= "<tr>";
		$html .= "<th>Sr. No.</th>";
		$html .= "<th>Name</th>";
		$html .= "<th>Email</th>";
		//$html .= "<th>Ticket no</th>";
		$html .= "<th>Status</th>";
		$html .= "<th>Attempt no</th>";
		//$html .= "<th>Message</th>";
		$html .= "<th>Submitted On Date</th>";
		$html .= "</tr>";
		foreach($student_list_arr as $k=>$student){ 
			$k++;
			//dump($student);
			$html .= "<tr>";
			$html .= "<td>{$k}</td>";
			$html .= "<td>{$student['name']}</td>";
			$html .= "<td>{$student['email']}</td>";
			$html .= "<td>{$student['status']}</td>";
			$html .= "<td>{$student['attempt_no']}</td>";
			//$html .= "<td>{$student['subject']}</td>";
			//$html .= "<td>{$student['message']}</td>";
			$html .= "<td>{$student['created_on']}</td>";
			$html .= "</tr>";
		}	
		$html .= "</table>";
		echo $html;
	}

?>

<br />
<br />

</td>
</tr>
</table>
</div>
</body>
</html>