%%B2^B29^B29CD008%%send_letter.tpl.php
13.1 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?php /* Smarty version 2.6.16, created on 2014-10-31 10:58:50
compiled from send_letter.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'send_letter.tpl', 28, false),array('modifier', 'stripslashes', 'send_letter.tpl', 28, false),array('modifier', 'escape', 'send_letter.tpl', 28, false),)), $this); ?>
<h2>Ïèñüìî<h2>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "error.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<form action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=letter&save" method="post" enctype="multipart/form-data">
<table class="boxText" cellpadding="2" cellspacing="1" width="100%">
<tbody>
<tr class="v14">
<td align="left" width="150"><b>Øàáëîí</b> </td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<select name="tpl" onChange="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=letter&tpl='+this.value;">
<option value='0'>Øàáëîí</option>
<?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']);
?>
<option value='<?php echo $this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['id']; ?>
'><?php echo $this->_tpl_vars['advicesAllData']['data'][$this->_sections['i']['index']]['title']; ?>
</option>
<?php endfor; endif; ?>
</select>
</td>
</tr>
<tr class="v14">
<td align="left" width="150"><b>Çàãëàâèå
<font class="red10" color="#ff0000">*</font></b> </td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<input class="input_form" value="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['advices']['title']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['advices']['title'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" size="120" name="title" type="text">
</td>
</tr>
<tr class="v14">
<td align="left" valign="top"><b>Îïèñàíèå: <font class="red10" color="#ff0000">*</font></b> </td>
</tr>
<tr class="v14">
<td>
<textarea name="text" cols="90" rows="30"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['text'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['advices']['text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['advices']['text'])))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea>
</td>
</tr>
<tr class="v14">
<td align="left" width="150"><b>Êóïîí</b> </td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<input value="1" name="cupon" type="checkbox" <?php if ($this->_tpl_vars['advices']['cupon'] == 1): ?>checked<?php endif; ?> />
</td>
</tr>
<tr class="v14">
<td align="left" width="150"><b>Èíòåðåñû</b> </td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['interest']) ? 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']);
?>
<input value="<?php echo $this->_tpl_vars['interest'][$this->_sections['i']['index']]['id']; ?>
" name="interest[]" type="checkbox" <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['advices']['interest']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
$this->_sections['j']['total'] = $this->_sections['j']['loop'];
if ($this->_sections['j']['total'] == 0)
$this->_sections['j']['show'] = false;
} else
$this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):
for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
$this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
$this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first'] = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last'] = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
if ($this->_tpl_vars['advices']['interest'][$this->_sections['j']['index']] == $this->_tpl_vars['interest'][$this->_sections['i']['index']]['id']): ?>checked<?php endif; endfor; endif; ?> /> - <?php echo $this->_tpl_vars['interest'][$this->_sections['i']['index']]['title']; ?>
<br />
<?php endfor; endif; ?>
</td>
</tr>
<tr class="v14">
<td align="left" width="150"><b>Ãðóïïà</b> </td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['group']) ? 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']);
?>
<input value="<?php echo $this->_tpl_vars['group'][$this->_sections['i']['index']]['id']; ?>
" name="group[]" type="checkbox" <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['advices']['group']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['show'] = true;
$this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
$this->_sections['j']['start'] = $this->_sections['j']['step'] > 0 ? 0 : $this->_sections['j']['loop']-1;
if ($this->_sections['j']['show']) {
$this->_sections['j']['total'] = $this->_sections['j']['loop'];
if ($this->_sections['j']['total'] == 0)
$this->_sections['j']['show'] = false;
} else
$this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):
for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
$this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
$this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first'] = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last'] = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
if ($this->_tpl_vars['advices']['group'][$this->_sections['j']['index']] == $this->_tpl_vars['group'][$this->_sections['i']['index']]['id']): ?>checked<?php endif; endfor; endif; ?> /> - <?php echo $this->_tpl_vars['group'][$this->_sections['i']['index']]['name']; ?>
<br />
<?php endfor; endif; ?>
</td>
</tr>
<tr class="v14">
<td align="center"><p>
</p><p>
<input name="save" type="hidden">
<input name="update_id" type="hidden" value="<?php echo ((is_array($_tmp=@$_POST['update_id'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['advices']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['advices']['id'])); ?>
">
<input class="submit_blue" value="Ñîõðàíèòü" type="submit">
</p></td>
</tr>
</tbody></table>
</form>