source: extensions/see_photos_by_user/admin.tpl @ 32180

Last change on this file since 32180 was 30429, checked in by ddtddt, 10 years ago

[extensions] - see_photos_by_user use new url

File size: 3.6 KB
Line 
1{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'}
2{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
3{combine_script id="farbtastic" load='footer' require="jquery" path=$SPBA_PATH2|@cat:"js/farbtastic/farbtastic.js"}
4{combine_css path=$SPBA_PATH2|@cat:"js/farbtastic/farbtastic.css"}
5
6{footer_script}
7jQuery(function($) {
8// slide
9    $('.range').each(function(){
10        var cls=$(this).attr('class');
11        var elem=$(this).parent();
12        var input=elem.find('input');
13        var options={};
14        elem.append('<div class="uirange"></div>');
15        options.slide=function(event,ui){
16            elem.find('label span').empty().append(ui.value);
17            input.val(ui.value);
18        }
19        options.value=input.val();
20        options.range='min';
21        options.min=$(this).data('min');
22        options.max=$(this).data('max');
23        elem.find('.uirange').slider(options);
24        elem.find('label span').empty().append(input.val());
25        input.hide();
26    });
27   
28// schow option cumulus if option is select
29    $("input[name=insspbu6]:checked").each(function(){
30        if($(this).val()==2){
31            $('.optionseecolor').show();
32        }
33   });
34
35   $("input[name=insspbu6]").change(function(){
36        if($(this).attr("value")==2){
37            $('.optionseecolor').show();
38        }else{
39            $('.optionseecolor').hide();
40        }
41   });
42
43   // init colorpicker
44    $('#colorpicker').farbtastic('#hexval');
45   
46});
47{/footer_script}
48
49{html_style}
50.uirange{
51    margin:10px;
52    margin-left: 40px;
53}
54{/html_style}
55
56<div class="titrePage">
57    <h2>{'See photos by user'|@translate}</h2>
58</div>
59
60<form method="post">
61 <fieldset>
62  <legend>{'Configuration'|translate}</legend>
63    <p class="input" style="width: 700px;">
64        <label for="range"><strong>{'Minimal number photos for show users'|@translate} </strong><span></span></label>
65        <input type="text" name="insspbu1" data-min="0" data-max="1000" class="range" value="{$SPBU1}"/>
66    </p>
67    <p class="input" style="width: 700px;">
68        <label for="range"><strong>{'Maximal number users'|@translate} </strong><span></span></label>
69        <input type="text" name="insspbu2" data-min="10" data-max="1000" class="range" value="{$SPBU2}"/>
70    </p>
71    <p>
72        <strong>{'Users order'|@translate}</strong>
73        {html_options name="insspbu3" values=$spbu output=$spbuT selected="{$SPBU3}"}
74    </p>
75    <p>
76        <strong>{'Show menu'|@translate}</strong>
77        <div style="padding-left: 100px">{html_radios separator="<br />" name="insspbu4" values=$spbu2 output=$spbuT2 selected="{$SPBU4}"}</div>
78    </p>
79    <p>
80        <strong>{'Show home page users'|@translate}</strong><br />
81    <div id="optionsee6" style="padding-left: 100px">{html_radios separator="<br />" style="padding:15px" name="insspbu6" values=$spbu6 output=$spbuT6 selected="{$SPBU6}"}</div>
82    </p>
83    <div class="optionseecolor" style="display: none">
84        <p>
85            <strong>{'Choose a color'|@translate}</strong><br />
86            <span id="colorpicker"></span>
87            <input type="text" id="hexval" readonly title='{'You must use colorpicker'|@translate}' name="insspbu5" value="{$SPBU5}" size="7" maxlength="7">
88        </p>
89        <p class="optionseecolor" style="display: none">
90            <strong>{'Choose a presentation'|@translate}</strong><br />
91            {html_options name="insspbu7" values=$spbu7 output=$spbuT7 selected="{$SPBU7}"}
92        </p>
93    </div>
94    <p>
95        <input class="submit" type="submit" name="submitspbu" value="{'Submit'|@translate}">
96    </p>
97 </fieldset>
98</form>
99   
100
101
Note: See TracBrowser for help on using the repository browser.