diff options
author | Charlie Marshall <charlie0440@gmail.com> | 2013-08-11 17:08:24 +0100 |
---|---|---|
committer | Charlie Marshall <charlie0440@gmail.com> | 2013-08-11 17:08:24 +0100 |
commit | 12c2ec2e68f45fd4358fdb163b69e79083ca8dbc (patch) | |
tree | 6933a90f015f541155197c06f3fb1ff4112be821 /usr/local/www/system_usermanager.php | |
parent | a9e4412797c5f8caeb6c7579279b2ecc7d5bfe96 (diff) | |
download | pfsense-12c2ec2e68f45fd4358fdb163b69e79083ca8dbc.zip pfsense-12c2ec2e68f45fd4358fdb163b69e79083ca8dbc.tar.gz |
improve datePicker on usermanger page
Diffstat (limited to 'usr/local/www/system_usermanager.php')
-rw-r--r-- | usr/local/www/system_usermanager.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 4d486a2..f035570 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -346,14 +346,18 @@ if ($_POST) { include("head.inc"); ?> +<link rel="stylesheet" type="text/css" href="/javascript/jquery-ui-timepicker-addon/css/jquery-ui-timepicker-addon.css" /> +<link rel="stylesheet" type="text/css" href="/javascript/jquery/jquery-ui.custom.css" /> + +<script> + jQuery(function() { + jQuery( "#expires" ).datepicker( { dateFormat: 'mm/dd/yy', changeYear: true, yearRange: "+0:2099" } ); + }); +</script> + <body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>"> <?php include("fbegin.inc"); ?> -<!-- -//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com -//Script featured on JavaScript Kit (http://www.javascriptkit.com) -//For this script, visit http://www.javascriptkit.com -// --> -<script type="text/javascript" src="javascript/datetimepicker.js"></script> + <script type="text/javascript"> //<![CDATA[ @@ -499,9 +503,6 @@ function sshkeyClicked(obj) { <td width="22%" valign="top" class="vncell"><?=gettext("Expiration date"); ?></td> <td width="78%" class="vtable"> <input name="expires" type="text" class="formfld unknown" id="expires" size="10" value="<?=htmlspecialchars($pconfig['expires']);?>" /> - <a href="javascript:NewCal('expires','mmddyyyy')"> - <img src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_cal.gif" width="16" height="16" border="0" alt="<?=gettext("Pick a date");?>" /> - </a> <br/> <span class="vexpl"><?=gettext("Leave blank if the account shouldn't expire, otherwise enter the expiration date in the following format: mm/dd/yyyy"); ?></span></td> </tr> @@ -870,4 +871,5 @@ function sshkeyClicked(obj) { </table> <?php include("fend.inc");?> </body> -</html>
\ No newline at end of file +</html> + |