' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
//echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesNiveles($niveles);
echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesSecciones($secciones);
echo ' ' . "\n";
echo ' ' . "\n";
echo ' 0?' colspan="' . (count($niveles) + 7) . '"':'') . '>' . "\n";
echo ' ' . "\n";
$this->htmlGenerateRecordsListDestacados( $record_list, $records_view, $seccion, $params);
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
}
function generateSeccionesPage( $niveles, $secciones, &$record_list, &$records_view, $seccion, $params = '') {
echo ' ' . "\n";
//echo '' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
//echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesNiveles($niveles);
echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesSecciones($secciones);
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
//if ($campos_valores['oa.imagen']) {
// echo ' ' . "\n";
//} else {
echo ' ' . "\n";
//}
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$this->htmlGenerateRecordsListOAsSecciones( $record_list, $records_view, $seccion, $params);
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
}
function htmlGenerateRecordsListOAsSecciones( &$record_list, &$records_view, $seccion, $params = '') {
//html_special_chars($record_list, $exclude);
echo ' ' . "\n";
$cont = 0;
while ( list($record) = each($record_list) ) {
$campos_valores = array();
while ( list($id, $field) = each($records_view) ) {
$campos_valores[$field] = $record_list[$record][$id];
}
$oa_aux = new oa();
$nombre_fichero_zip = $oa_aux->get_zip_file($record);
$nombre_fichero_html_flash = $oa_aux->get_html_file($record);
$javascript_link = '';
if ($nombre_fichero_html_flash) {
$javascript_link = ' style="cursor: pointer" onClick="ventana(\'' . $this->conf['ws_swf_oas'] . $record . '/' . $nombre_fichero_html_flash . '\');" ';
}
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
if ($campos_valores['oa.imagen']) {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
reset($records_view);
$cont++;
}
echo ' ' . "\n";
}
function htmlGenerateRecordsListDestacados( &$record_list, &$records_view, $seccion, $params = '') {
//html_special_chars($record_list, $exclude);
echo ' ' . "\n";
$cont = 0;
while ( list($record) = each($record_list) ) {
$campos_valores = array();
while ( list($id, $field) = each($records_view) ) {
$campos_valores[$field] = $record_list[$record][$id];
}
$oa_aux = new oa();
$nombre_fichero_zip = $oa_aux->get_zip_file($record);
$nombre_fichero_html_flash = $oa_aux->get_html_file($record);
$javascript_link = '';
if ($nombre_fichero_html_flash) {
$javascript_link = ' style="cursor: pointer" onClick="ventana(\'' . $this->conf['ws_swf_oas'] . $record . '/' . $nombre_fichero_html_flash . '\');" ';
}
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
if ($campos_valores['oa.imagen']) {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
reset($records_view);
$cont++;
}
echo ' ' . "\n";
}
function generateNivelesPage( $niveles, $secciones, $flash_path = '', $flash_file = '', $width = '100%', $height = '100%' ) {
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
//echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesNiveles($niveles);
echo ' ' . "\n";
echo ' ' . "\n";
$this->generateBotonesSecciones($secciones);
echo ' ' . "\n";
echo ' ' . "\n";
echo ' 0?' colspan="' . (count($niveles) + 7) . '"':'') . '>' . "\n";
$this->generateTablaContenedoraFlash($flash_path , $flash_file , $width , $height);
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
}
function htmlGenerateRecordsList( &$record_list, &$records_view, $header, $html_id = '', $params = '') {
//html_special_chars($record_list, $exclude);
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$cont = 0;
if (count($record_list)) {
echo ' ' . "\n";
}
while ( list($record) = each($record_list) ) {
$campos_valores = array();
while ( list($id, $field) = each($records_view) ) {
$campos_valores[$field] = $record_list[$record][$id];
}
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
if ($campos_valores['oa.imagen'])
echo ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo '' . strtoupper($campos_valores['oa.nombre']) . ' ' . "\n";
echo '' . $campos_valores['s.nombre'] . ' ' . "\n";
echo '' . $campos_valores['oa.descripcion'] . ' ' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$cad_tipo = '';
if ($campos_valores['oa.tipo']) {
$tipos = split(",", $campos_valores['oa.tipo']);
for ($cont_tipos = 0;$cont_tipos < count($tipos);$cont_tipos++) {
$tipo = $tipos[$cont_tipos];
switch ($tipo) {
case '1':
$cad_tipo .= '';
break;
case '2':
$cad_tipo .= '';
break;
case '3':
$cad_tipo .= '';
break;
}
}
}
echo $cad_tipo;
echo ' | ' . "\n";
echo ' ' . "\n";
$oa_aux = new oa();
if ($campos_valores['oa.descargable'] == '1' && $nombre_fichero = $oa_aux->get_zip_file($record)) {
echo '';
}
echo ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' | ' . "\n";
reset($records_view);
$cont++;
if ($cont % 2 == 0) {
if ($cont > 0 && $cont != count($record_list)){
echo ' ' . "\n";
echo ' ' . "\n";
}
} else {
}
}
if ($cont > 0){
if (count($record_list) % 2 != 0) {
echo ' | ' . "\n";
}
if ($cont % 2 != 0) {
echo ' ' . "\n";
}
}
echo ' ' . "\n";
}
//-----------------------------------------------------------------------------------
// generateFooterPage
function generateFooterPage() {
echo '' . "\n";
echo '' . "\n";
}
}
?>
| | |