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

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 629 bytes
Line 
1<?php
2# blocco link
3
4global $genere,$id_cons_gen,$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\">
15 $title</a></b><br />
16
17 $content<br/>";
18 }
19 }
20
21 }
22
23
24?>
25
Note: See TracBrowser for help on using the repository browser.