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
RevLine 
[8957]1 {* $Id: autosize/template/autosize.tpl  *}
2{html_head} <!-- autosize/template/autosize.tpl  -->
[7725]3 <script type="text/javascript">
[8864]4    var src_img = '{$SRC_IMG}';
[7805]5    var fade_in = '{$fade_in}';
[7536]6    var cl_visible = "{$cl_visible}" =="true";
[7124]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 }';
[6953]12
[12527]13    var cookie_width='{$COOKIE_WIDTH }';
14    var cookie_height = '{ $COOKIE_HEIGHT }';
15
16
[7124]17    var marge_basse='{ $MARGE_BASSE }';
18    var echelle_max='{ $ECHELLE_MAX }';
19    var mini_width='{ $MINI_WIDTH   }';
20    var mini_height = '{ $MINI_HEIGHT   }';
[7962]21    var mini_width2 = '{ $MINI_WIDTH2 }';
22    var mini_height2 = '{ $MINI_HEIGHT2 }';
[7124]23
24    var webmaster_width='{$webmaster_width   }';
[7394]25    var webmaster_height = '{ $webmaster_height   }';
26    var webmaster_enabled = '{ $webmaster_enabled   }';
27
[7124]28    var admin_width='{ $admin_width   }';
[7394]29    var admin_height = '{ $admin_height   }';
30    var admin_enabled = '{ $admin_enabled   }';
31
[7124]32    var generic_width='{ $generic_width   }';
[7394]33    var generic_height = '{ $generic_height   }';
34    var generic_enabled = '{ $generic_enabled   }';
35
[7124]36    var guest_width='{ $guest_width   }';
[7394]37    var guest_height = '{$guest_height}';
38    var guest_enabled = '{ $guest_enabled   }';
39
[7124]40    var normal_width='{$normal_width}';
[7394]41    var normal_height = '{$normal_height}';
42    var normal_enabled = '{ $normal_enabled   }';
43
[7124]44    var user_status='{$user_status}';
[7353]45   
[7124]46    var check_auto_w = '{$check_auto_w}';
[8981]47     
48    var check_desc_v = ('{$check_desc_v}' == 'checked="checked"') ? true : false;
[8864]49 </script>
[8957]50
[7805]51<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
52 <!--  << autosize/template/autosize.tpl   -->
[8957]53
[8057]54<script type="text/javascript">
[8627]55       var visible = '{$visible}';
[8057]56   </script>
[10845]57{if $DEBUG_autosize == "true"}
[7536]58  {assign var="visible" value="block"}
[7805]59<!---  autosize/template/autosize.tpl  body --->
[7867]60<style type="text/css">
61    {literal}
62.debug {
63    display: inline-block;
[12527]64    width: 12px;
65    height:12px;
[7867]66    background-color: black;
67    margin: 2px;
68}
[12527]69
[7867]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
[8957]85
[7867]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>
[11961]92 <div id="Debug6"  align=center style="display:none"></div>
[7867]93
[12527]94
95<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
96<div class="debug"></div>
97</div>
[7867]98    {/literal}
99    {else}
[8957]100  {assign var="visible" value="none"}
101  {/if}
102
103  {/html_head}
[8729]104  <!--  << autosize/template/autosize.tpl body  -->
[11961]105
106
[12527]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.