HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/seekya.com/DEAD/beta/manage/alldoc.php
<?php include("../includes/connect.php"); ?>
<?php include("includes/header.php"); ?>
<?php if (empty($_SESSION["admin"])) redirect("index.php?e=1"); 
//Single Delete
if (!empty($_GET["del_id"])) {
	mysql_query("delete from document_master where id=" . $_GET["del_id"]);
	redirect($_SERVER["HTTP_REFERER"]);
}?>


<table width="450"  border="0" align="center">
    <tr>
        <td width="190" class="BlackAri12"><B>Documents</B> [<a href="editdoc.php">Add New</a>]</td>
        
        </tr>
    <tr>
        <td><table width="100%" border="1" cellspacing="1" class="bgExtraLightGray">
		<?php
		//opendb();
		$sql="select * from document_master order by 1 asc";
		$cmd = mysql_query($sql);
		while ($rs = mysql_fetch_array($cmd))
		{
			echo '<tr class=""bgWhite""><td width=""75%"" class=""BlackAri12""><a href="editdoc.php?doc_id='.$rs[0].'">'. $rs[1] . '<a></td><td width=""75%"" class=""BlackAri12"">';?>
			<a href="alldoc.php?del_id=<?php echo($rs[0]); ?>" onClick="return window.confirm('Are you sure you want to delete this record from database.');">
			<?echo '<small>Delete</small><a></td></tr>';
		}


?>
         
            
        </table></td>
       
        

<?php include("includes/footer.php"); ?>