$date = explode (" ", $row['releasedate']);
$date = explode ("-", $date[0]);
$date = sprintf ("%d.%d.%d", $date[2], $date[1], $date[0]);
- printf ("<h3 class=\"newstitle\">%s</h3>", $row['subject']);
+
+ # if (!strncmp($row['body'], 'http://', 7))
+ if (!strcmp(substr($row['body'],0,7), 'http://'))
+ $url = $row['body'];
+ else
+ $url = sprintf ("shownews.php3?id=%d", $row['id']);
+
+ echo ("<div class=\"newsbox\">");
+
+ if (strlen ($row['body']) > 0)
+ printf ("<h3 class=\"newstitle\"><a href=\"%s\">%s</a></h3>", $url, $row['subject']);
+ else
+ printf ("<h3 class=\"newstitle\">%s</h3>", $row['subject']);
+
printf ("<div class=\"newsauthor\">By: %s, %s</div>", $row['author'], $date);
printf ("<div class=\"newscontent\">%s", $row['teaser']);
- if (strlen ($row['body']) > 0) {
- # if (!strncmp($row['body'], 'http://', 7))
- if (!strcmp(substr($row['body'],0,7), 'http://'))
- $url = $row['body'];
- else
- $url = sprintf ("shownews.php3?id=%d", $row['id']);
+ if (strlen ($row['body']) > 0)
printf (" <a href=\"%s\"><phpmehr></a>", $url);
- }
+
+ echo ("</div>");
echo ("</div>");
}
?>
$date = explode (" ", $row['releasedate']);
$date = explode ("-", $date[0]);
$date = sprintf ("%d.%d.%d", $date[2], $date[1], $date[0]);
- printf ("<h3 class=\"newstitle\">%s</h3>", $row['subject']);
+
+ # if (!strncmp($row['body'], 'http://', 7))
+ if (!strcmp(substr($row['body'],0,7), 'http://'))
+ $url = $row['body'];
+ else
+ $url = sprintf ("shownews.php3?id=%d", $row['id']);
+
+ echo ("<div class=\"newsbox\">");
+
+ if (strlen ($row['body']) > 0)
+ printf ("<h3 class=\"newstitle\"><a href=\"%s\">%s</a></h3>", $url, $row['subject']);
+ else
+ printf ("<h3 class=\"newstitle\">%s</h3>", $row['subject']);
+
printf ("<div class=\"newsauthor\">By: %s, %s</div>", $row['author'], $date);
printf ("<div class=\"newscontent\">%s", $row['teaser']);
- if (strlen ($row['body']) > 0) {
- # if (!strncmp($row['body'], 'http://', 7))
- if (!strcmp(substr($row['body'],0,7), 'http://'))
- $url = $row['body'];
- else
- $url = sprintf ("shownews.php3?id=%d", $row['id']);
+ if (strlen ($row['body']) > 0)
printf (" <a href=\"%s\"><phpmehr></a>", $url);
- }
+
+ echo ("</div>");
echo ("</div>");
}
}