setSection($_GET['seccion']); $metas = array(); $niveles = array( '1' => 'ciclo_01', '2' => 'ciclo_02', '3' => 'ciclo_03' ); $nivel = $_GET['nivel']; $visualizar = $_GET['seccion']; $seccion = $_GET['s']; $lenguaje = $_SESSION['lng']; $cadena_javascript = 'onmousedown="changeImage(\'%s\', \'' . $CONF['ws_images'] . $lenguaje . '/' . '%s_over.gif\'); return true;" onmouseup="changeImage(\'%s\', \'' . $CONF['ws_images'] . $lenguaje . '/' . '%s_over.gif\'); return true;" onmouseover="changeImage(\'%s\', \'' . $CONF['ws_images'] . $lenguaje . '/' . '%s_over.gif\'); return true;" onmouseout="changeImage(\'%s\', \'' . $CONF['ws_images'] . $lenguaje . '/' . '%s.gif\'); return true;"'; $niveles = array(); $niveles[] = array( 'href' => '#', 'td_params' => 'colspan="7"', 'params' => 'class="separation"', 'title' => '', 'img_name' => 'nivel_1', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_' . $nivel . '_1.gif', 'img_title' =>'', 'img_params' => '' ); $niveles[] = array( 'href' => 'destacados.php?nivel=' . $nivel . '', 'params' => 'class="separation" target="_top" ' . sprintf($cadena_javascript, "destacados","destacados","destacados","destacados","destacados","destacados","destacados","destacados"), 'title' => $LNG['button_destacados'], 'img_name' => 'destacados', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/destacados.gif', 'img_title' => $LNG['button_destacados'], 'img_params' => '' ); /* $niveles[] = array( 'href' => 'javascript:ventana(\'al_nivel_2.php\');', 'params' => 'class="separation" target="_top" ' . sprintf($cadena_javascript, "nivel_2","nivel_2","nivel_2","nivel_2","nivel_2","nivel_2","nivel_2","nivel_2"), 'title' => $this->lng['button_print'], 'img_name' => 'nivel_2', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_2.gif', 'img_title' => $this->lng['button_print'], 'img_params' => true ); $niveles[] = array( 'href' => 'javascript:ventana(\'al_nivel_3.php\');', 'params' => 'class="separation" target="_top" ' . sprintf($cadena_javascript, "nivel_3","nivel_3","nivel_3","nivel_3","nivel_3","nivel_3","nivel_3","nivel_3"), 'title' => $this->lng['button_print'], 'img_name' => 'nivel_3', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_3.gif', 'img_title' => $this->lng['button_print'], 'img_params' => true ); */ $niveles[] = array( 'href' => 'http://ares.cnice.mec.es/mcs/generales/glosario/index.php', 'params' => 'class="separation" ' . sprintf($cadena_javascript,"index_4","index_4","index_4","index_4","index_4","index_4","index_4","index_4"), 'title' => $LNG['button_glosary'], 'img_name' => 'index_4', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/index_4.gif', 'img_title' => $LNG['button_glosary'], 'img_params' => '' ); $niveles[] = array( 'href' => 'javascript:window.external.AddFavorite(\'' . $CONF['sys_http_root'] . $_SERVER['PHP_SELF'] . '\', \'' . $this->lng['zona_alumnado'] . '\');', 'params' => 'class="separation" ' . sprintf($cadena_javascript,"index_5","index_5","index_5","index_5","index_5","index_5","index_5","index_5"), 'title' => $LNG['button_favorites'], 'img_name' => 'index_5', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/index_5.gif', 'img_title' => $LNG['button_favorites'], 'img_params' => '' ); $niveles[] = array( 'href' => 'javascript:history.back();', 'params' => 'class="separation" ' . sprintf($cadena_javascript,"index_6","index_6","index_6","index_6","index_6","index_6","index_6","index_6"), 'title' => $LNG['button_back'], 'img_name' => 'index_6', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/index_6.gif', 'img_title' => $LNG['button_back'], 'img_params' => '' ); $niveles[] = array( 'href' => 'javascript: window.close();', 'params' => 'class="separation" ' . sprintf($cadena_javascript,"index_7","index_7","index_7","index_7","index_7","index_7","index_7","index_7"), 'title' => $LNG['button_close'], 'img_name' => 'index_7', 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/index_7.gif', 'img_title' => $LNG['button_close'], 'img_params' => '' ); $secciones = array(); $valores_secciones = array(); /*$valores_secciones[] = array( 'id' => '1', 'nombre' => 'prensa' );*/ $valores_secciones[] = array( 'id' => '2', 'nombre' => 'radio' ); $valores_secciones[] = array( 'id' => '3', 'nombre' => 'cine' ); $valores_secciones[] = array( 'id' => '4', 'nombre' => 'tv' ); $valores_secciones[] = array( 'id' => '5', 'nombre' => 'publicidad' ); /* $valores_secciones[] = array( 'id' => '6', 'nombre' => 'tic' );*/ while (list($ids_secciones) = each($valores_secciones)){ if ($valores_secciones[$ids_secciones]['id'] != $seccion) { $link_seccion = 'secciones_alumnado.php?nivel=' . $nivel . '&s='.$valores_secciones[$ids_secciones]['id'].'&seccion=' . $_GET['seccion']; } else { $link_seccion = '#'; } if ($valores_secciones[$ids_secciones]['id'] != $seccion) { $params_seccion = 'class="separation" target="_top" ' . sprintf($cadena_javascript, $valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre'],$valores_secciones[$ids_secciones]['nombre']); } else { $params_seccion = ''; } $secciones[] = array( 'href' => $link_seccion, 'params' => $params_seccion, 'title' => $this->lng['button_print'], 'img_name' => $valores_secciones[$ids_secciones]['nombre'], 'img_src' => $CONF['ws_images'] . $_SESSION['lng'] . '/' . $valores_secciones[$ids_secciones]['nombre'] . ($valores_secciones[$ids_secciones]['id'] == $seccion?'_over':''). '.gif', 'img_title' => $this->lng['button_print'], 'img_params' => '' ); } $imagenes = array( $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_1.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_2.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_3.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_4.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_5.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_6.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_7.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_1_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_2_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_3_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_4_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_5_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_6_over.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/index_7_over.gif' ); $js_vars = array( 'JS_ARRAY_IMAGES' => 'Array("' . implode('", "', $imagenes) . '")' ); $header = "DESTACADOS NIVEL " . $_GET['nivel'] . " ALUMNOS"; $HTML->generateHeader(array('general.css', $CONF['css_alumnos'], 'ciclo_listado_peq'. $nivel . '.css' ), array('alumnos.js', 'imagenes.js'), $js_vars, 'onLoad="cargarimagenes(JS_ARRAY_IMAGES);"', $metas); //$HTML->htmlGenerateRecordsList($OA->getRecordListDestacados($nivel), $OA->fields, $header, 'data_values', '', ''); $SECTION->getActivesSectionsSubcats( $seccion, $visualizar, $list, true ); if ($list && count($list) > 0) { $ids_seccion = '\'' . implode('\',\'', $list) . '\''; } else $ids_seccion = '\'-1\''; $records_list = $OA->getRecordListBySectionAndLevel($visualizar, $ids_seccion, $nivel); $HTML->generateSeccionesPage($niveles, $secciones, $records_list, $OA->fields, $seccion, ''); $HTML->generateFooterPage(); ?>