示例#1
0
 function obtenerCursos()
 {
     $SQL = "SELECT * FROM " . $this->schema . "curso";
     $result = DBQuery($SQL, $this->dbh);
     while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
         $cursos[$row['curso']] = $row;
         $cursos[$row['curso']]['nombre_curso'] = mostrar_curso($row['curso']);
         $cursos[$row['curso']]['nombre_curso_completo'] = mostrar_curso($row['curso'], true);
     }
     return $cursos;
 }
示例#2
0
 function obtenerAlumnosBusqueda($dato, $matricula = null, $curso = null)
 {
     $alumnos = null;
     $and = "";
     if ($matricula) {
         $and = "AND ultima_matricula = '{$matricula}'";
     }
     if ($curso) {
         $andCurso = "AND curso = '{$curso}'";
     }
     $SQL = "SELECT * FROM alumnos WHERE ( CONCAT(nombres, ' ', apellidop, ' ', apellidom) LIKE '%{$dato}%' OR rut LIKE '%{$dato}%' ) {$and} {$andCurso}\r\n                     ORDER BY curso";
     $result = DBQuery($SQL, $this->dbh);
     while ($row = DBFetchArray($result)) {
         $alumnos[$row['rut']] = $row;
         $alumnos[$row['rut']]['nombre_curso'] = mostrar_curso($row['curso'], true);
     }
     return $alumnos;
 }
示例#3
0
				<td align="center">
					<a href="Javascript:agregar_elemento();" class="fontlinkred" title="Agregar Egreso">inscribir&gt;&gt;</a>
                    <br><a href="Javascript:eliminar_elemento();" class="fontlinkred" title="Quitar Egreso">desincribir&lt;&lt;</a>
				</td>
				<td align="center" id="td_form_egresos" class="tableborder1">CURSOS EN EL CICLO
					<select id="elementos_seleccionados" name="elementos_seleccionados" multiple="true" size="10" style="width:300px;height:150px;color:000066;background-color:blank;font-size:12px;font-family:courier;">
        				<?//dpr($ciclos[$_SESSION['aux_ciclo']]['cursos']);
                            if (count($ciclos[$_SESSION['aux_ciclo']]['cursos'])>0)
                                foreach($ciclos[$_SESSION['aux_ciclo']]['cursos'] AS $curso_con => $curso_con_data):?>
                        <option values="<?php 
echo $curso_con_data;
?>
" id="<?php 
echo $curso_con_data;
?>
"><?php 
echo mostrar_curso($curso_con_data, true);
?>
</option>
                        <?endforeach?>
					</select>
				</td>
	</tr>
    </form>
</table>
</div>
<div id="footer">
	Sociedad Educacional Osorio Zamora &copy; 2007, Contacto: <a href="mailto:edgar.sanchez@dor.cl">Webmaster</a>
</div>
</div>
</body>
示例#4
0
            $criteria->find($alumnoGuardar);
            $alumnoGuardar->lista = $i++;
            $criteria->merge($alumnoGuardar);
        }
        moveLocationFast("UTP-listaCurso.php?curso=" . $curso . "&exito=exito");
    }
}
$orden_alfabetico = false;
if (isset($_POST['buscar'])) {
    if ($_POST['buscar'] == "orden_alfabetico") {
        $smarty->assign("warning", "Para que la lista quede guardada debe presionar el botón guardar");
        $orden_alfabetico = true;
    }
}
$criteria->createCriteria($alumno);
$criteria->add(Restrictions::eq("curso", $curso));
if (!$orden_alfabetico) {
    $criteria->addOrder(Order::asc("lista"));
} else {
    $criteria->addOrder(Order::asc("apellidop, apellidom, nombres"));
}
$listAlumnos = $criteria->lista();
$smarty->assign("listAlumnos", $listAlumnos);
$smarty->assign("titulo_principal", mostrar_curso($curso, true));
$smarty->assign("title", "UTP: Modificar Cursos");
$smarty->assign("titulo_secundario", "Listado Alumnos");
$menu[] = array("img" => "", "url" => "modificar_cursos.php", "text" => "Volver", "title" => "Volver", "alt" => "Volver");
$menu[] = array("img" => "", "url" => "#", "text" => "Lista Alumnos", "title" => "Lista Alumnos", "alt" => "Lista Alumnos", "id" => "", "class" => "current_page_item");
$smarty->assign("menu", $menu);
$smarty->assign("file_content", "utp/UTP-listaCurso.tpl");
$smarty->display('layout/main.tpl');
示例#5
0
    session_destroy();
    moveLocation("../ingreso.php", 0, 2);
}
//dpr($_SESSION);
/***********************************
Librería para los templates
***********************************/
require "../smartyLib/Smarty.class.php";
$smarty = new Smarty();
smartyTemplate($smarty, "../");
$class_curso = new curso();
$cursos = $class_curso->obtenerCursos();
//dpr($cursos);
$select_curso = null;
if (count($cursos) > 0) {
    foreach ($cursos as $curso => $datos_curso) {
        $vals_curso[] = $curso;
        $output_curso[] = mostrar_curso($curso, true);
        if (isset($_SESSION['variables_aux']->curso) && $_SESSION['variables_aux']->curso == $curso) {
            $select_curso = $curso;
        }
    }
}
$smarty->assign("vals_curso", $vals_curso);
$smarty->assign("output_curso", $output_curso);
$smarty->assign("select_curso", $select_curso);
$smarty->assign("file_content", "PROF-cursos.tpl");
$smarty->assign("titulo_principal", "Profesores");
$smarty->assign("file_sidebar", "SIDEBAR-profesoresCursos.tpl");
$smarty->assign("titulo_secundario", "Cursos [" . $_SESSION['base_datos']->anio . "]");
$smarty->assign("title", "Profesores");
示例#6
0
<p id="noImprimir"><a href="javascript:window.print()"><img src="images/impresora.gif" width="56" height="87"><br />
Imprimir</a></p>

