mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
rework data for docsperstatus chart
This commit is contained in:
parent
2b75f838ad
commit
38d054d842
|
@ -33,6 +33,13 @@ if(!empty($_GET['type'])) {
|
|||
$type = $_GET['type'];
|
||||
}
|
||||
$data = $dms->getStatisticalData($type);
|
||||
switch($type) {
|
||||
case 'docsperstatus':
|
||||
foreach($data as &$rec) {
|
||||
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
||||
}
|
||||
break;
|
||||
}
|
||||
//print_r($data);
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolder'=>$rootfolder, 'type'=>$type, 'data'=>$data));
|
||||
|
|
Loading…
Reference in New Issue
Block a user