Location: PHPKode > projects > Ptk-forensics > ptk/lib/analysis_timeline.php
<?
/*
PTK  - DFLabs
Copyright (C) 2008 - DFLabs srl - All rights reserved
hide@address.com
*/
include("header.php");
include("check_session_image.php");
include("message.php");

$inv_token = md5(uniqid(rand(), TRUE));
$_SESSION['tml_token'] = $inv_token;

?>
<link rel="stylesheet" type="text/css" href="../css/timeline.css"/>
<link rel="stylesheet" type="text/css" href="../css/timeline_table.css"/>

<div style="width:10px; height:20px"></div>

<div id="timeline_panel">
<div style="padding:20px; padding-top:10px; padding-bottom:10px;" id="timeline_panel_content">
	<form method="post" action="get_timeline.php" onsubmit="if(!check_timeline()){return false}">
		<table class="info">
			<tr>
				<input type="hidden" name="token" value="<?=$inv_token?>"/>
				<td>Select partition:</td>
				<td style="width: 300px">
					<select id="partition" name="partition" style="width: 220px">
						<?
						if($_SESSION['len_partitions']>1){
							?><option value="all" <?if($_SESSION['timeline_id']=='all'){?>selected<?}?>>All</option><?
							for($i=0;$i<$_SESSION['len_partitions'];$i++){
								?><option value="<?=$_SESSION["partition".$i."_id"]?>" <?if($_SESSION['timeline_id']==$_SESSION["partition".$i."_id"]){?>selected<?}?>>partition-<?=$i." [".$_SESSION["partition".$i."_filesystem"]."]";?></option><?
							}
						}else{
								?><option value="<?=$_SESSION["partition0_id"]?>" <?if($_SESSION['timeline_id']==$_SESSION["partition0_id"]){?>selected<?}?>><?=$_SESSION['image'];?></option><?
						}
						?>	
					</select>
				</td>
			</tr>
			<tr>
				<td>Start date:</td>
				<td><input type="text" id="start" name="start" style="width:200px">&nbsp;<img src="../img/calendar.png" style="cursor:pointer; vertical-align: bottom" onclick="displayCalendar(document.forms[0].start,'yyyy-mm-dd hh:ii:00',this, true)"></td>
			</tr>		
			<tr>
				<td>End date:</td>
				<td><input type="text" id="end" name="end" style="width:200px">&nbsp;<img src="../img/calendar.png" style="cursor:pointer; vertical-align: bottom" onclick="displayCalendar(document.forms[0].end,'yyyy-mm-dd hh:ii:00',this, true)"></td>
			</tr>		
			<tr><td></td></tr>
			<tr><td></td></tr>
			<tr><td><input type="submit" value="  Create timeline  "></td></tr>
			<tr><td></td></tr>
			<tr><td></td></tr>			
			<tr>
				<td>Choose timeline type:</td>
				<td>
					<input type="radio" name="timelinetype" id="table_view" onclick="hideDiv('graphic_timeline'); switchAppearDiv('timeline_div')" checked> table
					<input type="radio" name="timelinetype" id="graphic_view" onclick="hideDiv('timeline_div'); switchAppearDiv('graphic_timeline')"> graphic
				</td>
			</tr>			
		</table>
	</form>
</div>
</div>
<div id="panel_handle" onclick="switchScroll('timeline_panel')"></div>

<div id="timeline_div"></div>

<div id="graphic_timeline" style="display:none">	
	<div id="graphic_toolbar">
		<div style="float:left; padding-top:5px;width:33%">
			<input type="checkbox" checked id="mac_m" onclick="reload('none')"> Modified
			<input type="checkbox" checked id="mac_a" onclick="reload('none')"> Accessed
			<input type="checkbox" checked id="mac_c" onclick="reload('none')"> Created
		</div>		
		<div style="float:left;text-align:center;width:33%">
			<img title="Scroll back" src="../img/left.png" onclick="reload('back')" style="cursor:pointer">
			<img title="Zoom out"  src="../img/zoom-out.png" onclick="reload('zoom_out')" style="cursor:pointer;width:20px;margin-top:4px">
			<img title="Zoom in"  src="../img/zoom-in.png" onclick="reload('zoom_in')" style="cursor:pointer;width:20px;margin-top:4px">			
			<img title="Scroll forward"  src="../img/arrow.png" onclick="reload('forward')" style="cursor:pointer">
		</div>
		<div style="float:right; padding-top:5px;width:33%">
			<input type="radio" name="view" id="year" checked onclick="reload('start')"> Year
			<input type="radio" name="view" id="month" onclick="reload('start')"> Month
			<input type="radio" name="view" id="day" onclick="reload('start')"> Day
		</div>
	</div>
	<div id="graphic">
	<?include("graphic_timeline.php");?>
	</div>
</div>

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

<script type="text/javascript">
new DragScrollable('timeline');
</script>

<?if(sizeof($_SESSION['timeline'])>0){?>
	<script type="text/javascript">
	show_timeline_page(0, 100, 0,null,'<?=$inv_token?>');
	</script>
<?}?>
Return current item: Ptk-forensics