<% if ($from =~ 'search') { %> <% my $search = $c->param('search') || $c->param('s'); %> % title 'Manager Search: ' . $search; <% if ($from eq 'search_engine') { %>
<% foreach my $se ( @{$config->{'search_engines'}} ) { %> <% } %>
<% if (@{$appointments} == 0) { %>

No Results

<% } %>
<% } %> <% } %> <% my $pseudonyms; %> <% foreach my $a (@{$appointments}) { %> <% if ($from eq 'store') { %> <% $pseudonyms = &Manager::pseudonym_maker('store',$a); %> <% } else { %> <% $pseudonyms = &Manager::pseudonym_maker('viewer',$a); %> <% } %>
<% if ($appts->{'__stash'}->{'header'} eq 'yes') { %>
<%= $appts->{$a}->{'formatted_name'} %>
<% } %> <%= $header || $appts->{$a}->{'header'} %>
<% foreach my $p ( @{$pseudonyms} ) { %> <% if ($p->{'classmates'}) { %> <% if ($p->{'place'} eq 'top') { %> <% } %> <% } %> <% } %>


<% my $template = $gb::pos->{$appts->{$a}->{'setting'}->{'pos'}}->{'app_template'}; %> <% if ($template) { %> <%= include $template, appts => $appts, a => $a %> <% } else { %> <% } %> <%= include 'apps/app_details', appts => $appts, a => $a, app => {} %>
<% if ($from ne 'store') { %> <% foreach my $p ( @{$pseudonyms} ) { %> <% if ($p->{'classmates'}) { %> <% if ($p->{'place'} eq 'mid') { %> <% } %> <% } %> <% } %> <% foreach my $p ( @{$pseudonyms} ) { %> <% if ($p->{'classmates'}) { %> <% if ($p->{'colour'} eq 'bottom') { %> <% } %> <% } %> <% } %> <% if ($appts->{$a}->{'setting'}->{'command'}) { %> <% } %> <% if ($appts->{$a}->{'setting'}->{'kill'}) { %> <% } %> <% if ($appts->{$a}->{'setting'}->{'web'}) { %> <% } %> <% my $remote_machines = &subs::db_query('select device from remote_machines where connection = ?', 'active')->hashes; %> <% if ($appts->{$a}->{'setting'}->{'phone'} && ($device eq 'mobile' || grep { $_->{'device'} eq 'mobile' } @{$remote_machines} ) ) { %> <% } %> <% if ($device eq 'mobile' || grep { $_->{'device'} eq 'mobile' } @{$remote_machines} ) { %>
<% } %> <% if ($device eq 'computer' || $device eq 'server' || grep { $_->{'device'} eq 'computer' || $_->{'device'} eq 'server' } @{$remote_machines} ) { %> <% } %>  
{$a}->{'setting'}->{'public'} eq 'on' ) { %>status="on" style="background-color:green"<% } else { %> status="off" style="background-color:black;" <% } %> src="/icons/public.png" /> {$a}->{'setting'}->{'enc'} eq 'on' ) { %>status="on" style="background-color:red"<% } else { %> status="off" style="background-color:black;" <% } %> src="/icons/enc_button.png" /> {$a}->{'setting'}->{'notification'} eq 'on' ) { %>status="on" style="background-color:yellow"<% } else { %> status="off" style="background-color:darkgrey" <% } %> src="/images/decipherable/bell.png" /> {$a}->{'setting'}->{'toggle'} eq 'on' ) { %>src="/images/decipherable/on.png" status="on" style="background-color:yellow"<% } else { %> status="off" <% } %> src="/images/decipherable/off.png" />
<% } %>
<% } %>