summaryrefslogtreecommitdiffstats
path: root/handlers/default.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/default.inc.php')
-rw-r--r--handlers/default.inc.php26
1 files changed, 22 insertions, 4 deletions
diff --git a/handlers/default.inc.php b/handlers/default.inc.php
index f273fdb..6a08d77 100644
--- a/handlers/default.inc.php
+++ b/handlers/default.inc.php
@@ -13,20 +13,38 @@
return array('title' => $title, 'content' => $content);
}
+ function Add() {
+ $title = 'Add page';
+
+ $content = '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Add') . '">';
+ $content .= '<input type="hidden" name="handler" value="' . $_POST['handler'] . '" />';
+ $content .= 'Name: ';
+ $content .= '<input type="text" name="name" size="70" /><br />';
+ $content .= 'Titel: ';
+ $content .= '<input type="text" name="title" size="70" /><br />';
+ $content .= '<textarea name="content" class="pageedit pageedit_input" rows="25" cols="70">';
+ $content .= '</textarea><br />';
+ $content .= '<input type="submit" class="submit" value="Hinzufügen" /> ';
+ $content .= '<input type="submit" name="back" class="submit" value="Zurück" />';
+ $content .= '</form>';
+
+ return array('title' => 'Neue Seite', 'content' => $content);
+ }
+
function Edit($data) {
$title = 'Edit \'' . $data['_page'] . '\'';
- $content = '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Do') . '">';
- $content .= '<input type="hidden" name="do" value="edit" />';
+ $content = '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Edit') . '">';
$content .= '<input type="hidden" name="id" value="' . $_POST['id'] . '" />';
$content .= 'Titel: ';
$content .= '<input type="text" name="title" value="';
$content .= strtr($data['title'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
$content .= '" size="70" /><br />';
- $content .= '<textarea name="content" class="pageedit" rows="25" cols="70">';
+ $content .= '<textarea name="content" class="pageedit pageedit_input" rows="25" cols="70">';
$content .= strtr($data['content'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
$content .= '</textarea><br />';
- $content .= '<input type="submit" value="Änderungen übernehmen" />';
+ $content .= '<input type="submit" class="submit" value="Änderungen übernehmen" /> ';
+ $content .= '<input type="submit" name="back" class="submit" value="Zurück" />';
$content .= '</form>';
return array('title' => $title, 'content' => $content);