Revision 198 (by ahitrov, 2012/03/15 18:29:29) Simple webshop support plugin
<fieldset>
<legend>Выбор заказов по статусу</legend>

        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tlistdocs">
        <tr bgcolor="#efefef">
        <th align="center" width="1%">ID</th>
        <th>Статус</th>

% foreach my $case ( @cases ) {
%	next	unless $case->[0];
%	my $style = $status && $case->[0] == $status ? 'inverted' : '';
<tr class="<% $style %>">
<td><% $case->[0] %></td>
<td><table cellpadding="0" cellspacing="0" border="0">
    <tr valign="top">
    <td width="10">&nbsp;</td>
    <td><a href="./?ost=<% $case->[0] %>"><% Encode::encode('utf-8', ucfirst(Encode::decode('utf-8',$case->[1]))) %></a></td>
    </tr>
    </table>
</td>
</tr>
% }

        </table>

</fieldset>
<%args>

	$status	=> undef

</%args>
<%init>

   my ($prop) = grep { $_->{attr} eq 'status' } webshop::Order->new( $keeper->{webshop} )->structure;
   my @cases = @{$prop->{cases}};

</%init>