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

Last change on this file since 3410 was 3410, checked in by tiico, 15 years ago
File size: 5.9 KB
Line 
1
2{include file='include/autosize.inc.tpl'}
3{known_script id="jquery.dimensions" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.dimensions.packed.js"}
4{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
5<script type="text/javascript">
6jQuery().ready(function(){ldelim}
7  jQuery('.cluetip').cluetip({ldelim}
8    width: 400,
9    splitTitle: '|'
10  });
11});
12</script>
13
14{html_head}
15{literal}
16
17<script type="text/javascript">
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</script>
39
40
41{/literal}
42{/html_head}
43
44
45<div class="titrePage">
46  <h2>Piclens</h2>
47</div>
48<p>
49{'piclens_admin_title'|@translate}
50</p>
51<form method="post" action="{$PICLENS_F_ACTION}" class="general">
52<fieldset>
53        <legend>{'piclens_cfg_title'|@translate}</legend>
54<TABLE border="0" CELLPADDING="2" ALIGN="LEFT">
55
56        <TR>
57                <TD colspan="2">
58                    01 - <input type="checkbox" name="piclens_active" {$PICLENS_ACTIVATED}/> {'piclens_cfg_piclens_actived'|@translate}
59                    <br/>
60                </TD>
61        </TR>
62        <TR>
63                <TD colspan="2">
64                    02 - <input type="checkbox" name="piclens_recursive" {$PICLENS_RECURSIVE_ACTIVATED}/> {'piclens_cfg_recursiv_actived'|@translate}
65                    <br/>
66                </TD>
67        </TR>
68        <TR>
69                <TD colspan="2">
70                        03 - <input type="checkbox" id="PlGallerieActived" name="piclens_gallerie_active" onclick="GereControle('PlGallerieActived','PlTypeGallerie', 1)" {$PICLENS_GALLERIE_ACTIVATED}/> {'piclens_cfg_root_actived'|@translate}
71                    <label for="piclens_gallerie_type" id="PlType"></label>
72                      <select id="PlTypeGallerie" name="piclens_gallerie_type">
73                                 {foreach from=$PlGallerie item=PlGallerie}
74                                  <option value="{$PlGallerie.ID}" {$PlGallerie.SELECTED}>{$PlGallerie.NAME}</option>
75                                {/foreach}
76                          </select>
77
78                    <br/>
79                </TD>
80        </TR>
81        <TR>
82                <TD colspan="2">
83                    04 - <input type="checkbox" name="piclens_lite_active" {$PICLENS_LITE_ACTIVATED}/> {'piclens_cfg_lite_actived'|@translate}
84                    <br/>
85                </TD>
86        </TR>
87
88        <TR>
89                <TD>
90                    05 - {'piclens_cfg_specials_actived'|@translate}
91                    <br/>
92                </TD>
93                <TD>
94                        <input type="checkbox" name="piclens_favorites_active" {$PICLENS_FAVORITES_ACTIVATED}/> {'piclens_favorites_label'|@translate}
95                    <br/>
96                        <input type="checkbox" name="piclens_mostvisited_active" {$PICLENS_MOSTVISITED_ACTIVATED}/> {'piclens_mostvisited_label'|@translate}
97                    <br/>
98                        <input type="checkbox" name="piclens_bestrated_active" {$PICLENS_BESTRATED_ACTIVATED}/> {'piclens_bestrated_label'|@translate}
99                    <br/>
100                        <input type="checkbox" name="piclens_recentpics_active" {$PICLENS_RECENTPICS_ACTIVATED}/> {'piclens_recentpics_label'|@translate}
101                    <br/>
102                        <input type="checkbox" name="piclens_recentcats_active" {$PICLENS_RECENTCATS_ACTIVATED}/> {'piclens_recentcats_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.