- Timestamp:
- May 1, 2019, 11:51:25 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r293 r294 677 677 678 678 679 $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 $circo ORDER BY t2.num_lista,t1.num_cand"; 679 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 $circo ORDER BY t2.num_lista,t1.num_cand"; 680 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 $circo ORDER BY t2.num_lista"; 680 681 $result = $dbi->prepare("$sql"); 681 682 $result->execute(); -
trunk/client/modules/Elezioni/index.php
r290 r294 1041 1041 list($descr_gruppo)=$res_gruppo->fetch(PDO::FETCH_NUM); 1042 1042 1043 } 1044 1043 }else{ 1044 $sql="select descrizione from ".$prefix."_ele_lista where id_lista='$id_lista'"; 1045 $res_gruppo = $dbi->prepare("$sql"); 1046 $res_gruppo->execute(); 1047 1048 list($descr_gruppo)=$res_gruppo->fetch(PDO::FETCH_NUM); 1049 1050 } 1045 1051 // numero sezioni scrutinate, escluse circorscrizioni (da aggiungere) 1046 1052 if ($circo!=1){ … … 1050 1056 $res1->execute(); 1051 1057 1052 $numero= mysql_num_rows($res1);1058 $numero=$res1->rowCount(); 1053 1059 $sql="select max(num_sez) from ".$prefix."_ele_sezioni where id_cons='$id_cons'"; 1054 1060 $res2 = $dbi->prepare("$sql");
Note:
See TracChangeset
for help on using the changeset viewer.