Commit 2b5ed0f278f524143e46d06e42df8b913444132c
1 parent
1ccf6db7
+ extra.tpl
Showing
1 changed file
with
40 additions
and
0 deletions
Show diff stats
1 | +{literal} | ||
2 | +<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script> | ||
3 | + | ||
4 | +<!-- bootstrap switch --> | ||
5 | +<link href="/bootstrap/switch/css/bootstrap-switch.min.css" rel="stylesheet"> | ||
6 | +<script src="/bootstrap/switch/js/bootstrap-switch.min.js"></script> | ||
7 | + | ||
8 | +<!-- Extra --> | ||
9 | +<script src="/js/extra.js"></script> | ||
10 | + | ||
11 | +<!-- modal --> | ||
12 | +<script src='/js/modalBox/modalBox.js'></script> | ||
13 | +<script src='/js/bpopup/jquery.bpopup.min.js'></script> | ||
14 | +<link href='/js/bpopup/bpopup.min.css' type='text/css' rel='stylesheet'/> | ||
15 | +{/literal} | ||
16 | + | ||
17 | +{php} | ||
18 | + | ||
19 | +echo '<div id="Extra">'; | ||
20 | + | ||
21 | + foreach ($this->_tpl_vars['mass']['extra'] as $extra) | ||
22 | + { | ||
23 | + $status = ''; | ||
24 | + | ||
25 | + if ($extra['status_id'] == 1) | ||
26 | + { | ||
27 | + $status = 'checked'; | ||
28 | + } | ||
29 | + | ||
30 | + echo '<div class="line" id="extra-'.$extra['extra_id'].'">'; | ||
31 | + | ||
32 | + echo '<div class="label">'.$extra['extra_title'].'</div>'; | ||
33 | + echo '<div class="button"><input class="switch" type="checkbox" '.$status.'></div>'; | ||
34 | + | ||
35 | + echo '</div>'; | ||
36 | + } | ||
37 | + | ||
38 | +echo '</div>'; | ||
39 | + | ||
40 | +{/php} | ||
0 | \ No newline at end of file | 41 | \ No newline at end of file |