From 524acb15ba70f49f44e85d4864ed035550703814 Mon Sep 17 00:00:00 2001 From: Felix Favre Date: Sat, 6 Dec 2014 17:42:29 +0100 Subject: [PATCH] use the new very cool glyph button --- includes/pages/user_news.php | 56 ++++++++++++++-------------- includes/view/User_view.php | 72 ++++++++++++++++++------------------ 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index c049f70e..9adeeeb7 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -13,18 +13,18 @@ function meetings_title() { function user_meetings() { global $DISPLAY_NEWS, $privileges, $user; - + $html = '

' . meetings_title() . '

' . msg(); - + if (isset($_REQUEST['page']) && preg_match("/^[0-9]{1,}$/", $_REQUEST['page'])) $page = $_REQUEST['page']; else $page = 0; - + $news = sql_select("SELECT * FROM `News` WHERE `Treffen`=1 ORDER BY `ID` DESC LIMIT " . sql_escape($page * $DISPLAY_NEWS) . ", " . sql_escape($DISPLAY_NEWS)); foreach ($news as $entry) $html .= display_news($entry); - + $dis_rows = ceil(sql_num_query("SELECT * FROM `News`") / $DISPLAY_NEWS); $html .= '
' . '
    '; for ($i = 0; $i < $dis_rows; $i ++) { @@ -37,30 +37,30 @@ function user_meetings() { $html .= '' . ($i + 1) . ''; } $html .= '
'; - + return $html; } function display_news($news) { global $privileges, $p; - + $html = ''; $html .= '
'; $html .= '
'; $html .= '

' . ($news['Treffen'] == 1 ? '[Meeting] ' : '') . ReplaceSmilies($news['Betreff']) . '

'; $html .= '
'; $html .= '
' . ReplaceSmilies(nl2br($news['Text'])) . '
'; - + $html .= '