Newer
Older
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin() || !$config) die('Access Denied');
$pages = Page::getPages();
?>
<h2>Site Pages</h2>
<form action="settings.php?t=pages" method="post" id="save">
<?php csrf_token(); ?>
<input type="hidden" name="t" value="pages" >
<table class="form_table settings_table" width="940" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
<th colspan="2">
<h4>Pages</h4>
<em>To edit or add new pages go to <a href="pages">Manage > Site Pages</a></em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="220" class="required">Default Landing Page:</td>
<td>
<select name="landing_page_id">
<option value="">— Select Landing Page —</option>
<?php
foreach($pages as $page) {
if(strcasecmp($page->getType(), 'landing')) continue;
echo sprintf('<option value="%d" %s>%s</option>',
$page->getId(),
($config['landing_page_id']==$page->getId())?'selected="selected"':'',
$page->getName());
} ?>
</select> <font class="error">* <?php echo $errors['landing_page_id']; ?></font>
</td>
</tr>
<tr>
<td width="220" class="required">Default Offline Page:</td>
<td>
<select name="offline_page_id">
<option value="">— Select Offline Page —</option>
<?php
foreach($pages as $page) {
if(strcasecmp($page->getType(), 'offline')) continue;
echo sprintf('<option value="%d" %s>%s</option>',
$page->getId(),
($config['offline_page_id']==$page->getId())?'selected="selected"':'',
$page->getName());
} ?>
</select> <font class="error">* <?php echo $errors['offline_page_id']; ?></font>
</td>
</tr>
<tr>
<td width="220" class="required">Default Thank-You Page:</td>
<td>
<select name="thank-you_page_id">
<option value="">— Select Thank-You Page —</option>
<?php
foreach($pages as $page) {
if(strcasecmp($page->getType(), 'thank-you')) continue;
echo sprintf('<option value="%d" %s>%s</option>',
$page->getId(),
($config['thank-you_page_id']==$page->getId())?'selected="selected"':'',
$page->getName());
} ?>
</select> <font class="error">* <?php echo $errors['thank-you_page_id']; ?></font>
</td>
</tr>
</tbody>
</table>
<p style="padding-left:250px;">
<input class="button" type="submit" name="submit" value="Save Changes">
<input class="button" type="reset" name="reset" value="Reset Changes">
</p>
</form>