tpl_4f0d975d_row__lt63Y_nhTgnblKGO5IUcJg.php
2.59 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
function tpl_4f0d975d_row__lt63Y_nhTgnblKGO5IUcJg_row(PHPTAL $_thistpl, PHPTAL $tpl) {
$tpl = clone $tpl ;
$ctx = $tpl->getContext() ;
$_translator = $tpl->getTranslator() ;
?>
<?php
if (isset($ctx->rows)): ;
$_tmp_1 = $ctx->repeat ;
$_tmp_1->r = new PHPTAL_RepeatController($ctx->rows)
;
$ctx = $tpl->pushContext() ;
foreach ($_tmp_1->r as $ctx->r): ;
?>
<?php
if (NULL !== ($_tmp_2 = ($ctx->path($ctx->r, 'row_class')))): ;
$_tmp_2 = ' class="'.phptal_escape($_tmp_2).'"' ;
else: ;
$_tmp_2 = '' ;
endif ;
?>
<tr<?php echo $_tmp_2 ?>>
<td style="text-align:center"><?php echo phptal_escape($ctx->path($ctx->r, 'u_id')) ?></td>
<td><?php echo phptal_escape($ctx->path($ctx->r, 'u_login')) ?></td>
<td style="text-align:center"><?php echo phptal_escape($ctx->path($ctx->r, 'u_time_reg')) ?></td>
<?php if (!($ctx->path($ctx->r, 'u_ban'))): ; ?>
<td style="text-align:center"><a onclick="table.banned(<?php echo phptal_escape($ctx->path($ctx->r, 'u_id')) ?>)">Забанить</a></td><?php endif; ?>
<?php if ($ctx->path($ctx->r, 'u_ban')): ; ?>
<td style="text-align:center"><a onclick="table.unbanned(<?php echo phptal_escape($ctx->path($ctx->r, 'u_id')) ?>)">Разбанить</a></td><?php endif; ?>
<td style="text-align:center"><a onclick="table.edit(<?php echo phptal_escape($ctx->path($ctx->r, 'u_id')) ?>)"><?php echo phptal_escape($ctx->EDIT) ?></a></td>
<td style="text-align:center"><a onclick="table.del(<?php echo phptal_escape($ctx->path($ctx->r, 'u_id')) ?>)"><?php echo phptal_escape($ctx->DELETE) ?></a></td>
</tr>
<?php
endforeach ;
$ctx = $tpl->popContext() ;
endif ;
?>
<?php if (!($ctx->rows)): ; ?>
<tr>
<td colspan="6" style="text-align:center"> <?php echo phptal_escape($ctx->NO_RECORDS) ?> </td>
</tr>
<?php endif; ?>
<?php
$ctx->noThrow(true) ;
if (!phptal_isempty($ctx->page_nav)): ;
if (false): ;
endif ;
$ctx->noThrow(false) ;
?>
<tr>
<td colspan="8" style="padding:5px;"><?php
$ctx->noThrow(true) ;
if (!phptal_isempty($_tmp_2 = $ctx->page_nav)): ;
echo phptal_tostring($_tmp_2) ;
endif ;
$ctx->noThrow(false) ;
?>
</td>
</tr><?php endif; ?>
<?php
}
?><?php
function tpl_4f0d975d_row__lt63Y_nhTgnblKGO5IUcJg($tpl, $ctx) {
$_thistpl = $tpl ;
$_translator = $tpl->getTranslator() ;
?>
<?php
if (isset($ctx->execute)): ;
$ctx->pushSlots() ;
tpl_4f0d975d_row__lt63Y_nhTgnblKGO5IUcJg_row($_thistpl, $tpl) ;
$ctx->popSlots() ;
endif ;
/* end */ ;
}
?><?php /*
*** DO NOT EDIT THIS FILE ***
Generated by PHPTAL from /var/www/autolifeX/auto-life.ua/mobile/source/modules/users/tmpl/control_members/inc/row.html (edit that file instead) */; ?>