1<form name="newpage" method="post" action="<?php echo $this->action ?>"> 2<?php echo $this->formInput ?> 3<input type="hidden" name="page" value="NewPage" /> 4<input type="hidden" name="referrer" value="<?php echo $this->h($this->referrer) ?>" /> 5 6<h1 class="header"> 7 <?php echo $this->h($this->name) ?> 8</h1> 9 10<?php if ($this->pages): ?> 11<p class="horde-content"> 12 <?php printf(_("\"%s\" does not exist, but maybe you were looking for one of the following pages?"), $this->h($this->referrer)) ?> 13</p> 14<table class="horde-table sortable" style="width:100%"> 15 <thead> 16 <tr> 17 <th style="width:40%"><?php echo _("Page") ?></th> 18 <th style="width:10%"><?php echo _("Version") ?></th> 19 <th style="width:25%"><?php echo _("Author") ?></th> 20 <th style="width:25%"><?php echo _("Creation Date") ?></th> 21 </tr> 22 </thead> 23 <tbody> 24<?php echo $this->renderPartial('pagelist/page', array('collection' => $this->pages)) ?> 25 </tbody> 26</table> 27<br /> 28<p class="horde-content"> 29 <?php echo _("Click on \"Create\" below if you want to create this page now and start editing.") ?> 30</p> 31<?php else: ?> 32<p class="horde-content"> 33 <?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)) ?> 34</p> 35<?php endif; ?> 36 37<p class="horde-content"> 38 <?php echo _("Page Template:") ?> 39 <select name="template"> 40 <option value=""><?php echo _("(None)") ?></option> 41<?php foreach ($this->templates as $page): ?> 42 <option value="<?php echo $this->h($page['page_name']) ?>"><?php echo $this->h($page['page_name']) ?></option> 43<?php endforeach ?> 44 </select> 45 46 <input class="horde-create" type="submit" value="<?php echo _("Create") ?>" /> 47 <a class="horde-cancel" href="#" onclick="window.history.back();"><?php echo _("Cancel") ?></a> 48 <?php echo $this->help ?> 49</p> 50 51</form> 52