| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/unempreg_members.php |
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/memberauth.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/inc_db.php");
?>
<p>The following unemployed engineering practitioners 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>Looking for</strong></td>
<td>
<strong> </strong>
</td>
</tr>
<?php
$sql = "SELECT distinct title, firstname, surname,
qualiflevel, qualification, institution, yearqual, province, location,
cvfile, telnum, email, fromdate, jobtype, qualiflevel, specialisation, ecsa, yearreg, profreg, DateCreated
from UnempPractitioners where approved=1 order by surname, firstname, DateCreated";
// AND DateCreated>='".date("Y-m-d", strtotime("-3 months"))."'
$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>Looking for: </em><?php echo nl2br($row["jobtype"]); ?><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");