source: branches/2.2/admin/themes/default/template/batch_manager_unit.tpl @ 10163

Last change on this file since 10163 was 10163, checked in by patdenice, 13 years ago

merge r10162 from trunk to branch 2.2
bug:2251
Bug corrected for batch_manager_unit and picture_modify.

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