Changeset 315 for trunk/admin/modules/Elezioni/ele_associazioni.php
- Timestamp:
- May 26, 2019, 4:31:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_associazioni.php
r292 r315 66 66 // 67 67 function all() { 68 global $user, $admin, $bgcolor1, $bgcolor2, $prefix,$descr_cons, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$id_cons_gen,$id_collegio,$idcomune,$chiusa,$id_conf,$tipo_cons,$language,$help,$preferenze,$idfascia,$vismf,$sg,$disgiunto,$id_cons_comu ;68 global $user, $admin, $bgcolor1, $bgcolor2, $prefix,$descr_cons, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$id_cons_gen,$id_collegio,$idcomune,$chiusa,$id_conf,$tipo_cons,$language,$help,$preferenze,$idfascia,$vismf,$sg,$disgiunto,$id_cons_comu,$genere; 69 69 $aid=$_SESSION['aid']; 70 70 $prefix=$_SESSION['prefix']; … … 145 145 $rescomu->execute(); 146 146 $tardi=$rescomu->rowCount(); 147 if (!$tardi ){147 if (!$tardi && $genere==5){ 148 148 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>"; 149 149 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>"; … … 238 238 $rescomu = $dbi->prepare("$sql"); 239 239 $rescomu->execute(); 240 if (!$tardi ){240 if (!$tardi &&$genere==5){ 241 241 echo "<td><select name=\"sg\">"; 242 242 if ($sg==0) $sel="selected"; else $sel=""; … … 253 253 } 254 254 echo "<td><input type=\"hidden\" name=\"ok\" value=0>"; 255 if ($tardi ) echo "<input type=\"hidden\" name=\"sg\" value=$sg><input type=\"hidden\" name=\"disgiunto\" value=$disgiunto>";255 if ($tardi && $genere==5) echo "<input type=\"hidden\" name=\"sg\" value=$sg><input type=\"hidden\" name=\"disgiunto\" value=$disgiunto>"; 256 256 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 257 257 if ($idcomune) { … … 277 277 } 278 278 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._VISAFFMF."</b></td>"; 279 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>"; 280 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>"; 279 if ($genere==5){ 280 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>"; 281 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>"; 282 } 281 283 echo "<td width=\"10\" bgcolor=\"$bgcolor1\"><b> "._FUNZIONI."</b></td></tr>"; 282 284 … … 316 318 if ($vismf2==0) $sel=_NO; else $sel=_SI; 317 319 echo "<td>$sel</td>"; 318 if ($sg2==0) $sel=_NO; else $sel=_SI; 319 echo "<td>$sel</td>"; 320 if ($disgiunto2==0) $sel=_NO; else $sel=_SI; 321 echo "<td>$sel</td>"; 320 if ($genere==5){ 321 if ($sg2==0) $sel=_NO; else $sel=_SI; 322 echo "<td>$sel</td>"; 323 if ($disgiunto2==0) $sel=_NO; else $sel=_SI; 324 echo "<td>$sel</td>"; 325 } 322 326 echo "<td>"; 323 327 echo "<form name=\"modello$i\" action=\"admin.php\">"
Note:
See TracChangeset
for help on using the changeset viewer.