|
$consulta="SELECT * FROM escolaridad WHERE (Grupo='A') and institucion='$in' and Nivel=$ni and Anio='$anio' ORDER BY Grupo, NroLista ASC";
$sql=mysql_query($consulta,$conexion);
$contador=0;
while ($row = mysql_fetch_array($sql)){
$ci=$row['Ci'];
$nro=$row['NroLista'];
$Foto=str_replace('.','',$ci);
$Foto="fotos/".$Foto.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/".$ci.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/NoDisponible.bmp";
}
}
$consulta2="SELECT * FROM alumnos WHERE CI='$ci'";
$sql2=mysql_query($consulta2,$conexion);
$row2 = mysql_fetch_array($sql2);
$nom=utf8_decode($row2['Nombre']);
$nombres=explode(',',$nom);
$nombre=explode(' ',$nombres[0]);
echo "
|
| ";
$contador++;
if ($contador==5){
$contador=0;
echo "
";
}
}
?>
 |
$consulta="SELECT * FROM escolaridad WHERE (Grupo='B') and institucion='$in' and Nivel=$ni and Anio='$anio' ORDER BY Grupo, NroLista ASC";
$sql=mysql_query($consulta,$conexion);
$contador=0;
while ($row = mysql_fetch_array($sql)){
$ci=$row['Ci'];
$nro=$row['NroLista'];
$Foto=str_replace('.','',$ci);
$Foto="fotos/".$Foto.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/".$ci.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/NoDisponible.bmp";
}
}
$consulta2="SELECT * FROM alumnos WHERE CI='$ci'";
$sql2=mysql_query($consulta2,$conexion);
$row2 = mysql_fetch_array($sql2);
$nom=utf8_decode($row2['Nombre']);
$nombres=explode(',',$nom);
$nombre=explode(' ',$nombres[0]);
echo "
|
| ";
$contador++;
if ($contador==5){
$contador=0;
echo "
";
}
}
?>
|
 |
 |
$consulta="SELECT * FROM escolaridad WHERE (Grupo='C') and institucion='$in' and Nivel=$ni and Anio='$anio' ORDER BY Grupo, NroLista ASC";
$sql=mysql_query($consulta,$conexion);
$contador=0;
while ($row = mysql_fetch_array($sql)){
$ci=$row['Ci'];
$nro=$row['NroLista'];
$Foto=str_replace('.','',$ci);
$Foto="fotos/".$Foto.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/".$ci.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/NoDisponible.bmp";
}
}
$consulta2="SELECT * FROM alumnos WHERE CI='$ci'";
$sql2=mysql_query($consulta2,$conexion);
$row2 = mysql_fetch_array($sql2);
$nom=utf8_decode($row2['Nombre']);
$nombres=explode(',',$nom);
$nombre=explode(' ',$nombres[0]);
echo "
|
| ";
$contador++;
if ($contador==5){
$contador=0;
echo "
";
}
}
?>
 |
$consulta="SELECT * FROM escolaridad WHERE (Grupo='D') and institucion='$in' and Nivel=$ni and Anio='$anio' ORDER BY Grupo, NroLista ASC";
$sql=mysql_query($consulta,$conexion);
$contador=0;
while ($row = mysql_fetch_array($sql)){
$ci=$row['Ci'];
$nro=$row['NroLista'];
$Foto=str_replace('.','',$ci);
$Foto="fotos/".$Foto.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/".$ci.".jpg";
if (!file_exists($Foto)) {
$Foto="fotos/NoDisponible.bmp";
}
}
$consulta2="SELECT * FROM alumnos WHERE CI='$ci'";
$sql2=mysql_query($consulta2,$conexion);
$row2 = mysql_fetch_array($sql2);
$nom=utf8_decode($row2['Nombre']);
$nombres=explode(',',$nom);
$nombre=explode(' ',$nombres[0]);
echo "
|
| ";
$contador++;
if ($contador==5){
$contador=0;
echo "
";
}
}
?>
|