| Current Path : /var/www/cesa.co.za/members/saaceadmin/ |
| Current File : /var/www/cesa.co.za/members/saaceadmin/ADaddDone.php4 |
<html>
<head>
<title>SAACE: Annual Declaration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
// All the database constants
$scriptname = "ADaddDone.php4";
include("../inc/conf.inc");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC">
<?php include( 'inc/menu.inc' ); ?>
</td>
</tr>
<tr>
<td>
<h3><font face="sans-serif" color="#666666">Add Records:</font><font face="sans-serif">
ADec_Done </font></h3>
<p>
<?php
if ($action == "update")
{
// Connect to the databse and update the date
$dbc = mysql_connect($server,$user,$pass);
mysql_select_db($db,$dbc);
$sql = "INSERT INTO ADec_Done(RefID,RefType,RefDoc,ADecDate) VALUES('$form[refid]','$form[reftype]','$form[refdoc]','$form[adecdate]')";
$result = mysql_query($sql);
echo "The insert was completed";
}
?>
<FORM ACTION="<?php echo $scriptname; ?>?action=update" METHOD="POST">
<?php $form[chaser] = ""; ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><b><font face="Comic Sans MS" size="2">ADecID</font></b></td>
<td width="85%"><font face="Comic Sans MS" size="2"><b>
<?php $form[adecid] = $row["ADecID"];?>
Generated by the table....</b></font></td>
</tr>
<tr>
<td width="15%" height="26"><b><font face="Comic Sans MS" size="2">RefID</font></b></td>
<td width="85%" height="26"> <font face="Comic Sans MS" size="2">
<input type="text" name="form[refid]" size="20">
</font></td>
</tr>
<tr>
<td width="15%"><b><font face="Comic Sans MS" size="2">RefType</font></b></td>
<td width="85%"> <font face="Comic Sans MS" size="2">
<select name="form[reftype]" size="1">
<option value="OfficeID">OfficeID</option>
<option value="FirmID">FirmID</option>
<option value="ContactsID">ContactsID</option>
</select>
</font></td>
</tr>
<tr>
<td width="15%" height="33"><b><font face="Comic Sans MS" size="2">RefDoc</font></b></td>
<td width="85%" height="33"> <font face="Comic Sans MS" size="2">
<select name="form[refdoc]" size="1">
<option value="AnnualDeclaration">AnnualDeclaration</option>
<option value="Schedule1">Schedule1</option>
<option value="Schedule1P2">Schedule1P2</option>
<option value="Schedule1A">Schedule1A</option>
<option value="Schedule1B">Schedule1B</option>
<option value="Schedule1BP2">Schedule1BP2</option>
<option value="Schedule2">Schedule2</option>
</select>
</font></td>
</tr>
<tr>
<td width="15%" height="30"><b><font face="Comic Sans MS" size="2">ADecDate</font></b></td>
<td width="85%" height="30"> <font face="Comic Sans MS" size="2">
<input type="text" name="form[adecdate]" size="20" value="<?php echo date("M d Y g:iA");?>">
</font></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="85%">
<input type="submit" name="Submit" value="Insert">
<input type="reset" name="Submit2" value="Clear">
</td>
</tr>
</table>
<INPUT TYPE="HIDDEN" NAME="form[adecid]" VALUE="<?php echo $row["ADecID"] ;?>">
</form>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
<?php include( 'inc/footer.inc' ); ?>
</td>
</tr>
</table>
</body>
</html>