summaryrefslogtreecommitdiffstats
path: root/pages/content/Pages.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/content/Pages.xml')
-rw-r--r--pages/content/Pages.xml24
1 files changed, 3 insertions, 21 deletions
diff --git a/pages/content/Pages.xml b/pages/content/Pages.xml
index bbf0b07..e72368f 100644
--- a/pages/content/Pages.xml
+++ b/pages/content/Pages.xml
@@ -17,37 +17,19 @@
echo '<h2>Seiten</h2>';
- $type = $_GET['type'];
- if($type != 'c' && $type != 'n' && $type != 'e' && $type != 'b') $type = 'c';
-
- echo 'Seitentyp: ';
- echo '<a href="' . $GLOBALS['links']->GetNeonLink('Pages', 'type=c') . '"';
- if($type == 'c') echo ' class="active_page_link"';
- echo '>Inhalt</a> | ';
- echo '<a href="' . $GLOBALS['links']->GetNeonLink('Pages', 'type=n') . '"';
- if($type == 'n') echo ' class="active_page_link"';
- echo '>Navigation</a> | ';
- echo '<a href="' . $GLOBALS['links']->GetNeonLink('Pages', 'type=e') . '"';
- if($type == 'e') echo ' class="active_page_link"';
- echo '>Editor</a> | ';
- echo '<a href="' . $GLOBALS['links']->GetNeonLink('Pages', 'type=b') . '"';
- if($type == 'b') echo ' class="active_page_link"';
- echo '>Basis</a><br /><br />';
-
echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Handle') . '">';
- echo '<input type="hidden" name="type" value="' . $type . '" />';
+ echo '<input type="hidden" name="type" value="c" />';
echo '<select name="name" size="15" class="pagelist spaced-bottom">';
foreach($GLOBALS['pages']->GetList() as $page)
- if($page[strlen($page)-1] == $type)
+ if($page[strlen($page)-1] == 'c')
echo '<option>' . substr($page, 0, -2) . '</option>';
echo '</select>';
echo '<br />';
- if($type == 'c')
- echo '<input type="submit" name="view" value="Anzeigen" /> ';
+ echo '<input type="submit" name="view" value="Anzeigen" /> ';
echo '<input type="submit" name="new" value="Neu" /> ';
echo '<input type="submit" name="edit" value="Bearbeiten" /> ';
echo '<input type="submit" name="privs" value="Rechte ändern" /> ';