<?
include "./auth.inc.php";
if ($NoteText){
echo "Process Note";
$isql="INSERT INTO
Notes(CustomerID,NoteText,NoteType,NoteDate,NoteAuthor)
VALUES('$CustomerID','$NoteText','$NoteType','$NoteDate','$PHP_AUTH_USER')";
mysql_query($isql);
print mysql_error();
print $isql;
print "<BR>Note Added.";
exit;
}
?><HTML>
<HEAD>
<TITLE>Enter a Note</TITLE>
</HEAD>
<BODY>
<FORM action="addnote.php">
<!-- put an option here to record an anonymous note>
<P>Customer ID: <? echo $CustomerID ?>
<!-- Add a drop down menu for the type of note>
<P> Type <SELECT NAME="NoteType">
<?
$nsql="SELECT NoteTypeID, NoteTypeName FROM NoteTypes where
NoteTypeID<100";
$nres=mysql_query($nsql);
while ($nrow=mysql_fetch_row($nres)){
print "<OPTION VALUE=\"$nrow[0]\">$nrow[1]</OPTION>\n";
}
?>
</SELECT>
<P>Note added at: <? echo date("l dS of F Y H:i:s A"); ?>
<INPUT TYPE=HIDDEN NAME="NoteDate" VALUE="<? echo date("Y-m-d H:i:s");?>">
<P><TEXTAREA NAME="NoteText" cols=35 rows=10></TEXTAREA>
<INPUT TYPE="SUBMIT" VALUE="Add Note">
</FORM>
</BODY>
</HTML>