source: extensions/ColorStat/admin/cstat_config.tpl @ 6107

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

Plugin is now in a usable state (color analysis is not yet tuned)

File size: 2.4 KB
Line 
1{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
2{known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.slider.packed.js"}
3
4
5{literal}
6<style>
7 .ui-slider {
8    width:600px;
9    height:10px;
10    border-width:1px;
11    border-style:solid;
12    margin-right:5px;
13    padding-right:14px;
14  }
15 .ui-slider-handle {
16    width:12px;
17    height:12px;
18    position:relative;
19    top:-2px;
20    border-width:1px;
21    border-style:solid;
22    display:block;
23  }
24</style>
25<script type="text/javascript">
26
27
28  function init()
29  {
30    formatPct({/literal}{$datas.minPct}{literal});
31    $("#icstat_stat_minPct_slider").slider(
32      {
33        min:0.5,
34        max:60,
35        step:0.25,
36        value:{/literal}{$datas.minPct}{literal},
37        slide: function(event, ui) { formatPct(ui.value); }
38      });
39    $("#icstat_stat_minPct_slider a").addClass('gcBgInput');
40  }
41
42  function formatPct(pct)
43  {
44    $("#icstat_stat_minPct").val(pct);
45    $("#icstat_stat_minPct_display").html(pct.toFixed(2)+"%");
46  }
47</script>
48{/literal}
49
50
51
52<h2>{'cstat_config_plugin'|@translate}</h2>
53
54<form id="iConfig" method="post" action="" class="general">
55
56  <fieldset>
57    <legend>{'cstat_stat_and_search'|@translate}</legend>
58
59    <table class="formtable">
60      <tr>
61        <td colspan="2">{'cstat_percent_min_significant'|@translate}</td>
62      </tr>
63      <tr>
64        <td>
65          <input type="hidden" name="f_stat_minPct" id="icstat_stat_minPct" value="{$datas.minPct}">
66          <div id="icstat_stat_minPct_slider" class="gcBgInput gcBorderInput"></div>
67        </td>
68        <td width="90px">
69          <div id="icstat_stat_minPct_display"></div>
70        </td>
71      </tr>
72    </table>
73
74  </fieldset>
75
76
77  <fieldset>
78    <legend>{'cstat_gallery_integration'|@translate}</legend>
79
80    <label>
81      <input type="checkbox" id='idisplay_gallery_showColorsCBox' onclick="$('#idisplay_gallery_showColors').val(($('#idisplay_gallery_showColorsCBox').get(0).checked=='on')?'y':'n');"  {if $datas.showColors=='y'}checked{/if} >
82      {'cstat_display_colors_on_image'|@translate}
83      <input type="hidden" id='idisplay_gallery_showColors' name='f_display_gallery_showColors' value='{$datas.showColors}'>
84    </label>
85
86  </fieldset>
87
88
89
90  <input type="submit" value="{'cstat_apply'|@translate}" name="submit_save_config" style="margin-left:1em;" >
91
92</form>
93
94
95<script type="text/javascript">
96  init();
97</script>
Note: See TracBrowser for help on using the repository browser.