1 | {html_style} |
---|
2 | .option{ldelim}width:48%; display:inline-block} |
---|
3 | {/html_style} |
---|
4 | |
---|
5 | {combine_script id='slider' load='footer' require='jquery' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'} |
---|
6 | {combine_script id='button' load='footer' require='jquery' path='themes/default/js/ui/minified/jquery.ui.button.min.js'} |
---|
7 | {combine_css path="themes/Slim/admin/jquery.ui.button.custom.css" order=-10} |
---|
8 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css" order=-10} |
---|
9 | |
---|
10 | {footer_script}{literal} |
---|
11 | (function($) { |
---|
12 | $(document).ready(function(){ |
---|
13 | $('#opt').buttonset(); |
---|
14 | $('#col_opt').buttonset(); |
---|
15 | }); |
---|
16 | |
---|
17 | $(function() { |
---|
18 | $('#slider-range-max').slider({ |
---|
19 | range: "max", |
---|
20 | min: 1, |
---|
21 | max: 20, |
---|
22 | value: {/literal}{$selected_carousel_speed}{literal}, |
---|
23 | slide: function( event, ui ) { |
---|
24 | $('#carspeed').val( ui.value ); |
---|
25 | } |
---|
26 | }); |
---|
27 | $('#carspeed').val( $('#slider-range-max').slider('value')); |
---|
28 | }); |
---|
29 | })(jQuery); |
---|
30 | {/literal}{/footer_script} |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | <div class="titrePage"> |
---|
35 | <h2>Slim</h2> |
---|
36 | </div> |
---|
37 | |
---|
38 | <form action="" method="post"> |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | <fieldset> |
---|
43 | <legend>{'Slim'|@translate}</legend> |
---|
44 | <div class="opt"> |
---|
45 | <div id="opt" class="option"> |
---|
46 | <div><u>Style</u></div> |
---|
47 | <br> |
---|
48 | <input type="radio" id="radio1" name="style_slim" value="1" {if $selected_style_slim=='1'}checked="checked"{/if}><label for="radio1">Slim</label> |
---|
49 | <input type="radio" id="radio2" name="style_slim" value="2" {if $selected_style_slim=='2'}checked="checked"{/if}><label for="radio2">Slim_L</label> |
---|
50 | <input type="radio" id="radio3" name="style_slim" value="3" {if $selected_style_slim=='3'}checked="checked"{/if}><label for="radio3">Slim_XL</label> |
---|
51 | </div> |
---|
52 | |
---|
53 | <div id="col_opt" class="option"> |
---|
54 | <div><u>Color</u></div> |
---|
55 | <br> |
---|
56 | <input type="radio" id="radio4" name="color_theme" value="1" {if $selected_color_theme=='1'}checked="checked"{/if}><label for="radio4">White</label> |
---|
57 | <input type="radio" id="radio5" name="color_theme" value="2" {if $selected_color_theme=='2'}checked="checked"{/if}><label for="radio5">Black</label> |
---|
58 | <input type="radio" id="radio6" name="color_theme" value="3" {if $selected_color_theme=='3'}checked="checked"{/if}><label for="radio6">Grey</label> |
---|
59 | </div> |
---|
60 | |
---|
61 | <div id="car_speed" class="option" style="margin-top:20px"> |
---|
62 | <div><u>Carousel</u></div> |
---|
63 | <p> |
---|
64 | <label for="carspeed">Carousel speed</label> |
---|
65 | <input type="text" id="carspeed" style="border:0; color:#f6931f; font-weight:bold;" name="carousel_speed" value={$selected_carousel_speed}> |
---|
66 | </p> |
---|
67 | <br> |
---|
68 | <div id="slider-range-max"></div> |
---|
69 | |
---|
70 | </div> |
---|
71 | |
---|
72 | </div> |
---|
73 | </fieldset> |
---|
74 | <p><input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> |
---|
75 | </form> |
---|
76 | |
---|