include("../conexion.php");
$idd =$_GET[idd];
$idg =$_GET[idg];
$idc =$_GET[idc];
$idm =$_GET[idm];
$sig =$_GET[sig];
$ges =$_GET[ges];
$per =$_GET[per];
$planestudio=pg_exec("select * from pland where id_plan='8'");
$k1=pg_numrows($planestudio);
if($k1==0)
{echo "no existe el periodo que corresponde";exit;}
for($i=0;$i<$k1;$i++)
{
$idp=pg_result($planestudio,$i,0);
$num=pg_result($planestudio,$i,1);
$nop=pg_result($planestudio,$i,2);
}
$usuar=pg_exec("select * from usuario where id_docente='$idd'");
$t=pg_numrows($usuar);
if($t==0)
{echo "no existe el periodo que corresponde";exit;}
for($col=0;$col<$t;$col++)
{
$tr=pg_result($usuar,$col,3);
$nom=pg_result($usuar,$col,4);
$pat=pg_result($usuar,$col,5);
$mat=pg_result($usuar,$col,6);
$cor=pg_result($usuar,$col,8);
}
//Lista la carrera
$carrera=pg_exec("select * from alm_programas where id_programa='$idc'");
$y=pg_numrows($carrera);
if($y==0)
{echo "No existe la carrera";exit;}
for($x=0;$x<$y;$x++)
{
$nca=pg_result($carrera,$x,1);
$idf=pg_result($carrera,$x,2);
}
//MOSTRAR MATERIA
$materia=pg_exec("select * from pln_materias where sigla='$sig' and id_dpto='$idc'");
$f=pg_numrows($materia);
if($f==0)
{echo "No tiene sigla ...";exit;}
for($c=0;$c<$f;$c++)
{
$idm=pg_result($materia,$c,0);
$sigm=pg_result($materia ,$c,1);
$nomm=pg_result($materia ,$c,2);
}
echo "";
echo "";
echo "";
echo " | ";
echo "";
echo "Universidad: ";
echo "Materia: ";
echo "Sigla: ";
echo " | ";
echo "";
echo "UNIVERSIDAD SALESIANA DE BOLIVIA ";
echo "$nomm ";
echo "$sig ";
echo " | ";
echo "";
echo " ";
echo " | ";
echo " ";
echo " ";
echo "$num $nop";
$conte1=pg_exec("select * from contenidos where id_docente='$idd' and id_materia='$idm' and id_programa='$idc' and id_gestion='$ges' and id_periodo='$per' and id_grupo='$idg' and id_plan='8' and tipo_id_contenido='0' ORDER BY orden ASC");
$g=pg_numrows($conte1);
if($g==0)
{echo " No registro sus objetivos de la materia";exit;}
echo "";
for($y=0;$y<$g;$y++)
{
$mens=pg_result($conte1,$y,0);
$adj=pg_result($conte1,$y,2);
$titu=pg_result($conte1,$y,11);
$detal=pg_result($conte1,$y,12);
$det=str_replace(Chr(13)," ",$detal);
$adjunto=pg_exec("select * from adjuntos where id_mensaje='$mens'");
$w1=pg_numrows($adjunto);
if($w1==0)
{echo "";}
for($r=0;$r<$w1;$r++)
{
$archi=pg_result($adjunto,$r,3);
}
echo "";
echo "";
echo "$titu";
echo " | ";
echo " ";
echo "";
echo "";
echo " $det ";
echo " | ";
echo " ";
echo "";
echo "";
if($w1!=0){
echo "Adjunto $archi
";
}else
echo "$archi";
echo " | ";
echo " ";
}
echo " ";
?>
|