--- inc/newsShow.php 2001/08/30 16:35:36 1.5 +++ inc/newsShow.php 2001/09/03 15:52:15 1.6 @@ -3,7 +3,7 @@ global $dbh; $arts = array(); if (!$offset) $offset = 0; - $sql = "SELECT news_id, title, lead, title_pic, title_alt, title_pos, url, date, ord FROM news WHERE (category = '$cat')"; + $sql = "SELECT news_id, title, lead, title_pic, title_alt, title_pos, url, url_title, date, ord FROM news WHERE (category = '$cat')"; if ($id > 0) $sql .= " AND (news_id = $id)"; $sql .= " ORDER BY date DESC"; if ($limit) $sql .= " LIMIT $limit OFFSET $offset"; @@ -14,7 +14,7 @@ $art = array(); list($art["id"], $art["title"], $art["lead"], $art["pic_url"], $art["pic_alt"], $art["pic_pos"], $art["more"], - $date, $ord) = $row; + $art["more_title"], $date, $ord) = $row; $art["pic_url"] = str_replace("+", "%20", urlencode($art["pic_url"])); list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic"]); $text = array(); @@ -76,6 +76,7 @@ $tpl->assign("titlepic_alt", MyEscape($art["pic_alt"])); $tpl->assign("titlepic_type", $art["pic_pos"]); $tpl->assign("title_url", MyEscape($art["more"])); + $tpl->assign("title_url_title", MyEscape($art["more_title"])); $tpl->assign("titlepic_width", $art["pic_w"]); $tpl->assign("titlepic_height", $art["pic_h"]); for ($i = 0; $i < count($art["text"]); $i++)