Ejemplo n.º 1
0
         if ($row['orderStatus'] == ORDER_COMPLETED) {
             echo '<td>' . $row['timeCompleted'] . '</td>';
             echo '<td>' . round($row['timeExec'], 3) . 's</td>';
         } else {
             echo '<td>not done</td>';
             echo '<td>?</td>';
         }
         echo '<td>' . $row['orderType'] . '</td>';
         $creator = new User($row['creatorId']);
         echo '<td>' . $creator->render() . '</td>';
         //echo $row['orderParams'];
         echo '</tr>';
     }
     echo '</table>';
     echo FileInfo::render($fileId);
     $file = FileInfo::get($fileId);
     if ($file['fileType'] == FILETYPE_CLONE_CONVERTED) {
         echo 'This file is a converted version of the orginal file <a href="' . $_SERVER['PHP_SELF'] . '?id=' . $file['ownerId'] . '">' . $file['ownerId'] . '</a><br/>';
     }
     /*
         $list = $h->files->getFileList(FILETYPE_CLONE_CONVERTED, $fileId);
         if ($list) echo '<h1>Conversions based on this file</h1>';
         foreach ($list as $row) {
             echo '<a href="'.$_SERVER['PHP_SELF'].'?id='.$row['fileId'].'">'.$row['fileId'].'</a> '.formatDataSize($row['fileSize']).' '.$row['fileMime'].'<br/>';
         }
         echo '<br/>';
     */
     echo ahref('queue/show/' . $fileId, 'Create process (media conversion, or further processing)');
     break;
 default:
     echo 'No handler for view ' . $this->view;