1 |
198 |
ahitrov |
<fieldset> |
2 |
|
|
<legend>Выбор заказов по статусу</legend> |
3 |
|
|
|
4 |
|
|
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="tlistdocs"> |
5 |
|
|
<tr bgcolor="#efefef"> |
6 |
|
|
<th align="center" width="1%">ID</th> |
7 |
|
|
<th>Статус</th> |
8 |
|
|
|
9 |
|
|
% foreach my $case ( @cases ) { |
10 |
|
|
% next unless $case->[0]; |
11 |
|
|
% my $style = $status && $case->[0] == $status ? 'inverted' : ''; |
12 |
|
|
<tr class="<% $style %>"> |
13 |
|
|
<td><% $case->[0] %></td> |
14 |
|
|
<td><table cellpadding="0" cellspacing="0" border="0"> |
15 |
|
|
<tr valign="top"> |
16 |
|
|
<td width="10"> </td> |
17 |
|
|
<td><a href="./?ost=<% $case->[0] %>"><% Encode::encode('utf-8', ucfirst(Encode::decode('utf-8',$case->[1]))) %></a></td> |
18 |
|
|
</tr> |
19 |
|
|
</table> |
20 |
|
|
</td> |
21 |
|
|
</tr> |
22 |
|
|
% } |
23 |
|
|
|
24 |
|
|
</table> |
25 |
|
|
|
26 |
|
|
</fieldset> |
27 |
|
|
<%args> |
28 |
|
|
|
29 |
|
|
$status => undef |
30 |
|
|
|
31 |
|
|
</%args> |
32 |
|
|
<%init> |
33 |
|
|
|
34 |
|
|
my ($prop) = grep { $_->{attr} eq 'status' } webshop::Order->new( $keeper->{webshop} )->structure; |
35 |
|
|
my @cases = @{$prop->{cases}}; |
36 |
|
|
|
37 |
|
|
</%init> |