Ver Mensaje Individual
  #12 (permalink)  
Antiguo 04/12/2006, 10:51
annel_galvez
 
Fecha de Ingreso: agosto-2003
Ubicación: pachuca,hgo
Mensajes: 132
Antigüedad: 21 años, 3 meses
Puntos: 0
tambien aqui..

<tr>
<td align="left" colspan="2">
<label>Comentario: </label><input type="text" name="txtcomenta" value="<?echo "$comentario";?>" size="80" disabled>
</td>
</tr>
<tr>
<td colspan="2">
<fieldset><legend>SITUACION</legend>
<table align="center" width="100%" border="1">
<tr>
<td align="left">
<?if ($repetidor=="*"){?>
<input type="checkbox" name="chkrepeti" value="1" checked disabled><font color="#FF0000">Repetidor</font>
<?}else{?>
<input type="checkbox" name="chkrepeti" value="1" disabled>Repetidor
<?}?>
</td>
<td align="left">
<?if ($cambio=="*"){?>
<input type="checkbox" name="chkcambioplan" value="1" checked disabled><font color="#FF0000">Cambio de Plantel</font>
<?}else{?>
<input type="checkbox" name="chkcambioplan" value="1" disabled>Cambio de Plantel
<?}?>
</td>
</tr>
<tr>
<td align="left">
<?if ($equiva=="*"){?>
<input type="checkbox" name="chkequiva" value="1" checked disabled><font color="#FF0000">Equivalencia</font>
<?}else{?>
<input type="checkbox" name="chkequiva" value="1" disabled>Equivalencia
<?}?>
</td>
<td align="left">
<?if ($convalida=="*"){?>
<input type="checkbox" name="chkconva" value="1" checked disabled><font color="#FF0000">Convalidación</font>
<?}else{?>
<input type="checkbox" name="chkconva" value="1" disabled>Convalidación
<?}?>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td colspan="2">
<fieldset><legend>MATERIAS</legend>
<table border="1" width="100%">
<tr><td>CLAVE</td><td>MATERIA</td><td>ACTIVO</td><td>PAR1</td><td>TIPO</td><td>PAR2</td><td>TIPO</td>
<td>PAR3</td><td>TIPO</td><td>GLOBAL</td><td>TIPO</td><td>FINAL</td><td>TIPO</td><td>ORDINAL</td>
<td>EXTRA1</td><td>TIPO</td><td>EXTRA2</td><td>TIPO</td><td>RA</td><td>TIPO</td>
</tr>
<?
$querycalif = "SELECT catmaterias.id_materia AS Clave, catmaterias.descrip_mat AS Materia,";
$querycalif .= "calificaciones.activo, calificaciones.par1, calificaciones.tip_par1, calificaciones.par2, calificaciones.tip_par2, calificaciones.par3, calificaciones.tip_par3,";
$querycalif .= "calificaciones.global, calificaciones.tip_global, calificaciones.final, calificaciones.tipo_final, calificaciones.ordinal, calificaciones.extra1, calificaciones.tip_ext1,";
$querycalif .= "calificaciones.extra2, calificaciones.tip_ext2, calificaciones.rec_aca, calificaciones.tip_rec FROM calificaciones, catmaterias WHERE calificaciones.id_materia = Catmaterias.id_materia AND calificaciones.id_kardex like '$idkardex' ORDER BY catmaterias.creditos DESC, descrip_mat";
$resulcalif=pg_query($querycalif);
$filascalif=pg_numrows($resulcalif);

