source: extensions/ColorStat/admin/cstat_install_page.tpl @ 5961

Last change on this file since 5961 was 5961, checked in by grum, 14 years ago

Add plugin files

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