Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/objects/addnotesFORM.php
<?php
$getGROUPS =	mysql_query("SELECT * FROM ath_groups"); //GET GROUPS
				
if (!$getGROUPS){
	echo("<p class=\"red\">adduserFORM.php COULD NOT GET GROUP INFO");
}
?>

<script language="JavaScript">
function check(){
	if (addresrc.title.value == ""){
		window.alert("Field 'Title' cannot be left blank.");
		return false;
	}
}

	var url;
	var height;
	var width;
	var specs;
	function openwinHELP(url, width, height){
		specs = 'status,resizable,width=' + width + ',height=' + height + ',top=75,left=150'
		popupWin = window.open(url,'pop_tiny',specs);
	}
</script>

	<body>
	<table width="525" border="0" cellspacing="0" cellpadding="1" bgcolor="#333333">
		<tr>
			<td class="cell_heading">ADD A NEW Note</td>
		</tr>
		<tr>
			<td align="center">
				<form name="addresrc" action="main.php?act=addnote" method="post" onSubmit="return check(this)">
				<table width="525" border="0" cellspacing="0" cellpadding="2" bgcolor="white">
						<tr>
							<td class="form_right" bgcolor="#f0e68c" width="150">WITH:</td>
							<td bgcolor="#f0e68c" width="425"><?php include("../includes/show_resources.inc.php"); ?></td>
						</tr>
						<tr>
						<td class="form_right" bgcolor="#f0e68c" width="150">Title:</td>
						<td bgcolor="#f0e68c" width="425"><input type="text" name="heading" value='<?php echo($_POST["heading"]); ?>' size="45" border="0"></td>
					</tr>
						<?php if ($checkUSER["ath_groups_addtoPUBLIC"] == 1): ?><?php endif; ?>
						<tr>
							<td class="form_right" valign="top" bgcolor="#e9967a" width="150">Text:</td>
							<td bgcolor="#e9967a" width="425"><textarea name="text" rows="20" cols="70"><?php echo($_POST["text"]); ?></textarea></td>
						</tr>
						<tr>
					<td class="form_right" bgcolor="#90ee90" width="150">&nbsp;<input type="hidden" name="ownerID" value="<?php echo($_SESSION["UID"]); ?>" border="0"><input type="hidden" name="ownerGROUPID" value='<?php echo($_SESSION["userGROUPID"]); ?>' border="0"></td>
					<td bgcolor="#90ee90" width="425"><input type="submit" name="addnote" value="Add Note" border="0"></td>
				</tr>
			</table>
			</form>
			</td>
		</tr>
	</table>
</body>
Return current item: Athena Research Assistant