Blame view

templates_c/%%AE^AE1^AE137CE8%%statics2.tpl.php 4.44 KB
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  <?php /* Smarty version 2.6.16, created on 2015-07-24 14:12:45
           compiled from statics2.tpl */ ?>
  <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'statics2.tpl', 3, false),array('modifier', 'escape', 'statics2.tpl', 29, false),array('modifier', 'nl2br', 'statics2.tpl', 31, false),)), $this); ?>
  	<?php if ($this->_tpl_vars['book']['id'] > 0): ?>
  	<h1><?php echo $this->_tpl_vars['book']['title']; ?>
  </h1>
  	<?php echo ((is_array($_tmp=$this->_tpl_vars['book']['answer'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  
  	<?php else: ?>
  	
  	<ul class="list mrt" id="list1">
  		<li id="tab31"><span class="l"></span><a href="#etab31">Îïëàòà</a><span class="r"></span></li>
  		<li id="tab32"><span class="l"></span><a href="#etab32">Äîñòàâêà </a><span class="r"></span></li>
  		<li id="tab33"><span class="l"></span><a href="#etab33">Ãàðàíòèÿ </a><span class="r"></span></li>
  		<li id="tab34"><span class="l"></span><a href="#etab34">×àñòî çàäàâàåìûå âîïðîñû</a><span class="r"></span></li>
  	</ul> 
  	
  	<div class="tab_container">
  		<div id="etab31" class="tab_content">	
  <?php echo ((is_array($_tmp=$this->_tpl_vars['statics_41']['text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  
  		</div>
  		
  		<div id="etab32" class="tab_content">	
  <?php echo ((is_array($_tmp=$this->_tpl_vars['statics_42']['text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  
  		</div>
  
  		<div id="etab33" class="tab_content">	
  <?php echo ((is_array($_tmp=$this->_tpl_vars['statics_43']['text'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  
  		</div>		
  		
  		<div id="etab34" class="tab_content">
  <?php unset($this->_sections['i']);
  $this->_sections['i']['name'] = 'i';
  $this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['books']['4']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['i']['show'] = true;
  $this->_sections['i']['max'] = $this->_sections['i']['loop'];
  $this->_sections['i']['step'] = 1;
  $this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
  if ($this->_sections['i']['show']) {
      $this->_sections['i']['total'] = $this->_sections['i']['loop'];
      if ($this->_sections['i']['total'] == 0)
          $this->_sections['i']['show'] = false;
  } else
      $this->_sections['i']['total'] = 0;
  if ($this->_sections['i']['show']):
  
              for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                   $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                   $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
  $this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
  $this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
  $this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
  $this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
  $this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
  ?>
        <div class="block_info_item2">
         <p><a href="#answer-<?php echo $this->_tpl_vars['books']['4'][$this->_sections['i']['index']]['id']; ?>
  "><strong><?php echo ((is_array($_tmp=$this->_tpl_vars['books']['4'][$this->_sections['i']['index']]['question'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
  </strong></a></p>
  	   	   <p class="answer" id="answer-<?php echo $this->_tpl_vars['books']['4'][$this->_sections['i']['index']]['id']; ?>
  "><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['books']['4'][$this->_sections['i']['index']]['answer'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
  </a>
        </div>
  <?php endfor; endif; ?>
  		</div>
  	</div><div class="both"></div>	
  
  <?php echo '
  <script type="text/javascript">
   $(\'.answer\').hide();
   $(".block_info_item2 a").click(function() {
  	$(\'.answer\').hide();
  	href = $(this).attr("href");
  	$(href).fadeIn();
  	return false;
   });
  </script>
  '; ?>
  
  	
  	<?php endif; ?>