Changeset 424 for trunk/admin/modules/Elezioni/ele_spoglio.php
- Timestamp:
- Jun 13, 2024, 7:18:22 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_spoglio.php
r422 r424 278 278 echo "<input type=\"hidden\" id=\"pag\" name=\"pag\" value=\"admin.php?id_cons_gen=$id_cons_gen&op=$op&id_sez=$id_sez&id_circ=$id_circ&id_sede=$id_sede&do=spoglio&ops=3&id_lista=\">"; 279 279 echo "<select id=\"id_lista\" name=\"id_lista\" onChange=\"vai_lista('id_lista');\">"; 280 if ($id_lista){ 280 if ($id_lista){ #TEST spostare la valorizzazione di $ele_lista 281 281 echo "<option value=\"0\">"._VOTI_LISTA; 282 282 $ele_lista=" and t1.id_lista='$id_lista' "; … … 498 498 499 499 500 if($id_lista) $sql="select t1.* from ".$prefix."_ele_candidati as t1 left join ".$prefix."_ele_lista as t2 on (t1.id_lista=t2.id_lista) WHERE t1.id_cons=$id_cons and t1.id_cons=t2.id_cons $ele_lista $circoORDER BY t2.num_lista,t1.num_cand";501 else $sql="select 0,'$id_cons',t1.id_lista,'','','','','',0 from ".$prefix."_ele_candidati as t1 left join ".$prefix."_ele_lista as t2 on (t1.id_lista=t2.id_lista) WHERE t1.id_cons=$id_cons and t1.id_cons=t2.id_cons $ ele_lista $circoORDER BY t2.num_lista";500 if($id_lista) $sql="select t1.* from ".$prefix."_ele_candidati as t1 left join ".$prefix."_ele_lista as t2 on (t1.id_lista=t2.id_lista) WHERE t1.id_cons=$id_cons and t1.id_cons=t2.id_cons $ele_lista ORDER BY t2.num_lista,t1.num_cand"; 501 else $sql="select 0,'$id_cons',t1.id_lista,'','','','','',0 from ".$prefix."_ele_candidati as t1 left join ".$prefix."_ele_lista as t2 on (t1.id_lista=t2.id_lista) WHERE t1.id_cons=$id_cons and t1.id_cons=t2.id_cons $circo $ele_lista ORDER BY t2.num_lista"; 502 502 $result = $dbi->prepare("$sql"); 503 503 $result->execute();
Note:
See TracChangeset
for help on using the changeset viewer.