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

Last change on this file since 10630 was 10630, checked in by grum, 13 years ago

bug:2147 ; Compatibility with Piwigo 2.2

File size: 3.7 KB
Line 
1{combine_script id="jquery.ui" path="themes/default/js/ui/minified/jquery.ui.core.min.js"}
2{combine_script id="jquery.tipTip" path="themes/default/js/plugins/jquery.tipTip.minified.js" }
3
4{literal}
5<script type="text/javascript">
6var tableSize='small';
7
8  function init()
9  {
10    $('.tiptip').tipTip(
11      {
12        'delay' : 0,
13        'fadeIn' : 0,
14        'fadeOut' : 0,
15        'edgeOffset' : 5,
16      }
17    );
18  }
19
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>
69          <td style="min-width:350px;">{$smallTableColor}</td>
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;">&nbsp;</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;">&nbsp;</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>
102          <td style="min-width:350px;">{$largeTableColor}</td>
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;">&nbsp;</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;">&nbsp;</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
138<script type="text/javascript">
139  init();
140</script>
141
Note: See TracBrowser for help on using the repository browser.