function stats_draw_date_range_form
Search API
7.x stats.module | stats_draw_date_range_form($path, $start_date = "", $end_date = "", $additional_form_elements = "") |
6.x stats.module | stats_draw_date_range_form($path, $start_date = "", $end_date = "", |
4.x stats.module | stats_draw_date_range_form($path, $start_date = "", $end_date = "") |
5.x stats.module | stats_draw_date_range_form($path, $start_date = "", $end_date = "") |
Displays the HTML for the date range form used by several reports. $path is what is the form's ACTION sending to.
2 calls to stats_draw_date_range_form()
- stats_report_advisor_use in modules/
stats/ stats.module - This report shows which advisors are using FlightPath most often.
- stats_report_flightpath_use_summary in modules/
stats/ stats.module - This report shows common usages in FlightPath by all users.
File
- modules/
stats/ stats.module, line 687 - This module displays statistics and reports for FlightPath
Code
function stats_draw_date_range_form($path, $start_date = "", $end_date = "") {
$rtn = "";
$rtn .= "<form action='" . fp_url($path) . "' method='GET' >
" . t("Enter dates in the format YYYY-MM-DD (ex: 2012-01-01)") . "
<br>
" . t("Start date:") . " <input type='text' name='start_date' value='$start_date' id='start_date'>
" . t("End date:") . " <input type='text' name='end_date' value='$end_date' id='end_date'>
<input type='submit' value='" . t("Submit") . "'>
</form> <hr>
<script type='text/javascript'>
$(function() {
$('#start_date').datepicker({ dateFormat: 'yy-mm-dd'});
$('#end_date').datepicker({ dateFormat: 'yy-mm-dd'});
});
</script>";
return $rtn;
}