% layout 'index';
<div id="opfftp">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">OPF FTP Files</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <div class="row">
                <div class="col-lg-12">
% if($ftpresult){
<pre>
<%= $ftpresult %>
</pre>
% }


<h3>Last 10 OPF Files</h3>
                <table style="width:100%; font-size: 14px;" border="1">
                    <tr>
                        <th>File</th>
                        <th>Time</th>
                        <th>Size</th>
                        <th>Row Cnt</th>
                        <th>Active</th>
                        <th>Inactive</th>                   
                        <th>BackOffice Sys Cnt</th>
                    </tr>
%            foreach my $o (@$opftable){
                    <tr>
                        <td><a href="/opf/<%= $o->{file} %>"><%= $o->{file} %></a></td>
                        <td><%= scalar localtime($o->{mtime}) %></td>
                        <td><%= $o->{size} %></td>
                        <td><%= $o->{rowcnt} %></td>
                        <td><%= $o->{active} %></td>
                        <td><%= $o->{inactive} %></td>
                        <td><%= $o->{systemcnt} %></td>
                    </tr>
%            }
                </table>


                </div>
            </div>       
            <!-- /.row -->
</div>