%%7C^7CC^7CCC85A1%%send_tpl.tpl.php
5.14 KB
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
<?php /* Smarty version 2.6.16, created on 2015-07-14 16:22:00
compiled from send_tpl.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'send_tpl.tpl', 19, false),array('modifier', 'stripslashes', 'send_tpl.tpl', 19, false),array('modifier', 'escape', 'send_tpl.tpl', 19, false),array('modifier', 'strip_tags', 'send_tpl.tpl', 20, false),)), $this); ?>
<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']; ?>
&save'">
<input type="button" class="submit_blue" value="Ñîçäàòü ïèñüìî" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=letter'">
<input type="button" class="submit_orange" value="Íà÷àòü ðàññûëêó" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=start_send'">
<input type="button" class="submit_red" value="Çàêîí÷èòü ðàññûëêó" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=end_send'">
<br>
<div style="margin:20px 0px;padding:5px;border:1px dashed blue;">
Ñòàòèñòèêà: îòïðàâëåíî <?php echo $this->_tpl_vars['user_send_count']; ?>
ïîëüçîâàòåëÿì
</div>
<?php if (count ( $this->_tpl_vars['advicesAllData']['data'] )): ?>
<table cellpadding="2" cellspacing="1" width="100%">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['advicesAllData']['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']);
?>
<tr height="70" valign="top">
<td>
<?php if ($this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['pic']): ?><img id="imgBorder" src="<?php echo @URL; ?>
uploaded/pic/advices/<?php echo $this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['pic']; ?>
" border="0" align="left"><?php endif; ?>
<font color="#C32A2F"><b><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 200) : smarty_modifier_truncate($_tmp, 200)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</b></font>
<br><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['text'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 500) : smarty_modifier_truncate($_tmp, 500)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a>
</tr>
<tr><td>
<input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save&editID=<?php echo $this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['id']; ?>
';">
<input type="button" class="submit_red" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&deleteID=<?php echo $this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['id']; ?>
');">
</td></tr>
<?php endfor; endif; ?>
</table>
<br>
<?php if ($this->_tpl_vars['advicesAllData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['advicesAllData']['links']; ?>
</div><?php endif; endif; ?>