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

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

parent 22cc9d84
......@@ -150,6 +150,8 @@ class tform {
if(isset($wb_global)) unset($wb_global);
$this->wordbook = $wb;
$this->dateformat = $app->lng('conf_format_dateshort');
return true;
}
......
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domínios';
$wb['top_menu_dashboard'] = 'Início';
$wb['latest_news_txt'] = 'Últimas notícias';
$wb['top_menu_vm'] = 'VM';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Doména';
$wb['top_menu_dashboard'] = 'Nástěnka';
$wb['latest_news_txt'] = 'Nejnovější novinky';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'";
$wb['datepicker_nextText'] = "Vor";
$wb['datepicker_prevText'] = "Zurück";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_dashboard'] = 'Home';
$wb['top_menu_vm'] = 'VServer';
$wb['toolsarea_head_txt'] = 'Tools';
$wb['latest_news_txt'] = 'Latest news';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Dominios';
$wb['top_menu_dashboard'] = 'Inicio';
$wb['latest_news_txt'] = 'Noticias';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['number_format_decimals'] = '2';
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'";
$wb['datepicker_dayNames'] = "'Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Aout', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Suivant";
$wb['datepicker_prevText'] = "Précédent";
?>
......@@ -38,5 +38,10 @@ $wb['top_menu_domain'] = "Domene";
$wb['top_menu_dashboard'] = "Početna";
$wb['toolsarea_head_txt'] = "Postavke";
$wb['latest_news_txt'] = "Vijesti";
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_vm'] = 'VM';
$wb['number_format_decimals'] = '2';
$wb['number_format_dec_point'] = '.';
$wb['number_format_thousands_sep'] = '';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domain';
$wb['top_menu_dashboard'] = 'Beranda';
$wb['latest_news_txt'] = 'Berita terbaru';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domeinen';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Laatste nieuws';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domeny';
$wb['top_menu_dashboard'] = 'Strona główna';
$wb['latest_news_txt'] = 'Ostatnie wiadomości';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
......@@ -39,4 +39,9 @@ $wb['top_menu_domain'] = 'Domains';
$wb['top_menu_dashboard'] = 'Home';
$wb['latest_news_txt'] = 'Latest news';
$wb['top_menu_vm'] = 'VServer';
$wb['datepicker_dayNamesMin'] = "'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'";
$wb['datepicker_dayNames'] = "'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'";
$wb['datepicker_monthNamesShort'] = "'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'";
$wb['datepicker_nextText'] = "Next";
$wb['datepicker_prevText'] = "Prev";
?>
.ui-datepicker-calendar thead tr th {
background-image:none;
background-color:#FFFFFF;
color:#000000;
}
\ No newline at end of file
......@@ -53,8 +53,11 @@
.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 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">
......
......@@ -54,8 +54,11 @@
.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 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">
......
......@@ -54,6 +54,8 @@
.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 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>
......
......@@ -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
Markdown is supported
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