Last change
on this file since 364 was 336, checked in by roby, 4 years ago |
Admin: prime modifiche per compatibilità con php 7.4
|
File size:
1.6 KB
|
Rev | Line | |
---|
[2] | 1 | <?php
|
---|
| 2 | /************************************************************************/
|
---|
| 3 | /* Eleonline - Raccolta e diffusione dei dati elettorali */
|
---|
| 4 | /* by Roberto Gigli & Luciano Apolito */
|
---|
| 5 | /* http://www.eleonline.it */
|
---|
| 6 | /* info@eleonline.it luciano@aniene.net rgigli@libero.it */
|
---|
| 7 | /************************************************************************/
|
---|
| 8 |
|
---|
| 9 | // tema
|
---|
| 10 | $bgcolor="#b0b0b0";
|
---|
| 11 | $nometema=$tema;
|
---|
[256] | 12 |
|
---|
[2] | 13 | function testata($tema){
|
---|
| 14 | global $nometema,$id_comune,$id_cons_gen,$aid,$dbi,$prefix;
|
---|
| 15 | $nometema=$tema;
|
---|
[256] | 16 | $sql="SELECT descrizione FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen' ";
|
---|
| 17 | $sth = $dbi->prepare("$sql");
|
---|
| 18 | $sth->execute();
|
---|
| 19 | $row = $sth->fetch(PDO::FETCH_BOTH);
|
---|
[336] | 20 | if($sth->rowCount())
|
---|
| 21 | $descr_consultazione=$row[0];
|
---|
| 22 | else
|
---|
| 23 | $descr_consultazione='';
|
---|
[256] | 24 | $sql="select descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'";
|
---|
| 25 | $sth = $dbi->prepare("$sql");
|
---|
| 26 | $sth->execute();
|
---|
| 27 | $row = $sth->fetch(PDO::FETCH_BOTH);
|
---|
[336] | 28 | if($sth->rowCount())
|
---|
| 29 | $descr_comune=$row[0];
|
---|
| 30 | else
|
---|
| 31 | $descr_comune='';
|
---|
[2] | 32 |
|
---|
| 33 | echo "<div class=\"container\"><table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-main\">
|
---|
| 34 | <tr><td bgcolor=\"#000000\"><font color=\"#ffffff\"><b>"._COMUNE." "._DI." $descr_comune $descr_consultazione ";
|
---|
| 35 | if ($aid) echo "["._UTENTE.":<font color=\"#ffff00\">$aid</font>]";
|
---|
| 36 | echo "</b></font></td></tr></table>";
|
---|
| 37 | echo "<table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-main\">
|
---|
| 38 | <tr> <td align=\"left\" valign=\"top\" colspan=\"2\">";
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | function piede(){
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 |
|
---|
| 50 | // end
|
---|
| 51 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.