From: Florian G. <re...@us...> - 2007-06-12 15:11:14
|
Update of /cvsroot/perfparse/_perfparse-phpgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1174/phpgui Modified Files: perfparse.php Log Message: make raw_plugin report work with new db schema Index: perfparse.php =================================================================== RCS file: /cvsroot/perfparse/_perfparse-phpgui/perfparse.php,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** perfparse.php 6 Jun 2007 13:08:31 -0000 1.48 --- perfparse.php 12 Jun 2007 15:11:09 -0000 1.49 *************** *** 401,406 **** } // get data to display in table ! $raw_hist=get_raw_history($db,$service_id,$from,$to,$type); // echo "<pre>";print_r($raw_hist);echo "</pre>"; $smarty->assign_by_ref('raw_hist',$raw_hist); --- 401,414 ---- } + // unix timestamps + // todo: check for input errors + // todo: better input format for user interface + $ifrom=strtotime($from); + $ito=strtotime($to); + $smarty->assign('ifrom',$ifrom); + $smarty->assign('ito',$ito); + // get data to display in table ! $raw_hist=get_raw_history($db,$service_id,$ifrom,$ito,$type); // echo "<pre>";print_r($raw_hist);echo "</pre>"; $smarty->assign_by_ref('raw_hist',$raw_hist); |