% no warnings 'uninitialized';
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>DMA - OPF Report</title>
    <style>
.green{
	color: green;
}
.red{
	color: red;
}
.preformatted {
    font-family: monospace;
    white-space: pre;
}
.preformatted td {
   padding:0; margin:0;
}

.preformatted {
   border-collapse: collapse;
   border-spacing: 0;
}
    </style>

</head>
<body>
<h3>OPF Upload Notice - <%= $specs->{datetime} %></h3>
<table border="1">
	<tr>
		<th>Metric</th>
		<th>Previous</th>
		<th>Current</th>
		<th>Diff</th>
	</tr>
	<tr>
		<td><b>Time</b></td>
		<td><%= $specs->{last}->{datetime} %></td>
		<td><%= $specs->{new}->{datetime} %></td>
		<td><%= $specs->{diff}->{mtime} %> minutes</td>
	</tr>	
	<tr>
		<td><b>Size</b></td>
		<td><%= $specs->{last}->{size} %></td>
		<td><%= $specs->{new}->{size} %></td>
		<td><%= $specs->{diff}->{size} %></td>
	</tr>	
	<tr>
		<td><b>Line Count</b></td>
		<td><%= $specs->{last}->{rowcnt} %></td>
		<td><%= $specs->{new}->{rowcnt} %></td>
		<td><%= $specs->{diff}->{rowcnt} %></td>
	</tr>	
	<tr>
		<td><b>Active</b></td>
		<td><%= $specs->{last}->{active} %></td>
		<td><%= $specs->{new}->{active} %></td>
		<td><%= $specs->{diff}->{active} %></td>
	</tr>
	<tr>
		<td><b>Inactive</b></td>
		<td><%= $specs->{last}->{inactive} %></td>
		<td><%= $specs->{new}->{inactive} %></td>
		<td><%= $specs->{diff}->{inactive} %></td>
	</tr>	
	<tr>
		<td><b>BackOffice System Count</b></td>
		<td><%= $specs->{last}->{systemcnt} %></td>
		<td><%= $specs->{new}->{systemcnt} %></td>
		<td><%= $specs->{diff}->{systemcnt} %></td>
	</tr>
<!-- 	<tr>
		<th>BP Count</th>
		<td><%= $specs->{last}->{bpcnt} %></td>
		<td><%= $specs->{new}->{bpcnt} %></td>
		<td><%= $specs->{diff}->{bpcnt} %></td>
	</tr> -->
</table>


<p align="center"><a href="http://clm.dmadelivers.com/opf/<%= $newfile %>">View/Download OPF</a></p>
<!-- <p align="center"><a href="http://clm.dmadelivers.com/opfftp/<%= $newfile %>">Approve &amp; FTP OPF</a></p> -->

<pre>
% my @lines = @{ $specs->{diff}->{filediff} };
% @lines = reverse(@lines);
% foreach my $l (@lines){
% if($l =~ /^(<|>)/){
% $l =~ s/\t/\|/g;
<span class="<%= $l =~ /^>/ ? 'green' : 'red' %>"><%= $l %></span>
% }
% }
</pre>


</body>
</html>
