当前位置: 首页>>代码示例>>PHP>>正文


PHP alumno::obtenerAlumnosBusqueda方法代码示例

本文整理汇总了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');
开发者ID:ranmadxs,项目名称:dorcl,代码行数:31,代码来源:SEC-buscas.php


注:本文中的alumno::obtenerAlumnosBusqueda方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。