Ejemplo n.º 1
0
            header("Location: index.php");
        }
    }
}
?>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading"><h3 class="panel-title">Status</h3></div>
<div class="panel-body">
<table class="table table-striped table-hover ">
<thead>
<?php 
$downloader = new Downloader();
$status_files = $downloader->get_status_files();
?>
        <tr>
<th style="min-width:400px; height:35px">Title</th>
<th style="min-width:80px">Size</th>
<th style="min-width:200px">Percentage</th>
<th style="min-width:80px">Speed</th>
<th style="min-width:110px">ETA</th>
</tr>
      <?php 
foreach ($status_files as $status_file) {
    //$data=$downloader->get_status_file($status_file);
    $status = $downloader->get_status($status_file);
    if (is_array($status)) {
        if ($status['percentage'] == '100.0%') {
            $status['eta'] = 'Complete';