diff options
Diffstat (limited to 'pages/Pages.c.xml')
-rw-r--r-- | pages/Pages.c.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pages/Pages.c.xml b/pages/Pages.c.xml new file mode 100644 index 0000000..8435abd --- /dev/null +++ b/pages/Pages.c.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<page> + <info> + <name>Pages</name> + <template>phpexec</template> + <access>00</access> + <type>c</type> + </info> + <data> + <code> + <![CDATA[ +<?PHP + require_once('code/links.inc.php'); + require_once('code/pages.inc.php'); + + $title = 'Seiten'; + + echo '<h2>Seiten</h2>'; + + $type = $_GET['type']; + if($type != 'c' && $type != 'n' && $type != 'e') $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><br /><br />'; + + echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Handle') . '">'; + + echo '<input type="hidden" name="type" value="' . $type . '" />'; + + echo '<select name="name" size="15" class="pagelist spaced-bottom">'; + + foreach($GLOBALS['pages']->GetList() as $page) + if($page[strlen($page)-1] == $type) + 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="new" value="Neu" /> '; + echo '<input type="submit" name="edit" value="Bearbeiten" /> '; + echo '<input type="submit" name="copy" value="Kopieren" /> '; + echo '<input type="submit" name="rename" value="Umbenennen" /> '; + echo '<input type="submit" name="delete" value="Löschen" />'; + echo '</form>'; +?> + ]]> + </code> + </data> +</page> |