本文整理汇总了PHP中alumno::modificarCursoAlumno方法的典型用法代码示例。如果您正苦于以下问题:PHP alumno::modificarCursoAlumno方法的具体用法?PHP alumno::modificarCursoAlumno怎么用?PHP alumno::modificarCursoAlumno使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类alumno
的用法示例。
在下文中一共展示了alumno::modificarCursoAlumno方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$menu[] = array("img" => "", "url" => "#", "text" => "Cursos", "title" => "Cursos", "alt" => "Cursos", "id" => "", "class" => "current_page_item");
$menu[] = array("img" => "", "url" => "UTP-mantenedorCursos.php", "text" => "Mantenedor Cursos", "title" => "Agregar/Eliminar Cursos", "alt" => "");
$smarty->assign("menu", $menu);
$smarty->assign("titulo_principal", "Modificar Cursos");
$smarty->assign("title", "UTP: Modificar Cursos");
$smarty->assign("titulo_secundario", "");
$smarty->assign("file_content", "utp/UTP-modificar_cursos.tpl");
$smarty->display('layout/main.tpl');
if (isset($_POST['libt_ID'])) {
if (is_array($vals_alum_con)) {
$alumnos_sacar = array_diff($vals_alum_con, $_POST['libt_ID']);
$alumnos_poner = array_diff($_POST['libt_ID'], $vals_alum_con);
} else {
$alumnos_poner = $_POST['libt_ID'];
}
if (count($alumnos_poner) > 0) {
foreach ($alumnos_poner as $key => $rut_poner) {
$class_alumno->modificarCursoAlumno($rut_poner, $_POST['curso']);
}
}
if (count($alumnos_sacar) > 0) {
foreach ($alumnos_sacar as $key => $rut_sacar) {
$class_alumno->modificarCursoAlumno($rut_sacar);
}
}
$_SESSION['curso_seleccionado'] = $_POST['curso'];
unset($_POST);
moveLocation("modificar_cursos.php", 0);
} elseif (isset($_POST['libt_ID2'])) {
if (is_array($vals_alum_sin)) {
$alumnos_sacar = array_diff($_POST['libt_ID2'], $vals_alum_sin);