Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/objects/resrcADDEDconfirm.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 (adduser.groupname.value == ""){
		window.alert("Field 'Group Name' 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>
	<p class="green">A NEW RESOURCE HAS BEEN ADDED</p>
	<table width="525" border="0" cellspacing="0" cellpadding="3" bgcolor="white">
		<tr>
			<td class="table_heading" colspan="2" align="center" width="596"></td>
		</tr>
		<tr>
			<td class="form_right" bgcolor="#cccccc" width="225">With Project:</td>
			<td bgcolor="#cccccc" width="300"><?php echo($_POST["WITHproject"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" width="225">Title:</td>
			<td width="300"><?php echo($_POST["title"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" bgcolor="#cccccc" width="225">Author:</td>
			<td bgcolor="#cccccc" width="300"><?php echo($_POST["author"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" valign="top" width="225">Format:</td>
			<td width="300"><?php convert_resrc_format($_POST["format"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" bgcolor="#cccccc" width="225">URL:</td>
			<td bgcolor="#cccccc" width="300"><?php echo($_POST["title"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" width="225">Year published</td>
			<td width="300"><?php echo($_POST["year"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" bgcolor="#cccccc" width="225">Lenght</td>
			<td bgcolor="#cccccc" width="300"><?php echo($_POST["lenght"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" width="225">Publisher</td>
			<td width="300"><?php echo($_POST["publisher"]); ?></td>
		</tr>
		<tr>
			<td class="form_right" valign="top" bgcolor="#cccccc" width="225">Added to Public Resource:</td>
			<td bgcolor="#cccccc" width="300"><?php 
							if ($_POST["addtopublic"] == 0){
								echo("NO");
							}
							else{
								echo("YES");
							}
						?></td>
		</tr>
		<tr>
			<td class="form_right" valign="top" width="225">Notes:</td>
			<td width="300"><?php echo($_POST["notes"]); ?></td>
		</tr>
		<tr>
			<td colspan="2" align="center" valign="middle" bgcolor="#90ee90" width="596">
				<form action="main.php?act=addresrc" method="post" name="add">
					<input type="submit" name="addresource" value="Add another resource." border="0"><input type="hidden" name="addRESOURCE" value="add" border="0"><input type="hidden" name="WITHproject" value="<?php echo($_POST["WITHproject"]); ?>" border="0">
				</form>
			</td>
		</tr>
		<!-- OPTION TO COPY STARTS HERE --><?php if ($checkUSER["ath_groups_addtoPUBLIC"] == 1): ?><!--<tr>
						<td bgcolor="#90ee90" width="225" height="10">&nbsp;</td>
						<td bgcolor="#90ee90" width="300" height="10">&nbsp;</td>
					</tr>-->
		<tr>
			<td colspan="2" align="center" valign="middle" bgcolor="#90ee90" width="596">
				<form action="main.php?act=addresrc" method="post" name="copy">
					<input type="submit" name="addresource" value="Copy another resource." border="0"><input type="hidden" name="addRESOURCE" value="copy" border="0"><input type="hidden" name="WITHproject" value="<?php echo($_POST["WITHproject"]); ?>" border="0">
				</form>
			</td>
		</tr>
		<?php endif; ?><!-- OPTION TO COPY ENDS HERE -->
	</table>
	<p></p>
</body>
Return current item: Athena Research Assistant