for ($x=0; $x<$filascalif; $x++){
$idmate=pg_fetch_result($resulcalif,$x,0);
$descmate=pg_fetch_result($resulcalif,$x,1);
//echo "la materia es $descmate";
$activo=pg_fetch_result($resulcalif,$x,2);
$par1=pg_fetch_result($resulcalif,$x,3);
if ($par1==null){
$par1="-";
}
$tipar1=pg_fetch_result($resulcalif,$x,4);
if ($tipar1==null){
$tipar1="-";
}
$par2=pg_fetch_result($resulcalif,$x,5);
if ($par2==null){
$par2="-";
}
$tipar2=pg_fetch_result($resulcalif,$x,6);
if ($tipar2==null){
$tipar2="-";
}
$par3=pg_fetch_result($resulcalif,$x,7);
if ($par3==null){
$par3="-";
}
$tipar3=pg_fetch_result($resulcalif,$x,8);
if ($tipar3==null){
$tipar3="-";
}
$global=pg_fetch_result($resulcalif,$x,9);
if ($global==null){
$global="-";
}
$tipglobal=pg_fetch_result($resulcalif,$x,10);
if ($tipglobal==null){
$tipglobal="-";
}
$final=pg_fetch_result($resulcalif,$x,11);
if ($final==null){
$final="-";
}
$tipfinal=pg_fetch_result($resulcalif,$x,12);
if ($tipfinal==null){
$tipfinal="-";
}
$ordinal=pg_fetch_result($resulcalif,$x,13);
if ($ordinal==null){
$ordinal="-";
}
$e1=pg_fetch_result($resulcalif,$x,14);
if ($e1==null){
$e1="-";
}
$tipe1=pg_fetch_result($resulcalif,$x,15);
if ($tipe1==null){
$tipe1="-";
}
$e2=pg_fetch_result($resulcalif,$x,16);
if ($e2==null){
$e2="-";
}
$tipe2=pg_fetch_result($resulcalif,$x,17);
if ($tipe2==null){
$tipe2="-";
}
$ra=pg_fetch_result($resulcalif,$x,18);
if ($ra==null){
$ra="-";
}
$tipra=pg_fetch_result($resulcalif,$x,19);
if ($tipra==null){
$tipra="-";
}

?>
<tr>
<td><? echo "$idmate"?></td><td align="left"><? echo "$descmate"?></td><td><? echo "$activo"?></td>
<td><? echo "$par1"?></td><td><? echo "$tipar1"?></td><td><? echo "$par2"?></td><td><? echo "$tipar2"?></td>
<td><? echo "$par3"?></td><td><? echo "$tipar3"?></td><td><? echo "$global"?></td><td><? echo "$tipglobal"?></td>
<td><? echo "$final"?></td><td><? echo "$tipfinal"?></td><td><? echo "$ordinal"?></td>
<td><? echo "$e1"?></td><td><? echo "$tipe1"?></td><td><? echo "$e2"?></td><td><? echo "$tipe2"?></td>
<td><? echo "$ra"?></td><td><? echo "$tipra"?></td>
</tr>

<?
}
?>
</table>
</fieldset>
</td>
</tr>
<tr>
<td colspan="2">
<div id="periodos" style="visibility:visible">
<fieldset><legend>PERIODOS ANTERIORES</legend>
<table border="1" width="100%">
<tr><td colspan="4">PERIODOS CURSADOS (ANTERIORES)</td></tr>
<tr><td>ID PERIODO</td><td>PERIODO ESCOLAR</td><td>SEMESTRE</td><td>SITUACIÓN</td></tr>
<?
$query="select kardex.id_kardex, kardex.id_alumno, kardex.id_periodo, kardex.semestre, kardex.situacion,";
$query .= " periodo_escolar.id_periodo, periodo_escolar.descripcion_per";
$query .= " from kardex, periodo_escolar where kardex.id_alumno like '$idalum'";
$query .= " and kardex.id_periodo=periodo_escolar.id_periodo order by kardex.id_periodo desc";
$resulta=pg_query($query);
$filas=pg_numrows($resulta);
for ($y=0; $y<$filas; $y++){
$idper=pg_fetch_result($resulta,$y,2);
$descper=pg_fetch_result($resulta,$y,6);
$se=pg_fetch_result($resulta,$y,3);
$situa=pg_fetch_result($resulta,$y,4);
?>
<tr>
<td><?echo "$idper"?></td><td><?echo "$descper"?></td><td><?echo "$se"?></td><td><?echo "$situa"?></td>
</tr>
<?
}
?>
</table>
</fieldset>
</div>
</td>
</tr>
</table>
<?
}
}

else
{
$texto="<font class='v7n'>Introduce una Matrícula válida</font>";
}
echo $texto;
?>
__________________
just do it