Last change
on this file since 199 was 40, checked in by roby, 15 years ago |
Ancora due notice, nei widget
|
File size:
638 bytes
|
Rev | Line | |
---|
[2] | 1 | <?php
|
---|
| 2 | # blocco link
|
---|
| 3 |
|
---|
[40] | 4 | global $genere,$id_cons_gen,$id_cons,$id_comune,$prefix,$dbi;
|
---|
[2] | 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.