Changeset 426 for trunk/client/temi/Futura2/index.php
- Timestamp:
- Oct 4, 2024, 12:14:01 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/temi/Futura2/index.php
r407 r426 30 30 #################################### 31 31 32 global $op,$tema,$dbi,$nometema,$file,$bgcolor,$sitename,$prefix,$blocco,$lang,$siteistat,$id_cons_gen,$descr_cons,$minsez,$offsetsez,$multicomune,$id_comune,$multicomune,$rss,$colortheme,$descr_com ;32 global $op,$tema,$dbi,$nometema,$file,$bgcolor,$sitename,$prefix,$blocco,$lang,$siteistat,$id_cons_gen,$descr_cons,$minsez,$offsetsez,$multicomune,$id_comune,$multicomune,$rss,$colortheme,$descr_com,$circo,$id_circ; 33 33 34 34 include("temi/$tema/function_theme.php"); … … 80 80 echo ' <div data-role="navbar"> 81 81 <ul> 82 <li><a href="modules.php?id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' ?" data-icon="home" data-theme="'.$colortheme.'" '.$active_home.' >Home</a></li>83 <li><a href="modules.php?op=informazioni&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-icon="file" data-theme="'.$colortheme.'" '.$active_info.' >Info</a></li>84 <li><a href="modules.php?op=risultati&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-icon="list" data-theme="'.$colortheme.'" '.$active_ris.' >Risultati</a></li>85 <li><a href="modules.php?op=grafica_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' "" data-icon="th-large" data-theme="'.$colortheme.'" '.$active_graf.'>Grafica</a></li>86 <li><a href="modules.php?op=conf_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-icon="cogs" data-theme="'.$colortheme.'" '.$active_conf.' >Opzioni</a></li>82 <li><a href="modules.php?id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'?" data-icon="home" data-theme="'.$colortheme.'" '.$active_home.' >Home</a></li> 83 <li><a href="modules.php?op=informazioni&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-icon="file" data-theme="'.$colortheme.'" '.$active_info.' >Info</a></li> 84 <li><a href="modules.php?op=risultati&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-icon="list" data-theme="'.$colortheme.'" '.$active_ris.' >Risultati</a></li> 85 <li><a href="modules.php?op=grafica_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'"" data-icon="th-large" data-theme="'.$colortheme.'" '.$active_graf.'>Grafica</a></li> 86 <li><a href="modules.php?op=conf_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-icon="cogs" data-theme="'.$colortheme.'" '.$active_conf.' >Opzioni</a></li> 87 87 </ul> 88 88 </div> … … 109 109 <input type=\"hidden\" name=\"prima\" value=\"1\" /> 110 110 <select name=\"id_cons_gen\" id=\"select-choice-a\" 111 onchange=\"javascript:top.location.href='modules.php?op=gruppo&name=Elezioni&id_comune=$id_comune& file=index&id_cons_gen='+this.options[this.options.selectedIndex].value\">";111 onchange=\"javascript:top.location.href='modules.php?op=gruppo&name=Elezioni&id_comune=$id_comune&id:circ=$id_circ&file=index&id_cons_gen='+this.options[this.options.selectedIndex].value\">"; 112 112 113 113 while(list($id,$descrizione) = $res->fetch(PDO::FETCH_NUM)) { … … 117 117 } 118 118 119 echo '</select></label></form> 119 echo '</select></label>'; 120 ##### 121 if($circo) 122 { 123 $sql="SELECT t1.id_circ,t1.descrizione FROM ".$prefix."_ele_circoscrizione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons=t2.id_cons and t2.id_cons_gen=$id_cons_gen and t2.id_comune='$id_comune' order by t1.num_circ"; 124 $rescirc = $dbi->prepare("$sql"); 125 $rescirc->execute(); 126 $esistecirc=$rescirc->rowCount(); 127 echo "<label forcirc=\"circoscrizione\"> 128 <select name=\"id_circ\" id=\"select-choice-b\" 129 onchange=\"javascript:top.location.href='modules.php?op=gruppo&name=Elezioni&id_comune=$id_comune&file=index&id_cons_gen=$id_cons_gen&id_circ='+this.options[this.options.selectedIndex].value\">"; 130 while(list($idc,$desc_circ) = $rescirc->fetch(PDO::FETCH_NUM)) { 131 # $descrizione=substr(str_replace("+"," ",$descrizione),0,30); 132 $sel = ($idc == $id_circ) ? "selected=\"selected\"":""; 133 echo "<option style=\"font-size:12px;\" value=\"$idc\" $sel >$desc_circ</option>"; 134 } 135 echo '</select></label>'; 136 } 137 ##### 138 echo '</form> 120 139 121 140 </div>'; … … 151 170 152 171 function footer_mon(){ 153 global $id_comune,$id_cons_gen,$tema,$colortheme,$rss,$prefix,$dbi ;172 global $id_comune,$id_cons_gen,$tema,$colortheme,$rss,$prefix,$dbi,$id_circ; 154 173 155 174 $sql="SELECT tema FROM `".$prefix."_config`"; … … 166 185 if($tema=="Futura2") 167 186 //echo'<a href="backtoapp.html" data-rel="external" data-ajax="false">Chiudi</a>'; // per l'app precedente non piu usata 168 echo ' <a href="modules.php?name=Elezioni&tema='.$deftema.'&nocell=1&op=gruppo&id_cons_gen='.$id_cons_gen.' " data-rel="external" data-ajax="false" >Versione Desktop</a>';187 echo ' <a href="modules.php?name=Elezioni&tema='.$deftema.'&nocell=1&op=gruppo&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-rel="external" data-ajax="false" >Versione Desktop</a>'; 169 188 else 170 189 echo ' <a href="modules.php?name=Elezioni&tema=facebook&desktop=1&op=gruppo" data-rel="external" data-ajax="false" >Versione Desktop</a>'; … … 182 201 ############################ menu home page 183 202 function home(){ 184 global $id_comune,$id_cons_gen,$tema,$colortheme ;203 global $id_comune,$id_cons_gen,$tema,$colortheme,$id_circ; 185 204 //include("temi/$tema/config.php"); 186 205 187 206 echo '<div data-role="content" data-theme="a"> 188 <a href="modules.php?op=informazioni&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Informazioni Elettorali</a>189 <!-- <a href="modules.php?op=affluenze&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="heart">Ultima Affluenza</a> -->190 <a href="modules.php?op=risultati&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Risultati Elettorali</a>207 <a href="modules.php?op=informazioni&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Informazioni Elettorali</a> 208 <!-- <a href="modules.php?op=affluenze&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="heart">Ultima Affluenza</a> --> 209 <a href="modules.php?op=risultati&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Risultati Elettorali</a> 191 210 </div>'; 192 211 echo '<ul data-role="listview" data-inset="true" data-divider-theme="'.$colortheme.'">'; … … 203 222 ############################### menu informazioni 204 223 function info(){ 205 global $id_comune,$id_cons_gen,$colortheme ;224 global $id_comune,$id_cons_gen,$colortheme,$id_circ; 206 225 echo ' 207 226 <div data-role="content" data-theme="a"> 208 <a href="modules.php?op=dati_generali&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">227 <a href="modules.php?op=dati_generali&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right"> 209 228 Dati Generali</a> 210 <a href="modules.php?op=come_si_vota&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">229 <a href="modules.php?op=come_si_vota&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right"> 211 230 Come si Vota</a> 212 <a href="modules.php?op=numeri_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">231 <a href="modules.php?op=numeri_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right"> 213 232 Numeri Utili</a> 214 <a href="modules.php?op=servizi_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">233 <a href="modules.php?op=servizi_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right"> 215 234 Servizi Utili</a> 216 235 </div> … … 221 240 ####################################### menu risultati 222 241 function risultati(){ 223 global $id_comune,$id_cons_gen,$genere,$tipo_cons,$colortheme,$votoc ;242 global $id_comune,$id_cons_gen,$genere,$tipo_cons,$colortheme,$votoc,$id_circ; 224 243 echo '<div data-role="content" data-theme="'.$colortheme.'"> 225 <a href="modules.php?op=affluenze_all&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Affluenze</a>226 <a href="modules.php?op=votanti_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Votanti</a>227 <a href="modules.php?op=gruppo_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._GRUPPO.'</a>';244 <a href="modules.php?op=affluenze_all&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Affluenze</a> 245 <a href="modules.php?op=votanti_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Votanti</a> 246 <a href="modules.php?op=gruppo_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._GRUPPO.'</a>'; 228 247 229 248 if($genere==3 OR $genere==5) 230 echo '<a href="modules.php?op=liste_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._LISTA.'</a>';249 echo '<a href="modules.php?op=liste_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._LISTA.'</a>'; 231 250 if(($genere==3 OR $genere==5) and !$votoc) 232 echo '<a href="modules.php?op=candidato_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._CANDIDATO.'</a>';251 echo '<a href="modules.php?op=candidato_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._CANDIDATO.'</a>'; 233 252 234 253 … … 240 259 ####################################### menu grafica 241 260 function grafica_mob(){ 242 global $id_comune,$id_cons_gen,$genere,$tipo_cons,$colortheme ;261 global $id_comune,$id_cons_gen,$genere,$tipo_cons,$colortheme,$id_circ; 243 262 echo '<div data-role="content" data-theme="'.$colortheme.'"> 244 263 245 <a href="modules.php?op=grafsezione&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Elenco Sezioni scrutinate</a>246 247 <a href="modules.php?op=affluenze&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Grafica Affluenze</a>248 <a href="modules.php?op=grafvotanti_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.' " data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Grafica Votanti</a>';264 <a href="modules.php?op=grafsezione&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Elenco Sezioni scrutinate</a> 265 266 <a href="modules.php?op=affluenze&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Grafica Affluenze</a> 267 <a href="modules.php?op=grafvotanti_mob&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'&id_circ='.$id_circ.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">Grafica Votanti</a>'; 249 268 /* 250 269 <a href="modules.php?op=grafgruppo&grafica=0&id_comune='.$id_comune.'&id_cons_gen='.$id_cons_gen.'" data-role="button" data-theme="'.$colortheme.'" data-icon="arrow-right" data-iconpos="right">'._GRUPPO.'</a>'; … … 269 288 # affluenza unica x grafica 270 289 function affluenze(){ 271 global $tema; 290 global $tema; 272 291 affluenza_unica(); 273 292 grafica_mob();
Note:
See TracChangeset
for help on using the changeset viewer.