<?

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

enlinea_a();



if($idu){

 $idunidad=base64_decode($idu);

 $idgrado=base64_decode($idg);

 $idcurso=dec($idc);

 $qver=mysql_query("select * from contenidos where unidad = '$idunidad' and grado = '$idgrado' and curso='$idcurso'");

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

   $tipo="Add";

 }else{

  $info=mysql_fetch_array($qver);

  $tipo="Update";

 }

}

?>

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

<script type="text/javascript" src="../jsincludes/overlib.js"></script>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>

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



<body>

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

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

  <tr>

    <td>    <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" bgcolor="#FFFFCC">

        <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"><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>ADMINISTRACION DE CONTENIDOS POR UNIDAD ACADEMICA</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></td>

            </tr>

            <tr>

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

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

                  <tr>

                    <td><form name="form1" method="post" action="mnt_contenido_basicos.php">

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

                        <tr class="lbl_campo">

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">GRADO:</td>

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="titulo_seccion"><?=ggrado(enc(base64_decode($idg)));?>&nbsp;</td>
                        </tr>

                        <tr class="lbl_campo">

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">CURSO:</td>

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="titulo_seccion"><?=gcurso($idc);?></td>
                        </tr>

                        <tr class="lbl_campo">

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">UNIDAD:</td>

                          <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="titulo_seccion"><?=gunidad(enc(base64_decode($idu)));?>&nbsp;</td>
                        </tr>

                        <tr bgcolor="#FFFFFF">

                          <td colspan="2" background="../images/tema/bg_contenido.png"><div align="right"><a href="javascript:history.go(-1)" class="link_parrafo"><img src="../images/regresar_c.png" width="32" height="32" border="0"><br>

                              Regresar</a></div></td>
                        </tr>

                        <tr background="../images/tema/bg_frm_campos.png">
                          <td colspan="2" bgcolor="#CFDFEF" class="titulo_seccion"><div id="paneles" class="TabbedPanels">
                            <ul class="TabbedPanelsTabGroup">
                              <li class="TabbedPanelsTab" tabindex="0">Competencia</li>
                              <li class="TabbedPanelsTab" tabindex="0">Indicadores 
                              de logro</li>
                              <li class="TabbedPanelsTab" tabindex="0">Contenidos</li>
                              <li class="TabbedPanelsTab" tabindex="0">Actividades</li>
                              <li class="TabbedPanelsTab" tabindex="0">Evaluaci&oacute;n</li>
                            </ul>
                            <div class="TabbedPanelsContentGroup">
                              <div class="TabbedPanelsContent">
                                <textarea name="txtcompetencia" cols="80" rows="8" class="textbox" id="txtcompetencia"><?=$info[competencia];?></textarea>
                              </div>
                              <div class="TabbedPanelsContent">
                                <textarea name="txtcontenido" cols="80" rows="8" class="textbox" id="txtcontenido"><?=$info[contenido];?></textarea>
                              </div>
                              <div class="TabbedPanelsContent">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="15%">Declarativo:</td>
                                    <td width="85%"><textarea name="txtdeclarativo" cols="80" rows="8" class="textbox" id="txtdeclarativo"><?=$info[declarativos];?></textarea></td>
                                  </tr>
                                  <tr>
                                    <td>Procedimental:</td>
                                    <td><textarea name="txtprocedimental" cols="80" rows="8" class="textbox" id="txtprocedimental"><?=$info[procedimentales];?></textarea></td>
                                  </tr>
                                  <tr>
                                    <td>Actitudinal:</td>
                                    <td><textarea name="txtactitudinal" cols="80" rows="8" class="textbox" id="txtactitudinal"><?=$info[actitudinales];?></textarea></td>
                                  </tr>
                                </table>
                              </div>
                              <div class="TabbedPanelsContent">
                                <textarea name="txtevaluacion" cols="80" rows="8" class="textbox" id="txtevaluacion"><?=$info[evaluacion];?></textarea>
                              </div>
                              <div class="TabbedPanelsContent">
                                <textarea name="txtrecurso" cols="80" rows="8" class="textbox" id="txtrecurso"><?=$info[recurso];?></textarea>
                              </div>
                            </div>
                          </div></td>
                        </tr>
                        <tr>

                          <td width="13%" bgcolor="#CFDFEF"><input name="submit" type="submit" class="boton_guardar" id="submit" value="Guardar"></td>

                          <td width="87%" bgcolor="#CFDFEF"><input name="idu" type="hidden" id="idu" value="<?=enc(base64_decode($idu));?>">

                            <input name="idg" type="hidden" id="idg" value="<?=enc(base64_decode($idg));?>">

                            <input name="tipo_trn" type="hidden" id="tipo_trn" value="<?=$tipo;?>">

                            <input name="idc" type="hidden" id="idc" value="<?=$idc;?>"></td>
                        </tr>
                      </table>

                    </form></td>

                  </tr>

                </table>

                <br>

              </div></td>

              </tr>

          </table></td>

        </tr>

    </table>    </td>

  </tr>

</table>

<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("paneles", {defaultTab:0});
//-->
</script>
</body>

</html>
