source: extensions/Autosize/admin/template/admin.tpl @ 27651

Last change on this file since 27651 was 18716, checked in by cljosse, 12 years ago

[extensions] Autosize fix compatibility with 2.4, add option: SelMax / Autosize (default setting)

File size: 9.9 KB
Line 
1
2{include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header.tpl'}
3
4{html_head}
5{literal}
6<style type="text/css">
7.td_autosize {
8  font-weight: bold; 
9  background-color:transparent;
10  border:none;
11  padding-right:10px;
12}
13
14.sizeForUserStatus, .autosizeConfig {
15  margin:0;
16  background:none;
17  z-index:-500;
18}
19
20.autosizeConfig .cluetip {
21  font-weight:bold;
22  padding-right:10px;
23}
24
25.autosizeConfig input[type="text"] {
26  width:50px;
27}
28
29.select {
30  font-weight: bold;
31}
32.noselect {
33  font-weight: normal;
34}
35
36</style>
37{/literal}
38<script type="text/javascript">
39
40var  Autosize_options={ldelim}
41      DEBUG_autosize:'{$DEBUG_autosize}',
42     theme:'{$theme}',
43     src_img : '{$SRC_IMG}',
44     fade_in : '{$fade_in}',
45     cl_visible : "{$cl_visible}" =="true",
46     thumbnail : '{$thumbnail}',
47     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
48     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
49     img_width:'{$IMG_WIDTH }',
50     img_height : '{ $IMG_HEIGHT }',
51     cookie_width:'{$COOKIE_WIDTH }',
52     cookie_height : '{ $COOKIE_HEIGHT }',
53     marge_basse:'{ $MARGE_BASSE }',
54     echelle_max:'{ $ECHELLE_MAX }',
55     mini_width:'{ $MINI_WIDTH   }',
56     mini_height : '{ $MINI_HEIGHT   }',
57     mini_width2 : '{ $MINI_WIDTH2 }',
58     mini_height2 : '{ $MINI_HEIGHT2 }',
59
60     webmaster_type:'{$webmaster_type   }',
61     webmaster_enabled : '{ $webmaster_enabled   }',
62
63     admin_type:'{ $admin_type   }',     
64     admin_enabled : '{ $admin_enabled   }',
65
66     generic_type:'{ $generic_type   }',   
67     generic_enabled : '{ $generic_enabled   }',
68
69     guest_type:'{ $guest_type   }',
70     guest_enabled : '{ $guest_enabled   }',
71
72     normal_type:'{$normal_type}',
73     normal_enabled : '{ $normal_enabled   }',
74
75     user_status:'{$user_status}',   
76 
77     check_desc_v :  '{$check_desc_v}' ,
78     defaut_type:  '{$defaut_type}'
79    } ;
80
81</script>
82 
83
84 
85   
86{/html_head}
87
88{* $Id: autosize admin.tpl  *}
89 <!--- HEAD autosize TPL --->
90
91
92<script type="text/javascript">
93
94{literal}
95jQuery().ready(function(){
96  jQuery('.cluetip').cluetip({
97    width: 300,
98    splitTitle: '|'    ,
99    clickThrough: true
100  });
101 {/literal}
102 {$reload}
103 {if  ($reload==true) }
104document.location.reload(false); // from cache
105 
106 {/if}
107{literal}
108
109   function set_chk() {
110    var n = jQuery("input[name='defaut_type'].chk:checked").length;
111    if (n == 0) {
112      b = "select";
113      a = "noselect";
114    } else {
115      a = "select";
116      b = "noselect";
117    }
118    c = jQuery('input[name = "defaut_type"]').next();
119    jQuery(c).removeClass(a);
120    jQuery(c).next().removeClass(b);
121    jQuery(c).addClass(b);
122    jQuery(c).next().addClass(a);   
123  }
124  jQuery('input.chk ').click(function (i) {
125    set_chk();
126  })
127
128
129  set_chk();
130
131});
132
133</script>
134{/literal}
135<!--============== assign visible =======================-->   
136{assign var="affiche_cde" value="true"}
137{if $affiche_cde == "true"}
138  {assign var="visible" value="block"}
139{else}
140  {assign var="visible" value="none"}
141{/if}
142
143<div class="titrePage">
144                <h2 class="cluetip" title="{'cl_autosize_help'|@translate}|{'cl_autosize_hlp_line6'|@translate}">{'Autosize'|translate} {'version'|translate} {$cl_version}  <img alt="(?)" src="admin/themes/clear/icon/help.png"/></h2>
145</div>
146
147<!--============== !DIV ==={$IMG_WIDTH  }=={$IMG_HEIGHT  }======-->     
148  <form action="" method="post" name="form_autosize" id="form_autosize"    >
149
150    <fieldset>
151        <legend class="cluetip" title="{'cl_autosize_config_title_1'|@translate}|{'cl_autosize_hlp_line1'|@translate}">{'cl_autosize_config_title_1'|@translate}</legend>
152  <table class="sizeForUserStatus">
153        <tr>
154        <td class="td_autosize pluginBox">{'User status'|@translate}</td>
155         <td class="td_autosize pluginBox">{'Photo sizes'|@translate}</td>       
156        </tr>
157        <tr name="webmaster_enabled">
158
159        <td><label><input name="webmaster_enabled" id="webmaster_enabled" type="checkbox"  value ="on" {$webmaster_enabled}  /> {'user_status_webmaster'|@translate}</label></td>
160         <td>
161         {if isset ($webmaster_type)}
162          <select name="webmaster_type">
163              {foreach from=$webmaster_type.OPTIONS item=type_size key=value}
164        <option value="{$value}" {if $value == $webmaster_type.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$type_size}</option>
165              {/foreach}
166        </select>
167        {/if}
168      </td>
169        </tr>
170
171        <tr name="admin_enabled">
172        <td><label><input name="admin_enabled" id="admin_enabled" type="checkbox"  value ="on" {$admin_enabled} /> {'user_status_admin'|@translate}</label></td>
173        <td> {if isset ($admin_type)}
174          <select name="admin_type">
175              {foreach from=$admin_type.OPTIONS item=type_size key=value}
176        <option value="{$value}" {if $value == $admin_type.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$type_size}</option>
177              {/foreach}
178        </select>
179        {/if}
180        </td>
181        </tr>
182
183        <tr name="generic_enabled">
184        <td><label><input name="generic_enabled" id="generic_enabled" type="checkbox"  value ="on" {$generic_enabled} /> {'user_status_generic'|@translate}</label></td>
185        <td>{if isset ($generic_type)}
186          <select name="generic_type">
187              {foreach from=$generic_type.OPTIONS item=type_size key=value}
188        <option value="{$value}" {if $value == $generic_type.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$type_size}</option>
189              {/foreach}
190        </select>
191        {/if}
192        </td>
193         <td ></td>
194        </tr>
195
196        <tr name="guest_enabled">
197        <td><label><input name="guest_enabled" id="guest_enabled" type="checkbox"  value ="on" {$guest_enabled} /> {'user_status_guest'|@translate}</label></td>
198        <td>{if isset ($guest_type)}
199          <select name="guest_type">
200              {foreach from=$guest_type.OPTIONS item=type_size key=value}
201        <option value="{$value}" {if $value == $guest_type.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$type_size}</option>
202              {/foreach}
203        </select>
204        {/if}</td>
205        </tr>
206
207        <tr name="normal_enabled">
208        <td><label><input name="normal_enabled" id="normal_enabled" type="checkbox"  value ="on" {$normal_enabled} /> {'user_status_normal'|@translate}</label></td>
209        <td>{if isset ($normal_type)}
210          <select name="normal_type">
211              {foreach from=$normal_type.OPTIONS item=type_size key=value}
212        <option value="{$value}" {if $value == $normal_type.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$type_size}</option>
213              {/foreach}
214        </select>
215        {/if}</td>
216        </tr>
217  </table>
218
219  </fieldset>
220
221
222   <fieldset>
223        <legend class="cluetip" title="{'cl_autosize_config_title_2'|@translate}|{'cl_autosize_hlp_line2'|@translate}">{'cl_autosize_config_title_2'|@translate}</legend>
224 <table class="autosizeConfig">
225
226    <!--======== Dimensions HL ===================-->   
227    <tr>
228      <td class="cluetip" title="{'cl_autosize_miniheight'|@translate}|{'cl_autosize_hlp_line3'|@translate}" >{'cl_autosize_miniheight'|translate}</td>
229      <td ><input name="mini_height" id="mini_height" type="text"  value ="{$MINI_HEIGHT}" /> px
230      </td>
231    </tr>
232    <tr>
233      <td class="cluetip" title="{'cl_autosize_miniwidth'|translate}|{'cl_autosize_hlp_line3'|@translate}"  > {'cl_autosize_miniwidth'|translate}</td>
234      <td>
235        <input name="mini_width"  id="mini_width" type="text" value =  "{$MINI_WIDTH}" /> px
236      </td>
237    </tr>
238
239    <!--======== Dimensions HL2 ===================--> 
240    <tr>
241      <td class="cluetip" title="{'cl_autosize_miniheight2'|@translate}|{'cl_autosize_hlp_line32'|@translate}" >{'cl_autosize_miniheight2'|translate}</td>
242      <td ><input name="mini_height2" id="Text2" type="text"  value ="{$MINI_HEIGHT2}" /> px
243           </td>
244    </tr>
245    <tr>
246         
247     <td class="cluetip" title="{'cl_autosize_miniwidth2'|translate}|{'cl_autosize_hlp_line32'|@translate}"  > {'cl_autosize_miniwidth2'|translate}</td>
248   <td  >
249    <input name="mini_width2"  id="Text4" type="text" value =  "{$MINI_WIDTH2}" /> px
250       </tr>
251   <!--======== Positions  ===================-->       
252<tr >
253 <td class="cluetip" title="{'cl_autosize_echelle_max'|translate}|{'cl_autosize_hlp_line4'|@translate}" > {'cl_autosize_echelle_max'|translate}</td>
254 <td  >
255 <input name="echelle_max" id="echelle_max"  type="text" value ="{$ECHELLE_MAX}" />
256 </td>
257 
258</tr>
259
260<tr > 
261<td class="cluetip" title="{'cl_autosize_marge_basse'|translate}|{'cl_autosize_hlp_line5'|@translate}" > {'cl_autosize_marge_basse'|translate}</td>
262<td><input name="marge_basse" id="marge_basse" type="text" value ="{$MARGE_BASSE}" /> px</td>
263
264</tr>             
265<tr > 
266<td class="cluetip" title="{'cl_autosize_fade_in'|translate}|{'cl_autosize_hlp_fade_in'|@translate}" > {'cl_autosize_fade_in'|translate}</td>
267<td><input name="fade_in" id="fade_in" type="text" value ="{$fade_in}" /> </td>
268
269</tr>   
270 </table>
271</fieldset>
272
273<fieldset>
274  <legend>{'Options'|@translate}</legend>
275
276  <label>
277    <input type="checkbox" name="check_icon_v" value="on"  {$check_icon_v}  />
278    {'cl_autosize_icon_view'|@translate}
279  </label>
280  <br>
281  <label>
282    <input type="checkbox" name="check_desc_v" value="on"  {$check_desc_v}  />
283    {'cl_autosize_desc_view'|@translate}
284  </label>
285  <br>
286  <label  class="cluetip" title="{'cl_autosize_default_type'|translate}|{'cl_autosize_default_type_hlp'|@translate}">
287    <input type="checkbox" class="chk" name="defaut_type" value="on"  {$defaut_type}  />
288    {'cl_autosize_default_type'|@translate}
289  </label>
290</fieldset>
291
292<p class="formButtons">
293  <input type="submit" name="submit" id="save" value="{'cl_autosize_save'|@translate}">
294</p>
295</form>
Note: See TracBrowser for help on using the repository browser.