%%0E^0E9^0E9F0E6A%%rules.tpl.php
7.88 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
<?php /* Smarty version 2.6.16, created on 2011-12-15 16:30:10
compiled from rules.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'str_repeat', 'rules.tpl', 12, false),array('modifier', 'default', 'rules.tpl', 32, false),array('modifier', 'stripslashes', 'rules.tpl', 32, false),array('modifier', 'escape', 'rules.tpl', 32, false),)), $this); ?>
<input type="submit" value="Ñîçäàòü" class="submit_green" onClick="document.location='<?php echo @URL; ?>
admin.php?action=rules'">
<form method="post" action="<?php echo @URL; ?>
admin.php?action=rules">
<?php if ($this->_tpl_vars['rules_one']['id'] > 0): ?>
<input type="hidden" name="update_id" value="<?php echo $this->_tpl_vars['rules_one']['id']; ?>
">
<?php endif; ?>
<table cellpadding="2" cellspacing="0">
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['rules']) ? 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><td>
<?php echo smarty_function_str_repeat(array('value' => " ",'count' => $this->_tpl_vars['rules'][$this->_sections['i']['index']]['_level']), $this);?>
<input type="radio" name="action_id" value="<?php echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['rules'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['rules_one']['parent_id']): ?>checked<?php endif; ?>>
<?php if ($this->_tpl_vars['rules'][$this->_sections['i']['index']]['action']): ?><a href="<?php echo @URL; echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['action']; ?>
.phtml" target="_blank"><?php echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['name']; ?>
</a><?php else: echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['name']; endif; ?> [<?php echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['id']; ?>
] <input type="button" class="submit_red" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=rules&deleteID=<?php echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['id']; ?>
')">
<input type="button" class="submit_orange" value="Ðåäàêòèðîâàòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=rules&updateID=<?php echo $this->_tpl_vars['rules'][$this->_sections['i']['index']]['id']; ?>
'">
</td></tr>
<?php endfor; endif; ?>
</table><br>
<?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);
?>
<br>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr><td><b>Íàçâàíèå:</b></td><td><input type=text class="input_form" name="name" value="<?php echo $this->_tpl_vars['rules_one']['name']; ?>
" size="20"></td></tr>
<tr><td nowrap><b>URL - Íàçâàíèå:</b></td><td><input class="input_form" value="<?php echo $this->_tpl_vars['rules_one']['action']; ?>
" type=text name="url_action" size="20"></td></tr>
<tr bgcolor="#959595"><td colspan="2"><font color="#ffffff"><b>META</b></font></td><td>
<tr><td><b>title:</b></td><td><input type=text name="title" value="<?php echo $this->_tpl_vars['rules_one']['title']; ?>
" class="input_form" size="40"></td></tr>
<tr><td><b>description:</b></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rules_one']['description']; ?>
" name="description" size="60"></td></tr>
<tr><td><b>keywords:</b></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['rules_one']['keywords']; ?>
" name="keywords" size="60"></td></tr>
<tr><td><b>about:</b></td><td><textarea name="about" class="input_form" cols="100" rows="10"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['about'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rules_one']['about']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rules_one']['about'])))) ? $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 bgcolor="#959595"><td colspan="2"><font color="#ffffff"><b>Ñèñòåìà</b></font></td><td>
<tr><td><b>Ìîäóëü:</b></td><td>
<select size="1" name="modul_id" class="input_form">
<option value="0"></option>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['action_modules']) ? 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['action_modules'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['rules_one']['modul_id'] == $this->_tpl_vars['action_modules'][$this->_sections['i']['index']]['id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['action_modules'][$this->_sections['i']['index']]['name']; ?>
</option>
<?php endfor; endif; ?>
</select></td></tr>
<tr><td colspan="2" align="center"><input type="hidden" name="save"><input type="submit" value="Ñîõðàíèòü" class="submit_blue"></td></tr>
</table>
</form>