Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/php/
Upload File :
Current File : /var/www/cesa.co.za/php/ypfmentees_members.php

<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/memberauth.php");

include_once($_SERVER['DOCUMENT_ROOT'] . "/php/inc_db.php");
?>
<p>The following YPF mentees have added their details and CV to our database (note that entries that are more than 3 months old are not displayed):</p>
<table border="1">
	<tr>
		<td><strong>Name and Contact</strong></td>
		<td><strong>Qualification</strong></td>
		<td>
			<strong>Location</strong>
		</td>
		<td><strong>Details</strong></td>
		<td>
			<strong>&nbsp;</strong>
		</td>
	</tr>
	<?php
	$sql = "SELECT distinct title, firstname, surname,  
		qualiflevel, qualification, institution, yearqual, province, location, 
		cvfile, telnum, email, fromdate, qualiflevel, specialisation, unemployed, 
		ecsa, yearreg, profreg, menteecategory, mentorshiptype, DateCreated 
		from YPFMentees where approved=1 AND DateCreated>='" . date("Y-m-d", strtotime("-3 months")) . "' order by surname, firstname, DateCreated";
	$rec = mysql_query($sql);
	if (mysql_num_rows($rec) == 0) echo "<tr><td colspan=9>No records in the database</td></tr>";
	while ($row = mysql_fetch_assoc($rec)) {
	?>
		<tr>
			<td><b><?php echo $row["title"] . " " . $row["firstname"] . " " . $row["surname"]; ?></b><br>
				<?php echo $row["telnum"] . "<br>" . $row["email"]; ?><br><br>
				<em style="font-size:8px">Added to database on <?php echo date("Y-m-d", strtotime($row["DateCreated"])); ?></em>
			</td>
			<td><?php echo $row["qualification"]; ?><br><em>Level: </em><?php echo $row["qualiflevel"]; ?><br>
				<em>Institution: </em><?php echo $row["institution"]; ?><br><em>Year: </em><?php echo $row["yearqual"]; ?>
			</td>
			<td><?php echo $row["location"] . "<br><i>Province:</i> " . $row["province"]; ?></td>
			<td><em>Specialisation: </em><?php echo $row["specialisation"]; ?><br>
				<em>Category: </em><?php echo $row["menteecategory"]; ?><br>
				<em>Looking for: </em><?php echo $row["mentorshiptype"]; ?><br>
				<em>Available from: </em><?php echo $row["fromdate"]; ?>
			</td>
			<td>
				<?php
				if ($row["ecsa"] == "Y") echo "Registered with ECSA (" . $row["yearreg"] . ")<br>";
				if (!empty($row["profreg"])) echo "Registered with " . $row["profreg"] . "<br>";
				?>
				<a href="/<?php echo $row["cvfile"]; ?>" target="_blank">Click here to download the CV</a>
			</td>
		</tr>
	<?php
	}
	?>
</table>

<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/templates/inc_footer.php");