Exemplo n.º 1
0
        echo '<label>Group by:</label>';
        echo html_build_select_box_from_array($groupByDate, 'group_by', $selectedGroupByDate, 1) . '<br />';
        echo '<label>Start: </label>';
        list($timestamp, ) = util_date_to_unixtime($startDate);
        echo html_field_date('start_date', $startDate, false, 10, 10, 'progress_by_user', false) . '&nbsp;<em>' . html_time_ago($timestamp) . '</em><br />';
        echo '<label>End: </label>';
        list($timestamp, ) = util_date_to_unixtime($endDate);
        echo html_field_date('end_date', $endDate, false, 10, 10, 'progress_by_user', false) . '&nbsp;<em>' . html_time_ago($timestamp) . '</em><br />';
        $sel = '';
        if ($relative) {
            $sel = ' checked="checked"';
            $urlParam .= '&relative=true';
        }
        echo '<input type="checkbox" name="relative" value="true" ' . $sel . '/>';
        echo '<label>Relative Y-axis (depend of data set values):</label><br/>';
        echo '<input type="submit" value="' . $GLOBALS['Language']->getText('global', 'btn_submit') . '"/>';
        echo '</form>';
        if ($userId && $startDate && $endDate) {
            echo '<h3>' . $GLOBALS['Language']->getText('plugin_statistics_show_one_user', 'user_detail') . '</h3>';
            $duHtml->getUserDetails($userId);
            $urlParam .= 'start_date=' . $startDate . '&end_date=' . $endDate;
            $urlParam .= '&group_by=' . $selectedGroupByDate;
            $urlParam .= '&user_id=' . $userId;
            $urlParam .= '&graph_type=graph_user';
            echo '<p><img src="disk_usage_graph.php?' . $urlParam . '"  title="Test result" /></p>';
            $duHtml->getUserEvolutionForPeriod($userId, $startDate, $endDate);
        }
        break;
    default:
}
$GLOBALS['HTML']->footer(array());