<p class="Estilo1">
<?php 
DBConnect($dbh);
$sql44 = 'SELECT * FROM `alumnos` WHERE rut =' . "'" . $rut . "'";
$sql45 = 'SELECT * FROM `mensualidades` WHERE rut =' . "'" . $rut . "'";
$result44 = mysql_query($sql44, $dbh);
$row44 = mysql_fetch_array($result44);
$result45 = mysql_query($sql45, $dbh);
$row45 = mysql_fetch_array($result45);
$nombres = $row44["nombres"];
$apellidop = $row44["apellidop"];
$curso = $row44["curso"];
$curso = mostrar_curso($curso);
$desc = $row45["descuentos"];
$mensualidad = $row45["mensualidad"];
$sql46 = 'SELECT * FROM `apoderados` WHERE rut =' . "'" . $rut . "'";
$result46 = mysql_query($sql46, $dbh);
$row46 = mysql_fetch_array($result46);
$nombreapo = $row46["nombre"];
echo "<br /><br /><br />{$fechadia} / {$fechames} / {$fechaanio}";
?>
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br /><br /><br />
</p>
<p class="Estilo1">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo "{$nombreapo}";
?>
示例#7
0
$pdf = new PDF();
$pdf->FPDF('P', 'mm', 'Legal');
DBConnect($dbh);
if (isset($_GET['rut'])) {
    $sql = 'SELECT * FROM `alumnos` where `rut`=' . "'" . $rut . "'";
} else {
    $sql = "SELECT * FROM `alumnos` where ultima_matricula='{$anio}' AND curso = '{$_GET['curso']}'";
}
$result = mysql_query($sql, $dbh);
while ($row = mysql_fetch_array($result)) {
    $rut = $row['rut'];
    $apellidop = $row["apellidop"];
    $apellidom = $row["apellidom"];
    $nombres = $row["nombres"];
    $curso = $row["curso"];
    $curso = mostrar_curso(promocionarCurso($curso));
    $pdf->AddPage();
    $beca_alumno = $class_arancel->obtenerBeca($colegio_ID, $rut, $anio_matricula);
    $alumno = $apellidop . " " . $apellidom . " " . $nombres;
    $sql2 = 'SELECT * FROM `apoderados` WHERE `rut`=' . "'" . $rut . "';";
    $result2 = mysql_query($sql2, $dbh);
    $row2 = mysql_fetch_array($result2);
    $apoderado = $row2["nombre"];
    $sql3 = 'SELECT * FROM `mensualidades` WHERE `rut`=' . "'" . $rut . "';";
    $result3 = mysql_query($sql3, $dbh);
    $row3 = mysql_fetch_array($result3);
    $mensualidad = $arancel['aran_monto'];
    $descuento = $beca_alumno['beca_porcentaje'];
    $descuento = $mensualidad * ($descuento / 100);
    $total = $mensualidad - $descuento;
    $mensualidad2 = number_format($mensualidad, 0, ",", ".");
示例#8
0
<?headers("Profesores", "../../");?>
<body>
<div id="wrap">
<div id="header">
<table border="0" width="800">
	<tr>
		<td width="50%">
			<h1><a href="#"><?php 
echo $titulo_izq;
?>
</a></h1>
		</td>
		<td align="right" width="33%">
            <h1><a href="#"><?php 
echo mostrar_curso($titulo_der);
?>
</a> &nbsp;</h1>
		</td>
		<td align="right">
			<img src="<?php 
echo $path;
?>
/logo_chico.png">
		</td>
	</tr>
</table>
</div>
<div id="intro">
	<table>
		<tr>
			<td align="center" width="100">
 $pdf->Cell(0, 4, '             Reconocido Oficialmente por el Ministerio de Educación de la República de Chile según decreto Nº' . $_SESSION['colegio']->col_decreto . ' del año ' . $_SESSION['colegio']->col_anio . ' ', 0, 1, 'L');
 $pdf->Cell(0, 4, ' Rol Base de Datos ' . $rbd, 0, 1, 'L');
 $pdf->ln();
 $apellidop = $row2["apellidop"];
 $apellidom = $row2["apellidom"];
 $nombres = $row2["nombres"];
 $rut = $row2["rut"];
 $fill = 1;
 $pdf->SetFillColor(210);
 $pdf->SetTextColor(0);
 $pdf->Cell(30, 4, 'Alumno(a): ', 1, 0, 'R');
 $pdf->Cell(0, 4, $apellidop . " " . $apellidom . " " . $nombres, 1, 1, 'L');
 $pdf->Cell(30, 4, 'R.U.T. :', 1, 0, 'R');
 $pdf->Cell(0, 4, $rut, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Curso :', 1, 0, 'R');
 $curso2 = mostrar_curso($curso, true);
 $pdf->Cell(0, 4, $curso2, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Profesor Jefe :', 1, 0, 'R');
 $pdf->Cell(0, 4, $pjefe, 1, 1, 'L');
 $pdf->ln();
 $pdf->SetFont('Arial', 'B', 12);
 //######################################## DESARROLLO ESCOLAR #############################
 if ($periodo == "1S") {
     $descPeriodo = " PRIMER SEMESTRE";
 }
 $pdf->Cell(0, 10, 'INFORME ESCOLAR' . $descPeriodo, 0, 1, 'C');
 $pdf->SetFont('Times', '', 10);
 $pdf->SetTextColor(0);
 $sql4 = 'SELECT * FROM ' . $dataBase . '.ramos WHERE `curso` =' . "'" . $curso . "' ORDER BY num";
 $result4 = mysql_query($sql4, $dbh);
 $sql99 = 'SELECT * FROM ' . $dataBase . '.curso WHERE `curso` =' . "'" . $curso . "'";
示例#10
0
include_once "../class/class_curso.php";
validarAcceso(AuthUser::TIPO_UTP, "../");
/***********************************
Librería para los templates
***********************************/
require "../smartyLib/Smarty.class.php";
$smarty = new Smarty();
smartyTemplate($smarty, "../");
$class_curso = new curso();
$class_alumno = new alumno();
//dpr($_SESSION);
$_POST['curso'] = $_POST['curso'] ? $_POST['curso'] : $_SESSION['curso_seleccionado'];
$_SESSION['curso_seleccionado'] = $_POST['curso'];
$cursos = $class_curso->obtenerCursos();
if (count($cursos) > 0) {
    foreach ($cursos as $curso => $datos_curso) {
        $vals_curso[] = $curso;
        $output_curso[] = mostrar_curso($curso);
        if (isset($_POST['curso'])) {
            if ($_POST['curso'] == $curso) {
                $select_curso = $curso;
            }
        }
    }
}
//dpr($_SESSION);
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$smarty->assign("path", $_SESSION['path']);
$smarty->assign("vals_curso", $vals_curso);
$smarty->assign("output_curso", $output_curso);
if (!isset($select_curso)) {
示例#11
0
$aux = 10;
$contador = 0;
while ($row2 = mysql_fetch_array($result2)) {
    $pdf->Image('../' . $_SESSION[path] . '/logo.jpg', 10, $aux, 15);
    $rut = $row2["rut"];
    $apellidop = $row2["apellidop"];
    $apellidom = $row2["apellidom"];
    $nombres = $row2["nombres"];
    $sql3 = 'SELECT `pjefe` FROM `curso` WHERE curso =' . "'" . $a . "'";
    $result3 = mysql_query($sql3, $dbh);
    $row3 = mysql_fetch_array($result3);
    $pjefe = $row3["pjefe"];
    $pdf->SetFont('Times', '', 10);
    $pdf->encabezado($x1);
    $pdf->SetTextColor(1);
    $curso = mostrar_curso($a);
    $pdf->MultiCell(0, 5, 'Nombre Alumno: ' . $apellidop . " " . $apellidom . " " . $nombres . " - RUT: " . $rut . "\n Curso: " . $curso . " - Profesor Jefe:" . $pjefe, 1, 1);
    $sql8 = 'SELECT * FROM `ramos` WHERE curso = ' . "'" . $a . "'" . ' ORDER BY num';
    $result8 = mysql_query($sql8, $dbh);
    while ($row8 = mysql_fetch_array($result8)) {
        $nomramo = $row8["nombre"];
        $sql = 'SELECT * FROM `notas` WHERE rut =' . "'" . $rut . "'" . 'AND ramo=' . "'" . $nomramo . "'";
        $result = mysql_query($sql, $dbh);
        while ($row = mysql_fetch_array($result)) {
            $ramo = $row["ramo"];
            $pdf->SetTextColor(1);
            $pdf->SetFont('Arial', 'I', 6);
            $pdf->Cell(70, 5, $ramo, 1);
            for ($i = 16; $i <= 30; $i++) {
                $pdf->SetFont('Arial', 'I', 8);
                $n[$i] = $row["n{$i}"];
示例#12
0
 $pdf->ln();
 $apellidop = $row2["apellidop"];
 $apellidom = $row2["apellidom"];
 $nombres = $row2["nombres"];
 $rut = $row2["rut"];
 $fill = 1;
 //$pdf->SetTextColor(255);
 $pdf->SetFillColor(210);
 $pdf->Cell(0, 5, 'Datos Alumno:', 1, 1, 1, $fill);
 $pdf->SetTextColor(0);
 $pdf->Cell(30, 4, 'Alumno(a): ', 1, 0, 'R');
 $pdf->Cell(0, 4, $apellidop . " " . $apellidom . " " . $nombres, 1, 1, 'L');
 $pdf->Cell(30, 4, 'R.U.T. :', 1, 0, 'R');
 $pdf->Cell(0, 4, $rut, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Curso :', 1, 0, 'R');
 $curso2 = mostrar_curso($curso);
 $pdf->Cell(0, 4, $curso2, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Profesor Jefe :', 1, 0, 'R');
 $pdf->Cell(0, 4, $pjefe, 1, 1, 'L');
 $pdf->ln();
 $pdf->SetFont('Arial', 'B', 12);
 //######################################## DESARROLLO ESCOLAR #############################
 $pdf->Cell(0, 10, 'DESARROLLO ESCOLAR', 0, 1, 'C');
 $pdf->SetFont('Times', '', 10);
 $pdf->SetTextColor(0);
 $sql4 = 'SELECT * FROM `ramos` WHERE `curso` =' . "'" . $curso . "' ORDER BY num";
 $result4 = mysql_query($sql4, $dbh);
 $sql99 = 'SELECT * FROM `curso` WHERE `curso` =' . "'" . $curso . "'";
 $result99 = mysql_query($sql99, $dbh);
 $row99 = mysql_fetch_array($result99);
 $programa = $row99["programa"];
示例#13
0
    foreach ($ramos as $nom_ramo => $datos_ramo) {
        $pdf->RotatedText(100 + $x, $y, $nom_ramo, 30);
        $x = $x + 7;
    }
}
$pdf->SetTextColor(255, 0, 0);
$pdf->RotatedText(100 + $x, $y, "PROMEDIO FINAL", 30);
$pdf->SetTextColor(0, 0, 0);
$pdf->RotatedText(107 + $x, $y, "RELIGION", 30);
$pdf->RotatedText(114 + $x, $y, "ASISTENCIA %", 30);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Arial', '', 16);
$pdf->Cell(15, 5, " ", 0, 0);
$pdf->Cell(20, 5, $titulo . " ", 0, 1);
$pdf->Cell(15, 5, " ", 0, 0);
$pdf->Cell(20, 5, mostrar_curso($curso, true), 0, 1);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(15, 5, " ", 0, 0);
$pdf->Cell(20, 5, "PROFESOR JEFE: " . $datos_curso["pjefe"], 0);
$pdf->ln(15);
$i = 0;
foreach ($alumnos as $rut => $datos_alumno) {
    $pdf->SetTextColor(0, 0, 0);
    $pdf->SetFont('Arial', '', 6);
    $pdf->Cell(5, 5, ++$i, 1);
    $pdf->Cell(20, 5, $datos_alumno['dato_alumno']['apellidop'], 1);
    $pdf->Cell(20, 5, $datos_alumno['dato_alumno']['apellidom'], 1);
    $pdf->Cell(40, 5, $datos_alumno['dato_alumno']['nombres'], 1);
    $pdf->Cell(15, 5, $rut, 1);
    foreach ($ramos as $nom_ramo => $datos_ramo) {
        $prom_alumnos[$rut]['ramos'][$nom_ramo][$periodo] < 4 ? $pdf->SetTextColor(255, 0, 0) : $pdf->SetTextColor(0, 0, 255);
示例#14
0
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$smarty->assign("titulo_izq", "N&oacute;mina del Curso");
$smarty->assign("titulo_der", mostrar_curso($_GET['curso']));
$smarty->assign("path", $_SESSION['path']);
# FIN ENCABEZADO #
$curso = $_GET['curso'];
setHistoryGoBack("?curso=" . $curso);
$smarty->assign("curso", $curso);
$archivo_xls = "nomina_" . mostrar_curso($curso) . "_R" . rand() . ".xls";
$class_alumno = new alumno();
$alumnos = $class_alumno->obtenerAlumnos($curso, 1, false);
$i = 0;
if (count($alumnos) > 0) {
    foreach ($alumnos as $rut => $datos_alumno) {
        $indice_alumno[] = ++$i;
        $rut_alumno[] = $rut;
        $nombre_alumno[] = $datos_alumno['dato_alumno']['apellidop'] . " " . $datos_alumno['dato_alumno']['apellidom'] . " " . $datos_alumno['dato_alumno']['nombres'];
    }
}
$smarty->assign("indice_alumno", $indice_alumno);
$smarty->assign("rut_alumno", $rut_alumno);
$smarty->assign("nombre_alumno", $nombre_alumno);
$smarty->assign("titulo_principal", mostrar_curso($curso));
$smarty->assign("nombreCurso", mostrar_curso($curso, TRUE));
$smarty->assign("titulo_secundario", "Nómina del curso");
$menu = menuProfesores();
$menu = array_merge($menu, array(array("img" => "../images/xls.png", "url" => "XLS-nomina.php?curso={$curso}", "text" => "Exportar a Excel", "title" => "Exportar a Excel", "alt" => "Exportar a Excel")));
$menu[] = array("img" => "img.jpg", "url" => "#", "text" => "Nómina", "title" => "Nómina " . mostrar_curso($curso), "alt" => "", "id" => "", "class" => "nomina");
$smarty->assign("menu", $menu);
$smarty->assign("file_content", "PROF-nomina.tpl");
$smarty->display('layout/main.tpl');
示例#15
0
<?php

session_start();
include_once "../main_Lib.php";
include_once "../phpxls/phpxls.php";
include_once "../class/class_alumno.php";
$curso = $_GET['curso'];
$class_alumno = new alumno();
$alumnos = $class_alumno->obtenerAlumnos($curso, 1, false);
$xls = new phpxls();
$xls->outputXLS();
//$xls->image(URL.$_SESSION['path']."/logo.jpg", 83, 96);
$xls->title(mostrar_curso($curso, true));
$xls->beginTable(1);
$xls->setBGColor('gray');
$xls->setFontColor('white');
$xls->cell(30, 20, 'N°', 0, 'center');
$xls->cell(90, 20, 'RUT', 0, 'center');
$xls->cell(250, 20, 'NOMBRE', 1, 'center');
$xls->setBGColor('white');
$xls->setFontColor('black');
$i = 0;
if (count($alumnos) > 0) {
    foreach ($alumnos as $rut => $datos_alumno) {
        $nombre_completo = $datos_alumno['dato_alumno']['apellidop'] . " " . $datos_alumno['dato_alumno']['apellidom'] . " " . $datos_alumno['dato_alumno']['nombres'];
        $xls->cell(30, 20, ++$i, 0, 'center');
        $xls->cell(90, 20, $rut, 0);
        $xls->cell(250, 20, $nombre_completo, 1);
    }
}
$xls->endTable();
 $pdf->Image($ruta, 15, 5, 18, 20);
 $pdf->SetFont('Arial', 'I', 14);
 $pdf->Multicell(150, 4, '		                ' . $_SESSION['colegio']->nombre, 0, 1);
 $pdf->SetFont('Arial', 'I', 14);
 $pdf->Cell(40, 4, '                  ' . $_SESSION['colegio']->col_comuna, 0, 1);
 $pdf->Cell(40, 4, '                  ' . $_SESSION['colegio']->col_url, 0, 1);
 $pdf->Ln(8);
 $pdf->SetFont('Arial', 'I', 12);
 $pdf->Cell(40, 6, 'Sr(a)  Apoderado: ', 0, 0);
 $pdf->Cell(140, 6, $apoderado, 0, 1);
 $pdf->Line(50, 35, 150, 35);
 $pdf->Cell(40, 6, 'Alumno(a): ', 'I', 0);
 $pdf->Cell(100, 6, $alumno, 0, 0);
 $pdf->Line(50, 41, 150, 41);
 $pdf->Cell(15, 6, 'Curso: ', 0, 0);
 $pdf->Cell(10, 6, mostrar_curso($curso), 0, 1);
 $pdf->Line(165, 41, 180, 41);
 $pdf->Ln(4);
 $pdf->SetFont('Arial', 'I', 10);
 $pdf->Ln(50);
 $pdf->Cell(10, 6, '                                                                                                   ' . $_SESSION['colegio']->col_comuna . ', ' . date("d") . ' ' . DateToMonth(date("m")) . ' ' . date("Y"), 0, 1);
 $pdf->Cell(10, 6, '     Estimado Apoderado: ', 0, 1);
 $pdf->Cell(10, 6, '      Informo a usted que a la fecha se encuentran impaga las mensualidades de su pupilo correspondiente a:   ', 0, 1);
 $pdf->Cell(10, 6, '      ', 0, 1);
 $pdf->SetFont('Arial', 'I', 14);
 $pdf->Cell(10, 6, "     Meses:  " . $meses_adeudados, 0, 1);
 $pdf->Line(20, 125, 190, 125);
 $pdf->Ln(4);
 $pdf->SetFont('Arial', 'I', 14);
 $pdf->Ln(4);
 $pdf->Cell(10, 6, '                             Monto  de la Deuda     $     ' . number_format($deuda_total, 0, ",", "."), 0, 0);
示例#17
0
文件: ramo.php 项目: ranmadxs/dorcl
}

</style> 
</head>
<body>
<p>
  <?php 
DBConnect($dbh);
$ramo = $_GET['ramo'];
$curso = $_GET['curso'];
$sql55 = 'SELECT * FROM `ramos` WHERE nombre =' . "'" . $ramo . "' and `curso`='" . $curso . "';";
$result55 = mysql_query($sql55, $dbh);
$row55 = mysql_fetch_array($result55);
$profesor = $row55["profesor"];
echo " <form id=\"form1\" name=\"form1\" method=\"post\" action=\"prueba2.php\">";
$cursoaux = mostrar_curso($curso);
echo "<table width=\"800\" border=\"0\">\r\r\n  <tr>\r\r\n    <td width=\"200\" bgcolor=\"#0099CC\"><span class=\"Estilo33\">Curso: {$cursoaux}</span></td>\r\r\n    <td width=\"600\" bgcolor=\"#0099CC\"><span class=\"Estilo33\">Asignatura: {$ramo}<br> Profesor(a): {$profesor}</span></td>\r\r\n  </tr>\r\r\n</table>\r\r\n";
echo "<table width=\"100\" border=\"0\"><tr><td><div align=\"center\"><img src=\"../img/excel.gif\" width=\"50\" height=\"51\" /><br><span class=\"Estilo1\">Excel</span></div></td>\r\r\n<td><div align=\"center\"><a href=\"../profesores.php\"><img src=\"../img/volver.gif\" width=\"50\" height=\"51\" /><br><span class=\"Estilo1\">Volver<span></a></div></td></tr></table>";
$sql = 'SELECT * FROM `alumnos` WHERE curso =' . "'" . $curso . "' ORDER BY `matricula`;";
$result = mysql_query($sql, $dbh);
$m = 1;
$n = array();
while ($row = mysql_fetch_array($result)) {
    $rut[$m] = $row["rut"];
    echo "<input name=\"rut{$m}\" type=\"hidden\" value=\"{$rut[$m]}\" />";
    $apellidop[$m] = $row["apellidop"];
    $apellidom[$m] = $row["apellidom"];
    $nombres[$m] = $row["nombres"];
    $sql2 = 'SELECT * FROM `notas` WHERE rut =' . "'" . $rut[$m] . "' AND `ramo`='" . $ramo . "';";
    $result2 = mysql_query($sql2, $dbh);
    $row2 = mysql_fetch_array($result2);
示例#18
0
文件: ramos.php 项目: ranmadxs/dorcl
<script>

function init()
{
	var LSGrid1 = nitobi.loadComponent('LiveScrollingGrid1');
	//var LSGrid2 = nitobi.loadComponent('CopyPasteGrid2');
}
</script>
</head>
<body onLoad="init()">
<center>
	<div style="width:900px;" align="center">
	<p class="notes">
	<table><tr ><td >
      <b>Curso: </b><?php 
echo mostrar_curso($_GET['curso'], true);
?>
,
      <b>Asignatura: </b><?php 
echo $_GET['ramo'];
?>

      </td></tr>
      <tr><td>
      <b>Profesor: </b>
      <?php 
$ramo = $class_ramo->obtenerRamo($_GET['ramo'], $_GET['curso']);
echo $ramo['profesor'];
?>

      </td></tr>
示例#19
0
function listarCursos($rut)
{
    $class_alumno = new alumno();
    $alumno = $class_alumno->obtenerAlumno($rut);
    $class_curso = new curso();
    $html = '<select name = curso_alumno id=curso_alumno>
				<option value=-2X>[Sin Curso]</option>';
    $cursos = $class_curso->obtenerCursos();
    if (count($cursos) > 0) {
        foreach ($cursos as $curso => $nombre_curso) {
            if ($curso == $alumno['curso']) {
                $html .= '<option value=' . $curso . ' selected>' . mostrar_curso($curso) . '</option>';
            } else {
                $html .= '<option value=' . $curso . '>' . mostrar_curso($curso) . '</option>';
            }
        }
    }
    $html .= '</select>';
    print $html;
}
示例#20
0
        $class_transversales->insertarAsistencia($rut, $asistencia, $periodo);
    }
}
$data['curso'] = $_SESSION['aux_curso'] = isset($_POST['curso']) ? $_POST['curso'] : $_SESSION['aux_curso'];
$data['alumnos'] = $class_alumno->obtenerAlumnos($data['curso'], 1, false);
$curso = $class_curso->obtenerCurso($_SESSION['aux_curso']);
if ($curso['FK_ciclo_cic_ID']) {
    $data['transversales'] = $class_transversales->obtenerTransversales($curso['FK_ciclo_cic_ID'], false);
}
foreach ($data['alumnos'] as $rut => $aux_data) {
    $data['asistencia'][$rut] = $class_transversales->obtenerAsistencia($rut, $periodo);
    $data['alumnos'][$rut]['transversales'] = $class_transversales->obtenerTransversalAlumno($rut, $periodo);
    if (isset($data['alumnos'][$rut]['transversales']['transv_datos'])) {
        $data['alumnos'][$rut]['transversales']['array_transv'] = explode(",", $data['alumnos'][$rut]['transversales']['transv_datos']);
    } else {
        if (isset($data['transversales'])) {
            foreach ($data['transversales'] as $keyT => $valueT) {
                $data['alumnos'][$rut]['transversales']['array_transv'][] = "";
            }
        }
    }
}
$smarty->assign("alumnos", $data['alumnos']);
$smarty->assign("tranversales", $data["transversales"]);
$smarty->assign("titulo_principal", mostrar_curso($_SESSION['aux_curso']));
$smarty->assign("titulo_secundario", "Transversales");
$menu = menuProfesores();
$menu[] = array("img" => "img.jpg", "url" => "#", "text" => "Transversales", "title" => "Transversales " . mostrar_curso($_SESSION['aux_curso']), "alt" => "", "id" => "", "class" => "classTransversales");
$smarty->assign("menu", $menu);
$smarty->assign("file_content", "PROF-tranversales.tpl");
$smarty->display('layout/main.tpl');
示例#21
0
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$smarty->assign("titulo_izq", "Curso " . mostrar_curso($_GET['curso']));
$smarty->assign("titulo_der", "Gr&aacute;ficos " . $_GET['periodo']);
$smarty->assign("path", $_SESSION['path']);
$curso = $_GET['curso'];
$semestre = $_GET['periodo'];
$img_aux = "prom_asig_" . $curso . "_" . $semestre . "_R" . rand() . ".jpg";
$path_img = TMP_PATH . $img_aux;
$class_ramo = new ramo();
$ramos = $class_ramo->obtenerRamos($curso, false);
$class_notas = new notas();
$i = 0;
if (count($ramos) > 0) {
    foreach ($ramos as $nombre_ramo => $datos_ramo) {
        $promedio_asignatura = $class_notas->promedioSemestreAsignatura($nombre_ramo, $curso, $semestre);
        $data[$i]['nombre_ramo'] = str_cortar($nombre_ramo, 20);
        $data[$i]['promedio_ramo'] = $promedio_asignatura[$nombre_ramo]['promedio'];
        $i++;
    }
}
$datos_grafico = array("titulo" => mostrar_curso($curso), "tituloX" => "SUBSECTORES", "tituloY" => "ESCALA DE NOTAS", "color" => "SkyBlue", 'width' => 800, 'height' => 600, 'angle' => 90);
graficoBarra($data, $path_img, $datos_grafico, array("Promedios"));
$menu = menuProfesores();
$menu[] = array("img" => "img.jpg", "url" => "#", "text" => "Gráficos", "title" => "Gráficos " . mostrar_curso($curso), "alt" => "", "id" => "", "class" => "graficos");
$smarty->assign("menu", $menu);
$smarty->assign("file_content", "PROF-graficos.tpl");
$smarty->assign("titulo_principal", "Gráficos Subsectores");
$smarty->assign("titulo_secundario", mostrar_periodo($semestre));
$grafico = mostrarGrafico(URL_MAIN . "tmp/" . $img_aux, 800, 600, 0, true);
$smarty->assign("grafico", $grafico);
$smarty->display('layout/main.tpl');
$cursos = $class_curso->obtenerCursos();
$i = 0;
foreach ($cursos as $nombre_curso => $datos_curso) {
    $ramos = $class_ramo->obtenerRamos($nombre_curso, false);
    $class_notas = new notas();
    if (count($ramos) > 0) {
        foreach ($ramos as $nombre_ramo => $datos_ramo) {
            if ($semestre == "anual") {
                $promedio_asignatura['1S'] = $class_notas->promedioSemestreAsignatura($nombre_ramo, $nombre_curso, '1S');
                $promedio_asignatura['2S'] = $class_notas->promedioSemestreAsignatura($nombre_ramo, $nombre_curso, '2S');
                $notas_aux[] = promedio(array('1S' => $promedio_asignatura['1S'][$nombre_ramo]['promedio'], '2S' => $promedio_asignatura['2S'][$nombre_ramo]['promedio']));
            } else {
                $promedio_asignatura = $class_notas->promedioSemestreAsignatura($nombre_ramo, $nombre_curso, $semestre);
                $notas_aux[] = $promedio_asignatura[$nombre_ramo]['promedio'];
            }
        }
    }
    $data[$i]['nombre_curso'] = mostrar_curso($nombre_curso);
    $data[$i]['promedio_curso'] = promedio($notas_aux);
    $i++;
    unset($notas_aux);
}
switch ($semestre) {
    case '1S':
        $titulo = "Gráfico de Rendimiento Primer Semestre";
        break;
    case '2S':
        $titulo = "Gráfico de Rendimiento Segundo Semestre";
        break;
    case 'anual':
        $titulo = "Gráfico de Rendimiento Anual";
示例#23
0
 $pdf->ln();
 $apellidop = $row2["apellidop"];
 $apellidom = $row2["apellidom"];
 $nombres = $row2["nombres"];
 $rut = $row2["rut"];
 $fill = 1;
 //$pdf->SetTextColor(255);
 $pdf->SetFillColor(210);
 $pdf->Cell(0, 5, 'Datos Alumno:', 1, 1, 1, $fill);
 $pdf->SetTextColor(0);
 $pdf->Cell(30, 4, 'Alumno(a): ', 1, 0, 'R');
 $pdf->Cell(0, 4, $apellidop . " " . $apellidom . " " . $nombres, 1, 1, 'L');
 $pdf->Cell(30, 4, 'R.U.T. :', 1, 0, 'R');
 $pdf->Cell(0, 4, $rut, 1, 1, 'L');
 $pdf->Cell(30, 4, 'Curso :', 1, 0, 'R');
 $pdf->Cell(0, 4, mostrar_curso($curso), 1, 1, 'L');
 $pdf->Cell(30, 4, 'Profesor Jefe :', 1, 0, 'R');
 $pdf->Cell(0, 4, $pjefe, 1, 1, 'L');
 $pdf->ln();
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(0, 10, 'DESARROLLO ESCOLAR', 0, 1, 'C');
 $pdf->SetFont('Times', '', 10);
 $pdf->SetTextColor(0);
 $sql4 = 'SELECT * FROM `ramos` WHERE `curso` =' . "'" . $curso . "' ORDER BY num";
 $result4 = mysql_query($sql4, $dbh);
 //$pdf->Cell(8,4,' ',0,0,'C');
 $sql99 = 'SELECT * FROM `curso` WHERE `curso` =' . "'" . $curso . "'";
 $result99 = mysql_query($sql99, $dbh);
 $row99 = mysql_fetch_array($result99);
 $programa = $row99["programa"];
 $plan = $row99["plan"];
示例#24
0
}
$class_alumno = new alumno();
DBConnect($dbh);
$cursos = $class_alumno->obtenerAlumnosPorCurso();
$fp = fopen("libro_registros.xls", "w");
fwrite($fp, "Matrícula" . "\t" . "Apellidop" . "\t" . "Apellidom" . "\t" . "Nombres" . "\t" . "Sexo" . "\t" . "RUT" . "\t" . "Fec. Nac." . "\t" . "Curso" . "\t" . "Dirección" . "\t" . "Comuna" . "\t" . "Matrícula" . "\t" . "Procedencia" . "\t" . "Fec. Inc." . "\t" . "Curso Repite" . "\t" . "Fecha Retiro" . "\t" . "Causal Retiro" . "\t" . "Nivel Padre" . "\t" . "Nivel Madre" . "\t" . "Con quien vive" . "\t" . "RUT Apo" . "\t" . "Apoderado" . "\t" . "Teléfono" . "\n");
flock($fp, 2);
$matricula = 0;
$repite = null;
$fecharetiro = null;
$causalretiro = null;
$nivelpadre = null;
$nivelmadre = null;
$conquienvive = null;
foreach ($cursos as $curso => $datos) {
    $lista = 0;
    if (count($datos["alumnos"]) > 0) {
        foreach ($datos["alumnos"] as $rut => $datos_alumno) {
            $matricula++;
            $lista++;
            fwrite($fp, $matricula . "\t" . $datos_alumno["dato_alumno"]["apellidop"] . "\t" . $datos_alumno["dato_alumno"]["apellidom"] . "\t" . $datos_alumno["dato_alumno"]["nombres"] . "\t" . $datos_alumno["dato_apoderado"]["sexo"] . "\t" . $rut . "\t" . $datos_alumno["dato_apoderado"]["fechanac"] . "\t" . mostrar_curso($datos_alumno["dato_alumno"]["curso"]) . "\t" . $datos_alumno["dato_apoderado"]["direccion"] . "\t" . $datos_alumno["dato_apoderado"]["comuna"] . "\t" . $matricula . "\t" . $datos_alumno["dato_apoderado"]["procedencia"] . "\t" . $datos_alumno["dato_apoderado"]["fechamatric"] . "\t" . $repite . "\t" . $fecharetiro . "\t" . $causalretiro . "\t" . $nivelpadre . "\t" . $nivelmadre . "\t" . $conquienvive . "\t" . $datos_alumno["dato_apoderado"]["rutapoderado"] . "\t" . $datos_alumno["dato_apoderado"]["nombre"] . "\t" . $datos_alumno["dato_apoderado"]["telefono"] . "\n");
            $SQL = "update alumnos SET matricula = '{$matricula}', lista = '{$lista}' WHERE rut = '{$rut}'";
            DBQuery($SQL, $dbh);
            flock($fp, 3);
        }
    }
}
echo "Su información se está procesando, por favor espere un momento...<br>";
echo "Si no carga de forma automática favor hacer click <a href='libro_registros.xls'>acá</a> ";
fclose($fp);
moveLocation("libro_registros.xls");
示例#25
0
                    <?php 
echo number_format($lista_alumnos['deuda'], 0, ",", ".");
?>
                
                </td>
            </tr>
            </table>
            <?endforeach?>
    </div>
    <form action="../pdfController/exportar" method="post" id="exportar_pdf" name="exportar_pdf" target="_blank">
        <input type="hidden" name="html" id="html" />
        <input type="hidden" name="pdf_file_name" id="pdf_file_name" value="ingresos_mensuales.pdf" />
        <input type="hidden" name="estado_pdf" id="estado_pdf" value="0">
        <input type="hidden" name="pdf_titulo" id="pdf_titulo" value="Ingresos Mensuales <?php 
echo mostrar_curso($curso_selec, true);
?>
" />
    </form>
    <form action="../../controller/ExportXLS.php" method="post" id="exportar_xls" name="exportar_xls" target="_blank">
        <input type="hidden" name="html" id="html_xls" />
        <input type="hidden" name="file" value="ingresos_curso_<?php 
echo $curso_selec;
?>
.xls"  />
        <input type="hidden" name="title" value="Ingresos <?php 
echo mostrar_curso($curso_selec, true);
?>
">
    </form>    
    
</body>
示例#26
0
            <a href="#"></a>
        </div>

        <div id="content" >
            <fieldset>
                <legend>Datos Alumno</legend>
                <table width="800" cellpadding="0" cellspacing="1">
                    <tr>
                        <td class="title_blue" width="25%">Colegio :</td>
                        <td class="body_blue" width="30%"><?php 
echo $_SESSION['colegio']->nombre;
?>
</td>
                        <td class="title_blue" width="20%">Curso :</td>
                        <td class="body_blue" width="25%"><?php 
echo mostrar_curso($_SESSION['alumno']->curso, 1);
?>
</td>
                    </tr>
                    <tr>
                        <td class="title_blue" width="25%">RUT :</td>
                        <td class="body_blue" width="30%"><?php 
echo $_SESSION['alumno']->rut;
?>
</td>
                        <td class="title_blue" width="20%">&nbsp;</td>
                        <td class="body_blue" width="25%">&nbsp;</td>
                    </tr>
                </table>
            </fieldset>
            <fieldset>
示例#27
0
$smarty = new Smarty();
//dpr($_SERVER);
smartyTemplate($smarty, "../");
$smarty->assign("path", $_SESSION['path']);
$alumno = new EntityAlumnos();
$apoderado = new EntityApoderados();
$criteria = new Criteria();
$alumno->rut = $_GET['rut'];
$criteria->find($alumno);
$apoderado->rut = $_GET['rut'];
$criteria = new Criteria();
$criteria->find($apoderado);
$smarty->assign("nombres", $alumno->nombres);
$smarty->assign("apellidop", $alumno->apellidop);
$smarty->assign("rut", $alumno->rut);
$smarty->assign("curso", mostrar_curso($alumno->curso, true));
$smarty->assign("nombreColegio", $session->getColegio()->getNombre());
$smarty->assign("rutApoderado", $apoderado->rutapoderado);
$smarty->assign("telefono", $apoderado->telefono);
$smarty->assign("nombreApoderado", $apoderado->nombre);
$smarty->assign("direccion", $apoderado->direccion);
$smarty->assign("email", $apoderado->email);
$smarty->assign("ocupacion", $apoderado->ocupacion);
$smarty->assign("menu", array(array("img" => "../images/xls.png", "url" => getHistoryGoBack(), "text" => "Volver", "title" => "Volver", "alt" => "Volver")));
$smarty->assign("titulo_principal", $alumno->nombres . " " . $alumno->apellidop);
$smarty->assign("titulo_secundario", "");
if (isset($_POST['guardar'])) {
    if ($_POST['guardar'] == "Enviar") {
        subirFotoAlumno($alumno->rut);
    }
}
示例#28
0
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Ingresos anuales</title>
	';
echo '<link rel="stylesheet" href="../css/default.css" type="text/css">';
echo '</head>';
DBConnect($dbh);
$sql = "SELECT * FROM `alumnos` AS al \r\n\t\tNATURAL JOIN `mensualidades` \r\n\t\tINNER JOIN apoderados AS ap ON al.rut = ap.rut \r\n\t\tORDER BY al.curso, al.matricula;";
$result = mysql_query($sql, $dbh);
echo "<table width=\"900\" border=\"1\">\r\n   <tr bgcolor=\"black\">\r\n    <td width=\"5%\"><div align=\"center\"><b>CURSO</b></div></td>\r\n    <td width=\"30%\"><div align=\"center\"><b>NOMBRE ALUMNO</b></div></td>\r\n    <td width=\"30%\"><div align=\"center\"><b>APODERADO</b></div></td>\r\n    <td width=\"5%\"><div align=\"center\"><b>TELEFONO</b></div></td>\r\n    <td width=\"10%\"><div align=\"center\"><b>COLEGIATURA</b></div></td>\r\n    <td width=\"10%\"><div align=\"center\"><b>PAGO</b></div></td>\r\n    <td width=\"10%\"><div align=\"center\"><b>DEUDA</b></div></td>\r\n   </tr>\r\n\r\n";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    $colegiatura = 0;
    $pagos = 0;
    $deudas = 0;
    $colegiatura = ($row['mensualidad'] - $row['mensualidad'] * $row['descuentos'] / 100) * 10;
    $pagos = $row['c1'] + $row['c2'] + $row['c3'] + $row['c4'] + $row['c5'] + $row['c6'] + $row['c7'] + $row['c8'] + $row['c9'] + $row['c10'];
    $deudas = $colegiatura - $pagos;
    echo '
	   <tr>
	    <td width="5%">' . mostrar_curso($row['curso']) . '</td>
	    <td width="30%">' . $row['apellidop'] . ' ' . $row['apellidom'] . ' ' . $row['nombres'] . '</td>
	    <td width="30%">&nbsp;' . $row['nombre'] . '</td>
	    <td width="5%">&nbsp;' . $row['telefono'] . '</td>
	    <td width="10%">$ ' . number_format($colegiatura, 0, ",", ".") . '</td>
	    <td width="10%">$ ' . number_format($pagos, 0, ",", ".") . '</td>
	    <td width="10%">$ ' . number_format($deudas, 0, ",", ".") . '</td>
	   </tr>
	';
}
echo "</table>";
示例#29
0
        $tot_interes = $tot_interes + $interes;
        $tot_beca = $tot_beca + $beca;
        $tot_descuento = $tot_descuento + $descuento;
        $tot_totalPagar = $tot_totalPagar + $totalPagar;
        $tot_totalBeca = $tot_totalBeca + $totalBeca;
        $becasAlumnos[$rut]["monto"] = $monto;
        $becasAlumnos[$rut]["beca"] = $beca;
        $becasAlumnos[$rut]["interes"] = $interes;
        $becasAlumnos[$rut]["descuento"] = $descuento;
        $becasAlumnos[$rut]["totalPagar"] = $totalPagar;
        $becasAlumnos[$rut]["totalBeca"] = $totalBeca;
        $becasAlumnos[$rut]["nBoleta"] = implode(", ", $trans_num_boleta);
    }
    $totales["monto"] = $tot_monto;
    $totales["interes"] = $tot_interes;
    $totales["beca"] = $tot_beca;
    $totales["descuento"] = $tot_descuento;
    $totales["totalPagar"] = $tot_totalPagar;
    $totales["totalBeca"] = $tot_totalBeca;
}
if ($curso_ID) {
    $smarty->assign("curso", mostrar_curso($curso_ID));
}
$smarty->assign("mes", getMonthName($mes_selec_beca));
$smarty->assign("cursos", $cursos);
$smarty->assign("totales", $totales);
$smarty->assign("becasAlumnos", $becasAlumnos);
$smarty->assign("mes_selec_beca", $mes_selec_beca);
$smarty->assign("curso_ID", $curso_ID);
$smarty->assign("file_content", "secretaria/SEC-becasEntregadas.tpl");
$smarty->display('LAYOUT-SEC-main.tpl');
示例#30
0
            $listaAlumnos[$i]['examen'] = formateoNotas($notaExamen);
            $listaAlumnos[$i]['fieldExamen'] = $periodo == '1S' ? "examen1" : "examen2";
            $listaAlumnos[$i]['fieldAnual'] = "examen_anual";
            $listaColores[$i]['examen'] = formateoColor($notaExamen);
            $listaAlumnos[$i]['examen_anual'] = formateoNotas($notas->examen_anual);
            $listaColores[$i]['examen_anual'] = formateoColor($notas->examen_anual);
            $promedioSemestre = $class_notas->calcularPromedioSemestreRamo($auxListNotas, $notaExamen);
            $listaAlumnos[$i]['promedio_semestre'] = formateoNotas($promedioSemestre);
            $listaColores[$i]['promedio_semestre'] = formateoColor($promedioSemestre);
            $i++;
        }
    }
}
# ENCABEZADO PÁGINA WEB #
$smarty->assign("curso", $curso->curso);
$smarty->assign("listaAlumnos", $listaAlumnos);
$smarty->assign("listaColores", $listaColores);
$smarty->assign("selectPeriodo1", $selectPeriodo1);
$smarty->assign("selectPeriodo2", $selectPeriodo2);
$smarty->assign("titulo_browser", "Ramo:");
$smarty->assign("numLista", $numLista);
$smarty->assign("periodo", $periodo);
$smarty->assign("ramo_ID", $ramo->ramo_ID);
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$menu = menuProfesores();
$menu[] = array("img" => "img.jpg", "url" => "#", "text" => "Ramos", "title" => "Ramos" . $ramo->nombre, "alt" => "Ramos", "id" => "", "class" => "notaRamo");
$smarty->assign("menu", $menu);
$smarty->assign("file_content", "NOTA-ramo.tpl");
$smarty->assign("titulo_principal", mostrar_curso($_GET['curso']));
$smarty->assign("titulo_secundario", $ramo->nombre);
$smarty->display('layout/main.tpl');