diff options
author | neoraider <devnull@localhost> | 2006-01-19 23:40:01 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-01-19 23:40:01 +0100 |
commit | f4912a5c5d14b19df9deb71d3587456da6e828f8 (patch) | |
tree | 080977429657d1bd5edc7682b45412a4dbd82114 /handlers | |
parent | 6185e517923e4bc2e64cfc6bcd39c6df4b455316 (diff) | |
download | neon-f4912a5c5d14b19df9deb71d3587456da6e828f8.tar neon-f4912a5c5d14b19df9deb71d3587456da6e828f8.zip |
Seiten-Verwaltung fertig. SQL-Dump hinzugef?gt.
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/default.inc.php | 26 | ||||
-rw-r--r-- | handlers/phpexec.inc.php | 24 |
2 files changed, 42 insertions, 8 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('<' => '<', '>' => '>', '&' => '&', '"' => '"')); $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('<' => '<', '>' => '>', '&' => '&', '"' => '"')); $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); diff --git a/handlers/phpexec.inc.php b/handlers/phpexec.inc.php index 3754fd4..2c1f7b4 100644 --- a/handlers/phpexec.inc.php +++ b/handlers/phpexec.inc.php @@ -19,16 +19,32 @@ 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 .= '<textarea name="code" 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' => $title, '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 .= '<textarea name="code" class="pageedit_phpexec" rows="25" cols="70">'; + $content .= '<textarea name="code" class="pageedit pageedit_input" rows="25" cols="70">'; $content .= strtr($data['code'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); $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); |