source: extensions/Autosize/template/autosize.tpl @ 12527

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

[extensions] Autosize fix buggs

File size: 4.3 KB
Line 
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 cookie_width='{$COOKIE_WIDTH }';
14    var cookie_height = '{ $COOKIE_HEIGHT }';
15
16
17    var marge_basse='{ $MARGE_BASSE }';
18    var echelle_max='{ $ECHELLE_MAX }';
19    var mini_width='{ $MINI_WIDTH   }';
20    var mini_height = '{ $MINI_HEIGHT   }';
21    var mini_width2 = '{ $MINI_WIDTH2 }';
22    var mini_height2 = '{ $MINI_HEIGHT2 }';
23
24    var webmaster_width='{$webmaster_width   }';
25    var webmaster_height = '{ $webmaster_height   }';
26    var webmaster_enabled = '{ $webmaster_enabled   }';
27
28    var admin_width='{ $admin_width   }';
29    var admin_height = '{ $admin_height   }';
30    var admin_enabled = '{ $admin_enabled   }';
31
32    var generic_width='{ $generic_width   }';
33    var generic_height = '{ $generic_height   }';
34    var generic_enabled = '{ $generic_enabled   }';
35
36    var guest_width='{ $guest_width   }';
37    var guest_height = '{$guest_height}';
38    var guest_enabled = '{ $guest_enabled   }';
39
40    var normal_width='{$normal_width}';
41    var normal_height = '{$normal_height}';
42    var normal_enabled = '{ $normal_enabled   }';
43
44    var user_status='{$user_status}';
45   
46    var check_auto_w = '{$check_auto_w}';
47     
48    var check_desc_v = ('{$check_desc_v}' == 'checked="checked"') ? true : false;
49 </script>
50
51<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
52 <!--  << autosize/template/autosize.tpl   -->
53
54<script type="text/javascript">
55       var visible = '{$visible}';
56   </script>
57{if $DEBUG_autosize == "true"}
58  {assign var="visible" value="block"}
59<!---  autosize/template/autosize.tpl  body --->
60<style type="text/css">
61    {literal}
62.debug {
63    display: inline-block;
64    width: 12px;
65    height:12px;
66    background-color: black;
67    margin: 2px;
68}
69
70.debugOn {
71    background-color: yellow;
72    border: solid 1px black;
73}
74
75.jssource {font-size:.8em;color:#000; }
76pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;}
77pre em {color:#009;}
78pre b {color:#900;}
79pre strong {color:#099;}
80pre i,
81pre i *{color:#090;}
82
83</style>
84
85
86<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>
87<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>
88<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>
89<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>
90<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>
91<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>
92 <div id="Debug6"  align=center style="display:none"></div>
93
94
95<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
96<div class="debug"></div>
97</div>
98    {/literal}
99    {else}
100  {assign var="visible" value="none"}
101  {/if}
102
103  {/html_head}
104  <!--  << autosize/template/autosize.tpl body  -->
105
106
107<div style="display:none">
108<form action='' method='post' name='form_autosize_picture' id='form_autosize_picture'  type='submit'  >
109<input id='ret_autosize' name='ret_autosize' type='hidden' value='' />
110<input id='src_img_h' name='src_img_h' type='hidden' value='' />
111<input id='src_img_w' name='src_img_w'  type='hidden' value='' />
112<input id='window_height' name='window_height' type='hidden' value='' />
113<input id='window_width'  name='window_width' type='hidden' value='' />
114<input id='zoom'  name='zoom' type='hidden' value='' />
115</form ></div>
Note: See TracBrowser for help on using the repository browser.