source: extensions/see_photos_by_user/admin.tpl @ 30538

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

[extensions] - see_photos_by_user use new url

File size: 3.6 KB
RevLine 
[30429]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"}
[30403]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"}
[30429]5
[30403]6{footer_script}
[30429]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});
[30403]47{/footer_script}
48
[30429]49{html_style}
50.uirange{
51    margin:10px;
52    margin-left: 40px;
53}
54{/html_style}
55
[27391]56<div class="titrePage">
[30403]57    <h2>{'See photos by user'|@translate}</h2>
[27391]58</div>
59
60<form method="post">
[30429]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}"/>
[30403]66    </p>
[30429]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}"/>
[30403]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>
[30415]76        <strong>{'Show menu'|@translate}</strong>
[30429]77        <div style="padding-left: 100px">{html_radios separator="<br />" name="insspbu4" values=$spbu2 output=$spbuT2 selected="{$SPBU4}"}</div>
[30403]78    </p>
79    <p>
[30429]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>
[30415]82    </p>
[30429]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>
[30415]94    <p>
[30403]95        <input class="submit" type="submit" name="submitspbu" value="{'Submit'|@translate}">
96    </p>
[30429]97 </fieldset>
[30403]98</form>
99   
100
101
Note: See TracBrowser for help on using the repository browser.