File: create.html.php

package info (click to toggle)
php-horde-wicked 2.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,528 kB
  • ctags: 1,236
  • sloc: php: 5,386; xml: 1,027; makefile: 10; sh: 3
file content (51 lines) | stat: -rw-r--r-- 1,840 bytes parent folder | download | duplicates (5)
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
<form name="newpage" method="post" action="<?php echo $this->action ?>">
<?php echo $this->formInput ?>
<input type="hidden" name="page" value="NewPage" />
<input type="hidden" name="referrer" value="<?php echo $this->h($this->referrer) ?>" />

<h1 class="header">
 <?php echo $this->h($this->name) ?>
</h1>

<?php if ($this->pages): ?>
<p class="horde-content">
 <?php printf(_("\"%s\" does not exist, but maybe you were looking for one of the following pages?"), $this->h($this->referrer)) ?>
</p>
<table class="horde-table sortable" style="width:100%">
 <thead>
  <tr>
   <th style="width:40%"><?php echo _("Page") ?></th>
   <th style="width:10%"><?php echo _("Version") ?></th>
   <th style="width:25%"><?php echo _("Author") ?></th>
   <th style="width:25%"><?php echo _("Creation Date") ?></th>
  </tr>
 </thead>
 <tbody>
<?php echo $this->renderPartial('pagelist/page', array('collection' => $this->pages))  ?>
 </tbody>
</table>
<br />
<p class="horde-content">
 <?php echo _("Click on \"Create\" below if you want to create this page now and start editing.") ?>
</p>
<?php else: ?>
<p class="horde-content">
 <?php printf(_("%s does not exist. Click on \"Create\" below if you want to create this page now and start editing."), $this->h($this->referrer)) ?>
</p>
<?php endif; ?>

<p class="horde-content">
 <?php echo _("Page Template:") ?>
 <select name="template">
  <option value=""><?php echo _("(None)") ?></option>
<?php foreach ($this->templates as $page): ?>
  <option value="<?php echo $this->h($page['page_name']) ?>"><?php echo $this->h($page['page_name']) ?></option>
<?php endforeach ?>
 </select>

 <input class="horde-create" type="submit" value="<?php echo _("Create") ?>" />
 <a class="horde-cancel" href="#" onclick="window.history.back();"><?php echo _("Cancel") ?></a>
 <?php echo $this->help ?>
</p>

</form>