Commit b2673ae8 authored by Falko Timme's avatar Falko Timme
Browse files

- Added datepicker widget to the "Virtual Servers" form.

parent 22cc9d84
......@@ -53,9 +53,12 @@
.uniForm .blockLabels .inlineLabel input{ margin-top: -.3em; }
</style>
<![endif]-->
<link href="themes/default/css/screen/redmond/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
<link href="themes/default/css/screen/jquery-ui-custom.css" rel="stylesheet" type="text/css"/>
<link href="themes/default_no_navimg/css/additional.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="/themes/default/images/favicon.ico" />
<script type="text/javascript" src="js/jquery-1.6.3.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/scrigo.js.php"></script>
<script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script>
<script language="JavaScript" type="text/javascript">
......
......@@ -166,6 +166,17 @@ class page_action extends tform_actions {
$app->tpl->setVar("edit_disabled", 0);
}
// Datepicker
$date_format = $app->lng('conf_format_dateshort');
$trans = array("d" => "dd", "m" => "mm", "Y" => "yy");
$date_format = strtr($date_format, $trans);
$app->tpl->setVar("date_format", $date_format);
$app->tpl->setVar("datepicker_dayNamesMin", $app->lng('datepicker_dayNamesMin'));
$app->tpl->setVar("datepicker_dayNames", $app->lng('datepicker_dayNames'));
$app->tpl->setVar("datepicker_monthNamesShort", $app->lng('datepicker_monthNamesShort'));
$app->tpl->setVar("datepicker_nextText", $app->lng('datepicker_nextText'));
$app->tpl->setVar("datepicker_prevText", $app->lng('datepicker_prevText'));
parent::onShowEnd();
}
......
......@@ -102,3 +102,6 @@
</div>
</div>
<script language="JavaScript" type="text/javascript">
jQuery( "#active_until_date" ).datepicker({ dateFormat: '<tmpl_var name='date_format'>', changeMonth: true, changeYear: true, yearRange: '-100:+100', dayNamesMin: [<tmpl_var name='datepicker_dayNamesMin'>], dayNames: [<tmpl_var name='datepicker_dayNames'>], monthNamesShort: [<tmpl_var name='datepicker_monthNamesShort'>], nextText: '<tmpl_var name='datepicker_nextText'>', prevText: '<tmpl_var name='datepicker_prevText'>', firstDay: 1 });
</script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment