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