1 | {* $Id: autosize/template/autosize.tpl *} |
---|
2 | {html_head} <!-- autosize/template/autosize.tpl --> |
---|
3 | <script type="text/javascript"> |
---|
4 | var src_img = '{$SRC_IMG}'; |
---|
5 | var fade_in = '{$fade_in}'; |
---|
6 | var cl_visible = "{$cl_visible}" =="true"; |
---|
7 | var thumbnail = '{$thumbnail}'; |
---|
8 | var scaled_width = '{$SCALED_WIDTH}'; // valeur par defaut |
---|
9 | var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut |
---|
10 | var img_width='{$IMG_WIDTH }'; |
---|
11 | var img_height = '{ $IMG_HEIGHT }'; |
---|
12 | |
---|
13 | var marge_basse='{ $MARGE_BASSE }'; |
---|
14 | var echelle_max='{ $ECHELLE_MAX }'; |
---|
15 | var mini_width='{ $MINI_WIDTH }'; |
---|
16 | var mini_height = '{ $MINI_HEIGHT }'; |
---|
17 | var mini_width2 = '{ $MINI_WIDTH2 }'; |
---|
18 | var mini_height2 = '{ $MINI_HEIGHT2 }'; |
---|
19 | |
---|
20 | var webmaster_width='{$webmaster_width }'; |
---|
21 | var webmaster_height = '{ $webmaster_height }'; |
---|
22 | var webmaster_enabled = '{ $webmaster_enabled }'; |
---|
23 | |
---|
24 | var admin_width='{ $admin_width }'; |
---|
25 | var admin_height = '{ $admin_height }'; |
---|
26 | var admin_enabled = '{ $admin_enabled }'; |
---|
27 | |
---|
28 | var generic_width='{ $generic_width }'; |
---|
29 | var generic_height = '{ $generic_height }'; |
---|
30 | var generic_enabled = '{ $generic_enabled }'; |
---|
31 | |
---|
32 | var guest_width='{ $guest_width }'; |
---|
33 | var guest_height = '{$guest_height}'; |
---|
34 | var guest_enabled = '{ $guest_enabled }'; |
---|
35 | |
---|
36 | var normal_width='{$normal_width}'; |
---|
37 | var normal_height = '{$normal_height}'; |
---|
38 | var normal_enabled = '{ $normal_enabled }'; |
---|
39 | |
---|
40 | var user_status='{$user_status}'; |
---|
41 | |
---|
42 | var check_auto_w = '{$check_auto_w}'; |
---|
43 | |
---|
44 | var check_desc_v = ('{$check_desc_v}' == 'checked="checked"') ? true : false; |
---|
45 | </script> |
---|
46 | |
---|
47 | <link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" /> |
---|
48 | <!-- << autosize/template/autosize.tpl --> |
---|
49 | |
---|
50 | <script type="text/javascript"> |
---|
51 | var visible = '{$visible}'; |
---|
52 | </script> |
---|
53 | {if $DEBUG == "true"} |
---|
54 | {assign var="visible" value="block"} |
---|
55 | <!--- autosize/template/autosize.tpl body ---> |
---|
56 | <style type="text/css"> |
---|
57 | {literal} |
---|
58 | .debug { |
---|
59 | display: inline-block; |
---|
60 | width: 45px; |
---|
61 | height: 45px; |
---|
62 | background-color: black; |
---|
63 | margin: 2px; |
---|
64 | } |
---|
65 | .debugOn { |
---|
66 | background-color: yellow; |
---|
67 | border: solid 1px black; |
---|
68 | width: 43px; |
---|
69 | height: 43px; |
---|
70 | } |
---|
71 | |
---|
72 | .jssource {font-size:.8em;color:#000; } |
---|
73 | pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;} |
---|
74 | pre em {color:#009;} |
---|
75 | pre b {color:#900;} |
---|
76 | pre strong {color:#099;} |
---|
77 | pre i, |
---|
78 | pre i *{color:#090;} |
---|
79 | |
---|
80 | </style> |
---|
81 | |
---|
82 | |
---|
83 | <div id="Debug0" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div> |
---|
84 | <div id="Debug1" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div> |
---|
85 | <div id="Debug2" align=center style="color:black;z-index:2000;position:absolute; background-color:yellow; top:0px;left:0px;width:800px;margin:auto;"></div> |
---|
86 | <div id="Debug3" align=center style="color:black;z-index:2000;position:absolute; background-color:blue; top:0px;left:0px;width:800px;margin:auto;"></div> |
---|
87 | <div id="Debug4" align=center style="color:black;z-index:2000;position:absolute; background-color:green; top:0px;left:0px;width:800px;margin:auto;"></div> |
---|
88 | <div id="Debug5" align=center style="color:black;z-index:2000;position:absolute; background-color:red; top:100px;left:0px;width:300px;margin:auto;"></div> |
---|
89 | |
---|
90 | <p><button id="adddebugs">Add a debug</button></p> |
---|
91 | |
---|
92 | <div id="debugsContainer"><div class="debug"></div></div> |
---|
93 | {/literal} |
---|
94 | {else} |
---|
95 | {assign var="visible" value="none"} |
---|
96 | {/if} |
---|
97 | |
---|
98 | {/html_head} |
---|
99 | <!-- << autosize/template/autosize.tpl body --> |
---|