%%F9^F92^F92FFC1F%%forum.tpl.php
7.82 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
<?php /* Smarty version 2.6.16, created on 2015-09-16 11:17:07
compiled from forum.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'forum.tpl', 37, false),array('modifier', 'truncate', 'forum.tpl', 38, false),array('modifier', 'stripslashes', 'forum.tpl', 38, false),array('modifier', 'escape', 'forum.tpl', 38, false),array('modifier', 'default', 'forum.tpl', 64, false),)), $this); ?>
<?php if (count ( $this->_tpl_vars['topicData']['data'] )): ?>
<table border="0" cellpadding="2" cellspacing="1" width="100%" align="center" bgcolor="#C4BAAA" style="color:#988576;font-weight:bold;">
<tr bgcolor="#FFFFEF">
<td> </td>
<td>Íàçâàíèå</td>
<td>Ïðîñìîòðîâ</td>
<td>Îòâåòîâ</td>
<td>Óäàëèòü</td>
</tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['topicData']['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 bgcolor="#F5F3E1">
<td><img src="img/topic_ar.jpg" align="left" hspace="5" vspace="2"></td>
<td width="100%"><?php echo ((is_array($_tmp=$this->_tpl_vars['topicData']['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")); ?>
<br>
<a href="<?php echo @URL; ?>
admin.php?action=forum&topicID=<?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['id']; ?>
"><u><strong><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 70) : smarty_modifier_truncate($_tmp, 70)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
<strong></u></a>
<?php if ($this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comment_str']): ?>
<div style="border:1px solid #BEBEBE;background:#F1F1F1;padding:2px;"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comment_str'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 140) : smarty_modifier_truncate($_tmp, 140)))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</div>
<?php endif; ?>
</td>
<td align="center"><b><?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['view']; ?>
</b></td><td align="center"><b><?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['comments']; ?>
</b></td>
<td align="center"><?php if ($this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['parent_table'] != 'topic'): ?>Ê íåé ïðèâÿçàíà èíôîðìàöèÿ<br><?php endif; ?><input type="button" class="submit_red" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=forum&deleteID=<?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['id']; ?>
');"><br><input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=forum&save&editID=<?php echo $this->_tpl_vars['topicData']['data'][$this->_sections['i']['index']]['id']; ?>
';"></td>
<?php endfor; endif; ?>
</tr>
</table>
<br><?php if ($this->_tpl_vars['topicData']['links']): ?><div class="pager"><?php echo $this->_tpl_vars['topicData']['links']; ?>
</div><?php endif; ?><br>
<?php endif; ?>
<table style="border: 1px solid #969696;font-family:tahoma;font-size:12px" bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="1" width="100%">
<form method="post" action="<?php echo @URL; ?>
admin.php?action=forum">
<tr bgcolor="#F5F3E1"><td colspan="3" class="bg1"><b>Íîâàÿ òåìà</b></td></tr>
</tr><tr bgcolor="#F5F3E1"><td style="font-family:tahoma;font-size:12px;">Çàãëàâèå:</td><td width="100%"><input class="input_form" size="100" name="title" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topic']['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')); ?>
" type="text"></td></tr>
<tr bgcolor="#F5F3E1"><td valign="top" style="font-family:tahoma;font-size:12px;">Îïèñàíèå:</td><td><textarea name="about" cols="150" class="input_form" rows="15"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['topic']['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>META</b></font></td></tr>
<tr><td><b>title:</b></td><td><input type=text name="meta_title" value="<?php echo $this->_tpl_vars['topic']['meta_title']; ?>
" class="input_form" size="110"></td></tr>
<tr><td><b>description:</b></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['topic']['meta_description']; ?>
" name="meta_description" size="110"></td></tr>
<tr><td><b>keywords:</b></td><td><input type=text class="input_form" value="<?php echo $this->_tpl_vars['topic']['meta_keywords']; ?>
" name="meta_keywords" size="110"></td></tr>
<tr><td><b>about:</b></td><td><textarea name="meta_about" class="input_form" cols="100" rows="10"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@$_POST['meta_about'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['topic']['meta_about']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['topic']['meta_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="#F5F3E1"><td colspan="2" align="center"><center><input type="hidden" name="save_topic"><input type="hidden" name="update_id" value="<?php echo $this->_tpl_vars['topic']['id']; ?>
"><input style="border:1px solid #A79787;background:#d6d6d9;font-family:tahoma;font-size:11px;text-align:center" value="Ñîçäàòü" type="submit" onClick="return topic(this.form)"></center></td></tr>
</form>
</table>