source: trunk/client/modules/Elezioni/blocchi/bloccolink.php@ 249

Last change on this file since 249 was 249, checked in by luc, 8 years ago

Client:

  • Aggiornato blocchi laterali
  • Correzione votanti per Referendum
  • Altre modifiche
File size: 628 bytes
Line 
1<?php
2# blocco link
3
4global $genere,$id_cons_gen,$id_cons,$id_comune,$prefix,$dbi;
5$result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi);
6 if (mysql_num_rows($result) == 0) {
7 return;
8 } else {
9 echo "<h5>"._LINK."</h5><p>";
10 while (list($mid, $title, $preamble,$content, $editimage) = mysql_fetch_row($result)) {
11 if ($title != "" && $content != "") {
12 $content = stripslashes($content);
13 $content = substr($content,0,45);
14 echo "<b><a href=\"$preamble\">$title</a></b><br />
15 $content";
16 }
17 }
18
19 }
20
21
22?>
23
Note: See TracBrowser for help on using the repository browser.