本文整理汇总了PHP中alumno::obtenerAlumnosBusqueda方法的典型用法代码示例。如果您正苦于以下问题:PHP alumno::obtenerAlumnosBusqueda方法的具体用法?PHP alumno::obtenerAlumnosBusqueda怎么用?PHP alumno::obtenerAlumnosBusqueda使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类alumno
的用法示例。
在下文中一共展示了alumno::obtenerAlumnosBusqueda方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
@($curso_ID = isset($_POST['curso_ID']) ? $_POST['curso_ID'] : $_SESSION['curso_ID']);
$_SESSION['curso_ID'] = $curso_ID;
@($searchQuery = isset($_POST['searchQuery']) ? $_POST['searchQuery'] : $_SESSION['searchQuery']);
$_SESSION['searchQuery'] = $searchQuery;
if (count($_POST) > 0) {
//$chkAlumnosMatriculados = (isset($_POST['chkAlumnosMatriculados']))?"checked":"no_checked";
$selectAlumnosMatriculados = isset($_POST['selectAlumnosMatriculados']) ? $_POST['selectAlumnosMatriculados'] : $_SESSION["selectAlumnosMatriculados"];
$_SESSION["selectAlumnosMatriculados"] = $selectAlumnosMatriculados;
} else {
$chkAlumnosMatriculados = $_SESSION["chkAlumnosMatriculados"];
$selectAlumnosMatriculados = $_SESSION["selectAlumnosMatriculados"];
}
$matricula = null;
if ($selectAlumnosMatriculados != "Todos") {
$matricula = $selectAlumnosMatriculados;
}
$result = array();
if (isset($_POST['searchQuery']) || $_SESSION['chkAlumnosMatriculados']) {
$result = $class_alumno->obtenerAlumnosBusqueda($searchQuery, $matricula, $curso_ID);
}
$smarty->assign("chkAlumnosMatriculados", $chkAlumnosMatriculados);
$smarty->assign("searchQuery", $searchQuery);
$smarty->assign("path", $_SESSION['path']);
$smarty->assign("anio_db", $session->getBase_datos()->getAnio());
$smarty->assign("PATH_HTTP", PATH_HTTP);
$smarty->assign("titleHeader", "BUSCAS?");
$smarty->assign("alumnos", $result);
$smarty->assign("curso_ID", $curso_ID);
$smarty->assign("selectAlumnosMatriculados", $selectAlumnosMatriculados);
$smarty->assign("file_content", "SEC-buscas.tpl");
$smarty->display('LAYOUT-SEC-main.tpl');