tpl_4ef0a6fb_page_row__yqBh7cut8eJgsAhTgQFMtg.php
4.42 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
<?php
function tpl_4ef0a6fb_page_row__yqBh7cut8eJgsAhTgQFMtg_page_row(PHPTAL $_thistpl, PHPTAL $tpl) {
$tpl = clone $tpl ;
$ctx = $tpl->getContext() ;
$_translator = $tpl->getTranslator() ;
?>
<?php
if (isset($ctx->modules)): ;
$_tmp_1 = $ctx->repeat ;
$_tmp_1->m = new PHPTAL_RepeatController($ctx->modules)
;
$ctx = $tpl->pushContext() ;
foreach ($_tmp_1->m as $ctx->m): ;
?>
<?php if ($ctx->path($ctx->m, 'module_title')): ; ?>
<tr>
<?php if (!($ctx->MAIN_MULTILANG)): ; ?>
<td style="text-align:left;padding:5px;" colspan="3"><b><?php echo phptal_escape($ctx->path($ctx->m, 'm_name')) ?></b></td><?php endif; ?>
<?php if ($ctx->MAIN_MULTILANG): ; ?>
<td style="text-align:left;padding:5px;" colspan="4"><b><?php echo phptal_escape($ctx->path($ctx->m, 'm_name')) ?></b></td><?php endif; ?>
<td style="text-align:center">
<b><a row_id="<?php echo phptal_escape($ctx->path($ctx->m, 'm_id')) ?>" act="update">Обновить</a></b>
<b><a row_id="<?php echo phptal_escape($ctx->path($ctx->m, 'm_id')) ?>" act="del">Удалить</a></b>
</td>
</tr><?php endif; ?>
<tr class="body2" style="font-size:14px;text-align:left;padding:2px;">
<td style="text-align:center"><?php echo phptal_escape($ctx->path($ctx->m, 'f_id')) ?></td>
<td><?php echo phptal_escape($ctx->path($ctx->m, 'f_name')) ?></td>
<td><?php echo phptal_escape($ctx->path($ctx->m, 't_name')) ?></td>
<?php if ($ctx->path($ctx->m, 'lang_links')): ; ?>
<td style="text-align:center;">
<?php
$_tmp_2 = $ctx->repeat ;
$_tmp_2->ll = new PHPTAL_RepeatController($ctx->path($ctx->m, 'lang_links'))
;
$ctx = $tpl->pushContext() ;
foreach ($_tmp_2->ll as $ctx->ll): ;
?>
<?php
if ($ctx->path($ctx->ll, 'exists')): ;
if (($_tmp_3 = !(!($ctx->path($ctx->ll, 'exists'))))): ;
?>
<a act="lang" row_id="<?php echo phptal_escape($ctx->path($ctx->m, 'f_id')) ?>" lang="<?php echo phptal_escape($ctx->path($ctx->ll, 'lang')) ?>"><?php endif; ?>
<?php echo phptal_escape($ctx->path($ctx->ll, 'lang')) ?><?php if ($_tmp_3): ; ?>
</a><?php
endif ;
endif ;
?>
<?php
endforeach ;
$ctx = $tpl->popContext() ;
?>
</td><?php endif; ?>
<td style="text-align:center;">
<a row_id="<?php echo phptal_escape($ctx->path($ctx->m, 'f_id')) ?>" act="edit">Редактировать</a>
<a row_id="<?php echo phptal_escape($ctx->path($ctx->m, 'f_id')) ?>" act="delete_page">Удалить</a></td>
</tr>
<?php
endforeach ;
$ctx = $tpl->popContext() ;
endif ;
?>
<?php
if ((null !== $ctx->path($ctx,'new_modules', true))): ;
$_tmp_3 = $ctx->repeat ;
$_tmp_3->n = new PHPTAL_RepeatController($ctx->new_modules)
;
$ctx = $tpl->pushContext() ;
foreach ($_tmp_3->n as $ctx->n): ;
?>
<tr>
<?php if (!($ctx->MAIN_MULTILANG)): ; ?>
<td style="text-align:left;padding:5px;" colspan="3"><b><?php echo phptal_escape($ctx->path($ctx->n, 'm_name')) ?></b></td><?php endif; ?>
<?php if ($ctx->MAIN_MULTILANG): ; ?>
<td style="text-align:left;padding:5px;" colspan="4"><b><?php echo phptal_escape($ctx->path($ctx->n, 'm_name')) ?></b></td><?php endif; ?>
<td style="text-align:center">
<b><a row_id="<?php echo phptal_escape($ctx->path($ctx->n, 'm_path')) ?>" act="install">Установить</a></b>
</td>
</tr>
<?php
if ($ctx->path($ctx->n, 'pages')): ;
$_tmp_2 = $ctx->repeat ;
$_tmp_2->p = new PHPTAL_RepeatController($ctx->path($ctx->n, 'pages'))
;
$ctx = $tpl->pushContext() ;
foreach ($_tmp_2->p as $ctx->p): ;
?>
<tr class="body2" style="font-size:14px;text-align:left;padding:2px;">
<?php if ($ctx->MAIN_MULTILANG): ; ?>
<td colspan="5"><?php echo phptal_escape($ctx->path($ctx->p, 'name')) ?></td><?php endif; ?>
<?php if (!($ctx->MAIN_MULTILANG)): ; ?>
<td colspan="6"><?php echo phptal_escape($ctx->path($ctx->p, 'name')) ?></td><?php endif; ?>
</tr><?php
endforeach ;
$ctx = $tpl->popContext() ;
endif ;
?>
<?php
endforeach ;
$ctx = $tpl->popContext() ;
endif ;
?>
<?php
}
?><?php
function tpl_4ef0a6fb_page_row__yqBh7cut8eJgsAhTgQFMtg($tpl, $ctx) {
$_thistpl = $tpl ;
$_translator = $tpl->getTranslator() ;
?>
<?php
if (isset($ctx->execute)): ;
$ctx->pushSlots() ;
tpl_4ef0a6fb_page_row__yqBh7cut8eJgsAhTgQFMtg_page_row($_thistpl, $tpl) ;
$ctx->popSlots() ;
endif ;
/* end */ ;
}
?><?php /*
*** DO NOT EDIT THIS FILE ***
Generated by PHPTAL from /home/shasha/www/pr25_autocatalog/source/modules/admin/tmpl/control_pages/inc/page_row.html (edit that file instead) */; ?>