source: extensions/GMaps/admin/gmaps_config.tpl @ 7309

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

some files forgotten on the previous commit

  • Property svn:executable set to *
File size: 1.7 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<h2>{'gmaps_config'|@translate}</h2>
5
6{literal}
7<script type='text/javascript'>
8
9  function configManager()
10  {
11    this.init = function ()
12    {
13      $("#iBDPopupAutomaticSizeSlider").slider(
14        {
15          min:50,
16          max:95,
17          step:1,
18          value:{/literal}{$gmapsConfig.popupAutomaticSize*100}{literal},
19          slide: function(event, ui) { changeSize(ui.value); }
20        });
21      changeSize($("#iBDPopupAutomaticSizeSlider").slider('value'));
22    }
23
24    /**
25     * change the popup ratio
26     * @param value : the ratio
27     */
28    var changeSize = function (value)
29    {
30      $('#iBDPopupAutomaticSizeDisplay').html(value+"% {/literal}{'gmaps_of_window_size'|@translate}{literal}");
31      $('#iBDPopupAutomaticSizeValue').val(value/100);
32    };
33
34    this.submit = function ()
35    {
36      $('#iForm').get(0).submit();
37    }
38
39    this.init();
40  }
41
42</script>
43{/literal}
44
45
46
47<form method="POST" action="" id='iForm'>
48
49
50  <table class="formtable">
51    <tr>
52      <td>{'gmaps_popup_automatic_size'|@translate}</td>
53      <td>
54        <input type="hidden" id="iBDPopupAutomaticSizeValue" name='fBDPopupAutomaticSize' value="">
55        <div id="iBDPopupAutomaticSizeSlider" class="gcBgInput gcBorderInput"></div>
56      </td>
57      <td>
58        <div id="iBDPopupAutomaticSizeDisplay"></div>
59      </td>
60    </tr>
61  </table>
62
63
64  <div class='cfgBloc'>
65    <input type="button" onclick="cm.submit();" value="{'gmaps_apply'|@translate}">
66  </div>
67
68</form>
69
70
71{literal}
72<script type="text/javascript">
73  var cm=new configManager();
74</script>
75{/literal}
Note: See TracBrowser for help on using the repository browser.