<?

include("../fnc.php");

enlinea_a();

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<title>e-Ducativo - Bienvenido</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="../estilo1.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
body {
	background-image: url(../images/tema/bg_pagina.png);
}
-->
</style></head>



<body>

<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">

  <tr>

    <td bgcolor="#336699">    <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">

      <tr bgcolor="#FFFFFF">

        <td width="40%"><img src="../images/logo_5.gif" width="300" height="50"></td>

        <td width="60%" background="../images/back_header_admin.gif" bgcolor="#FFFFFF"><div align="right" class="usuario_nombre_enc"><strong><?echo "$unombre $uapellido";?><br>

          </strong>Tiene <?=mensajes($uuser);?> mensaje(s) sin leer</div></td>

      </tr>

      <tr bgcolor="#FFFFFF">

        <td height="15" colspan="2" background="../images/barra_encabezado.gif">&nbsp;</td>

        </tr>

    </table>

      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td width="20%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><?php include("menu.php"); ?>&nbsp;</td>

          <td width="80%" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">

            <tr align="center" valign="middle" bgcolor="#FFFFCC">

              <td height="20" class="titulo_pagina"><div align="center" class="titulo_pagina">

                <table width="100%" border="0" cellspacing="0" cellpadding="0">

                  <tr>

                    <td width="65" background="../images/tema/bg_contenido.png">&nbsp;</td>

                    <td background="../images/tema/bg_contenido.png"><div align="center" class="titulo_pagina"><strong>MODIFICAR ENCUESTAS </strong></div></td>

                    <td width="65" background="../images/tema/bg_contenido.png"><div align="right"><a href="inicio.php" class="link_parrafo">Inicio<img src="../images/ic_home.png" width="21" height="21" border="0"></a></div></td>

                  </tr>

                </table>

              </div></td>

            </tr>

            <tr bgcolor="#FFFFCC">

              <td align="left" valign="top" bgcolor="#FFFFCC"><div align="left" class="parrafo">

                <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">

                  <tr bgcolor="#FFFFCC">

                    <td background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC">

                    <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">

                            <tr>

                              <td bgcolor="#FFFFFF">                                <?



                                $qev=mysql_query("select * from encuestas order by id");

                                ?>

                                <table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">

                                  <tr align="left" valign="middle" bgcolor="#B6D3FC">

                                  <td width="584" bgcolor="#6699CC" class="parrafo"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="6%"><img src="../images/tema/ic_encuestas.png" width="35" height="32"></td>
                                      <td width="94%" background="../images/tema/bg_titulo_frm.png"><strong class="titulo_seccion_blanco">Lista de encuestas existentes </strong></td>
                                    </tr>
                                  </table></td>

                                  </tr>

                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">

                                    <td bgcolor="#B6D3FC"><table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1" background="../images/tema/bg_frm_campos.png" bgcolor="#FFFFFF">

                                    <tr bgcolor="#336699">

                                      <td width="60%" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><div align="center" class="lbl_campo">Nombre de la encuesta </div></td>

                                      <td width="20%" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><div align="center" class="lbl_campo"><strong>Fechas de activaci&oacute;n </strong></div></td>

                                      <td width="6%" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><div align="center" class="lbl_campo"><strong>Activa</strong></div></td>

                                      <td width="14%" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><div align="center" class="lbl_campo"><strong>Opciones</strong></div></td>

                                    </tr>

                                    <?

                                    $i=0;

                                    while($iev=mysql_fetch_array($qev)){

                                    $i++;

                                    ?>

                                    <tr bgcolor="<?=color_fila($i);?>" class="parrafo">

                                      <td><img src="../images/flecha_1.png" width="9" height="9"><a href="frm_encuesta.php?ide=<?=enc($iev[id])."&tipou=".$iev[para];?>" class="link_parrafo">

                                        <?=$iev[nombre];?>

                                      </a></td>

                                      <td>Del: <?=fecha($iev[fecha_inicio])?><br>

                                        Al: <?=fecha($iev[fecha_fin])?> </td>

                                      <td><div align="center"><img src="../images/<?if($iev[activa]=="S"){echo "si2.gif";}else{echo "no2.gif";}?>" width="10" height="15"></div></td>

                                      <td><div align="center"><a href="frm_preguntas_encuesta.php?ide=<?=enc($iev[id]);?>" class="link_parrafo">Ver preguntas </a></div></td>

                                    </tr>

                                    <?

                                    }

                                    ?>

                                  </table></td>

                                </tr>

                              </table></td></tr>

                      </table>

                    &nbsp;</td>

                  </tr>

                </table>

              </div></td>

              </tr>

          </table></td>

        </tr>

    </table>    </td>

  </tr>

</table>

</body>

</html>