Location: PHPKode > projects > Ptk-forensics > ptk/lib/analysis_report.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("header.php");
include("check_session_image.php");
$image = image_list(sanitize($_SESSION['case_id'],INT));
$rep_token = md5(uniqid(rand(), TRUE));
$_SESSION['rep_token'] = $rep_token;
$_SESSION['rep_token_time'] = time();
?>
<script type="text/javascript" src="../ajax/tree/ajax.js"></script>
<script type="text/javascript" src="../ajax/tree/bookmark-tree-static.js"></script>
<script type="text/javascript" src="../ajax/tree/context-menu.js"></script>
<link rel="stylesheet" href="../css/tree/folder-tree-static.css" type="text/css">
<link rel="stylesheet" href="../css/tree/context-menu.css" type="text/css">	
<link rel="stylesheet" type="text/css" href="../css/file_table.css"/>

<div id="container_left">
	<br>
	<button style="width:200px;" onclick="document.getElementById('right').src=''; displayMessage('modal_report.php?tk=<?=$rep_token?>', '240', '250');return false;">New report</button>
	<br><br>
	<?$pdf = get_report_list();?>	
	<?for($i=0;$i<sizeof($pdf);$i++){
			if($i%2==0) $color="#DCDCDC"; else $color="#FFFFFF";
			?>
		<div style="width:100%; float:left; font-size:8pt; border:1px solid grey; background-color:<?=$color?>; margin-top:-1px; padding:2px">
			<tag style="width:170px;overflow:hidden;cursor:pointer; float:left" onclick="document.getElementById('right').src='../report/<?=urlencode($pdf[$i]);?>'"><?=htmlentities($pdf[$i]);?></tag>
			<? if($_SESSION['user']=='admin'){?>
				<img src="../img/remove_small.png" title="Delete report" style="width:15px;float:right;cursor:pointer" onclick="if (confirmSubmit()){document.location='delete_report.php?tk=<?=$rep_token?>&name=<?=urlencode($pdf[$i]);?>'}">
			<?}?>			
		</div>
	<?}?>
</div>

<div id="analysis_left_handle" onclick="switchScrollH('container_left')"></div>

<div id="container_right" style="height:100%; overflow:hidden">
	<iframe id="right" style="z-index:-10; width:100%; height:100%; border:0px solid"></iframe>
</div>

<?if(isset($_SESSION['last_report'])){?>
<script type="text/javascript">
document.getElementById('right').src="../report/<?=$_SESSION['last_report'];?>";
</script>
<?
unset($_SESSION['last_report']);
}?>

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

Return current item: Ptk-forensics