<tr align="center"> 
          <td colspan="3"> 
            <table width="100%" border="0" cellspacing="5" cellpadding="0">
              <?php 
$total_espacio_global = 0;
$total_anchobanda_global = 0;
$total_anchobanda_globalant = 0;
$mes_anterior = DateAdd("m", -1, mktime(0, 0, 0, date("m"), "1", date("Y")));
foreach ($_SESSION['SEC_USER_DOMINIOS'] as $key => $value) {
    $total_espacio_ftp = pureftpd_quotastatus($value);
    $total_espacio_mysql = db_mysql_quotaall($key);
    $total_espacio_ocupado = $total_espacio_ftp + $total_espacio_mysql;
    $total_espacio_global = $total_espacio_ocupado + $total_espacio_global;
    $total_anchobanda = bandwidth_estadisticas_mes_total($key, date("Y"), date("n"));
    $total_anchobanda_global = $total_anchobanda + $total_anchobanda_global;
    $total_anchobandaant = bandwidth_estadisticas_mes_total($key, date("Y", $mes_anterior), date("n", $mes_anterior));
    $total_anchobanda_globalant = $total_anchobandaant + $total_anchobanda_globalant;
    ?>
              <tr align="center"> 
                <td width="61%" align="left"><span class="Estilo5"><font color="#D65300">&nbsp; 
                  <a href="index.php?grupo=dominio&seccion=principal&pag=index&dominio=<?php 
    echo $key;
    ?>
" class="naranja"> 
                  <?php 
    echo $key;
    ?>
                  </a></font></span></td>
                <td width="18%" align="right"><strong><span class="Estilo6"> 
                  <?php 
    echo number_format(bitconversor($total_espacio_ocupado, "byte", "mbyte"), 2, ',', '.');
              </tr>
              <tr align="center"> 
                <td width="51%" align="left" bgcolor="#BFBFBF"><span class="Estilo5">&nbsp;Espacio 
                  usado por SQL</span></td>
                <td bgcolor="#DFDFDF" align="right" width="49%"> 
		          <?php 
db_mysql_showquotas($_GET['dominio']);
?>
		</td>
              </tr>
              <tr align="center"> 
                <td width="51%" align="left" bgcolor="#BFBFBF"><span class="Estilo5">&nbsp;Ancho 
                  de banda usado</span></td>
                <td bgcolor="#DFDFDF" align="right" width="49%"> 
                  <?php 
echo number_format(bandwidth_estadisticas_mes_total($_GET['dominio'], date("Y"), date("n")), 2, ',', '.');
?>
                   MB
                </td>
              </tr>
              <tr align="center"> 
                <td width="51%" align="left" bgcolor="#BFBFBF"><span class="Estilo5">&nbsp;Cuentas 
                  de E-mail</span></td>
                <td bgcolor="#DFDFDF" align="right" width="49%">
                  <?php 
echo vpopmail_domaintotalcuentas($_GET['dominio']);
?>
                </td>
              </tr>
              <tr align="center"> 
                <td width="51%" align="left" bgcolor="#BFBFBF"><span class="Estilo5">&nbsp;Directorio 
        $ancho_banda_total = 0;
        $variables = apache_domainread($rs);
        $estado = $variables["CFG_ESTADO"];
        $rs_dominio = xmlconfig_buscar(_CFG_XML_DOMINIOS, "DOMINIO", trim($rs), "", "", "datos");
        if ($rs_dominio) {
            $rs_cliente = xmlconfig_buscar(_CFG_XML_CLIENTES, "ID", trim($rs_dominio["IDCLIENTE"]), "", "", "datos");
            if ($rs_cliente) {
                $ancho_banda_total = $rs_cliente["ANCHOBANDA"];
                $nombre_cliente = $rs_cliente["NOMBRE"];
            } else {
                $ancho_banda_total = 0;
            }
        } else {
            $ancho_banda_total = 0;
        }
        $total_usado = bandwidth_estadisticas_mes_total($rs, date("Y"), date("n"));
        $total_disponible = $ancho_banda_total - $total_usado;
        ?>
  <tr align="left" <?php 
        if ($bool_celdcolor) {
            echo "class=fondocelda1";
        } else {
            echo "class=fondocelda2";
        }
        ?>
> 
    <td height="2" align="left" width="51%"><font face="Arial, Helvetica, sans-serif" size="2"> 
      <div title="<?php 
        echo $nombre_cliente;
        ?>
"><a href="index.php?grupo=<?php