Changeset 428 for trunk/admin/admin.php
- Timestamp:
- Oct 9, 2024, 10:47:10 AM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r426 r428 513 513 list($id_sez) = $resmod->fetch(PDO::FETCH_NUM); 514 514 if($id_sez) { 515 $sql="select t1.id_cons_gen,t1.descrizione,t2.id_cons from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and date_add(t1.data_fine, interval 3 day)>CURDATE() and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and id_sez>0 and permessi>0)"; 515 if(isset($id_cons_gen) and $id_cons_gen>0) {$singola="and t1.id_cons_gen=$id_cons_gen";} 516 else{ $singola='';} 517 $sql="select t1.id_cons_gen,t1.descrizione,t2.id_cons from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen $singola and t2.id_comune=$id_comune and date_add(t1.data_fine, interval $giorniaut day)>CURDATE() and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and id_sez>0 and permessi>0)"; 516 518 $resmod = $dbi->prepare("$sql"); 517 519 $resmod->execute(); … … 520 522 $tema='Futura2'; 521 523 $_SESSION['tema']=$tema; 522 } #else {die("TEST: $sql"); logout();}524 } 523 525 } 524 526 } … … 529 531 #echo "op:".$param['op']." -- aid:".$_SESSION['aid']."remote:".$_SESSION['remote']."REMOTE:".$_SERVER['REMOTE_ADDR']; 530 532 if (isset($param['op'])) $op=addslashes($param['op']); else $op='ele'; 531 //if (isset($param['op'])) $op=$param['op']; else $op='ele';532 533 # 533 534 #die("TEST: qui2 op:$op - $aid $id_cons $id_sez ".$_SESSION['aid']);
Note:
See TracChangeset
for help on using the changeset viewer.