Changeset 56 for trunk/admin/modules
- Timestamp:
- Mar 27, 2010, 1:31:16 PM (15 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r45 r56 154 154 echo $otable1; 155 155 echo "<table width=\"180\" align=\"left\"><tr><td><table>"; 156 echo "<tr align=\"left\" width=\"160\"bgcolor=\"$bgcolor1\"><td valign=\"top\" align=\"left\" width=\"150\" colspan=\"2\">156 echo "<tr align=\"left\" bgcolor=\"$bgcolor1\"><td valign=\"top\" align=\"left\" width=\"150\" colspan=\"2\"> 157 157 <a href=\"admin.php?op=$op&id_cons_gen=$id_cons_gen&help=1\">$bullet"._HELP."</a> 158 158 </td></tr>"; … … 164 164 165 165 echo " 166 <tr align=\"left\" width=\"160\"bgcolor=\"$bgcolor1\">166 <tr align=\"left\" bgcolor=\"$bgcolor1\"> 167 167 <td valign=\"top\" align=\"center\" bgcolor=\"#000000\" rowspan=\"3\"><font face=\"Arial,Helvetica\" size=-1><font color=\"#ffffff\"><b>"._SUPER." 168 168 … … 173 173 174 174 175 <a href=\"admin.php?op=configurazione&id_cons_gen=$id_cons_gen\">$bullet"._CONFIGURAZIONE."</a><br />";175 <a href=\"admin.php?op=configurazione&id_cons_gen=$id_cons_gen\">$bullet"._CONFIGURAZIONE."</a><br>"; 176 176 if($op=="configurazione" || $op=="widget" || $op=="plugin"){ 177 177 echo " - <a href=\"admin.php?op=widget&id_cons_gen=$id_cons_gen\"> "._WIDGET."</a>"; … … 182 182 <a href=\"admin.php?op=constipi&id_cons_gen=$id_cons_gen\">$bullet"._TIPO_ADM."</a><br> 183 183 <a href=\"admin.php?op=confconsiglio&id_cons_gen=$id_cons_gen\">$bullet"._CONFCONS."</a> 184 </td></tr><tr align=\"left\" width=\"160\"bgcolor=\"$bgcolor1\"><td>184 </td></tr><tr align=\"left\" bgcolor=\"$bgcolor1\"><td> 185 185 <a href=\"admin.php?op=inscomuni&id_cons_gen=$id_cons_gen\">$bullet"._DEFCOMUNE."</a><br> 186 186 <a href=\"admin.php?op=oper_admin&id_cons_gen=$id_cons_gen\">$bullet"._AMMINISTRATORI."</a> 187 </td></tr><tr align=\"left\" width=\"160\"bgcolor=\"$bgcolor1\"><td>187 </td></tr><tr align=\"left\" bgcolor=\"$bgcolor1\"><td> 188 188 <a href=\"admin.php?op=consultazione&id_cons_gen=$id_cons_gen\">$bullet"._CONSULTAZIONE_ADM."</a><br> 189 189 -
trunk/admin/modules/Elezioni/ele_voti.php
r23 r56 77 77 $hiddenInfo = "<input type=\"hidden\" name=\"min\" value=\"$min\">"; 78 78 79 function numeri_sezione( ) {79 function numeri_sezione($nums) { 80 80 // tabella visualizzazione sezioni per numero 81 81 global $aid,$bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $tipo_cons, $genere,$id_cons_gen,$id_cons,$id_lista,$ops, $perms,$id_sez; 82 82 // $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where aid='$aid'",$dbi); 83 83 // list ($perms)=mysql_fetch_row($ressup); 84 //if ($perms>16) { // tolto per guidonia 85 $res = mysql_query("SELECT num_sez, id_sez ,id_sede FROM ".$prefix."_ele_sezioni where id_cons='$id_cons' order by num_sez", $dbi); 84 $solosede=''; 85 if ($perms<32) { 86 $res = mysql_query("SELECT id_sede FROM ".$prefix."_ele_operatori where aid='$aid' and id_cons=$id_cons", $dbi); 87 if ($res) { 88 list($solouna)=mysql_fetch_row($res); 89 $solosede="and id_sede='$solouna'"; 90 } 91 } 92 $res = mysql_query("SELECT num_sez, id_sez ,id_sede FROM ".$prefix."_ele_sezioni where id_cons='$id_cons' $solosede order by num_sez", $dbi); 86 93 $max = mysql_num_rows($res); 87 echo "\n<table align=\"left\" border=\"0\" width=\"90%\"><tr bgcolor=\"$bgcolor1\">";88 94 //if ($max>=64){ 89 95 $i=0; … … 97 103 if ($sez_num==$numero_sez) {$bgsez="#FFFF00";}else{$bgsez="";} 98 104 echo "\n<td align=\"center\" width=\"5%\" bgcolor=\"$bgsez\"><b><a href=\"admin.php?op=voti&id_cons_gen=$id_cons_gen&id_circ=$circ_id&id_sede=$sede_id&id_sez=$sez_id&ops=$ops&do=spoglio&id_lista=$id_lista\">$sez_num</a></b></td>\n"; 99 if (($i% 8) ==0) echo "</tr>\n<tr bgcolor=\"$bgcolor1\">";105 if (($i%$nums) ==0) echo "</tr>\n<tr bgcolor=\"$bgcolor1\">"; 100 106 } 101 107 //} 102 echo "<td></td></tr></table>\n";103 108 104 echo"</td></tr></table>";109 # echo"</td></tr></table>"; 105 110 //}// fine tabella per numero sezioni 106 111 // inizio tabella centrale 107 echo "\n</td><td valign=\"top\" align=\"left\">";112 # echo "\n</td><td valign=\"top\" align=\"left\">"; 108 113 } 109 114 /////////////////////////////////////////////////////////////////////////////////// … … 113 118 global $aid,$bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $tipo_cons, $genere,$id_cons_gen,$prev_sez,$votog,$votol,$votoc,$conscirc; 114 119 115 echo "<table border=\"0\" width=\" 100%\"align=\"left\"><tr>";120 echo "<table border=\"0\" width=\"770\" align=\"left\"><tr>"; 116 121 echo "\n<td bgcolor=\"$bgcolor1\" align=\"left\">"; 117 122 //echo "<h6>"; 123 echo "\n<table align=\"left\" width=\"700\" border=\"0\"><tr bgcolor=\"$bgcolor1\">"; 124 numeri_sezione(30); 125 echo "<td></td></tr></table>\n"; 126 echo "\n</td></tr><tr><td>\n"; 127 128 118 129 /////////////////////// 119 130 // Circoscrizione : scelta … … 260 271 261 272 //$bgcolor1="#b0b0b0"; 262 echo "< table border=\"0\" width=\"60%\" align=\"center\"><tr>";273 echo "<hr><table border=\"0\" width=\"60%\" align=\"center\"><tr>"; 263 274 echo "\n<td bgcolor=\"$bgcolor1\" align=\"center\"><b><a href=\"admin.php?op=voti&id_cons_gen=$id_cons_gen&id_sez=$id_sez&id_circ=$id_circ&id_sede=$id_sede&do=spoglio&ops=1\">"._AFFLUENZE."</a></b></td>\n"; 264 275 if(!($genere==4) and !($votog)){ //if(!($genere==4) and !($tipo_cons==10 or $tipo_cons==11)){ … … 268 279 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b><a href=\"admin.php?op=voti&id_cons_gen=$id_cons_gen&id_sez=$id_sez&id_circ=$id_circ&id_sede=$id_sede&do=spoglio&ops=3\">"._PREFLISTA."</a></b></td>\n"; 269 280 } 270 echo "</tr></table> \n";281 echo "</tr></table><hr>\n"; 271 282 // echo "\n</td></tr></table>\n"; 272 283 ############# 284 # posizionamento in mancanza di scelta 285 ############# 286 if (!$ops){ 287 if (!$id_sez) { echo"";#import( pagina di help ); 288 } else{ 289 $res= mysql_query("SELECT data, orario from ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc,orario desc limit 0,1", $dbi); 290 list($data,$orario)=mysql_fetch_row($res); 291 $res= mysql_query("SELECT voti_complessivi from ".$prefix."_ele_voti_parziale where id_sez='$id_sez' and orario='$orario' and data='$data'", $dbi); 292 list($voti) = mysql_fetch_row($res); 293 if (!$voti) $ops=1; 294 else { 295 # $res= mysql_query("SELECT validi from ".$prefix."_ele_sezioni where id_sez='$id_sez'", $dbi); 296 # list($voti) = mysql_fetch_row($res); 297 if($genere<4){ 298 $res= mysql_query("SELECT sum(voti) from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez'", $dbi); 299 list($voti) = mysql_fetch_row($res); 300 if ($voti==0 or $genere<3) $ops=4; 301 } 302 if(!$ops) $ops=3; 303 } 304 305 } 306 } 307 ############ fine posizionamento 273 308 274 309 /////////////////////////////////////////// … … 932 967 } 933 968 } 969 if(!isset($votinulli)) $votinulli=0; 934 970 echo "<td></td></tr></table>"; 935 971 if ($validi+$nulli+$bianchi+$contestati+$votinulli>0 or $genere==0) { … … 1114 1150 if (!preg_match("/rec/",$op)) { 1115 1151 ele(); //menu 1116 numeri_sezione(); 1117 } 1152 echo "\n<table align=\"left\" border=\"0\" width=\"200\"><tr bgcolor=\"$bgcolor1\">"; 1153 numeri_sezione(8); 1154 echo "<td></td></tr></table>\n"; 1155 } 1156 echo"</td></tr></table>"; 1118 1157 1119 1158 switch ($op){ … … 1124 1163 $op($vari); //chiamata a funzione variabile con parametri variabili (da cambiare!) 1125 1164 } 1126 echo"</td></tr></table> ";1165 echo"</td></tr></table></div>"; 1127 1166 include ("footer.php"); 1128 1167 ?>
Note:
See TracChangeset
for help on using the changeset viewer.