setSection($_GET['seccion']); $metas = array( array('name' => 'Description', 'content' => 'Proyecto M.E.K.O.S.'), array('name' => 'Author', 'content' => 'KNOWCENTURY S.L') ); $niveles = array( '1' => 'ciclo_01', '2' => 'ciclo_02', '3' => 'ciclo_03' ); $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 . '&seccion=' . $visualizar . '', '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' => '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_destacados'], '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_' . $nivel . '_1.gif', $CONF['ws_images'] . $_SESSION['lng'] . '/nivel_' . $nivel . '_2.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_2_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) . '")' ); //$HTML->generateHeader(array('general.css', $CONF['css_alumnos'] ), array('alumnos.js', 'imagenes.js'), $js_vars, 'onLoad="cargarimagenes(JS_ARRAY_IMAGES);"', $metas); //$HTML->generateNivelesPage($niveles, $secciones, $CONF['sys_http_server'] . $CONF['ws_swf'] . $_SESSION['lng'] . '/', $CONF['flash_nivel_' . $nivel], '760', '480'); $HTML->generateHeader(array('general.css', $CONF['css_alumnos'] ), array('alumnos.js', 'imagenes.js'), $js_vars, '', $metas); $HTML->generateNivelesPage($niveles, $secciones, 'http://ares.cnice.mec.es/mcs/xalu/', $CONF['flash_nivel_' . $nivel], '760', '480'); $HTML->generateFooterPage(); ?>