mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
fixed datepicker for graphs page. we use the most 'correct' date format yyyy-mm-dd.
git-svn-id: http://www.observium.org/svn/observer/trunk@2906 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -61,6 +61,7 @@ if (!$auth)
|
||||
showOn: 'button',
|
||||
buttonImage: 'images/16/date.png',
|
||||
buttonImageOnly: true,
|
||||
dateFormat: 'yy-mm-dd',
|
||||
hourGrid: 4,
|
||||
minuteGrid: 10,
|
||||
onClose: function(dateText, inst) {
|
||||
@@ -88,6 +89,7 @@ if (!$auth)
|
||||
showOn: 'button',
|
||||
buttonImage: 'images/16/date.png',
|
||||
buttonImageOnly: true,
|
||||
dateFormat: 'yy-mm-dd',
|
||||
hourGrid: 4,
|
||||
minuteGrid: 10,
|
||||
maxDate: 0,
|
||||
@@ -138,8 +140,6 @@ if (!$auth)
|
||||
</style>
|
||||
");
|
||||
|
||||
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
$thumb_array = array('sixhour' => '6 Hours', 'day' => '24 Hours', 'twoday' => '48 Hours', 'week' => 'One Week', 'twoweek' => 'Two Weeks',
|
||||
@@ -181,8 +181,8 @@ if (!$auth)
|
||||
");
|
||||
echo("<input type=hidden id='selfaction' value='" . $_SERVER['PHP_SELF'] . "'>");
|
||||
echo("
|
||||
<strong>From:</strong> <input type='text' id='dtpickerfrom' maxlength=16 value='" . date('m/d/Y H:m', $graph_array['from']) . "'>
|
||||
<strong>To:</strong> <input type='text' id='dtpickerto' maxlength=16 value='" . date('m/d/Y H:m', $graph_array['to']) . "'>
|
||||
<strong>From:</strong> <input type='text' id='dtpickerfrom' maxlength=16 value='" . date('Y-m-d H:j', $graph_array['from']) . "'>
|
||||
<strong>To:</strong> <input type='text' id='dtpickerto' maxlength=16 value='" . date('Y-m-d H:j', $graph_array['to']) . "'>
|
||||
<input type='submit' id='submit' value='Update' onclick='javascript:submitCustomRange(this.form);'>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user