Exemplo n.º 1
0
$tipoe = $fechaSis > $fechae ? 'hidden' : 'text';
$smarty->assign('tipoe', $tipoe);
$obj->getListadosXMateria($id_materia, $id_grupo, $id_gestion, $id_periodo);
if ($obj->tuplas) {
    $smarty->assign('n', count($obj->tuplas));
    foreach ($obj->tuplas as $row) {
        $nombre = $row["paterno"] . " " . $row["materno"] . ",  " . $row["nombres"];
        if ($Carrer_Id == 'ARM') {
            if ($row["nota"] >= $nota_habilitacion) {
                $enabled = "";
            } else {
                $enabled = "disabled";
            }
        }
        $smarty->append('alumnos', array('nombre' => $nombre, 'nro_dip' => $row["nro_dip"], 'id_alumno' => post_crypt($row["id_alumno"]), 'pparcial' => $row["pparcial"], 'sparcial' => $row["sparcial"], 'tparcial' => $row["tparcial"], 'cparcial' => $row["cparcial"], 'promparcial' => $row["promparcial"], 'pract' => $row["pract"], 'prompract' => $row["prompract"], 'lab' => $row["lab"], 'promlab' => $row["promlab"], 'notapres' => $row["notapres"], 'exfinal' => $row["exfinal"], 'promexfinal' => $row["promexfinal"], 'nota' => $row["nota"], 'nota_2da' => $row["nota_2da"], 'nota_ex_mesa' => $row["nota_ex_mesa"], 'tipo_prog' => $row["tipo_prog"], 'enabled' => $enabled));
    }
} else {
    //$p->Aviso("Esta materia no tiene alumnos asignados");
    $smarty->assign('aviso', "Esta materia no tiene alumnos asignados");
}
if ($id_periodo == '3') {
    $num_parc = '2';
    $smarty->assign('num_parc', $num_parc);
}
//    echo "---- $fechaf ---- $fechae -- $fechaSis - $tipof--";
//$smarty->display('notas2.tpl');
$p->CabeceraGeneralIntNotas('U.A.T.F.>DOCENTE', $menu->menu_docentes_internas(), $nombrec, $gestion);
$smarty->display('notas2.tpl');
$p->PiedePaginaNotas();
//$p->pie();
$obj->Close();