summaryrefslogtreecommitdiffstats
path: root/pages/content/Pages.xml
blob: fb9ef5621313007380ba5228c2554ee0da347928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8" ?>
<page>
  <info>
    <name>Pages</name>
    <template>phpexec</template>
    <access>0:0</access>
    <type>c</type>
  </info>
  <data>
    <code>
      <![CDATA[
<?PHP
  Uses('links', 'pages');
  
  
  $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="privs" value="Rechte ändern" /> ';
  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>