source: trunk/admin/themes/default/template/include/datepicker.inc.tpl @ 5200

Last change on this file since 5200 was 5200, checked in by rvelices, 14 years ago
  • added a js confirmation before deletign a theme
  • fix link to css
  • simplified language loading (a couple of years ago during utf8 migration I left the possibility to have languages defined in another charsets - this is useless)
  • Property svn:eol-style set to LF
File size: 1.2 KB
Line 
1
2{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
3{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
4{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.datepicker.packed.js"}
5{known_script id="datepicker.js" src=$ROOT_URL|@cat:"themes/default/js/datepicker.js"}
6
7{assign var="datepicker_language" value="themes/default/js/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
8
9{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
10{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:$datepicker_language}
11{/if}
12
13{html_head}
14<link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/js/ui/theme/ui.datepicker.css">
15{/html_head}
16
17<script type="text/javascript">
18function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date)
19{ldelim}
20  return pwg_common_initialization_datepicker(
21    "{$ROOT_URL}{$themeconf.admin_icon_dir}/datepicker.png",
22    day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date);
23}
24</script>
Note: See TracBrowser for help on using the repository browser.