[6107] | 1 | {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} |
---|
| 2 | {known_script id="jquery.tipTip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.tipTip.minified.js" } |
---|
| 3 | |
---|
[5961] | 4 | {literal} |
---|
| 5 | <script type="text/javascript"> |
---|
| 6 | var tableSize='small'; |
---|
| 7 | |
---|
[6107] | 8 | function init() |
---|
| 9 | { |
---|
| 10 | $('.tiptip').tipTip( |
---|
| 11 | { |
---|
| 12 | 'delay' : 0, |
---|
| 13 | 'fadeIn' : 0, |
---|
| 14 | 'fadeOut' : 0, |
---|
| 15 | 'edgeOffset' : 5, |
---|
| 16 | } |
---|
| 17 | ); |
---|
| 18 | } |
---|
| 19 | |
---|
[5961] | 20 | function displayTable(size) |
---|
| 21 | { |
---|
| 22 | if(size=='small') |
---|
| 23 | { |
---|
| 24 | $("#iSmallColorTable").css('display', 'block'); |
---|
| 25 | $("#iLargeColorTable").css('display', 'none'); |
---|
| 26 | } |
---|
| 27 | else |
---|
| 28 | { |
---|
| 29 | $("#iSmallColorTable").css('display', 'none'); |
---|
| 30 | $("#iLargeColorTable").css('display', 'block'); |
---|
| 31 | } |
---|
| 32 | tableSize=size; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | function submitForm() |
---|
| 36 | { |
---|
| 37 | $.ajax( |
---|
| 38 | { |
---|
| 39 | type: "POST", |
---|
| 40 | url: "{/literal}{$urlRequest}{literal}", |
---|
| 41 | async: true, |
---|
| 42 | data: { ajaxfct:"installProcess", tableSize:tableSize }, |
---|
| 43 | success: |
---|
| 44 | function(msg) |
---|
| 45 | { |
---|
| 46 | window.location=document.URL; //just reload the page... |
---|
| 47 | } |
---|
| 48 | } |
---|
| 49 | ); |
---|
| 50 | |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | </script> |
---|
| 54 | {/literal} |
---|
| 55 | |
---|
| 56 | <form id="iSteps" method="post" action="" class="general"> |
---|
| 57 | |
---|
| 58 | <fieldset id="iStep1"> |
---|
| 59 | <legend>{'cstat_step_1'|@translate}</legend> |
---|
| 60 | |
---|
| 61 | <p>{$help.Step1}</p> |
---|
| 62 | |
---|
| 63 | <label><input type="radio" onclick="displayTable('small');" name="f_tablesize" name="iTableSizeSmall" value="small" checked> {'cstat_small_colortable'|@translate}</label><br> |
---|
| 64 | <label><input type="radio" onclick="displayTable('large');" name="f_tablesize" name="iTableSizeLarge" value="large"> {'cstat_large_colortable'|@translate}</label> |
---|
| 65 | |
---|
| 66 | <div id="iSmallColorTable"> |
---|
| 67 | <table> |
---|
| 68 | <tr> |
---|
[6107] | 69 | <td style="min-width:350px;">{$smallTableColor}</td> |
---|
[5961] | 70 | |
---|
| 71 | <td style='padding-left:30px;vertical-align:top;'> |
---|
| 72 | <p>{$help.SmallColorTable}</p> |
---|
| 73 | <br> |
---|
| 74 | <table> |
---|
| 75 | <tr> |
---|
| 76 | <td><img src="./plugins/ColorStat/image/sample1.png"></td> |
---|
| 77 | <td style="width:20px;"> </td> |
---|
| 78 | <td><img src="./plugins/ColorStat/image/sample2.png"></td> |
---|
| 79 | </tr> |
---|
| 80 | |
---|
| 81 | <tr> |
---|
| 82 | <td> |
---|
| 83 | {'cstat_sample_color_associated'|@translate} |
---|
| 84 | {$smallColorList1} |
---|
| 85 | </td> |
---|
| 86 | <td style="width:20px;"> </td> |
---|
| 87 | <td> |
---|
| 88 | {'cstat_sample_color_associated'|@translate} |
---|
| 89 | {$smallColorList2} |
---|
| 90 | </td> |
---|
| 91 | </tr> |
---|
| 92 | </table> |
---|
| 93 | |
---|
| 94 | </td> |
---|
| 95 | </tr> |
---|
| 96 | </table> |
---|
| 97 | </div> |
---|
| 98 | |
---|
| 99 | <div id="iLargeColorTable" style="display:none;"> |
---|
| 100 | <table> |
---|
| 101 | <tr> |
---|
[6107] | 102 | <td style="min-width:350px;">{$largeTableColor}</td> |
---|
[5961] | 103 | |
---|
| 104 | <td style='padding-left:30px;vertical-align:top;'> |
---|
| 105 | <p>{$help.LargeColorTable}</p> |
---|
| 106 | <br> |
---|
| 107 | <table> |
---|
| 108 | <tr> |
---|
| 109 | <td><img src="./plugins/ColorStat/image/sample1.png"></td> |
---|
| 110 | <td style="width:20px;"> </td> |
---|
| 111 | <td><img src="./plugins/ColorStat/image/sample2.png"></td> |
---|
| 112 | </tr> |
---|
| 113 | |
---|
| 114 | <tr> |
---|
| 115 | <td> |
---|
| 116 | {'cstat_sample_color_associated'|@translate} |
---|
| 117 | {$largeColorList1} |
---|
| 118 | </td> |
---|
| 119 | <td style="width:20px;"> </td> |
---|
| 120 | <td> |
---|
| 121 | {'cstat_sample_color_associated'|@translate} |
---|
| 122 | {$largeColorList2} |
---|
| 123 | </td> |
---|
| 124 | </tr> |
---|
| 125 | </table> |
---|
| 126 | |
---|
| 127 | </td> |
---|
| 128 | </tr> |
---|
| 129 | </table> |
---|
| 130 | </div> |
---|
| 131 | |
---|
| 132 | </fieldset> |
---|
| 133 | |
---|
| 134 | <input type="button" onclick='submitForm();' value="{'cstat_validate'|@translate}"> |
---|
| 135 | |
---|
| 136 | </form> |
---|
| 137 | |
---|
[6107] | 138 | <script type="text/javascript"> |
---|
| 139 | init(); |
---|
| 140 | </script> |
---|
[5961] | 141 | |
---|