source: extensions/Shadogo/trunk/admin/template/shadogo_admin.tpl

Last change on this file was 14986, checked in by binaryworld, 12 years ago

v0.2.0

File size: 9.9 KB
Line 
1<div class="titrePage">
2  <h2>Shadogo Admin</h2>
3</div>
4
5<script type="text/javascript">
6{literal}
7function addEvent( obj, type, fn ) {
8  if ( obj.attachEvent ) {
9    obj['e'+type+fn] = fn;
10    obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
11    obj.attachEvent( 'on'+type, obj[type+fn] );
12  } else
13    obj.addEventListener( type, fn, false );
14}
15
16
17//$(document).ready(function() {
18//window.addEvent('domready', function() {
19addEvent(window, 'load', function() {
20        // hide the erpert parameters
21        $('.expert-param').hide();
22
23        // add the event handlers
24        var libs = window.document.getElementById('modalOverlayLib');
25        var themes = window.document.getElementById('modalOverlayTheme');
26        //libs.addEvent('change', function () {
27        addEvent(libs, 'change', function () {
28                var libName = this.options[this.selectedIndex].value;
29                if (libName) {
30                        var selectedTheme = themes.options[themes.selectedIndex];
31                        // check if the selected theme is defined in the selected lib
32                        if (selectedTheme.parentElement.label != libName) {
33                                // if not, select the first theme defined in the selected lib
34                                for (var i = 0; i < themes.length; i++) {
35                                        if (themes[i].parentElement.label == libName) {
36                                                themes.selectedIndex = i;
37                                                break;
38                                        }
39                                }
40                        }
41                }
42        });
43
44        addEvent(themes, 'change', function () {
45                var libName = this.options[this.selectedIndex].parentElement.label;
46                // check if the selected theme is defined in the selected lib
47                if (libs.options[libs.selectedIndex].value != libName) {
48                        // if not, select the first lib defining the selected theme
49                        for (var i = 0; i < libs.length; i++) {
50                                if (libs.options[i].value == libName) {
51                                        libs.selectedIndex = i;
52                                        break;
53                                }
54                        }
55                }
56        });
57});
58
59
60
61{/literal}
62</script>
63
64<form name="piwishadow_mainform" method="post" action="{$SHADOGO_F_ACTION}" class="general">
65
66<div style="padding-left:1em; margin:2em 0">
67{html_options id=modalOverlayLib name=modalOverlayLib values=$modalOverlayLibs output=$modalOverlayLibs selected=$modalOverlayLibsSelected}
68<label style="margin-left:1em">
69        {'shadogo_overlaylibs'|@translate}
70</label>
71</div>
72
73<div style="padding-left:1em; margin:2em 0">
74{html_options id=modalOverlayTheme name=modalOverlayTheme options=$modalOverlayThemes selected=$modalOverlayThemesSelected}
75<label style="margin-left:1em">
76        {'shadogo_overlaythemes'|@translate}
77</label>
78</div>
79
80<div style="padding-left:1em; margin:2em 0">
81<input type="checkbox" onclick="if (this.checked) $('.expert-param').show(); else $('.expert-param').hide();"/>
82<label style="margin-left:1em">
83        {'shadogo_display_expert_params'|@translate}
84</label>
85</div>
86
87<HR>
88
89<fieldset style="background: transparent url('{$U_SHADOGO}/admin/images/overlay_bottom.jpg') no-repeat scroll 99% center;">
90        <legend>{'shadogo_overlay_config'|@translate}</legend>
91        <ol style="padding: 1em 1em 0 1em; list-style: none">
92        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
93                <label style="float:left; width:25em; margin-right:1em">
94                        {'shadogo_overlay_hdpicture'|@translate}
95                </label>
96                <input type="checkbox" name="hdPicture" value="{$shadogo.hdPicture}" {if $shadogo.hdPicture } CHECKED  {/if} />
97        </li>
98        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
99                <label style="float:left; width:25em; margin-right:1em">
100                        {'shadogo_overlay_download'|@translate}
101                </label>
102                <input type="checkbox" name="downloadPicture" value="{$shadogo.downloadPicture}" {if $shadogo.downloadPicture } CHECKED  {/if} />
103        </li>
104        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
105                <label style="float:left; width:25em; margin-right:1em">
106                        {'shadogo_overlay_addtobasket'|@translate}
107                </label>
108                <input type="checkbox" name="addToBasket" value="{$shadogo.addToBasket}" {if $shadogo.addToBasket } CHECKED  {/if} />
109        </li>
110        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
111                <label style="float:left; width:25em; margin-right:1em">
112                        {'shadogo_overlay_favorites'|@translate}
113                </label>
114                <input type="checkbox" name="favoritePicture" value="{$shadogo.favoritePicture}" {if $shadogo.favoritePicture } CHECKED  {/if} />
115        </li>
116        </ol> 
117</fieldset>
118
119<fieldset>
120        <legend>{'shadogo_mediaplayer_config'|@translate}</legend>
121        <ol style="padding: 1em 1em 0 1em; list-style: none"> 
122        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
123                <label style="float:left; width:25em; margin-right:1em">
124                        {'shadogo_mediaplayer_content'|@translate}
125                </label>
126                <input type="checkbox" name="displayMediaPlayer" value="{$shadogo.displayMediaPlayer}" {if $shadogo.displayMediaPlayer } CHECKED  {/if} />
127        </li>
128        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
129                <label style="float:left; width:25em; margin-right:1em">
130                        {'shadogo_mediafile_pattern'|@translate}
131                </label>
132                <input type="text" name="mediaFilePattern" value='{$shadogo.mediaFilePattern}' size="80" />
133        </li>
134        </ol> 
135</fieldset>
136
137<fieldset>
138        <legend>{'shadogo_hdcontent_config'|@translate}</legend>
139        <ol style="padding: 1em 1em 0 1em; list-style: none"> 
140        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
141                <label style="float:left; width:25em; margin-right:1em">
142                        {'shadogo_hdcontent_inoverlay'|@translate}
143                </label>
144                <input type="checkbox" name="hdPictureInOverlay" value="{$shadogo.hdPictureInOverlay}" {if $shadogo.hdPictureInOverlay } CHECKED  {/if} />
145        </li>
146        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
147                <label style="float:left; width:25em; margin-right:1em">
148                        {'shadogo_hdcontent_pattern'|@translate}
149                </label>
150                <input type="text" name="hdPicturePrefilterPattern" value='{$shadogo.hdPicturePrefilterPattern}' size="80" />
151        </li>
152        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
153                <label style="float:left; width:25em; margin-right:1em">
154                        {'shadogo_hdcontent_replacement'|@translate}
155                </label>
156                <input type="text" name="hdPicturePrefilterReplacement" value='{$shadogo.hdPicturePrefilterReplacement}' size="80" />
157        </li>
158        </ol> 
159</fieldset>
160
161<fieldset>
162        <legend>{'shadogo_slideshow_config'|@translate}</legend>
163        <ol style="padding: 1em 1em 0 1em; list-style: none"> 
164        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
165                <label style="float:left; width:25em; margin-right:1em">
166                        {'shadogo_slideshow_inoverlay'|@translate}
167                </label>
168                <input type="checkbox" name="slideshowInOverlay" value="{$shadogo.slideshowInOverlay}" {if $shadogo.slideshowInOverlay } CHECKED  {/if} />
169        </li>
170        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
171                <label style="float:left; width:25em; margin-right:1em">
172                        {'shadogo_slideshow_pattern'|@translate}
173                </label>
174                <input type="text" name="slideshowPrefilterPattern" value='{$shadogo.slideshowPrefilterPattern}' size="80" />
175        </li>
176        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
177                <label style="float:left; width:25em; margin-right:1em">
178                        {'shadogo_slideshow_replacement'|@translate}
179                </label>
180                <input type="text" name="slideshowPrefilterReplacement" value='{$shadogo.slideshowPrefilterReplacement}' size="80" />
181        </li>
182        </ol> 
183</fieldset>
184
185<fieldset>
186        <legend>{'shadogo_thumbnail_config'|@translate}</legend>
187        <ol style="padding: 1em 1em 0 1em; list-style: none"> 
188        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
189                <label style="float:left; width:25em; margin-right:1em">
190                        {'shadogo_thumbnail_content_inoverlay'|@translate}
191                </label>
192                <input type="checkbox" name="thumbInOverlay" value="{$shadogo.thumbInOverlay}" {if $shadogo.thumbInOverlay } CHECKED  {/if} />
193        </li>
194        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
195                <label style="float:left; width:25em; margin-right:1em">
196                        {'shadogo_thumbnail_player_icon'|@translate}
197                </label>
198                <input type="checkbox" name="thumbMediaPlayerIcon" value="{$shadogo.thumbMediaPlayerIcon}" {if $shadogo.thumbMediaPlayerIcon } CHECKED  {/if} />
199        </li>
200        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
201                <label style="float:left; width:25em; margin-right:1em">
202                        {'shadogo_thumbnail_content_icon'|@translate}
203                </label>
204                <input type="checkbox" name="thumbContentIcon" value="{$shadogo.displayContentIcon}" {if $shadogo.thumbContentIcon } CHECKED  {/if} />
205        </li>
206        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
207                <label style="float:left; width:25em; margin-right:1em">
208                        {'shadogo_thumbnail_label'|@translate}
209                </label>
210                <input type="checkbox" name="thumbContentLabel" value="{$shadogo.thumbContentLabel}" {if $shadogo.thumbContentLabel } CHECKED  {/if} />
211        </li>
212        <li style="float:left; clear:left; width:100%; padding-bottom:1em;">
213                <label style="float:left; width:25em; margin-right:1em">
214                        {'shadogo_thumbnail_contentpage_inoverlay'|@translate}
215                </label>
216                <input type="checkbox" name="thumbContentInOverlay" value="{$shadogo.thumbContentInOverlay}" {if $shadogo.thumbContentInOverlay } CHECKED  {/if} />
217        </li>
218        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
219                <label style="float:left; width:25em; margin-right:1em">
220                        {'shadogo_thumbnail_buttons_search'|@translate}
221                </label>
222                <input type="text" name="thumbButtonsTemplateSearch" value='{$shadogo.thumbButtonsTemplateSearch}' size="80" />
223        </li>
224        <li style="float:left; clear:left; width:100%; padding-bottom:1em;" class="expert-param">
225                <label style="float:left; width:25em; margin-right:1em">
226                        {'shadogo_thumbnail_hrefcontent_search'|@translate}
227                </label>
228                <input type="text" name="thumbHrefContentSearch" value='{$shadogo.thumbHrefContentSearch}' size="80" />
229        </li>
230        </ol>
231</fieldset>
232
233<fieldset style="float:none; width:auto; border:0 none #FFF">
234<input type="submit" value="{'shadogo_save'|@translate}" name="save" />
235<input type="submit" value="{'shadogo_cancel'|@translate}" name="cancel" />
236<input type="submit" value="{'shadogo_restore'|@translate}" name="restore" />
237</fieldset>
238<span id="piwigo_info_register">{'shadogo_note_warm_restore'|@translate}</span>
239</form>
Note: See TracBrowser for help on using the repository browser.