diff options
author | neoraider <devnull@localhost> | 2006-04-13 02:46:05 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-13 02:46:05 +0200 |
commit | 86166ff7ac6305f0aaf09e0c87a754a62301083c (patch) | |
tree | 6925574b0d34e1823927abefe1a7f1464fb8e1a8 | |
parent | 08945f7122e50a6e0ef0966c932f0a1496475f04 (diff) | |
download | bbcode-86166ff7ac6305f0aaf09e0c87a754a62301083c.tar bbcode-86166ff7ac6305f0aaf09e0c87a754a62301083c.zip |
Editor hinzugef?gt.
-rw-r--r-- | module.xml | 1 | ||||
-rw-r--r-- | pages/bbcode.e.xml | 32 |
2 files changed, 33 insertions, 0 deletions
@@ -6,6 +6,7 @@ <desc>A little module that parses BBCode</desc> </info> <files> + <page type="e">bbcode</page> <code>bbcode</code> <template>bbcode</template> </files> diff --git a/pages/bbcode.e.xml b/pages/bbcode.e.xml new file mode 100644 index 0000000..0516f33 --- /dev/null +++ b/pages/bbcode.e.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>bbcode</name> + <template>phpexec</template> + <access>00</access> + <type>e</type> + </info> + <data> + <code> + <![CDATA[ +<?PHP + $title = 'Edit \'' . $data['_data']['_page'] . '\''; + + echo '<h2>' . $title . '</h2>'; +?> +<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:Edit'); ?>"> + <input type="hidden" name="name" value="<?PHP echo $data['_data']['_page'] ?>" /> + <input type="hidden" name="type" value="<?PHP echo $data['_data']['_type']; ?>" /> + Titel: <input type="text" name="data_title" value="<?PHP + echo strtr($data['_data']['title'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); + ?>" size="70" /><br /> + <textarea name="data_code" class="pageedit spaced-top spaced-bottom" rows="25" cols="70"><?PHP + echo strtr($data['_data']['code'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); + ?></textarea><br /> + <input type="submit" value="Änderungen übernehmen" /> + <input type="submit" name="back" value="Zurück" /> +</form> + ]]> + </code> + </data> +</page> |