Location: PHPKode > projects > TimeSheet4dotProject > ts4dp/timesheet/getPerformance.php
<?php
require_once('session.php');
require_once('global4app.php');
if ($_SESSION['uid'] == "")
{
	echo '<html><head><meta http-equiv="refresh" content="5; URL=index.php"></head><body>';
	echo '<center>Fatal Error. You haven\'t logged in properly<br/><a href=index.php>'.'Click Here To exit and login again </a> (forwarded in 5 sec.)</center></body></html>';
	exit();
}
$performanceSQL = 'select sum(task_log_hours) as task_log_hours from task_log where task_log_creator in ('.$_REQUEST['ids'].') and task_log_date >= \''.$_REQUEST['date1'].'\' and task_log_date <= \''.$_REQUEST['date2'].'\'';
//print $performanceSQL;
print '0';
$result = db_loadList($performanceSQL);
foreach($result as $row)
{
	print $row['task_log_hours'];
}
?>

Return current item: TimeSheet4dotProject