<% } %>
<% my ($db,$database,$sql) = &subs::database_grabber(); %>
<% foreach my $l ( reverse @{$details} ) { %>
| Type |
Edit |
TS |
Dur |
<% if ($l->{'stop_timestamp'}) { %>
Stop
<% } %>
| Warr |
OST |
<% if ($l->{'pseudonym'}->{'icon'}) { %>
![]()  |
<% } else { %>
<%= $l->{'formatted_type'} %> |
<% } %>
|
|
<%= $l->{'formatted_duration'} %> |
<% if ($l->{'stop_timestamp'}) { %> | <% } %>
|
|
EDITOR!
|
 |
<% 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} ) { %>
|
|
|
<% } %>
<% if ($l->{'start_notes'} eq 'redacted' || $l->{'notes'} eq 'redacted' || $l->{'end_notes'} eq 'redacted') { %>
<% } %>
<% if ($l->{'type'} eq 'web') { %>
<% } elsif ($l->{'type'} eq 'msg') { %>
<%= $l->{'data'} %>
<% } %>
<% if ($l->{'file'}) { %>
<% foreach my $f (@{$l->{'files'}}) { %>
<% unless ( -e $f->{'file'} || $l->{'type'} eq 'snapshot' ) {
next;
} %>

<% if ($f->{'file_type'} eq 'snd' || $l->{'type'} eq 'audio') { %>
<%= $f->{'file'} %>
<% } elsif ($f->{'file_type'} eq 'img') { %>
![]()
{'main_image'} eq $f->{'file'}) { %>
main_image="yes"
<% } else { %>
main_image="no"
<% } %>
app="<%= $l->{'app'} %>" file="<%= $f->{'file'} %>" src="/images/make believe/explosion.png"
style="<% if ($settings->{'main_image'} eq $f->{'file'}) { %>border-color:orange;border-width:6px;<% } %>"
>
<% if ($f->{'file'} !~ /;base64/gi) { %>
<% } %>
![]()
{'file'} =~ /;base64/gi) { %>
src="<%= $l->{'file'} %>" type="snapshot"
<% } else { %>
file="<%= $f->{'file'} %>"
src="file_open?app=<%= $l->{'app'} %>&file=<%= $f->{'file'} %>×tamp=<%= $l->{'server_time'} %>"
<% } %> timestamp="<%= $l->{'server_time'} %>"
style="height:90%;width:95%" app_uuid="<%= $l->{'uuid'} %>" file_uuid="<%= $f->{'uuid'} %>" id="<%= $l->{'uuid'} %>_<%= $f->{'uuid'} %>"
/>
<%= include 'apps/image_functions/' . $f->{'function'}, file => $f, appt => $l %>
<% } elsif ($f->{'file_type'} eq 'vid') { %>
<% } elsif ($f->{'file_type'} eq 'pdf') { %>
<% my $embed_string = &subs::random_string_creator(25); %>
<% } %>
<% if ($device eq 'mobile' && $l->{'data'} eq '') { %>

<% } %>
<% } %>
<% } %>
| Proj |
<% if ($l->{'src'}) { %>Src | <% } %>
<% if ($l->{'manufacturer'}) { %>Man | <% } %>
POS |
<% if ($l->{'quantity'}) { %>Quantity | <% } %>
<% if ($l->{'distance'}) { %> | <% } %>
<% if ($l->{'duties'}) { %>
<% if (scalar @{$l->{'duties'}} > 0) { %>
|
<% } %>
<% } %>
<% if ($l->{'measures'}) { %>
<% if (scalar @{$l->{'measures'}} > 0) { %>
<% } %>
<% } %>
<% if ($l->{'type'} eq 'record') { %>
| Rec |
<% } %>
| <%= $l->{'formatted_project'} %> |
<% if ($l->{'src'}) { %><%= &subs::format_name($l->{'src'}->{'app'}) %> | <% } %>
<% if ($l->{'manufacturer'}) { %><%= &subs::format_name($l->{'manufacturer'}) %> | <% } %>
<%= &subs::format_name($l->{'pos'}) %> |
<% if ($l->{'quantity'}) { %><%= $l->{'quantity'} %><%= $l->{'unit'} %> | <% } %>
<% if ($l->{'distance'}) { %><%= $l->{'total_distance'} %>km | <% } %>
<% if ($l->{'duties'}) { %>
<% if (scalar @{$l->{'duties'}} > 0) { %>
|
<% } %>
<% } %>
<% if ($l->{'measures'}) { %>
<% if (scalar @{$l->{'measures'}} > 0) { %>
|
<% } %>
<% } %>
<% if ($l->{'type'} eq 'record') { %>
<%= &subs::format_name($l->{'data'}->{'recorder'}) %> |
<% } %>
<% if ($l->{'measures'}) { %>
<% my $mtotals = {}; %>
<% my $maverage = {}; %>
<% if (eval { scalar @{$l->{'measures'}} } ) { %>
<% foreach my $me ( @{$l->{'measures'}} ) { %>
<% foreach my $m ( sort keys %{$me} ) { %>
<% if ($m eq 'uuid') { next; } %>
<%= &subs::format_name($m) %>:
<% if (grep { $_ eq $m } qw/timestamp server_time ts ost st/) { %>
<% } else { %>
<% if ($me->{$m} =~ /[a-zA-Z]/) { %>
<%= &subs::format_name($me->{$m}) %>
<% } else { %>
<%= $me->{$m} %>
<% } %>
<% if ($me->{$m} =~ /[0-9]/gi) {
$me->{$m} =~ s/[^0-9.]//gi;
$mtotals->{$m} += $me->{$m};
$maverage->{$m}->{'count'} += 1;
$maverage->{$m}->{'av'} = $mtotals->{$m} / $maverage->{$m}->{'count'};
} %>
<% } %>
<% } %>
<% } %>
<% } %>
<% if (scalar keys %{$mtotals}) { %>
<% foreach my $mt (sort keys %{$mtotals}) { %>
Total <%= &subs::format_name($mt) %>: <%= $mtotals->{$mt} %>
Average <%= &subs::format_name($mt) %>: <%= sprintf("%.2f", $maverage->{$mt}->{'av'}) %>
<% } %>
<% } %>
<% } %>
<% if ($l->{'duties'}) { %>
<% foreach my $d ( @{$l->{'duties'}} ) { %>
{'camera'}) { %>
<% if ($d->{'camera'} eq '0') { %>
src="/images/decipherable/camera back.png"
<% } elsif ($d->{'camera'} eq '1') { %>
src="/images/decipherable/camera front.png"
<% } elsif ($d->{'camera'} eq 'webcam') { %>
src="/images/make believe/eye.png"
<% } %>
<% } elsif ($d->{'feed'}) { %>
<% if ($d->{'feed'} eq 'flatbed') { %>
src="/images/decipherable/flatbed.png"
<% } elsif ($d->{'feed'} eq 'adf') { %>
src="/images/decipherable/feeder.png"
<% } %>
<% } %>
>

<% } %>
<% } %>
<% if ($l->{'distance'}) { %>
<% foreach my $d ( @{$l->{'distance'}} ) { %>
<%= $d->{'distance'} %>km
<% if ( scalar @{$l->{'distance'}} > 1) { %>
<% } %>

<% } %>
<% } %>
<%= include 'apps/transaction/models', settings => $settings, models => $models, l => $l, source => 'list' %>
<%= include 'apps/transaction/options', settings => $settings, options => $options, l => $l, source => 'list' %>
<% if ($l->{'type'} eq 'transaction' || $l->{'type'} eq 'purchase' ) { %>
<%= include 'apps/app_transaction', app => $l %>
<% } elsif ($l->{'type'} eq 'invoice' || $l->{'type'} eq 'quote') { %>
<%= include 'apps/information', app => $l %>
<% } %>