<?

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

enlinea_a();



if(!$ide){

 alert("Parámetros incorrectos","javascript:history.go(-1)");

}



$id_ev=dec($ide);

$qev=mysql_query("select encuestas.*

                  from encuestas where id ='$id_ev'");

if(mysql_num_rows($qev)==0){

 alert("Error, la encuesta no existe","./frm_login.php");

}

$info=mysql_fetch_array($qev);



$qcpr=mysql_query("select count(*) as cantidad from enc_preguntas where encuesta = '$id_ev'");

$cant=0;

$icpr=mysql_fetch_array($qcpr);

$cant=$icpr[cantidad];



?>

<!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">

<!--

.style1 {font-weight: bold}
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" background="../images/tema/bg_contenido.png" class="titulo_pagina"><div align="center" class="titulo_pagina"><strong> ENCUESTAS </strong></div></td>

            </tr>

            <tr>

              <td align="left" valign="top" background="../images/tema/bg_contenido.png" bgcolor="#ECE9D8"><div align="left" class="parrafo">

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

                  <tr>

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

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

                            <tr>

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

                                <tr align="left" valign="middle" bgcolor="#6699CC">

                                  <td colspan="2" class="titulo_seccion_blanco"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="6%" background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                      <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n general de la encuesta </td>
                                    </tr>
                                  </table></td>

                                  </tr>

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

                                  <td width="64" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="parrafo"><strong>Nombre:</strong></td>

                                  <td width="520" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="menu_enc"><strong>

                                    <?=strtoupper($info[nombre]);?>

                                  </strong></td>

                                </tr>

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

                                  <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="parrafo"><strong>Para:</strong></td>

                                  <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="menu_enc"><strong>

                                    <?

                                    if($info[para]=="Padre"){echo "Padres de familia";}

                                    if($info[para]=="Alumno"){echo "Alumnos";}

                                    if($info[para]=="Catedratico"){echo "Catedráticos";}

                                    ?>

                                  </strong></td>

                                </tr>

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

                                  <td height="24" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="parrafo"><strong>Fechas de activaci&oacute;n: </strong></td>

                                  <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="menu_enc"><strong class="parrafo">Del <?=fecha($info[fecha_inicio]);?><br>

                                    Al&nbsp;&nbsp;<?=fecha($info[fecha_fin]);?> </strong></td>

                                </tr>

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

                                  <td colspan="2" class="lbl_formulario"><hr size="1"></td>

                                </tr>

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

                                  <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="parrafo"><strong>Preguntas:</strong></td>

                                  <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="font_red_11"><strong>

                                    <?=$cant;?>

                                  </strong></span><span class="parrafo"><strong> preguntas agregadas a esta encuesta.</strong></span></td>

                                </tr>

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

                                  <td colspan="2" class="lbl_formulario"><hr align="center" size="1"></td>

                                </tr>

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

                                  <td colspan="2" class="lbl_formulario"><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                    <tr bgcolor="#336699" class="titulo_seccion_blanco">

                                      <td width="53%" bgcolor="#6699CC"><div align="center" class="titulo_seccion_blanco">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td background="../images/tema/bg_titulo_frm.png">Agregar preguntas </td>
                                          </tr>
                                        </table>
                                      </div></td>

                                      <td width="47%" bgcolor="#6699CC"><div align="center" class="titulo_seccion_blanco">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td background="../images/tema/bg_titulo_frm.png"><img src="../images/tema/ic_buscar.png" width="35" height="32"></td>
                                            <td background="../images/tema/bg_titulo_frm.png">Modificar pregunta(s) </td>
                                          </tr>
                                        </table>
                                      </div></td>

                                    </tr>

                                    <tr bgcolor="#DBE9FD">

                                      <td valign="top" background="../images/tema/bg_frm_campos.png" bgcolor="#C6DCFB"><div align="center">

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

                                          <tr>

                                            <td width="4%" align="center" valign="middle" bgcolor="#FFFFFF"><div align="right"><img src="../images/flecha_1.png" width="9" height="9"></div></td>

                                            <td width="96%" align="left" valign="middle" bgcolor="#FFFFFF" class="lbl_formulario"><div align="left"><a href="frm_add_m_pregunta.php?ide=<?=$ide;?>" class="menu_opcion"><strong>Una pregunta de selecci&oacute;n m&uacute;ltiple </strong></a></div></td>

                                          </tr>

                                        </table>

                                        <br>

                                        <span class="style1"></span></div></td>

                                      <td valign="top" background="../images/tema/bg_frm_campos.png" bgcolor="#C6DCFB"><table width="95%"  border="0" align="center" cellpadding="1" cellspacing="1">

                                        <tr>

                                          <td width="5%" align="center" valign="middle" bgcolor="#FFFFFF"><div align="right"><img src="../images/flecha_1.png" width="9" height="9"></div></td>

                                          <td width="95%" align="left" valign="middle" bgcolor="#FFFFFF" class="lbl_formulario"><div align="left"><a href="frm_preguntas_encuesta.php?ide=<?=$ide;?>" class="menu_opcion"><strong>Modificar preguntas (ver listado) </strong></a></div></td>

                                        </tr>

                                      </table></td>

                                    </tr>

                                  </table>

                                    <br>

                                    <img src="../images/cuad_1.png" width="9" height="9" border="0"><a href="frm_mis_encuestas.php" class="link_parrafo">Regresar [Ver mis encuestas] </a></td>

                                  </tr>

                              </table></td>

                            </tr>

                      </table>

                    &nbsp;</td>

                  </tr>

                </table>

              </div></td>

              </tr>

          </table></td>

        </tr>

    </table>    </td>

  </tr>

</table>

</body>

</html>