Changeset 419 for trunk/client/temi/Futura2/function_theme.php
- Timestamp:
- May 31, 2024, 4:01:27 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/temi/Futura2/function_theme.php
r418 r419 261 261 left join ".$prefix."_$tab as t2 on (t1.id_lista=t2.id_lista) 262 262 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons 263 group by t 2.id_lista263 group by t1.id_lista, t1.num_lista, t1.descrizione 264 264 order by somma desc"; 265 265 $res = $dbi->prepare("$sql"); … … 1094 1094 global $dbi,$circo,$prefix,$id_cons,$genere,$id_circ,$id_comune,$id_cons_gen; 1095 1095 1096 if (isset($circo) and $circo) $circos="and t2.id_circ='$id_circ'"; 1097 else $circos=''; 1098 $circos=''; 1099 // numero sezioni scrutinate 1100 1096 if (isset($circo) and $circo) $circos="and t2.id_circ='$id_circ'"; 1097 else $circos=''; 1098 $circos=''; 1099 // numero sezioni scrutinate 1101 1100 $sql="select t1.* from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons'"; 1102 1101 $res2 = $dbi->prepare("$sql"); 1103 1102 $res2->execute(); 1104 1103 $sezioni=$res2->rowCount(); 1105 1106 1104 $sql="select orario,data from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by data desc,orario desc limit 1"; 1107 1105 $res = $dbi->prepare("$sql"); 1108 1106 $res->execute(); 1109 1107 if($res){ 1110 1111 while(list($orario,$data) = $res->fetch(PDO::FETCH_NUM)) { 1112 list ($ore,$minuti,$secondi)=explode(':',$orario); 1113 list ($anno,$mese,$giorno)=explode('-',$data); 1114 $tot_v_m=0;$tot_v_d=0;$tot_t=0; 1115 1116 1117 $sql="select t3.id_sez from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' group by t3.id_sez "; 1118 $res1 = $dbi->prepare("$sql"); 1119 $res1->execute(); 1120 $numero=$res1->rowCount(); 1121 1122 echo "<div style=\"text-align:center;\">Ultime Affluenze<br/>"; 1123 echo "<b>"._ORE." $ore,$minuti "._DEL." $giorno/$mese/$anno</b></div>"; 1124 1125 1126 1127 1128 $sql="select sum(t3.voti_complessivi), t4.num_gruppo , t4.id_gruppo from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede left join ".$prefix."_ele_gruppo as t4 on (t3.id_gruppo=t4.id_gruppo) where t3.id_cons='$id_cons' and t3.orario='$orario' and t3.data='$data' $circos group by t4.num_gruppo, t4.id_gruppo order by t4.num_gruppo "; 1129 $res1 = $dbi->prepare("$sql"); 1130 $res1->execute(); 1131 1132 1133 1134 while(list($voti_t, $num_gruppo,$id_gruppo) = $res1->fetch(PDO::FETCH_NUM)) { 1135 1136 $query="select sum(t3.voti_complessivi) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 1137 if ($genere==0){$query.=" and t3.id_gruppo=$id_gruppo";} 1138 1139 $res_aff = $dbi->prepare("$query"); 1140 $res_aff->execute(); 1141 $voti_numero=$res_aff->rowCount(); 1142 1143 # $query="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' "; 1144 1145 $query="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons='$id_cons' and t1.id_sede=t2.id_sede "; 1146 1147 //if ($genere==0){$query.=" and t3.id_gruppo=$id_gruppo";} 1148 $tot=''; 1149 $res1234 = $dbi->prepare("$query"); 1150 $res1234->execute(); 1151 list($tot)=$res1234->fetch(PDO::FETCH_NUM); 1152 if (isset($tot)){$perc=number_format($voti_t*100/$tot,2);} 1153 else{$tot=0;$perc="0.00";} 1154 if($voti_t<=$tot){ 1155 1156 $resto=100-$perc; 1157 if ($genere==0){echo "<div style=\"text-align:center\"><b>Referendum n. $num_gruppo</b></div>";} 1158 1159 echo "<div style=\"margin:0 auto;width:300px;\"><img src=\"http://chart.apis.google.com/chart? 1160 chs=300x200 1161 &chd=t:$perc 1162 &cht=gom 1163 &chl=$perc% 1164 &chco=ff0000,ffff00 \" 1165 alt=\"Sample chart\" /> 1166 1167 </div>"; 1168 1169 } 1170 1171 } 1172 1173 } 1174 } 1175 1108 while(list($orario,$data) = $res->fetch(PDO::FETCH_NUM)) { 1109 list ($ore,$minuti,$secondi)=explode(':',$orario); 1110 list ($anno,$mese,$giorno)=explode('-',$data); 1111 $tot_v_m=0;$tot_v_d=0;$tot_t=0; 1112 $sql="select t3.id_sez from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' group by t3.id_sez "; 1113 $res1 = $dbi->prepare("$sql"); 1114 $res1->execute(); 1115 $numero=$res1->rowCount(); 1116 echo "<div style=\"text-align:center;\"><br/>Ultime Affluenze<br/>"; 1117 echo "<b>"._ORE." $ore,$minuti "._DEL." $giorno/$mese/$anno</b></div>"; 1118 $sql="select sum(t3.voti_complessivi), t4.num_gruppo , t4.id_gruppo from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede left join ".$prefix."_ele_gruppo as t4 on (t3.id_gruppo=t4.id_gruppo) where t3.id_cons='$id_cons' and t3.orario='$orario' and t3.data='$data' $circos group by t4.num_gruppo, t4.id_gruppo order by t4.num_gruppo "; 1119 $res1 = $dbi->prepare("$sql"); 1120 $res1->execute(); 1121 while(list($voti_t, $num_gruppo,$id_gruppo) = $res1->fetch(PDO::FETCH_NUM)) { 1122 $query="select sum(t3.voti_complessivi) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 1123 if ($genere==0){$query.=" and t3.id_gruppo=$id_gruppo";} 1124 $res_aff = $dbi->prepare("$query"); 1125 $res_aff->execute(); 1126 $voti_numero=$res_aff->rowCount(); 1127 # $query="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' "; 1128 $query="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons='$id_cons' and t1.id_sede=t2.id_sede "; 1129 //if ($genere==0){$query.=" and t3.id_gruppo=$id_gruppo";} 1130 $tot=''; 1131 $res1234 = $dbi->prepare("$query"); 1132 $res1234->execute(); 1133 list($tot)=$res1234->fetch(PDO::FETCH_NUM); 1134 if (isset($tot)){$perc=number_format($voti_t*100/$tot,2);} 1135 else{$tot=0;$perc="0.00";} 1136 if($voti_t<=$tot){ 1137 $resto=100-$perc; 1138 if ($genere==0){echo "<div style=\"text-align:center\"><b>Referendum n. $num_gruppo</b></div>";} 1139 echo '<center> 1140 <div id="piechart" style="width:100%; min-height:200px;"></div><br/> 1141 </center> 1142 <script>google.charts.load("current", {"packages":["corechart"]}); 1143 google.charts.setOnLoadCallback(drawChart); 1144 1145 function drawChart() { 1146 var data = google.visualization.arrayToDataTable([ 1147 ["Task", "Affluenze"], 1148 ["", '.$resto.'], 1149 ["'.$perc.'%", '.$perc.'] 1150 ]); 1151 var options = { 1152 title: "", 1153 is3D:true, 1154 legend: "none", 1155 pieSliceText: "label", 1156 pieSliceTextStyle: { 1157 color: "#000", 1158 bold:true, 1159 fontSize:12 1160 }, 1161 slices: { 1162 0: { color: "#ff0000", textStyle:{color:"#fff"}}, 1163 1: { color: "#ffff00" } 1164 } 1165 }; 1166 var chart = new google.visualization.PieChart(document.getElementById("piechart")); 1167 1168 chart.draw(data, options); 1169 } 1170 </script>'; 1171 } 1172 } 1173 } 1174 } 1176 1175 } 1177 1176 … … 1184 1183 global $op, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$tipo_cons,$id_comune,$id_cons_gen,$id_circ,$csv,$w,$l,$siteistat,$flash,$tour,$dbi; 1185 1184 1186 1187 1188 1189 if (isset($circo) and $circo) $circos="and t2.id_circ='$id_circ'"; 1190 else $circos=''; 1191 $circos=''; 1192 //if ($genere==0) $tab="ref";elseif($genere=='4' || $votog) $tab="lista"; 1193 if($genere=='4' || $votog) $tab="lista"; 1194 else $tab="gruppo"; 1195 if ($genere==0) $tab="ref"; 1196 1185 if (isset($circo) and $circo) $circos="and t2.id_circ='$id_circ'"; 1186 else $circos=''; 1187 $circos=''; 1188 //if ($genere==0) $tab="ref";elseif($genere=='4' || $votog) $tab="lista"; 1189 if($genere=='4' || $votog) $tab="lista"; 1190 else $tab="gruppo"; 1191 if ($genere==0) $tab="ref"; 1197 1192 $sql="select t3.id_sez from ".$prefix."_ele_voti_".$tab." as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos group by t3.id_sez "; 1198 1193 $res = $dbi->prepare("$sql"); … … 1202 1197 $res = $dbi->prepare("$sql"); 1203 1198 $res->execute(); 1204 $sezioni=$res->rowCount(); 1205 1199 $sezioni=$res->rowCount(); 1206 1200 if ($numero!=0){ 1207 1208 echo "<li data-role=\"list-divider\" data-icon=\"arrow-up\" >"; 1209 echo "<center><b>"._DETTAGLIO." "._VOTIE."</b></center></li>"; 1210 echo "<div style=\"text-align:center;\"><i> "._SEZSCRU." $numero "._SU." $sezioni </i></div>"; 1211 1212 1213 1214 1215 if ($genere!=0) { 1216 1217 $sql="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and validi>0 $circos"; 1218 $res = $dbi->prepare("$sql"); 1219 $res->execute(); 1220 list($tot_aventi) = $res->fetch(PDO::FETCH_NUM); 1221 1222 $sql="select sum(t1.validi+t1.nulli+t1.bianchi+t1.contestati) as tot, 1223 sum(t1.validi),sum(t1.nulli),sum(t1.bianchi),sum(t1.contestati), '0', '0', '0' 1224 from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and validi>0 $circos"; 1225 $res = $dbi->prepare("$sql"); 1226 $res->execute(); 1227 1228 }else{ 1229 $sql="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni where id_cons='$id_cons'"; 1230 $res = $dbi->prepare("$sql"); 1231 $res->execute(); 1232 list($tot_aventi) = $res->fetch(PDO::FETCH_NUM); 1233 $sql="SELECT sum(validi+nulli+bianchi+contestati) as tot, 1234 sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo, sum(si), sum(no) 1235 from ".$prefix."_ele_voti_ref where id_cons=$id_cons group by id_gruppo having tot>'0'"; 1236 $res = $dbi->prepare("$sql"); 1237 $res->execute(); 1201 echo "<li data-role=\"list-divider\" data-icon=\"arrow-up\" >"; 1202 echo "<center><b>"._DETTAGLIO." "._VOTIE."</b></center></li>"; 1203 echo "<div style=\"text-align:center;\"><i> "._SEZSCRU." $numero "._SU." $sezioni </i></div>"; 1204 if ($genere!=0) { 1205 $sql="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and validi>0 $circos"; 1206 $res = $dbi->prepare("$sql"); 1207 $res->execute(); 1208 list($tot_aventi) = $res->fetch(PDO::FETCH_NUM); 1209 $sql="select sum(t1.validi+t1.nulli+t1.bianchi+t1.contestati) as tot, 1210 sum(t1.validi),sum(t1.nulli),sum(t1.bianchi),sum(t1.contestati), '0', '0', '0' 1211 from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and validi>0 $circos"; 1212 $res = $dbi->prepare("$sql"); 1213 $res->execute(); 1214 }else{ 1215 $sql="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni where id_cons='$id_cons'"; 1216 $res = $dbi->prepare("$sql"); 1217 $res->execute(); 1218 list($tot_aventi) = $res->fetch(PDO::FETCH_NUM); 1219 $sql="SELECT sum(validi+nulli+bianchi+contestati) as tot, 1220 sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo, sum(si), sum(no) 1221 from ".$prefix."_ele_voti_ref where id_cons=$id_cons group by id_gruppo having tot>'0'"; 1222 $res = $dbi->prepare("$sql"); 1223 $res->execute(); 1224 } 1225 while (list($tot_votanti,$validi,$nulli,$bianchi,$contestati,$id,$si,$no) = $res->fetch(PDO::FETCH_NUM)){ 1226 $tot_votanti=$validi+$bianchi+$nulli+$contestati; 1227 $arvoti=array($validi,$nulli,$bianchi,$contestati); 1228 $arperc=arrayperc($arvoti,$tot_votanti); 1229 if($tot_votanti){ 1230 if($genere==0 and $validi) {$perc_si=number_format($si*100/$validi,2);$perc_no=number_format(100 - $si*100/$validi,2);} 1231 else {$perc_si="0.00"; $perc_no="0.00";} 1232 $perc_validi=number_format($arperc[0],2);#number_format($validi*100/$tot_votanti,2); 1233 $perc_nulli=number_format($arperc[1],2); 1234 $perc_bianchi=number_format($arperc[2],2); 1235 $perc_conte=number_format($arperc[3],2); 1236 }else{$perc_validi="0.00";$perc_nulli="0.00";$perc_bianchi="0.00";$perc_conte="0.00";} 1237 if($tot_aventi) $perc_votanti=number_format($tot_votanti*100/$tot_aventi,2); 1238 else $perc_votanti="0.00"; 1239 $non_votanti=($tot_aventi - $tot_votanti); 1240 $perc_non=100-$perc_votanti; 1241 if ($genere==0) { 1242 $sql="SELECT num_gruppo,descrizione from ".$prefix."_ele_gruppo where id_gruppo=$id"; 1243 $resg = $dbi->prepare("$sql"); 1244 $resg->execute(); 1245 list($num_gruppo,$descr_gruppo) = $resg->fetch(PDO::FETCH_NUM); 1246 } 1247 echo "<li><table bgcolor=\"gray\" width=\"100%\" cellspacing=\"1\">"; 1248 if ($genere==0) {echo "<br/>Referendum n. <b>[$num_gruppo]</b><br/>";} 1249 echo " 1250 <tr bgcolor=\"#ffffff\"><td ><b>"._AVENTI."</b></td><td align=\"right\">$tot_aventi</td><td align=\"right\"><span class=\"red\">100.00%</span></td></tr> 1251 1252 <tr bgcolor=\"#ffffff\"><td><b>"._VOTANTI."</b></td><td align=\"right\">$tot_votanti</td><td align=\"right\"><span class=\"red\">$perc_votanti%</span></td></tr>"; 1253 if ($genere==0){ 1254 echo "<tr bgcolor=\"#ffffff\"><td>"._SI."</td><td align=\"right\">$si</td><td align=\"right\"><span class=\"red\">$perc_si%</span></td></tr> 1255 <tr bgcolor=\"#ffffff\"><td>"._NO."</td><td align=\"right\">$no</td><td align=\"right\"><span class=\"red\">$perc_no%</span></td></tr>"; 1256 } 1257 echo "<tr bgcolor=\"#ffffff\"><td>"._VALIDI."</td><td align=\"right\">$validi</td><td align=\"right\"><span class=\"red\">$perc_validi%</span></td></tr> 1258 <tr bgcolor=\"#ffffff\"><td>"._NULLI."</td><td align=\"right\">$nulli</td><td align=\"right\"><span class=\"red\">$perc_nulli%</span></td></tr> 1259 <tr bgcolor=\"#ffffff\"><td>"._BIANCHI."</td><td align=\"right\">$bianchi</td><td align=\"right\"><span class=\"red\">$perc_bianchi%</span></td></tr> 1260 <tr bgcolor=\"#ffffff\"><td>"._CONTESTATI."</td><td align=\"right\">$contestati</td><td align=\"right\"><span class=\"red\">$perc_conte%</span></td></tr> 1261 </table></li>"; 1262 } 1238 1263 } 1239 1240 while (list($tot_votanti,$validi,$nulli,$bianchi,$contestati,$id,$si,$no) = $res->fetch(PDO::FETCH_NUM)){ 1241 $tot_votanti=$validi+$bianchi+$nulli+$contestati; 1242 $arvoti=array($validi,$nulli,$bianchi,$contestati); 1243 $arperc=arrayperc($arvoti,$tot_votanti); 1244 if($tot_votanti){ 1245 if($genere==0 and $validi) {$perc_si=number_format($si*100/$validi,2);$perc_no=number_format(100 - $si*100/$validi,2);} 1246 else {$perc_si="0.00"; $perc_no="0.00";} 1247 $perc_validi=number_format($arperc[0],2);#number_format($validi*100/$tot_votanti,2); 1248 $perc_nulli=number_format($arperc[1],2); 1249 $perc_bianchi=number_format($arperc[2],2); 1250 $perc_conte=number_format($arperc[3],2); 1251 }else {$perc_validi="0.00";$perc_nulli="0.00";$perc_bianchi="0.00";$perc_conte="0.00";} 1252 if($tot_aventi) 1253 $perc_votanti=number_format($tot_votanti*100/$tot_aventi,2); 1254 else $perc_votanti="0.00"; 1255 $non_votanti=($tot_aventi - $tot_votanti); 1256 $perc_non=100-$perc_votanti; 1257 1258 if ($genere==0) { 1259 $sql="SELECT num_gruppo,descrizione from ".$prefix."_ele_gruppo where id_gruppo=$id"; 1260 $resg = $dbi->prepare("$sql"); 1261 $resg->execute(); 1262 list($num_gruppo,$descr_gruppo) = $resg->fetch(PDO::FETCH_NUM); 1263 } 1264 1265 1266 1267 1268 echo "<li><table bgcolor=\"gray\" width=\"100%\" cellspacing=\"1\">"; 1269 if ($genere==0) {echo "<br/>Referendum n. <b>[$num_gruppo]</b><br/>";} 1270 echo " 1271 <tr bgcolor=\"#ffffff\"><td ><b>"._AVENTI."</b></td><td align=\"right\">$tot_aventi</td><td align=\"right\"><span class=\"red\">100.00%</span></td></tr> 1272 1273 <tr bgcolor=\"#ffffff\"><td><b>"._VOTANTI."</b></td><td align=\"right\">$tot_votanti</td><td align=\"right\"><span class=\"red\">$perc_votanti%</span></td></tr>"; 1274 if ($genere==0){ 1275 echo "<tr bgcolor=\"#ffffff\"><td>"._SI."</td><td align=\"right\">$si</td><td align=\"right\"><span class=\"red\">$perc_si%</span></td></tr> 1276 1277 <tr bgcolor=\"#ffffff\"><td>"._NO."</td><td align=\"right\">$no</td><td align=\"right\"><span class=\"red\">$perc_no%</span></td></tr>"; 1278 } 1279 echo "<tr bgcolor=\"#ffffff\"><td>"._VALIDI."</td><td align=\"right\">$validi</td><td align=\"right\"><span class=\"red\">$perc_validi%</span></td></tr> 1280 1281 <tr bgcolor=\"#ffffff\"><td>"._NULLI."</td><td align=\"right\">$nulli</td><td align=\"right\"><span class=\"red\">$perc_nulli%</span></td></tr> 1282 1283 <tr bgcolor=\"#ffffff\"><td>"._BIANCHI."</td><td align=\"right\">$bianchi</td><td align=\"right\"><span class=\"red\">$perc_bianchi%</span></td></tr> 1284 1285 <tr bgcolor=\"#ffffff\"><td>"._CONTESTATI."</td><td align=\"right\">$contestati</td><td align=\"right\"><span class=\"red\">$perc_conte%</span></td></tr> 1286 1287 </table></li>"; 1288 1289 } 1290 } 1291 } 1292 1293 1294 1264 } 1295 1265 ######## fine 1296 1297 1298 1299 1300 1301 1266 1302 1267 #################################### … … 1330 1295 # numero sezioni 1331 1296 $sql="select t1.id_sez,t1.num_sez from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos order by t1.num_sez"; 1332 $res = $dbi->prepare("$sql");1333 $res->execute();1297 $res = $dbi->prepare("$sql"); 1298 $res->execute(); 1334 1299 $max = $res->rowCount(); 1335 1300 if(!isset($html)) $html='';
Note:
See TracChangeset
for help on using the changeset viewer.