%%CB^CB5^CB53A0C5%%article_save.tpl.php
12.8 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
<?php /* Smarty version 2.6.16, created on 2015-07-10 17:10:20
compiled from article_save.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'article_save.tpl', 9, false),array('modifier', 'stripslashes', 'article_save.tpl', 34, false),array('modifier', 'escape', 'article_save.tpl', 34, false),)), $this); ?>
<form action="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save" method="post" enctype="multipart/form-data">
<table class="boxText" cellpadding="2" cellspacing="1" width="100%">
<tbody>
<tr><td><b>velosipedy.extremstyle.ua:</b></td></tr>
<tr><td><input type="checkbox" name="velo" value="1" <?php if ($this->_tpl_vars['article']['velo'] == 1): ?>checked<?php endif; ?> /></td></tr>
<tr>
<td>
<b>Äàòà:</b> <input class="input_form" value="<?php echo ((is_array($_tmp=@$_POST['date'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['date']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['date'])); ?>
" name="date" id="date" style="width: 70px;" type="text">
<img src="<?php echo @URL; ?>
img/calendar.gif" id="frd_trg" style="cursor: pointer;" title="Date selector">
<?php echo '
<script type="text/javascript">
Calendar.setup(
{
inputField : "date", // ID of the input field
ifFormat : "%Y-%m-%d", // the date format
button : "frd_trg"
}
);
</script>
'; ?>
</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['article']['title']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['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" width="150"><b>Çàãëàâèå ukr</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_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['title_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['title_ukr'])))) ? $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_ukr" 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['article']['text']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['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" valign="top"><b>Îïèñàíèå ukr: </b> </td>
</tr>
<tr class="v14">
<td>
<textarea name="text_ukr" cols="90" rows="30"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['text_ukr'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['text_ukr']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['text_ukr'])))) ? $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"><b>Èçîáðàæåíèÿ (jpg,gif,png):</b> </td>
</tr>
<tr class="v14">
<td>
<input class="input_form" value="<?php echo $_POST['pic']; ?>
" name="pic" size="120" type="file">
<br />
<font color="red">Óäàëèòü èçîáðàæåíèÿ</font> - <input type="checkbox" name="delete_pic" value="1">
</td>
</tr>
<tr class="v14">
<td align="left"><b>Ôîí (jpg,gif,png):</b> </td>
</tr>
<tr class="v14">
<td>
<input class="input_form" value="<?php echo $_POST['picbg']; ?>
" name="picbg" size="120" type="file">
<br />
<font color="red">Óäàëèòü èçîáðàæåíèÿ</font> - <input type="checkbox" name="delete_picbg" value="1">
</td>
</tr>
<tr><td>
Ôîí height:
<input type="text" class="input_form" size="10" name="fonheight" value="<?php echo $this->_tpl_vars['article']['fonheight']; ?>
" /></td>
</tr>
<tr class="v14">
<td align="left"><b>Íîìåðà ðóáðèê:</b></td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<div style="overflow: scroll;width:220px;height:400px;">
<div id="check_box"><table cellpadding="4" cellspacing="1" bgcolor="#94887A" width="200">
<?php $this->assign('checkbox_akcii', ((is_array($_tmp=@$_POST['rubrics'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['article']['rubrics_checked']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['rubrics_checked']))); unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['rubrics']) ? 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 bgcolor="#F2FEFA"><td <?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] == 0): ?>style="font-weight:bold;"<?php endif; ?>><?php if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id'] > 0): ?> <?php endif; ?><input type="checkbox" name="rubrics[]" id="ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['parent_id']; ?>
_<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" onClick="check('ch<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
_');" value="<?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id']; ?>
" <?php if (count ( $this->_tpl_vars['checkbox_akcii'] )): unset($this->_sections['r']);
$this->_sections['r']['name'] = 'r';
$this->_sections['r']['loop'] = is_array($_loop=$this->_tpl_vars['checkbox_akcii']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['r']['show'] = true;
$this->_sections['r']['max'] = $this->_sections['r']['loop'];
$this->_sections['r']['step'] = 1;
$this->_sections['r']['start'] = $this->_sections['r']['step'] > 0 ? 0 : $this->_sections['r']['loop']-1;
if ($this->_sections['r']['show']) {
$this->_sections['r']['total'] = $this->_sections['r']['loop'];
if ($this->_sections['r']['total'] == 0)
$this->_sections['r']['show'] = false;
} else
$this->_sections['r']['total'] = 0;
if ($this->_sections['r']['show']):
for ($this->_sections['r']['index'] = $this->_sections['r']['start'], $this->_sections['r']['iteration'] = 1;
$this->_sections['r']['iteration'] <= $this->_sections['r']['total'];
$this->_sections['r']['index'] += $this->_sections['r']['step'], $this->_sections['r']['iteration']++):
$this->_sections['r']['rownum'] = $this->_sections['r']['iteration'];
$this->_sections['r']['index_prev'] = $this->_sections['r']['index'] - $this->_sections['r']['step'];
$this->_sections['r']['index_next'] = $this->_sections['r']['index'] + $this->_sections['r']['step'];
$this->_sections['r']['first'] = ($this->_sections['r']['iteration'] == 1);
$this->_sections['r']['last'] = ($this->_sections['r']['iteration'] == $this->_sections['r']['total']);
if ($this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['checkbox_akcii'][$this->_sections['r']['index']]): ?>checked<?php endif; endfor; endif; else: endif; ?> /><?php echo $this->_tpl_vars['rubrics'][$this->_sections['i']['index']]['name']; ?>
</td></tr>
<?php endfor; endif; ?>
</table></div>
</div>
</td>
</tr>
<tr bgcolor="#959595"><td><font color="#ffffff"><b>META</b></font></td></tr>
<tr><td><b>title:</b></td></tr>
<tr><td><input type=text name="meta_title" value="<?php echo $this->_tpl_vars['article']['meta_title']; ?>
" class="input_form" size="120"></td></tr>
<tr><td><b>title ukr:</b></td></tr>
<tr><td><input type=text name="meta_title_ukr" value="<?php echo $this->_tpl_vars['article']['meta_title_ukr']; ?>
" class="input_form" size="120"></td></tr>
<tr><td><b>description:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_description']; ?>
" name="meta_description" size="120"></td></tr>
<tr><td><b>description ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_description_ukr']; ?>
" name="meta_description_ukr" size="120"></td></tr>
<tr><td><b>keywords:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_keywords']; ?>
" name="meta_keywords" size="120"></td></tr>
<tr><td><b>keywords ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_keywords_ukr']; ?>
" name="meta_keywords_ukr" size="120"></td></tr>
<tr><td><b>about:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_about']; ?>
" name="meta_about" size="120"></td></tr>
<tr><td><b>about ukr:</b></td></tr>
<tr><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['article']['meta_about_ukr']; ?>
" name="meta_about_ukr" size="120"></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['article']['id']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['article']['id'])); ?>
">
<input class="submit_blue" value="Ñîõðàíèòü" type="submit">
</p></td>
</tr>
</tbody></table>
</form>