summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-03 05:21:11 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-03 05:21:11 +0200
commit9325d7a78adac2aeee96324fa23528f8110d198f (patch)
tree6a2a931a37524dcaf393b2b4f027dfeb10d8ddef /includes
parent91f6e7bbaf7c9ed8820fea59e041c8fa17bcea91 (diff)
news refined
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/admin_rooms.php11
-rw-r--r--includes/pages/user_news.php2
2 files changed, 4 insertions, 9 deletions
diff --git a/includes/pages/admin_rooms.php b/includes/pages/admin_rooms.php
index 6695d6a9..be54b8ea 100644
--- a/includes/pages/admin_rooms.php
+++ b/includes/pages/admin_rooms.php
@@ -9,8 +9,6 @@ function admin_rooms() {
",<br />\nhier hast du die M&ouml;glichkeit, neue R&auml;ume f&uuml;r die Schichtpl&auml;ne einzutragen " .
"oder vorhandene abzu&auml;ndern:<br /><br />\n";
- $html .= "<a href=\"" . page_link_to("admin_rooms") . "&action=new\">Neuen Raum/Ort eintragen</a><br />\n";
-
// Räume auflisten
if (count($rooms) > 0) {
$html .= '<table><thead><tr>';
@@ -20,9 +18,7 @@ function admin_rooms() {
// Tabellenüberschriften generieren
foreach ($rooms[0] as $attr => $tmp)
- if ($attr == 'RID')
- $html .= '<th>Anzahl: ' . count($rooms) . '</th>';
- else
+ if ($attr != 'RID')
$html .= '<th>' . $attr . '</th>';
$html .= '<th>&nbsp;</th>';
$html .= '</tr></thead><tbody>';
@@ -30,9 +26,7 @@ function admin_rooms() {
foreach ($rooms as $i => $room) {
$html .= '<tr>';
foreach ($room as $attr => $value)
- if ($attr == 'RID')
- $html .= '<td>' . ($i +1) . '</td>';
- else
+ if ($attr != 'RID')
$html .= '<td>' . $value . '</td>';
$html .= '<td><a href="' . page_link_to("admin_rooms") . '&action=change&RID=' . $room['RID'] . '">Edit</a></td>';
$html .= '</tr>';
@@ -40,6 +34,7 @@ function admin_rooms() {
$html .= '</tbody></table>';
}
+ $html .= "<hr /><a href=\"" . page_link_to("admin_rooms") . "&action=new\">Neuen Raum/Ort eintragen</a><br />\n";
} else {
switch ($_REQUEST["action"]) {
diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php
index 34c346dd..7b4f9482 100644
--- a/includes/pages/user_news.php
+++ b/includes/pages/user_news.php
@@ -35,7 +35,7 @@ function user_news_comments() {
$html .= '<a href="' . page_link_to("news") . '">&laquo; Back</a>';
$html .= display_news($news);
- $html .= '<h2>Comments</h2>';
+ $html .= '<h2>Kommentare</h2>';
$comments = sql_select("SELECT * FROM `news_comments` WHERE `Refid`='" . $nid . "' ORDER BY 'ID'");
foreach ($comments as $comment) {