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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="keywords" content="andrew, hart, birmingham, liz, katherine, alex, alexander, yewens, chiddingfold, 313hosting, andsome"> <meta name="robots" content="ALL"> <meta name="revisit" content="10 days"> <meta name="robots" content="index,follow"> <title> 313hosting.co.uk Demo page </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/2.css" rel="stylesheet" type="text/css" /> </head> <body>
<?php
$username = "demo";
if(isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 1; } ?> <div id="main">
<div id="logo"> <img src="images/logo.jpg" alt="images/logo.jpg to go here"> </div> <div id="top"> <h1> <?php include("pages/title.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/title.php\">(Edit the title)</a>"; } ?> </h1> </div> <div id="strip"> <h2 align="right"> <?php include("pages/subtitle.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/subtitle.php\">(Edit the subtitle)</a>"; } ?> </h2>
</div> <div id="encompass"> <div id="left"> <br/> <table cellspacing="2" cellpadding="2" width="100%" summary="This table contains the main links to navigate the site"> <tr> <td class="newsheader" colspan=2> <strong> <?php include("pages/left_title.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/left_title.php\">(Edit title)</a>"; } ?> </strong> </td> </tr>
<tr> <td class="newscell"> <? include("pages/left_content.php"); ?> </td>
</tr> </table>
<table cellspacing="2" cellpadding="2" width="100%" summary="This table contains the contact details"> <tr> <td class="newsheader" colspan=2> <strong> <?php include("pages/right_title.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/right_title.php\">(Edit title)</a>"; } ?> </strong> </tr> <tr> <td class="newscell" align="center"> <p> <?php include("pages/right_content.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user=demo&file=pages/right_content.php\">(Edit content)</a>"; } ?> <br/><br/>
For any questions or comments, please contact the <a href="mailto:andrew.hart@btinternet.com">webmaster</a>.<br/><br/> Designed and hosted by <a href="http://www.313hosting.co.uk" target="_blank">www.313hosting.co.uk</a> </p> </td> </tr> </table>
</div> <div id="content">
<br/>
<table summary="This table is the main table for the content of the 'Welcome' page."> <tr> <td class="newsheader" colspan=2> <strong> <?php include("pages/{$page}_title.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/{$page}_title.php\">(Edit title)</a>"; } ?> </strong> </td> </tr>
<tr>
<td class="newscell"> <?php include("pages/{$page}_content.php"); if(isset($_GET['admin'])) { echo "<a href=\"admin/editfile.php?user={$username}&file=pages/{$page}_content.php\">(Edit content)</a>"; } ?> </td> </tr>
<tr> <td class="newsheader" colspan=2> <strong> Editing this page </td> </tr>
<tr>
<td class="newscell"> To edit the content above, enter this URL: http://www.313hosting.co.uk/demo/index?admin using the username and password of "demo" (without the quotes). All sections of the page can be edited, with the exceptions of this entry and the bottom half of the 'Contact Me' table. <br/> The menu entries are updated directly from the titles of the pages.<br/><br/> Images can be managed in at this location: http://www.313hosting.co.uk/demo/images/imageindex.php.<br/> </td>
</tr> </table>
</div> </div> </div>
</body> </html>
|