Changeset 292 for trunk/admin
- Timestamp:
- Apr 29, 2019, 8:26:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_associazioni.php
r282 r292 141 141 } 142 142 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._VISAFFMF."</b></td>"; 143 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>"; 144 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>"; 143 $sql = "SELECT * from ".$prefix."_ele_voti_gruppo where id_cons='$id_cons_comu'"; 144 $rescomu = $dbi->prepare("$sql"); 145 $rescomu->execute(); 146 $tardi=$rescomu->rowCount(); 147 if (!$tardi){ 148 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>"; 149 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>"; 150 } 145 151 echo "</tr>"; 146 152 echo "<tr align=\"center\"><td>"; … … 229 235 echo "<option value=\"1\" $sel>Si"; 230 236 echo "</select></td>"; 231 echo "<td><select name=\"sg\">"; 232 if ($sg==0) $sel="selected"; else $sel=""; 233 echo "<option value=\"0\" $sel>No"; 234 if ($sg==1) $sel="selected"; else $sel=""; 235 echo "<option value=\"1\" $sel>Si"; 236 echo "</select></td>"; 237 echo "<td><select name=\"disgiunto\">"; 238 if ($disgiunto==0) $sel="selected"; else $sel=""; 239 echo "<option value=\"0\" $sel>No"; 240 if ($disgiunto==1) $sel="selected"; else $sel=""; 241 echo "<option value=\"1\" $sel>Si"; 242 echo "</select></td>"; 243 237 $sql = "SELECT * from ".$prefix."_ele_voti_gruppo where id_cons='$id_cons_comu'"; 238 $rescomu = $dbi->prepare("$sql"); 239 $rescomu->execute(); 240 if (!$tardi){ 241 echo "<td><select name=\"sg\">"; 242 if ($sg==0) $sel="selected"; else $sel=""; 243 echo "<option value=\"0\" $sel>No"; 244 if ($sg==1) $sel="selected"; else $sel=""; 245 echo "<option value=\"1\" $sel>Si"; 246 echo "</select></td>"; 247 echo "<td><select name=\"disgiunto\">"; 248 if ($disgiunto==0) $sel="selected"; else $sel=""; 249 echo "<option value=\"0\" $sel>No"; 250 if ($disgiunto==1) $sel="selected"; else $sel=""; 251 echo "<option value=\"1\" $sel>Si"; 252 echo "</select></td>"; 253 } 244 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>"; 245 256 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 246 257 if ($idcomune) {
Note:
See TracChangeset
for help on using the changeset viewer.