- Timestamp:
- Apr 21, 2019, 10:09:55 PM (6 years ago)
- Location:
- trunk/client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules.php
r265 r283 104 104 $dbi->exec($sql); 105 105 106 /*107 108 if(!$dbi = mysql_connect($dbhost, $dbuname, $dbpass)){109 die("<center><img src=\"images/logo.gif\" target=\"Logo Avviso Errore\"><br/><br/><b>Ci sono dei problemi di connessione al Server $dbtype, chiediamo scusa per l'inconveniente.<br/><br/>Provate piu' tardi, Grazie.</b><br/><font color=\"#ff0000\">". mysql_error()."</font></center>");110 }111 112 if(!mysql_select_db($dbname)){113 die("<center><img src=src=\"images/logo.gif\" target=\"Logo Avviso Errore\"><br/><br/><b>Ci sono dei problemi di connessione al DataBase $dbtype, chiediamo scusa per l'inconveniente.<br/><br/>Provate piu' tardi, Grazie.</b><br/><font color=\"#ff0000\">". mysql_error()."</font></center>");114 }115 mysql_query("SET NAMES 'utf8'", $dbi);116 */117 106 # protezione csrf ottobre 2012 - by l.apolito 118 107 if (file_exists("inc/csrf-magic/csrf-magic.php")) { -
trunk/client/modules/Elezioni/candidato.php
r265 r283 90 90 91 91 92 // Da verificare93 #Tolta, gestita globalmente in index.php94 /*95 if ($circo=="1"){ // circoscrizione96 echo "<form name=\"circoscrizione\" method=\"post\" action=\"modules.php\">";97 echo "<input type=\"hidden\" name=\"pagina\" value=\"modules.php?name=Elezioni&op=candi&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_cons=$id_cons&lettera=$ltr&ordine=$ordine&min=$min&offset=$offset&id_circ=\">$ltr";98 99 $res_sez = mysql_query("SELECT id_circ,descrizione,num_circ from ".$prefix."_ele_circoscrizione where id_cons=$id_cons",$dbi);100 echo "<table><tr><td class=\"bggray\">"._SCELTA_CIR.": <select name=\"id_circ\" onChange=\"top.location.href=this.form.pagina.value+this.form.id_circ.options[this.form.id_circ.selectedIndex].value;return false\">";101 while(list($id_rif,$descr_circ,$num_cir)=mysql_fetch_row($res_sez)) {102 if (!$id_circ) $id_circ=$id_rif;103 $sel = ($id_rif == $id_circ) ? "selected" : "";104 echo "<option value=\"$id_rif\" $sel>";105 for ($j=strlen($num_cir);$j<2;$j++) { echo " ";106 }107 echo $num_cir.") ".$descr_circ;108 }109 echo "</select>";110 111 112 113 114 115 116 echo "</form>";117 echo "</td></tr></table>";118 119 120 121 122 }123 124 */125 126 127 128 92 # conta il numero dei candidati 129 93 if ($circo=="1"){ -
trunk/client/temi/Futura2/function_theme.php
r265 r283 168 168 169 169 function graf_gruppo_mob(){ 170 global $db ,$admin, $bgcolor1, $bgcolor5, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$id_cons_gen,$id_comune,$id_circ,$tipo_cons,$w,$l,$op,$siteistat,$flash,$visgralista,$graficogruppo,$rss;170 global $dbi,$admin, $bgcolor1, $bgcolor5, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$id_cons_gen,$id_comune,$id_circ,$tipo_cons,$w,$l,$op,$siteistat,$flash,$visgralista,$graficogruppo,$rss; 171 171 # parte grafica 172 172 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? … … 718 718 719 719 720 global $user, $admin, $cookie, $textcolor2 , $prefix, $dbi;720 global $user, $admin, $cookie, $textcolor2; 721 721 $sql="select mid, title, preamble, content,editimage from ".$prefix."$tab where id_cons='$id_cons' order by mid "; 722 722 $result = $dbi->prepare("$sql"); … … 1037 1037 1038 1038 while(list($voti_t, $num_gruppo,$id_gruppo) = $res1->fetch(PDO::FETCH_NUM)) { 1039 $query="select sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where orario='$orario' and data='$data' and id_cons='$id_cons'";1039 /* $query="select sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where orario='$orario' and data='$data' and id_cons='$id_cons'"; 1040 1040 1041 1041 if ($genere==0){$query.=" and id_gruppo=$id_gruppo";} … … 1043 1043 $res_aff = $dbi->prepare("$query"); 1044 1044 $res_aff->execute(); 1045 $voti_numero=$res_aff->rowCount(); 1045 $voti_numero=$res_aff->rowCount();*/ 1046 1046 $query="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons='$id_cons' and t1.id_sede=t2.id_sede $circos"; 1047 1047 … … 1049 1049 $res1234 = $dbi->prepare("$query"); 1050 1050 $res1234->execute(); 1051 list($tot)=$res1234-> rowCount();1051 list($tot)=$res1234->fetch(PDO::FETCH_NUM); 1052 1052 1053 1053 $perc=number_format($voti_t*100/$tot,2); … … 1202 1202 function votanti_tabella(){ 1203 1203 1204 global $op, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$tipo_cons,$id_comune,$id_cons_gen,$id_circ,$csv,$w,$l,$siteistat,$flash,$tour,$db ;1204 global $op, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$tipo_cons,$id_comune,$id_cons_gen,$id_circ,$csv,$w,$l,$siteistat,$flash,$tour,$dbi; 1205 1205 1206 1206
Note:
See TracChangeset
for help on using the changeset viewer.