예제 #1
0
$smarty->assign('tipof', $tipof);
$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();
예제 #2
0
$smarty->assign('tipof', $tipof);
$tipoe = $fechaSis > $fechae ? 'hidden' : 'text';
$smarty->assign('tipoe', $tipoe);
if ($f->filas > 0) {
    $smarty->assign('n', $f->filas);
    for ($i = 0; $i < $f->filas; $i++) {
        $f->leer($i);
        $nombre = $f->datos->paterno . " " . $f->datos->materno . ",  " . $f->datos->nombres;
        if ($Carrer_Id == 'ARM') {
            if ($f->datos->nota >= $nota_habilitacion) {
                $enabled = "";
            } else {
                $enabled = "disabled";
            }
        }
        $smarty->append('alumnos', array('nombre' => $nombre, 'nro_dip' => $f->datos->nro_dip, 'id_alumno' => post_crypt($f->datos->id_alumno), 'pparcial' => $f->datos->pparcial, 'sparcial' => $f->datos->sparcial, 'tparcial' => $f->datos->tparcial, 'cparcial' => $f->datos->cparcial, 'promparcial' => $f->datos->promparcial, 'pract' => $f->datos->pract, 'prompract' => $f->datos->prompract, 'lab' => $f->datos->lab, 'promlab' => $f->datos->promlab, 'notapres' => $f->datos->notapres, 'exfinal' => $f->datos->exfinal, 'promexfinal' => $f->datos->promexfinal, 'nota' => $f->datos->nota, 'nota_2da' => $f->datos->nota_2da, 'nota_ex_mesa' => $f->datos->nota_ex_mesa, 'tipo_prog' => $f->datos->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->CabeceraGeneralInt('U.A.T.F.>DOCENTE', $menu->menu_docentes_internas(), $nombrec, $gestion);
$smarty->display('notas22.tpl');
$p->PiedePagina();
//$p->pie();