51 lines
1.2 KiB
PHP
Executable File
51 lines
1.2 KiB
PHP
Executable File
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
|
<?php
|
|
$clientLang = $this->app->getClientLang();
|
|
if($config->debug)
|
|
{
|
|
css::import($jsRoot . 'jquery/datetimepicker/min.css');
|
|
js::import($jsRoot . 'jquery/datetimepicker/min.js');
|
|
}
|
|
?>
|
|
<script language='javascript'>
|
|
$(function()
|
|
{
|
|
$('.form-datetime').datetimepicker(
|
|
{
|
|
language: '<?php echo $clientLang; ?>',
|
|
weekStart: 1,
|
|
todayBtn: 1,
|
|
autoclose: 1,
|
|
todayHighlight: 1,
|
|
startView: 2,
|
|
forceParse: 0,
|
|
showMeridian: 1,
|
|
format: 'yyyy-mm-dd hh:ii'
|
|
});
|
|
$('.form-date').datetimepicker(
|
|
{
|
|
language: '<?php echo $clientLang; ?>',
|
|
weekStart: 1,
|
|
todayBtn: 1,
|
|
autoclose: 1,
|
|
todayHighlight: 1,
|
|
startView: 2,
|
|
minView: 2,
|
|
forceParse: 0,
|
|
format: 'yyyy-mm-dd'
|
|
});
|
|
$('.form-time').datetimepicker({
|
|
language: '<?php echo $clientLang; ?>',
|
|
weekStart: 1,
|
|
todayBtn: 1,
|
|
autoclose: 1,
|
|
todayHighlight: 1,
|
|
startView: 1,
|
|
minView: 0,
|
|
maxView: 1,
|
|
forceParse: 0,
|
|
format: 'hh:ii'
|
|
});
|
|
});
|
|
</script>
|