%%AE^AE1^AE137CE8%%statics2.tpl.php 4.44 KB
<?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; ?>