%%E5^E57^E57CF374%%book.tpl.php 5.54 KB
<?php /* Smarty version 2.6.16, created on 2015-07-20 11:33:24
         compiled from book.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'book.tpl', 12, false),array('modifier', 'escape', 'book.tpl', 13, false),array('modifier', 'nl2br', 'book.tpl', 13, false),array('function', 'mailto', 'book.tpl', 16, false),)), $this); ?>
<div>
<a href="<?php echo @URL; ?>
admin.php?action=question&type=1">îïëàòà</a>,
<a href="<?php echo @URL; ?>
admin.php?action=question&type=2">äîñòàâêà</a>,
<a href="<?php echo @URL; ?>
admin.php?action=question&type=3">ãàðàíòèÿ</a>,
<a href="<?php echo @URL; ?>
admin.php?action=question&type=4">÷àñòî çàäàâàåìûå âîïðîñû</a>
</div><br />
<input type="button" class="submit_green" value="Ñîçäàòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&type=<?php echo $_GET['type']; ?>
&save'">

<br>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['bookData']['data']) ? 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']);
?>
<table cellpadding="4" cellspacing="1" width="100%">
<tr bgcolor="#E9E9E9"><td width="100%"><?php if ($this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['active'] == 1): ?><span style="color:#ED3939">Íå àêòèâíîå</span><?php else: ?><span style="color:#163E93">Àêòèâíîå</span><?php endif; ?> / <b><?php echo $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['title']; ?>
</b></td><td noWrap><?php echo ((is_array($_tmp=$this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['mktime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%Y") : smarty_modifier_date_format($_tmp, "%d/%m/%Y")); ?>
</td></tr>
<tr bgcolor="#F8F8F8" height="80"><td colspan="2" valign="top"><b>Âîïðîñ:</b><br /><i><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['question'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</i></td></tr>

<tr bgcolor="#F8F8F8"><td colspan="2" align="right"><i><b><?php echo $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['name']; ?>
</b></i></td></tr>
<?php if ($this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['email']): ?><tr bgcolor="#F8F8F8"><td colspan="2"><b>E-mail:</b> <?php echo smarty_function_mailto(array('extra' => "style='color:#33593f;'",'address' => $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['email']), $this);?>
</td></tr><?php endif; ?>
<tr bgcolor="#E9F0FF" height="80"><td colspan="2" valign="top"><b>Îòâåò:</b><br /><i><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['answer'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</i></td></tr>
<tr bgcolor="#E9F0FF"><td colspan="2" align="right"><i><b><?php echo $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['name_answer']; ?>
</b></i></td></tr>
<tr bgcolor="#F8F8F8"><td colspan="2">
<input type="button" class="submit_orange" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&type=<?php echo $_GET['type']; ?>
&save&updateID=<?php echo $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['id']; ?>
'" value="Ðåäàêòèðîâàòü èëè îòâåòèòü íà âîïðîñ">
<input type="button" class="submit_red" onClick="del('<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&type=<?php echo $_GET['type']; ?>
&deleteID=<?php echo $this->_tpl_vars['bookData']['data'][$this->_sections['i']['index']]['id']; ?>
')" value="Óäàëèòü">
</td></tr>
</table>
<?php endfor; endif; ?>
<br>
<?php if ($this->_tpl_vars['bookData']['links']): ?>
<div class="pager">
<?php echo $this->_tpl_vars['bookData']['links']; ?>

</div><?php endif; ?>