<% foreach my $b ( qw/run up/ ) { %>
<% } %>
<% if ($menu eq 'apps') { %>
<% foreach my $pl ( sort keys %{$parking_lot} ) { %>
<%= &subs::format_name($pl) %>
<% } %>
<% } elsif ($menu eq 'run' || $menu eq 'up') { %>
| App | Time |
<% my $query;
if ($menu eq 'run') {
$query = &subs::db_query('select * from appointments where (type=? or type=?) and timestamp <= ? order by timestamp desc', 'start','record', &subs::rightNow())->hashes
} else {
$query = &subs::db_query('select * from appointments where timestamp >= ? order by timestamp asc limit 10', &subs::rightNow())->hashes
} %>
<% foreach my $app ( @{$query} ) { %>
<% my @title = split '', &subs::format_name($app->{'app'}); %>
| <%== &subs::main_icon_maker({ app => $app->{'app'}, timestamp => &subs::rightNow(), size => 'little' }) %> |
|
|
<% } %>
<% } %>