
<table align="center" width="650" style="table-layout:fixed;" >
<tr>
  <td width="650" style="color:#003333; font-size:18pt;">
    <b>
      <div align="center">Colas de Ejecuci&oacute;n</div>
    </b>
    <br><br>
</td>
</tr>
<tr>
  <td colspan="2">
     <table style="border: solid 1px #000000;" width="645">
     <tr>
     <td>
     <br><br><br>
        <div align="center"><label style="font-size:130%; text-decoration: underline; font-weight:bold;">Estado de las colas de ejecuci&oacute;n</label></div><br>
        <HR width=80% align="center">

        <table style="border-width: 1px; border-style:dashed; border-color:green;" width="637">
	<tr><td>
        <?php
	$salida = shell_exec('/usr/local/torque/bin/qstat -q');
        echo '<div style="padding-left:63px"><pre>'.$salida.'<pre></div>';
        ?>
        </td></tr></table>
     <br><br><br>
     </td>
     </tr>
     </table>
  </td>
</tr>

<tr>
  <td colspan="2">
     <a style="color: #4E4E4E;" name="estadoprocesos"></a>

     <table style="border: solid 1px #000000;" width="645">
     <tr>
     <td>
     <br>
     <br>
     <?php
	$salida = shell_exec('/usr/local/torque/bin/qstat');
	  echo '<div align="center"><label style="font-size:130%; text-decoration: underline; font-weight:bold;">Procesos encolados</label></div><br>';
        echo '<HR width=80% align="center">';
        if($salida == ''){
	  echo '<br><br><div align="center"><label style="font-style:italic; font-weight:bold;">En este momento no hay procesos en espera a ser ejecutados.</label></div><br>';
	}
	else{    
	  echo '<table style="border-width: 1px; border-style:dashed; border-color:green;" width="637">';
	  echo '<tr><td>';
	  echo '<div style="padding-left:32px"><pre style="font-size:11px;">'.$salida.'</pre></div>';
	  echo '</td></tr></table>';
	}
     ?>
     <br><br>
     </table>
  </td>
</tr>   

<br><br>

</table>
<br>