| Current Path : /var/www/cesa.co.za/mentanet/ |
| Current File : /var/www/cesa.co.za/mentanet/details.php |
<?php
include("inc_functions.php");
if (!isset($_SESSION["StudentID"]) || empty($_SESSION["StudentID"])) header("Location: http://www.cesa.co.za/mentanet/login.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MentaNet</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="twoColFixLtHdr">
<div id="container">
<?php include("inc_header.php"); ?>
<?php include("inc_sidebar.php"); ?>
<div id="mainContent">
<h1> Your Details</h1>
<?php
$sql = "SELECT * FROM CCEStudents WHERE CCEStudentID=".$_SESSION["StudentID"];
$rec = mysql_query($sql);
$row = mysql_fetch_assoc($rec);
?>
<form id="form1" name="form1" method="post" action="details.php">
<table border="0" cellpadding="5" cellspacing="0">
<tbody>
<tr>
<td>Title:</td>
<td><input name="Title" type="text" id="Title" size="50" value="<?php echo $row["Title"]; ?>" /></td>
</tr>
<tr>
<td width="203"><p>First Name:</p></td>
<td width="379"><p>
<input name="FirstName" type="text" id="FirstName" size="50" value="<?php echo $row["FirstName"]; ?>" />
</p></td>
</tr>
<tr>
<td><p>Surname:</p></td>
<td><input name="Surname" type="text" id="Surname" size="50" value="<?php echo $row["Surname"]; ?>" /></td>
</tr>
<tr>
<td><p>Preferred Name (Known As):</p></td>
<td><p>
<input name="KnownAs" type="text" id="KnownAs" size="50" value="<?php echo $row["KnownAs"]; ?>" />
</p></td>
</tr>
<tr>
<td>ECSA Number:</td>
<td><input name="ECSANumber" type="text" id="ECSANumber" size="30" value="<?php echo $row["ECSANumber"]; ?>" /></td>
</tr>
<tr>
<td>ID Number:</td>
<td><input name="IDNumber" type="text" id="IDNumber" size="30" value="<?php echo $row["IDNumber"]; ?>" /></td>
</tr>
<tr>
<td><p>Telephone No:</p></td>
<td><p>
<input name="Telephone" type="text" id="Telephone" size="30" value="<?php echo $row["Telephone"]; ?>" />
</p></td>
</tr>
<tr>
<td><p>Cell No. :</p></td>
<td><p>
<input name="Cellphone" type="text" id="Cellphone" size="30" value="<?php echo $row["Cellphone"]; ?>" />
</p></td>
</tr>
<tr>
<td><p>E-mail Address:</p></td>
<td><p>
<input name="EmailAddress" type="text" id="EmailAddress" size="50" value="<?php echo $row["EmailAddress"]; ?>" />
</p></td>
</tr>
<tr>
<td valign="top">Organisation:</td>
<td><input name="Organisation" type="text" id="Organisation" size="50" value="<?php echo $row["Organisation"]; ?>" /></td>
</tr>
<tr>
<td>Designation:</td>
<td><input name="Designation" type="text" id="Designation3" size="50" value="<?php echo $row["Designation"]; ?>" /></td>
</tr>
<tr>
<td valign="top">Organisation Type:</td>
<td><input name="OrganisationType" type="text" id="OrganisationType" size="50" value="<?php echo $row["OrganisationType"]; ?>" /></td>
</tr>
<tr>
<td valign="top">VAT No:</td>
<td><input name="VATNo" type="text" id="VATNo" size="30" value="<?php echo $row["VATNo"]; ?>" /></td>
</tr>
<tr>
<td valign="top">CESA Account No:</td>
<td><input name="CESAAccountNo" type="text" id="CESAAccountNo" size="30" value="<?php echo $row["CESAAccountNo"]; ?>" /></td>
</tr>
<tr>
<td valign="top"><p>Home Address:</p></td>
<td><p>
<textarea name="HomeAddress" id="HomeAddress" cols="45" rows="5"><?php echo stripslashes($row["HomeAddress"]); ?>
</textarea>
</p></td>
</tr>
<tr>
<td valign="top"><p>Work Address:</p></td>
<td><p>
<textarea name="WorkAddress" id="WorkAddress" cols="45" rows="5"><?php echo stripslashes($row["WorkAddress"]); ?>
</textarea>
</p></td>
</tr>
<tr>
<td valign="top"><p>Postal Address:</p></td>
<td><p>
<textarea name="PostalAddress" id="PostalAddress" cols="45" rows="5"><?php echo stripslashes($row["PostalAddress"]); ?>
</textarea>
</p></td>
</tr>
</tbody>
</table>
<p>
<label>
<input type="submit" name="button" id="button" value="Update Now" />
</label>
</p>
</form>
<p> </p>
</div>
<?php include("inc_footer.php"); ?>
<!-- end #container --></div>
</body>
</html>