source: extensions/piclens/admin/config.tpl @ 10651

Last change on this file since 10651 was 10611, checked in by Gotcha, 13 years ago

combine_script remplace known_script
bug:2276

File size: 5.9 KB
Line 
1{include file='include/autosize.inc.tpl'}
2
3{combine_script id='jquery.packed' path='themes/default/js/jquery.packed.js'}
4{combine_script id='jquery.cluetip' load='footer' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
5 
6{footer_script require='jquery.cluetip'}{literal}
7jQuery(document).ready(function(){
8  jQuery('.cluetip').cluetip({
9    width: 400,
10    splitTitle: '|'
11  });
12});
13{/literal}{/footer_script}
14
15{html_head}
16
17{footer_script}{literal}
18
19window.onload = load;
20
21function GereControle(Controleur, Controle, Masquer) {
22var objControleur = document.getElementById(Controleur);
23var objControle = document.getElementById(Controle);
24
25        if (Masquer=='1')
26                objControle.style.visibility=(objControleur.checked==true)?'visible':'hidden';
27        else
28                objControle.disabled=(objControleur.checked==true)?false:true;
29        return true;
30}
31
32
33function load()
34{
35 GereControle('PlGallerieActived','PlTypeGallerie', 1);
36}
37
38{/literal}{/footer_script}
39
40{/html_head}
41
42
43<div class="titrePage">
44  <h2>Piclens</h2>
45</div>
46<p>
47{'piclens_admin_title'|@translate}
48</p>
49<form method="post" action="{$PICLENS_F_ACTION}" class="general">
50<fieldset>
51        <legend>{'piclens_cfg_title'|@translate}</legend>
52<TABLE border="0" CELLPADDING="2" ALIGN="LEFT">
53
54        <TR>
55                <TD colspan="2">
56                    01 - <input type="checkbox" name="piclens_active" {$PICLENS_ACTIVATED}/> {'piclens_cfg_piclens_actived'|@translate}
57                    <br/>
58                </TD>
59        </TR>
60        <TR>
61                <TD colspan="2">
62                    02 - <input type="checkbox" name="piclens_recursive" {$PICLENS_RECURSIVE_ACTIVATED}/> {'piclens_cfg_recursiv_actived'|@translate}
63                    <br/>
64                </TD>
65        </TR>
66        <TR>
67                <TD colspan="2">
68                        03 - <input type="checkbox" id="PlGallerieActived" name="piclens_gallerie_active" onclick="GereControle('PlGallerieActived','PlTypeGallerie', 1)" {$PICLENS_GALLERIE_ACTIVATED}/> {'piclens_cfg_root_actived'|@translate}
69                    <label for="piclens_gallerie_type" id="PlType"></label>
70                      <select id="PlTypeGallerie" name="piclens_gallerie_type">
71                                 {foreach from=$PlGallerie item=PlGallerie}
72                                  <option value="{$PlGallerie.ID}" {$PlGallerie.SELECTED}>{$PlGallerie.NAME}</option>
73                                {/foreach}
74                          </select>
75
76                    <br/>
77                </TD>
78        </TR>
79        <TR>
80                <TD colspan="2">
81                    04 - <input type="checkbox" name="piclens_lite_active" {$PICLENS_LITE_ACTIVATED}/> {'piclens_cfg_lite_actived'|@translate}
82                    <br/>
83                </TD>
84        </TR>
85
86        <TR>
87                <TD>
88                    05 - {'piclens_cfg_specials_actived'|@translate}
89                    <br/>
90                </TD>
91                <TD>
92                        <input type="checkbox" name="piclens_favorites_active" {$PICLENS_FAVORITES_ACTIVATED}/> {'piclens_favorites_label'|@translate}
93                    <br/>
94                        <input type="checkbox" name="piclens_mostvisited_active" {$PICLENS_MOSTVISITED_ACTIVATED}/> {'piclens_mostvisited_label'|@translate}
95                    <br/>
96                        <input type="checkbox" name="piclens_bestrated_active" {$PICLENS_BESTRATED_ACTIVATED}/> {'piclens_bestrated_label'|@translate}
97                    <br/>
98                        <input type="checkbox" name="piclens_recentpics_active" {$PICLENS_RECENTPICS_ACTIVATED}/> {'piclens_recentpics_label'|@translate}
99                    <br/>
100                        <input type="checkbox" name="piclens_recentcats_active" {$PICLENS_RECENTCATS_ACTIVATED}/> {'piclens_recentcats_label'|@translate}
101                    <br/>
102                        <input type="checkbox" name="piclens_tags_active" {$PICLENS_TAGS_ACTIVATED}/> {'piclens_tags_label'|@translate}
103                    <br/>
104
105                </TD>
106        </TR>
107       
108        {if $PICLENS_SECUREIMAGE or $PICLENS_EXTENDEDDESC}
109        <TR>
110                <TD colspan="2">
111                        <fieldset>
112                                <legend>{'piclens_cfg_otherplugins_title'|@translate}</legend>
113
114                        <table>
115                        {if $PICLENS_SECUREIMAGE}
116                        <TR>
117                                <TD>
118                                        {'piclens_label_plugins'|@translate|@sprintf:'SecureImage'}
119                                        <br/>
120                                        0A - <input type="checkbox" name="piclens_secureimage" {$PICLENS_SECUREIMAGE_ACTIVATED}/> {'piclens_cfg_plugins_actived'|@translate|@sprintf:'SecureImage'}
121                                </TD>
122                                <td>
123                                        <img class="cluetip" src="{$ICON_INFO}" alt="" title="'SecureImage'|{'piclens_secureimage_detail'|@translate}">
124                                </td>
125                        </TR>
126                        {/if}
127                        {if $PICLENS_EXTENDEDDESC}
128                        <TR>
129                                <TD>
130                                        {'piclens_label_plugins'|@translate|@sprintf:'Extended Description'}
131                                        <br/>
132                                        0B - <input type="checkbox" name="piclens_extendeddesc" {$PICLENS_EXTENDEDDESC_ACTIVATED}/> {'piclens_cfg_plugins_actived'|@translate|@sprintf:'Extended Description'}
133                                </TD>
134                                <td>
135                                        <img class="cluetip" src="{$ICON_INFO}" alt="" title="'Extended Description'|{'piclens_extendeddesc_detail'|@translate}">
136                                </td>
137                        </TR>
138                        {/if}
139                        </table>
140
141                        </fieldset>
142                  </div>
143                </TD>
144        </TR>
145        {/if}                                           
146       
147 
148 </table>
149<br/>
150</fieldset>
151
152<fieldset>
153<legend>{'piclens_recurs_mode_title'|@translate}</legend>
154<TABLE border="0" CELLPADDING="3">
155
156        <tr>
157                <td align="right">{'piclens_recurs_mode_label'|@translate} &nbsp;</td>
158                <td><input type="radio" name="recursive_mode" value="standard" {$standard_CHECKED}>&nbsp;{'piclens_recursive_standard'|@translate}</td>
159                <td><img class="cluetip" src="{$ICON_INFO}" alt="" title="{'piclens_recursive_standard_title'|@translate}|{'piclens_recursive_standard_detail'|@translate}"></td>
160        </tr>
161        <tr>
162                <td align="right"></td>
163                <td><input type="radio" name="recursive_mode" value="specifique" {$specifique_CHECKED}>&nbsp;{'piclens_recursive_specifique'|@translate}</td>
164                <td><img class="cluetip" src="{$ICON_INFO}" alt="" title="{'piclens_recursive_specifique_title'|@translate}|{'piclens_recursive_specifique_detail'|@translate}"></td>
165        </tr>
166        </tr>
167        <tr>
168                <td align="center" colspan="3"></td>
169        </tr>
170        <tr>
171                <td align="center" colspan="3">{'piclens_recurs_mode_rem'|@translate} &nbsp;</td>
172        </tr>
173 </table>
174<br/>
175</fieldset>
176 
177<p><input type="submit" name="submit" value="{'piclens_admin_submit'|@translate}" />
178{if $PICLENS_CFGFILE_PRESENT}
179<input type="submit" name="restore" value="{'piclens_admin_restore'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
180{/if}
181<input type="submit" name="savefile" value="{'piclens_admin_savefile'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
182</p>
183</form>
Note: See TracBrowser for help on using the repository browser.