setlocale(LC_TIME,"it_IT");
for($anno_corrente=date("Y");$anno_corrente>2001;--$anno_corrente){
?>
|
/*
funzione per selezioni mensile
for($i=12;$i>0;--$i){
if(strlen($i)==1){
$link=$anno_corrente."0".$i;
}else{
$link=$anno_corrente.$i;
}
?>| :: |
}
*/
?>
| :: &m_max=">Secondo semestre |
| :: &m_max=">Primo semestre |
}
?>
|
/*
funzione per selezioni mensile
if(isset($HTTP_GET_VARS["m"])){
$WHERE=" WHERE data LIKE '".$HTTP_GET_VARS["m"]."%'";
$data=$HTTP_GET_VARS["m"];
}else{
$WHERE=" WHERE data LIKE '".date("Ym")."%'";
$data=date("Ym");
}
*/
if(isset($HTTP_GET_VARS["m_min"])&isset($HTTP_GET_VARS["m_max"])){
//
}else{
if(date("m")<7){
$HTTP_GET_VARS["m_min"]=date("Y")."0100";
$HTTP_GET_VARS["m_max"]=date("Y")."0631";
}else{
$HTTP_GET_VARS["m_min"]=date("Y")."0700";
$HTTP_GET_VARS["m_max"]=date("Y")."1232";
}
}
$WHERE=" WHERE data > '".$HTTP_GET_VARS["m_min"]."' AND data < '".$HTTP_GET_VARS["m_max"]."'";
?>
| Appuntamenti del
if($HTTP_GET_VARS["m_min"][5]==1){
?>Primo semestre
}else{
?>Secondo semestre
}
echo $HTTP_GET_VARS["m_min"][0].$HTTP_GET_VARS["m_min"][1].$HTTP_GET_VARS["m_min"][2].$HTTP_GET_VARS["m_min"][3];
?>
|
$RS=mysql_query("SELECT * FROM agenda $WHERE ORDER BY data DESC, orario DESC");
for($i=0;$i
Ore
|
|
}
?>
|