[2632] | 1 | |
---|
[2641] | 2 | {include file='include/autosize.inc.tpl'} |
---|
[2632] | 3 | {include file='include/datepicker.inc.tpl'} |
---|
| 4 | |
---|
[5188] | 5 | {known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} |
---|
[5189] | 6 | <script type="text/javascript"> |
---|
| 7 | var tag_boxes_selector = ""; |
---|
| 8 | {foreach from=$elements item=element name=element} |
---|
| 9 | {if $smarty.foreach.element.first} |
---|
| 10 | var prefix = ""; |
---|
| 11 | {else} |
---|
| 12 | prefix = ", "; |
---|
| 13 | {/if} |
---|
| 14 | tag_boxes_selector = tag_boxes_selector + prefix + "#tags-" + {$element.ID}; |
---|
| 15 | {/foreach} |
---|
[5188] | 16 | {literal} |
---|
| 17 | $(document).ready(function() { |
---|
[5189] | 18 | $(tag_boxes_selector).fcbkcomplete({ |
---|
[5188] | 19 | json_url: "admin.php?fckb_tags=1", |
---|
| 20 | cache: false, |
---|
[5198] | 21 | filter_case: false, |
---|
[5188] | 22 | filter_hide: true, |
---|
| 23 | firstselected: true, |
---|
| 24 | filter_selected: true, |
---|
| 25 | maxitems: 10, |
---|
| 26 | newel: true |
---|
| 27 | }); |
---|
| 28 | }); |
---|
| 29 | </script> |
---|
| 30 | {/literal} |
---|
| 31 | |
---|
| 32 | |
---|
[2531] | 33 | <h2>{'Batch management'|@translate}</h2> |
---|
| 34 | |
---|
| 35 | <h3>{$CATEGORIES_NAV}</h3> |
---|
| 36 | |
---|
| 37 | <p style="text-align:center;"> |
---|
| 38 | <a href="{$U_GLOBAL_MODE}">{'global mode'|@translate}</a> |
---|
| 39 | | {'unit mode'|@translate} |
---|
| 40 | </p> |
---|
| 41 | |
---|
| 42 | <form action="{$F_ACTION}" method="POST"> |
---|
| 43 | <fieldset> |
---|
| 44 | <legend>{'Display options'|@translate}</legend> |
---|
| 45 | <p>{'elements per page'|@translate} : |
---|
| 46 | <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> |
---|
| 47 | | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> |
---|
| 48 | | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> |
---|
| 49 | | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> |
---|
| 50 | </p> |
---|
| 51 | |
---|
| 52 | </fieldset> |
---|
| 53 | |
---|
[3182] | 54 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[2531] | 55 | |
---|
| 56 | {if !empty($elements) } |
---|
[3215] | 57 | <div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div> |
---|
[2531] | 58 | {foreach from=$elements item=element} |
---|
| 59 | <fieldset class="elementEdit"> |
---|
| 60 | <legend>{$element.LEGEND}</legend> |
---|
| 61 | |
---|
[3185] | 62 | <a href="{$element.U_EDIT}"><img src="{$element.TN_SRC}" alt="" title="{'Edit all picture informations'|@translate}"></a> |
---|
[2531] | 63 | |
---|
| 64 | <table> |
---|
| 65 | |
---|
| 66 | <tr> |
---|
| 67 | <td><strong>{'Name'|@translate}</strong></td> |
---|
[3185] | 68 | <td><input type="text" class="large" name="name-{$element.ID}" value="{$element.NAME}"></td> |
---|
[2531] | 69 | </tr> |
---|
| 70 | |
---|
| 71 | <tr> |
---|
| 72 | <td><strong>{'Author'|@translate}</strong></td> |
---|
[3185] | 73 | <td><input type="text" class="large" name="author-{$element.ID}" value="{$element.AUTHOR}"></td> |
---|
[2531] | 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr> |
---|
| 77 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
| 78 | <td> |
---|
[3185] | 79 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="unset"> {'unset'|@translate}</label> |
---|
| 80 | <label><input type="radio" name="date_creation_action-{$element.ID}" value="set" id="date_creation_action_set-{$element.ID}"> {'set to'|@translate}</label> |
---|
[2531] | 81 | |
---|
[2680] | 82 | <select id="date_creation_day-{$element.ID}" name="date_creation_day-{$element.ID}"> |
---|
[2531] | 83 | <option value="0">--</option> |
---|
| 84 | {section name=day start=1 loop=32} |
---|
| 85 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 86 | {/section} |
---|
| 87 | </select> |
---|
[2680] | 88 | <select id="date_creation_month-{$element.ID}" name="date_creation_month-{$element.ID}"> |
---|
[2531] | 89 | {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} |
---|
| 90 | </select> |
---|
[2680] | 91 | <input id="date_creation_year-{$element.ID}" |
---|
[2531] | 92 | name="date_creation_year-{$element.ID}" |
---|
| 93 | type="text" |
---|
| 94 | size="4" |
---|
| 95 | maxlength="4" |
---|
[3185] | 96 | value="{$element.DATE_CREATION_YEAR}"> |
---|
| 97 | <input id="date_creation_linked_date-{$element.ID}" name="date_creation_linked_date-{$element.ID}" type="hidden" size="10" disabled="disabled"> |
---|
[2632] | 98 | <script type="text/javascript"> |
---|
[2680] | 99 | pwg_initialization_datepicker("#date_creation_day-{$element.ID}", "#date_creation_month-{$element.ID}", "#date_creation_year-{$element.ID}", "#date_creation_linked_date-{$element.ID}", "#date_creation_action_set-{$element.ID}"); |
---|
[2632] | 100 | </script> |
---|
[2531] | 101 | </td> |
---|
| 102 | </tr> |
---|
| 103 | |
---|
| 104 | <tr> |
---|
| 105 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
[5188] | 106 | <td> |
---|
| 107 | |
---|
[5189] | 108 | <select id="tags-{$element.ID}" name="tags-{$element.ID}"> |
---|
[5188] | 109 | {foreach from=$element.TAGS item=tag} |
---|
| 110 | <option value="{$tag.value}" class="selected">{$tag.caption}</option> |
---|
| 111 | {/foreach} |
---|
| 112 | </select> |
---|
| 113 | |
---|
| 114 | </td> |
---|
[2531] | 115 | </tr> |
---|
| 116 | |
---|
| 117 | <tr> |
---|
| 118 | <td><strong>{'Description'|@translate}</strong></td> |
---|
[3215] | 119 | <td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td> |
---|
[2531] | 120 | </tr> |
---|
| 121 | |
---|
| 122 | </table> |
---|
| 123 | |
---|
| 124 | </fieldset> |
---|
| 125 | {/foreach} |
---|
| 126 | |
---|
| 127 | <p> |
---|
[3185] | 128 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}> |
---|
| 129 | <input class="submit" type="reset" value="{'Reset'|@translate}"> |
---|
[2531] | 130 | </p> |
---|
| 131 | {/if} |
---|
| 132 | |
---|
| 133 | </form> |
---|
| 134 | |
---|
| 135 | <script type="text/javascript">// <![CDATA[ |
---|
| 136 | {literal}$(document).ready(function() { |
---|
| 137 | $(".elementEdit img").fadeTo("slow", 0.6); // Opacity on page load |
---|
| 138 | $(".elementEdit img").hover(function(){ |
---|
| 139 | $(this).fadeTo("slow", 1.0); // Opacity on hover |
---|
| 140 | },function(){ |
---|
| 141 | $(this).fadeTo("slow", 0.6); // Opacity on mouseout |
---|
| 142 | }); |
---|
| 143 | });{/literal} |
---|
| 144 | // ]]> |
---|
[3185] | 145 | </script> |
---|