1 | {html_head} |
---|
2 | <script type="text/javascript" src="themes/default/js/ui/minified/jquery.ui.slider.min.js"></script> |
---|
3 | <link rel="stylesheet" href="themes/Slim/admin/theme.css" /> |
---|
4 | |
---|
5 | <style media="screen" type="text/css"> |
---|
6 | {literal} |
---|
7 | H3.ima{ color:#000; font-size:15px;} |
---|
8 | H3.imanoir{ color:#fff; font-size:15px;} |
---|
9 | tr.ton{ margin:10px;} |
---|
10 | td.check{text-align:center;} |
---|
11 | td.imag{text-align:right; width:100px; height:25px; vertical-align:bottom; line-height: 1px;} |
---|
12 | {/literal} |
---|
13 | </style> |
---|
14 | {/html_head} |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | <div class="titrePage"> |
---|
19 | <h2>Slim</h2> |
---|
20 | </div> |
---|
21 | |
---|
22 | <form action="" method="post"> |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | <fieldset> |
---|
27 | <legend>{'Slim Color'|@translate}</legend> |
---|
28 | |
---|
29 | <div id="option"> |
---|
30 | <div class="switcher"> |
---|
31 | <div class="opt"> |
---|
32 | Slim |
---|
33 | </div> |
---|
34 | <div class="opt"> |
---|
35 | Slim_L |
---|
36 | </div> |
---|
37 | <div class="opt"> |
---|
38 | Slim_XL |
---|
39 | </div> |
---|
40 | |
---|
41 | <div> |
---|
42 | <input type="text" class="range min-1 max-3" name="style_slim" value="{$selected_style_slim}" /> |
---|
43 | </div> |
---|
44 | </div> |
---|
45 | |
---|
46 | <div class="switcher"> |
---|
47 | <div class="opt"> |
---|
48 | Whith |
---|
49 | </div> |
---|
50 | <div class="opt"> |
---|
51 | Black |
---|
52 | </div> |
---|
53 | <div class="opt"> |
---|
54 | Grey |
---|
55 | </div> |
---|
56 | |
---|
57 | <div> |
---|
58 | <input type="text" class="range min-1 max-3" name="color_theme" value="{$selected_color_theme}" /> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | |
---|
62 | {footer_script}{literal} |
---|
63 | jQuery(function($){ |
---|
64 | |
---|
65 | $('.range').each(function(){ |
---|
66 | var cls = $(this).attr('class'); |
---|
67 | var matches = cls.split(/([a-zA-Z]+)\-([0-9]+)/g); |
---|
68 | var elem = $(this).parent(); |
---|
69 | var options = {}; |
---|
70 | var input = elem.find('input'); |
---|
71 | elem.append('<div class="uirange"></div>'); |
---|
72 | |
---|
73 | for(i in matches){ |
---|
74 | i = i * 1; |
---|
75 | if(matches[i] == 'min'){ |
---|
76 | options.min = matches[i+1]*1; |
---|
77 | } |
---|
78 | if(matches[i] == 'max'){ |
---|
79 | options.max = matches[i+1]*1; |
---|
80 | } |
---|
81 | } |
---|
82 | |
---|
83 | options.slide = function(event, ui){ |
---|
84 | elem.find('label span').empty().append(ui.value); |
---|
85 | input.val(ui.value); |
---|
86 | } |
---|
87 | options.value = input.val(); |
---|
88 | options.range = 'min'; |
---|
89 | elem.find('.uirange').slider(options); |
---|
90 | |
---|
91 | elem.find('label span').empty().append(input.val()); |
---|
92 | input.hide(); |
---|
93 | }); |
---|
94 | |
---|
95 | }); |
---|
96 | |
---|
97 | {/literal}{/footer_script} |
---|
98 | |
---|
99 | </fieldset> |
---|
100 | <p><input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}> |
---|
101 | </form> |
---|
102 | |
---|