<?php
//SHOW SINGLE NOTE
require("../config/config.php");
require("../includes/check_login.inc.php");
require("../includes/mysql_db_connect.inc.php");
require("../includes/get_group_info.inc.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title><?php echo($title); ?></title>
<link href="../global_elements/athena.css" rel="stylesheet" media="screen">
<meta http-equiv="expires" CONTENT="1996-01-01">
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0">
<tr>
<td>
<?
//echo("<p>" . $_SESSION["userGROUPID"] . "</p>");
$itemID = $_GET["id"];
$getNOTES = mysql_query("SELECT * FROM ath_notes WHERE ath_notes_id=$itemID");
if (!$getNOTES){
echo("<p class=\"red\">getNOTES failed in viewDETAILS.php</p>");
echo(mysql_error());
exit();
}
$ROWgetNOTES = mysql_fetch_array($getNOTES);
if ($ADMINISTRATE == 1 or $ROWgetNOTES["ath_notes_ownerGROUP"] == $_SESSION["userGROUPID"]){ //VERIFY OWNERSHIP
echo("<b>" . stripslashes($ROWgetNOTES["ath_notes_heading"]) . "</b>");
echo("<p>");
echo(stripslashes($ROWgetNOTES["ath_notes_text"]));
echo("</p>");
echo("<p><input type=\"button\" name=\"close\" value=\"Close\" onClick=\"window.close();\" border=\"0\"></p>");
}
else{
echo("<p class=\"red\">You are not allowed to view this item!</p>");
}
?>
</td>
</tr>
</table>
</body>
</html>