Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/objects/showSINGLEresrc.php
<?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"];

$getRESRC = mysql_query("SELECT * FROM ath_resrc WHERE ath_resrc_id=$itemID");

if (!$getRESRC){
				echo("<p class=\"red\">getNOTES failed in showSINGLEresrc.php</p>");
				echo(mysql_error());
				exit();
			}

$ROWgetRESRC = mysql_fetch_array($getRESRC);

if ($ADMINISTRATE == 1 or $ROWgetRESRC["ath_resrc_ownerGROUPID"] == $_SESSION["userGROUPID"]){ //VERIFY OWNERSHIP
		
	echo("<b>" . stripslashes($ROWgetRESRC["ath_resrc_title"]) . "</b>");
	echo("<p>");
	echo(stripslashes($ROWgetRESRC["ath_resrc_authorFIRST"]) . " " . stripslashes($ROWgetRESRC["ath_resrc_authorLAST"]));
	echo("</p>");
}
else{
	echo("<p class=\"red\">You are not allowed to view this item!</p>");
}
?>

</td>
</tr>
</table>

</body>
</html>
Return current item: Athena Research Assistant