Tengo un problema con la agenda mini
(http://www.colewebs.org/spip.php?article4) y el spip 1.9.2. Resulta que
los enlaces a la agenda grande no funcionan. El archivo que debería
abrirse, el rubrique98 en mi caso, no lo hace en el navegador y éste
sólo da la opción de descargar un archivo php. El código del rubrique98
es el que te pongo a continuación. ¿Me sabríaalguien indicar qué está
pasando? Gracias anticipadas.
<INCLURE(entete.php3)>
<head><TITLE> #NOM_SITE_SPIP</TITLE></head>
<!--Taula d'una única fila i cel.la amb tots els continguts de la part
central-->
<body>
<<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td align="center" valign="top"><table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr class="titulo">
<td align="center" valign="top">[(#TITRE|supprimer_numero) ]
<B_prox_convocat>
<span style="font-size:50%; font-weight:normal;">[<a
href="#convocatorias">›Próximas convocatorias</a>]</span>
<BOUCLE_prox_convocat(ARTICLES) {tout} {par date_redac}{age_redac <= 0}>
</BOUCLE_prox_convocat>
</B_prox_convocat>
</td>
</tr>
</table>
<br />
<B_subsecciones>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr style="font-size:10px; font-family:Verdana, Arial, Helvetica,
sans-serif;">
<td bgcolor="#F0EEF7" valign="top"><BOUCLE_subsecciones(RUBRIQUES)
{id_parent} {par titre}>
<font color="#CCCCCC">[</font><a href="#URL_RUBRIQUE"
title="[(#DESCRIPTIF|textebrut|entites_html)]">#TITRE</a><font
color="#CCCCCC">]</font>
</BOUCLE_subsecciones>
</td>
</tr>
<tr>
<td height="1" valign="top" bgcolor="#996600"></td>
</tr>
</table>
</B_subsecciones></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center" valign="top"><!---<?php
$months = array('', 'enero', 'febrero', 'marzo', 'abril', 'mayo',
'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre',
'diciembre');
$days = array('domingo', 'lunes', 'martes', 'miércoles',
'jueves', 'viernes', 'sábado');
function mkdate($month, $day, $year)
{
return mktime(0, 0, 0, $month, $day, $year);
}
if(isset($GLOBALS['var_nav_month'])) {
$cal_day = mkdate($GLOBALS['var_nav_month'], 1, $GLOBALS['var_nav_year']);
} else {
$cal_day = time();
}
$D = intval(date('d', $cal_day));
$M = intval(date('m', $cal_day));
$Y = intval(date('Y', $cal_day));
$events = array();
?>--->
<BOUCLE_convocatorias(ARTICLES){tout}{par date_redac}>
<?php
$logo_reducido="<div style='text-align:center'><img
src='#URL_SITE_SPIP/IMG/[(#LOGO_ARTICLE|fichier)]' width='48px' /></div>";
$date = ereg_replace("^([0-9]{4})-([0-9]{2})-([0-9]{2}).*$",
"\\1\\2\\3", '#DATE_REDAC');
if (!isset($events[$date])) {
$events[$date] = array();
}
$events[$date][] = array('link' => '#URL_ARTICLE', 'title' =>
'[(#TITRE|texte_script)]', 'logo' => $logo_reducido);
?>
</BOUCLE_convocatorias>
[<div class="chapo" style="padding:.6em; padding-left:0px;
padding-right:0px; padding-bottom:1em;">(#TEXTE)</div>]
<table width="100%" style="border-top: 1px solid #999999; border-right:
1px solid #999999;" cellpadding="2" cellspacing="0" class="small">
<form method="get">
<tr class="calendar_this_month">
<th colspan="7" valign="middle" style="text-align:center; border-bottom:
1px solid #999999; border-left: 1px solid #999999;">
<!-- mes actual -->
<span style="float:left; color:#cccccc; font-weight:normal;">
<?php
if ((!isset($GLOBALS['var_nav_month'])) or
(!isset($GLOBALS['var_nav_month'])) or
(($GLOBALS['var_nav_month']==date('m')) and
($GLOBALS['var_nav_year']==date('Y')))) {
echo "[".$months[$M]."'".date('y')."]";
}
else {
?>
[<a href="#URL_RUBRIQUE<?php echo '&var_nav_year='; echo (date('Y'));
?><?php echo '&var_nav_month='; echo (date('m')); ?><?php echo
'&var_nav_day='; echo (date('d')); ?>&var_mode=recalcul"> › mes
actual ‹ </a>]
<?php
}
?>
</span>
<span style="float:right;">
<!-- cambiar mes -->
<a href="#URL_RUBRIQUE&var_nav_month=<?=($M - 1)?>&var_nav_year=<? echo
$Y; ?>&var_mode=recalcul">‹</a>
<input type="hidden" name="id_rubrique" value="#ID_RUBRIQUE" />
<select name="var_nav_month" class="formbuscar_ag" onChange="if
(options[selectedIndex].value) { location =
options[selectedIndex].value; }">
<?php
for($i = 1; $i < 13; $i++) {
echo '<option
value="#URL_RUBRIQUE&var_nav_month='.$i.'&var_nav_year='.$Y.'&var_mode=recalcul"'.($i
== $M ? ' selected="selected"' : '').'>'.$months[$i].'</option>';
}
?>
</select>
<a href="#URL_RUBRIQUE&var_nav_month=<?=($M + 1)?>&var_nav_year=<? echo
$Y; ?>&var_mode=recalcul">› </a>
<!-- cambiar agno -->
<a href="#URL_RUBRIQUE&var_nav_month=<? echo $M; ?>&var_nav_year=<?=($Y
- 1)?>&var_mode=recalcul">‹</a>
<input type="hidden" name="id_rubrique" value="#ID_RUBRIQUE" />
<select name="var_nav_year" class="formbuscar_ag" onChange="if
(options[selectedIndex].value) { location =
options[selectedIndex].value; }">
<?php
for($i = 2001; $i < 2051; $i++) {
echo '<option
value="#URL_RUBRIQUE&var_nav_month='.$M.'&var_nav_year='.$i.'&var_mode=recalcul"'.($i
== $Y ? ' selected="selected"' : '').'>'.$i.'</option>';
}
?>
</select>
<a href="#URL_RUBRIQUE&var_nav_month=<? echo $M; ?>&var_nav_year=<?=($Y
+ 1)?>&var_mode=recalcul">› </a>
</span>
</th>
</tr>
</form>
<tr>
<?php
for($i = 1; $i < 8; $i++) {
echo '<th width="14%" class="calendar_head" style="border-bottom: 1px
solid #999999; border-left: 1px solid #999999;" >'.$days[$i%7].'</th>';
}
$TempD = 1;
if(date('w', mkdate($M, 1, $Y)) != 1) {
echo '</tr><tr>';
$tmp = '';
while(date('w', mkdate($M, $TempD, $Y)) != 1) {
$TempD--;
$case = '<td width="14%" height="50" valign="top"
class="calendar_not_este_month" style="border-bottom: 1px solid #999999;
border-left: 1px solid #999999;">';
$case .= date('j', mkdate($M, $TempD, $Y));
$date = date('Ymd', mkdate($M, $TempD, $Y));
if (isset($events[$date])) {
while (list(, $event) = each($events[$date])) {
$case .= '<div style="margin-top:.4em"><a href="'.$event['link'].'"
class="small_plus" style="text-align:left; display:block;"><div
style="padding-bottom:.2em">'.$event['logo']. '</div>• '
.$event['title'].'</a></div>';
}
}
$case .= '</td>';
$tmp = $case.$tmp;
}
echo $tmp;
}
$TempD = 1;
while((date('m', mkdate($M, $TempD, $Y)) == $M) || (date('w', mkdate($M,
$TempD, $Y)) != 1)) {
if(date('w', mkdate($M, $TempD, $Y)) == 1) {
echo '</tr><tr>';
}
echo '<td width="6%" height="70" valign="top" style="border-bottom: 1px
solid #999999; border-left: 1px solid #999999;"
class="calendar_'.(date('m', mkdate($M, $TempD, $Y)) != $M ? 'not_' :
'').'este_'.(date('Ymd', mkdate($M, $TempD, $Y)) == date('Ymd') ? 'day'
: 'month').'">';
$date = date('Ymd', mkdate($M, $TempD, $Y));
if (isset($events[$date])) {
echo "<span style='color:#FF7F00;'>".date('j', mkdate($M, $TempD,
$Y))."</span>";
}
else{
echo date('j', mkdate($M, $TempD, $Y));
}
if (isset($events[$date])) {
while (list(, $event) = each($events[$date])) {
echo '<div style="margin-top:.4em"><a href="'.$event['link'].'"
class="small_plus" style="text-align:left; display:block;"><div
style="padding-bottom:.2em">'.$event['logo']. '</div>• '
.$event['title'].'</a></div>';
}
}
echo '</td>';
$TempD++;
}
?>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="titulo" style="font-weight: normal; color: #333333;">
<td align="center" valign="top"><div class="azul"
style="padding-bottom:.6em;"><a name="convocatorias"></a>::
PRÓXIMAS CONVOCATORIAS ::</div></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" style="color: #FF7F00; font-size:90%">
<?php
$ano='[(#DATE_REDAC|annee)]';
$ano=substr($ano,-2);
?>
<B_articulom>
<B_articulo_mes_actual>
<BOUCLE_articulo_mes_actual(ARTICLES){par date_redac}{age_redac <=
0}{mois_relatif_redac=0}>
</BOUCLE_articulo_mes_actual>
<div style="color: #666666">[<div
style="padding-top:.6em;"></div>(#DATE_REDAC|nom_mois|majuscules)']<?php
echo $ano; ?></div>
</B_articulo_mes_actual>
<BOUCLE_articulom(ARTICLES){par date_redac}>
<BOUCLE_primero_del_mes(ARTICLES){id_article}{doublons}{age_redac <= 0}>
<div style="color: #666666">[<div
style="padding-top:.6em;"></div>(#DATE_REDAC|nom_mois|majuscules)']<?php
echo $ano; ?></div>
<div style="font-size:90%">[(#DATE_REDAC|jour)] - <a
href="#URL_ARTICLE">[(#TITRE)]</a></div>
</BOUCLE_primero_del_mes>
<BOUCLE_MES(ARTICLES){mois_relatif_redac=0}{doublons}{par
date_redac}{age_redac <= 0}>
<div style="font-size:90%">[(#DATE_REDAC|jour)] - <a
href="#URL_ARTICLE">[(#TITRE)]</a></div>
</BOUCLE_MES>
</BOUCLE_articulom>
</B_articulom>
<div><font style="font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px; color:#999999;">No
hay convocatorias para los próximos días</font> </div>
<//B_articulom>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</table>
<!-- Menú de la dreta -->
<INCLURE(menudr.php3)>
</tr>
<!--Acaba la segona fila-->
</table>
<!--Ara el tancament de la cella que ve des de "entete.html"-->
</td>
</tr>
<table cellspacing="0" cellpadding="0" width="100%"
bgcolor="#000000"><tr valign="middle" align="center" bgcolor="black"><td
colspan="3"><b><font size="1" color="white"> <!--Creative Commons License-->
<a rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.5/es/"><img
alt="Creative Commons License" style="border-width: 0"
src="http://creativecommons.org/images/public/somerights20.png" align="middle"/></a>
Esta obra está bajo una <a class="peu" rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.5/es/">licencia de
Creative Commons</a>
<!--/Creative Commons License-->
<!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="">
<license
rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.5/es/" />
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</Work>
<License
rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.5/es/"><permits
rdf:resource="http://web.resource.org/cc/Reproduction"/><permits
rdf:resource="http://web.resource.org/cc/Distribution"/><requires
rdf:resource="http://web.resource.org/cc/Notice"/><requires
rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits
rdf:resource="http://web.resource.org/cc/CommercialUse"/><permits
rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires
rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF>
-->
by: miquel garcia -- esranxer@yahoo.es</font></b></td></tr></table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4425581-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.