[8957] | 1 | {* $Id: autosize/template/autosize.tpl *} |
---|
| 2 | {html_head} <!-- autosize/template/autosize.tpl --> |
---|
[7725] | 3 | <script type="text/javascript"> |
---|
[16931] | 4 | var Autosize_options={ldelim} |
---|
[17503] | 5 | select_type:'{$select_type}', |
---|
| 6 | maxi_img:'{$maxi_img}', |
---|
| 7 | pictureDeriv :'{$pictureDeriv}' , |
---|
| 8 | liste_type:new Array() , |
---|
[16931] | 9 | DEBUG_autosize:'{$DEBUG_autosize}', |
---|
| 10 | theme:'{$theme}', |
---|
| 11 | src_img : '{$SRC_IMG}', |
---|
| 12 | fade_in : '{$fade_in}', |
---|
| 13 | cl_visible : "{$cl_visible}" =="true", |
---|
| 14 | thumbnail : '{$thumbnail}', |
---|
[6953] | 15 | |
---|
[16931] | 16 | scaled_width : '{$SCALED_WIDTH}', // valeur par defaut |
---|
| 17 | scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut |
---|
| 18 | ratio:'{$IMG_WIDTH/$IMG_HEIGHT }' , |
---|
| 19 | img_width:'{$IMG_WIDTH }', |
---|
| 20 | img_height : '{ $IMG_HEIGHT }', |
---|
[12527] | 21 | |
---|
[17503] | 22 | windowWidth:'{$windowWidth }', |
---|
| 23 | windowHeight : '{ $windowHeight}', |
---|
[12527] | 24 | |
---|
[16931] | 25 | marge_basse:'{ $MARGE_BASSE }', |
---|
| 26 | echelle_max:'{ $ECHELLE_MAX }', |
---|
| 27 | mini_width:'{ $MINI_WIDTH }', |
---|
| 28 | mini_height : '{ $MINI_HEIGHT }', |
---|
| 29 | mini_width2 : '{ $MINI_WIDTH2 }', |
---|
| 30 | mini_height2 : '{ $MINI_HEIGHT2 }', |
---|
[7124] | 31 | |
---|
[16931] | 32 | webmaster_type:'{$webmaster_type.SELECTED }', |
---|
| 33 | webmaster_enabled : '{ $webmaster_enabled }', |
---|
[7394] | 34 | |
---|
[16931] | 35 | admin_type : '{ $admin_type.SELECTED }', |
---|
| 36 | admin_enabled : '{ $admin_enabled }', |
---|
[7394] | 37 | |
---|
[16931] | 38 | generic_type:'{ $generic_type.SELECTED }', |
---|
| 39 | generic_enabled : '{ $generic_enabled }', |
---|
[7394] | 40 | |
---|
[16931] | 41 | guest_type:'{ $guest_type.SELECTED }', |
---|
| 42 | guest_enabled : '{ $guest_enabled }', |
---|
[7394] | 43 | |
---|
[16931] | 44 | normal_type:'{$normal_type.SELECTED }', |
---|
| 45 | normal_enabled : '{ $normal_enabled }', |
---|
[7394] | 46 | |
---|
[16931] | 47 | user_status:'{$user_status}', |
---|
| 48 | check_auto_w : '{$check_auto_w}', |
---|
[17503] | 49 | check_desc_v : '{$check_desc_v}' , |
---|
| 50 | Size : new Array() |
---|
[16931] | 51 | } ; |
---|
[17503] | 52 | |
---|
| 53 | |
---|
| 54 | {if not empty($liste_type)} |
---|
| 55 | {foreach from=$liste_type item=cl_size key=value} |
---|
| 56 | Autosize_options.liste_type.push('{$cl_size}' ) |
---|
| 57 | {/foreach} |
---|
| 58 | {/if} |
---|
| 59 | |
---|
[16931] | 60 | |
---|
[17503] | 61 | {if not empty($Size )} |
---|
| 62 | {foreach from=$Size item=cl_size key=value} |
---|
| 63 | Autosize_options.Size.push( {ldelim}'{$value}':{$cl_size}} ) |
---|
| 64 | {/foreach} |
---|
| 65 | {/if} |
---|
| 66 | |
---|
| 67 | |
---|
[8864] | 68 | </script> |
---|
[8957] | 69 | |
---|
[7805] | 70 | <link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" /> |
---|
| 71 | <!-- << autosize/template/autosize.tpl --> |
---|
[8957] | 72 | |
---|
[8057] | 73 | <script type="text/javascript"> |
---|
[8627] | 74 | var visible = '{$visible}'; |
---|
[16931] | 75 | </script> |
---|
| 76 | |
---|
| 77 | {/html_head} |
---|
[10845] | 78 | {if $DEBUG_autosize == "true"} |
---|
[7536] | 79 | {assign var="visible" value="block"} |
---|
[7805] | 80 | <!--- autosize/template/autosize.tpl body ---> |
---|
[7867] | 81 | <style type="text/css"> |
---|
| 82 | {literal} |
---|
| 83 | .debug { |
---|
| 84 | display: inline-block; |
---|
[12527] | 85 | width: 12px; |
---|
| 86 | height:12px; |
---|
[7867] | 87 | background-color: black; |
---|
| 88 | margin: 2px; |
---|
| 89 | } |
---|
[12527] | 90 | |
---|
[7867] | 91 | .debugOn { |
---|
| 92 | background-color: yellow; |
---|
| 93 | border: solid 1px black; |
---|
| 94 | } |
---|
| 95 | |
---|
| 96 | .jssource {font-size:.8em;color:#000; } |
---|
| 97 | pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;} |
---|
| 98 | pre em {color:#009;} |
---|
| 99 | pre b {color:#900;} |
---|
| 100 | pre strong {color:#099;} |
---|
| 101 | pre i, |
---|
| 102 | pre i *{color:#090;} |
---|
| 103 | |
---|
| 104 | </style> |
---|
[17192] | 105 | <div id="Debug0" ></div> |
---|
| 106 | <div id="Debug1" ></div> |
---|
| 107 | <div id="Debug2" ></div> |
---|
| 108 | <div id="Debug3" ></div> |
---|
| 109 | <div id="Debug4" ></div> |
---|
| 110 | <div id="Debug5" ></div> |
---|
[11961] | 111 | <div id="Debug6" align=center style="display:none"></div> |
---|
[7867] | 112 | |
---|
[12527] | 113 | |
---|
| 114 | <div id="debugsContainer"><button id="adddebugs" style="display:none">Add a debug</button> |
---|
| 115 | <div class="debug"></div> |
---|
| 116 | </div> |
---|
[7867] | 117 | {/literal} |
---|
| 118 | {else} |
---|
[8957] | 119 | {assign var="visible" value="none"} |
---|
| 120 | {/if} |
---|
| 121 | |
---|
[16931] | 122 | |
---|
[8729] | 123 | <!-- << autosize/template/autosize.tpl body --> |
---|
[11961] | 124 | |
---|
| 125 | |
---|
[12527] | 126 | <div style="display:none"> |
---|
| 127 | <form action='' method='post' name='form_autosize_picture' id='form_autosize_picture' type='submit' > |
---|
| 128 | <input id='ret_autosize' name='ret_autosize' type='hidden' value='' /> |
---|
| 129 | <input id='src_img_h' name='src_img_h' type='hidden' value='' /> |
---|
| 130 | <input id='src_img_w' name='src_img_w' type='hidden' value='' /> |
---|
| 131 | <input id='window_height' name='window_height' type='hidden' value='' /> |
---|
| 132 | <input id='window_width' name='window_width' type='hidden' value='' /> |
---|
| 133 | <input id='zoom' name='zoom' type='hidden' value='' /> |
---|
| 134 | </form ></div> |
---|
[17192] | 135 | |
---|
| 136 | <img id='loading' src='{$AUTOSIZE_PATH}images/loading.gif' style='position:absolute;left:50%;top:50%;z-index:10; display:none' /> |
---|