$gi";
$giorno .= "";
echo "$giorno";
}
function mese()
{
$mese='';
$mesi= array('01','02','03','04','05','06','07','08','09','10','11','12');
foreach($mesi as $me)
$mese .= "";
$mese .= "";
echo "$mese";
}
function anno()
{
$anno ='';
$curr=date("Y",time());
$curr++;
$anni=array($curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--,$curr--);
foreach($anni as $an)
$anno .= "";
$anno .= "";
echo "$anno";
}
function ore()
{
$ora='';
$ore= array('00','01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24');
foreach($ore as $ori)
$ora .= "";
$ora .= "";
echo "$ora";
}
function minuti()
{
$minuto='';
$minuti= array('00','01','02','03','04','05','06','07','08','09','10','11','12','13','14',
'15', '16', '17', '18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50',
'51','52','53','54','55','56','57','58','59');
foreach($minuti as $minu)
$minuto .= "";
$minuto .= "";
echo "$minuto";
}
function secondi()
{
$secondo='';
$secondi= array('00','01','02','03','04','05','06','07','08','09','10','11','12','13','14',
'15', '16', '17', '18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33',
'34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50',
'51','52','53','54','55','56','57','58','59');
foreach($secondi as $sec)
$secondo .= "";
$secondo .= "";
echo "$secondo";
}
function form_data($data)
{
list($anno,$mese,$giorno) = explode("-", $data) ;
if ($giorno>0)
return("$giorno-$mese-$anno");
else
return(" ");
}
function isdisgiunto()
{
global $prefix,$dbi,$id_cons,$limite,$id_comune,$ops;
$sqlcomu="select fascia from ".$prefix."_ele_comuni where id_comune='$id_comune'";
$res = mysql_query($sqlcomu);
list($fascia)=mysql_fetch_row($res);
#voti di lista e di gruppo completamente disgiunti
$result = mysql_query("select infdisgiunto, supdisgiunto from ".$prefix."_ele_conf as t2 left join ".$prefix."_ele_cons_comune as t1 on t1.id_conf=t2.id_conf where id_cons = '$id_cons' ", $dbi);
$glsep='';
if ($result) {
list($infdis,$supdis)=mysql_fetch_row($result);
if((($fascia>$limite and $supdis) or ($fascia<=$limite and $infdis)))
$glsep='_lista';
}
return $glsep;
}
#########################################
?>