Blame view

templates/admin/extra.tpl 1004 Bytes
2b5ed0f2   andryeyev   + extra.tpl
1
2
3
4
5
6
7
8
  {literal} 
  <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
  
  <!-- bootstrap switch -->
  <link href="/bootstrap/switch/css/bootstrap-switch.min.css" rel="stylesheet">
  <script src="/bootstrap/switch/js/bootstrap-switch.min.js"></script>
  
  <!-- Extra -->
a3deb67f   andryeyev   - смена 15 000 00...
9
  <script src="/js/extra.js?cache=false"></script>
2b5ed0f2   andryeyev   + extra.tpl
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  
  <!-- modal -->
  <script src='/js/modalBox/modalBox.js'></script>
  <script src='/js/bpopup/jquery.bpopup.min.js'></script>
  <link  href='/js/bpopup/bpopup.min.css' type='text/css' rel='stylesheet'/>
  {/literal} 
  
  {php}
  
  echo '<div id="Extra">';
  
  	foreach ($this->_tpl_vars['mass']['extra'] as $extra)
  	{ 
  		$status = '';
  
  		if ($extra['status_id'] == 1)
  		{
  			$status = 'checked';
  		}
  
  		echo '<div class="line" id="extra-'.$extra['extra_id'].'">';
  
  			echo '<div class="label">'.$extra['extra_title'].'</div>'; 
  			echo '<div class="button"><input class="switch" type="checkbox" '.$status.'></div>';
  
  		echo '</div>';
  	}
  	
  echo '</div>';
  
  {/php}