function SeccionAdminList($id = "")
    {
        if (!$id) {
            echo "<div id=error>ERROR: no se encontro ningun usuario con ese Id o le falta Id  </div>";
        } else {
            $usuario = new Usuario($id);
            if ($usuario->esResponsable()) {
                $where = "WHERE id_categoria = 1 OR id_categoria = 2";
            } else {
                $where = "WHERE id_categoria = 0 OR id_categoria = 2";
            }
            $Query = new Consulta($sql = "SELECT id_pagina, \r\n\t\t\t\t\t\t\t\t\t\t\tnombre_pagina AS PAGINAS, \r\n\t\t\t\t\t\t\t\t\t\t\turl_pagina AS URL \r\n\t\t\t\t\t\t\t\t\t\t\tFROM paginas {$where} ORDER BY id_modulo,1");
            ?>
								
		<form name="f1" action="" method="post">		
			<table id="reporte">
				<tr><?php 
            for ($i = 1; $i < $Query->NumeroCampos(); $i++) {
                ?>
				<td class="subtitulo"><b><?php 
                echo $Query->nombrecampo($i);
                ?>
</b></td><?php 
            }
            ?>
				<td class="subtitulo">Activar</td>
				<td class="subtitulo">Detalle</td>
				</tr>
				<?php 
            $x = 0;
            while ($row = mysql_fetch_row($Query->Consulta_ID)) {
                ?>
				<tr <?php 
                if ($x == 0) {
                    ?>
class="reg1" <?php 
                } else {
                    ?>
 class="reg2" <?php 
                }
                ?>
 > <?php 
                for ($i = 1; $i < $Query->NumeroCampos(); $i++) {
                    ?>
					<td align=left class="celda"><?php 
                    echo $row[$i];
                    ?>
</td>
					<?php 
                }
                $SQL_SA = " \tSELECT * \r\n\t\t\t\t\t\t\t\t\t\tFROM usuarios_paginas \r\n\t\t\t\t\t\t\t\t\t\tWHERE id_usuario=" . $id . " \r\n\t\t\t\t\t\t\t\t\t\tAND id_pagina=" . $row[0] . "";
                $Query_SA = mysql_query($SQL_SA);
                $NUM = mysql_num_rows($Query_SA);
                ?>
					<td>
						<input type="checkbox" name="seccion[]" value="<?php 
                echo $row[0];
                ?>
" <?php 
                if ($NUM == 1) {
                    echo "checked";
                }
                ?>
>
					</td>
					<td>
					<?php 
                if ($NUM == 1 && ($row[0] == 3 || $row[0] == 4 || $row[0] == 5 || $row[0] == 6)) {
                    ?>
						<a href="modulo_usuario.php?opcion=detail&id=<?php 
                    echo $_REQUEST["id1"];
                    ?>
&id1=<?php 
                    echo $row[0];
                    ?>
">
						  <img src="public_root/imgs/index.gif" alt="Detalle" width="16" height="16" border="0" />
						</a>
					<?php 
                } else {
                    ?>
							<img src="public_root/imgs/index.gif" alt="Detalle" width="16" height="16" border="0" />
						<?php 
                }
                ?>
					</td>
				</tr>
				<?php 
                if ($x == 0) {
                    $x++;
                } else {
                    $x = 0;
                }
            }
            ?>
					
				<tr  bgcolor="#EEEEEE">
					<td colspan="5" align="center"  style="padding-top:20px; padding-bottom:20px" >
						<input type="submit" name="guardar" value="GUARDAR" class="boton" 
						onClick="void(document.f1.action='modulo_usuario.php?id=<?php 
            echo $id;
            ?>
&opcion=add');void(document.f1.submit())"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="reset" name="cancelar" value="CANCELAR" class="boton">
					</td>
				</tr>
				</table>
			</form>	<?php 
        }
    }