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