1 | {combine_script id='jquery.timepicker' require='jquery.ui.datepicker,jquery.ui.slider' load='footer' path=$SCHEDULER_PATH|@cat:"admin/template/jquery-ui-timepicker-addon.js"} |
---|
2 | |
---|
3 | {assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-`$lang_info.code`.js"} |
---|
4 | |
---|
5 | {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} |
---|
6 | {combine_script id="jquery.ui.datepicker-$lang_info.code" load='footer' path=$datepicker_language} |
---|
7 | {/if} |
---|
8 | |
---|
9 | {combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"} |
---|
10 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} |
---|
11 | {combine_css path=$SCHEDULER_PATH|@cat:"admin/template/style.css"} |
---|
12 | |
---|
13 | {footer_script require='jquery.timepicker'}{literal} |
---|
14 | jQuery(document).ready(function() { |
---|
15 | jQuery('#scheduled_for').datetimepicker({ |
---|
16 | minDate: 0, /* we can't schedule in the past */ |
---|
17 | numberOfMonths: 3, |
---|
18 | dateFormat: "yy-mm-dd", |
---|
19 | timeText: '{/literal}{'selection'|@translate|escape:javascript}{literal}', |
---|
20 | hourText: '{/literal}{'Hour'|@translate|escape:javascript}{literal}', |
---|
21 | minuteText: '{/literal}{'Minute'|@translate|escape:javascript}{literal}', |
---|
22 | currentText: '{/literal}{'Now'|@translate|escape:javascript}{literal}', |
---|
23 | closeText: '{/literal}{'Validate'|@translate|escape:javascript}{literal}' |
---|
24 | }); |
---|
25 | }); |
---|
26 | {/literal}{/footer_script} |
---|
27 | |
---|
28 | <style> |
---|
29 | #scheduled_for {ldelim} |
---|
30 | background-image:url({$ROOT_URL}{$themeconf.admin_icon_dir}/datepicker.png); |
---|
31 | background-repeat:no-repeat; |
---|
32 | padding-left:20px; |
---|
33 | cursor:pointer; |
---|
34 | } |
---|
35 | </style> |
---|
36 | |
---|
37 | <h2>{$TITLE} › {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2> |
---|
38 | |
---|
39 | <form action="{$F_ACTION}" method="post" id="catModify"> |
---|
40 | <fieldset> |
---|
41 | <legend>{'Schedule photo'|@translate}</legend> |
---|
42 | |
---|
43 | <table> |
---|
44 | <tr> |
---|
45 | <td id="albumThumbnail"> |
---|
46 | <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> |
---|
47 | </td> |
---|
48 | <td style="vertical-align:top"> |
---|
49 | |
---|
50 | <p> |
---|
51 | <strong>{'Schedule for'|@translate}</strong> |
---|
52 | <br> |
---|
53 | <input type="text" id="scheduled_for" name="scheduled_for" style="width:120px;" value="{$SCHEDULED_FOR}"> |
---|
54 | </p> |
---|
55 | |
---|
56 | <p> |
---|
57 | <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="save_scheduler"> |
---|
58 | </p> |
---|
59 | </td> |
---|
60 | </tr> |
---|
61 | </table> |
---|
62 | </fieldset> |
---|
63 | </form> |
---|