Project

General

Profile

1 4 ryan
<?php
2 865 doc
/**
3
 * $Id$
4
 * Website Baker template: round
5
 * This template is one of four basis templates distributed with Website Baker.
6
 * Feel free to modify or build up on this template.
7
 *
8
 * This file contains the overall template markup and the Website Baker
9
 * template functions to add the contents from the database.
10
 *
11
 * LICENSE: GNU General Public License
12
 *
13
 * @author     Ryan Djurovich, C. Sommer
14
 * @copyright  GNU General Public License
15
 * @license    http://www.gnu.org/licenses/gpl.html
16
 * @version    2.70
17
 * @platform   Website Baker 2.7
18
 *
19
 * Website Baker is free software; you can redistribute it and/or modify
20
 * it under the terms of the GNU General Public License as published by
21
 * the Free Software Foundation; either version 2 of the License, or
22
 * (at your option) any later version.
23
 *
24
 * Website Baker is distributed in the hope that it will be useful,
25
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
 * GNU General Public License for more details.
28 4 ryan
*/
29
30 865 doc
// prevent this file from being accessed directly
31
if (!defined('WB_PATH')) die(header('Location: ../../../index.php'));
32 395 Ruebenwurz
33 865 doc
// TEMPLATE CODE STARTS BELOW
34 4 ryan
?>
35 865 doc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
36
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37 4 ryan
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
38
<head>
39 865 doc
	<meta http-equiv="Content-Type" content="text/html; charset=<?php
40
	echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'; ?>" />
41
	<meta name="description" content="<?php page_description(); ?>" />
42
	<meta name="keywords" content="<?php page_keywords(); ?>" />
43
	<?php
44
	// automatically include optional WB module files (frontend.css, frontend.js)
45
	if (function_exists('register_frontend_modfiles')) {
46
		register_frontend_modfiles('css');
47
		register_frontend_modfiles('js');
48
	} ?>
49
	<link rel="stylesheet" type="text/css" href="<?php
50
		echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
51
	<link rel="stylesheet" type="text/css" href="<?php
52
		echo TEMPLATE_DIR; ?>/print.css" media="print" />
53
	<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
54 4 ryan
</head>
55 865 doc
56 4 ryan
<body>
57
58
<table cellpadding="0" cellspacing="0" border="0" align="center" class="main" width="750">
59
<tr>
60
	<td colspan="2" class="header" height="80">
61 865 doc
		<a href="<?php echo WB_URL; ?>">
62
			<img src="<?php echo TEMPLATE_DIR; ?>/images/banner.jpg" border="0" width="750" height="80" alt="<?php
63
			page_title('', '[WEBSITE_TITLE]'); ?>" />
64
		</a>
65 4 ryan
	</td>
66
</tr>
67
<tr>
68
	<?php
69 865 doc
	// navigation menu
70 4 ryan
	if(SHOW_MENU) {
71
	?>
72 865 doc
	<td style="padding: 10px; background-color: #FFF;" valign="top">
73 4 ryan
		<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu">
74
		<tr>
75
			<td class="border">
76 865 doc
				<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
77 4 ryan
			</td>
78
		</tr>
79
		<tr>
80
			<td width="170">
81 1528 Luisehahne
<?php show_menu2(SM2_ALLMENU,SM2_ROOT, SM2_ROOT+PAGE_LEVEL_LIMIT, SM2_ALL|SM2_NUMCLASS );	?>
82 4 ryan
			</td>
83
		</tr>
84
		<tr>
85
			<td class="border">
86 865 doc
				<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
87 4 ryan
			</td>
88
		</tr>
89
		</table>
90
91 865 doc
92
		<!-- frontend search -->
93
		<?php if (SHOW_SEARCH) { ?>
94
		<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
95
			<input type="hidden" name="referrer" value="<?php
96
				echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
97 4 ryan
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
98
				<tr>
99
					<td class="border">
100 865 doc
						<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
101 4 ryan
					</td>
102
				</tr>
103
				<tr>
104
					<td class="login">
105
						<input type="text" name="string" />
106
					</td>
107
				</tr>
108
				<tr>
109
					<td class="login">
110 440 Ruebenwurz
						<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" />
111 4 ryan
					</td>
112
				</tr>
113
				<tr>
114
					<td class="border">
115 865 doc
						<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
116 4 ryan
					</td>
117
				</tr>
118
			</table>
119
		</form>
120
		<?php } ?>
121
122 1528 Luisehahne
<?php
123
		if(FRONTEND_LOGIN AND !$wb->is_authenticated() AND VISIBILITY != 'private' ) {
124
			$redirect_url = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : WB_URL );
125
			$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url );
126
?>
127 4 ryan
		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post">
128 1528 Luisehahne
			<input type="hidden" name="redirect" value="<?php echo $redirect_url;?>" /></p>
129 4 ryan
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
130
			<tr>
131
				<td class="border">
132 865 doc
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
133 4 ryan
				</td>
134
			</tr>
135
			<tr>
136
				<td class="login" style="text-transform: uppercase;">
137
					<b><?php echo $TEXT['LOGIN']; ?></b>
138
				</td>
139
			</tr>
140
			<tr>
141
				<td class="login" style="text-align: left;">
142
					<?php echo $TEXT['USERNAME']; ?>:
143
				</td>
144
			</tr>
145
			<tr>
146
				<td class="login">
147
					<input type="text" name="username" />
148
				</td>
149
			</tr>
150
			<tr>
151
				<td class="login" style="text-align: left;">
152
					<?php echo $TEXT['PASSWORD']; ?>:
153
				</td>
154
			</tr>
155
			<tr>
156
				<td class="login">
157
					<input type="password" name="password" />
158
				</td>
159
			</tr>
160
			<tr>
161
				<td class="login">
162 865 doc
					<input type="submit" name="submit" value="<?php
163
						echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
164 4 ryan
				</td>
165
			</tr>
166
			<tr>
167
				<td class="login">
168
					<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
169 865 doc
					<?php if (is_numeric(FRONTEND_SIGNUP)) { ?>
170 4 ryan
						<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
171
					<?php } ?>
172
				</td>
173
			</tr>
174
			<tr>
175
				<td class="border">
176 865 doc
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
177 4 ryan
				</td>
178
			</tr>
179
			</table>
180
181
		</form>
182
		<?php
183 865 doc
		} elseif (FRONTEND_LOGIN AND $wb->is_authenticated()) {
184 4 ryan
		?>
185
		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
186
187
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
188
			<tr>
189
				<td class="border">
190 865 doc
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
191 4 ryan
				</td>
192
			</tr>
193
			<tr>
194
				<td class="login" style="text-transform: uppercase;">
195
					<b><?php echo $TEXT['LOGGED_IN']; ?></b>
196
				</td>
197
			</tr>
198
			<tr>
199
				<td class="login" style="padding-top: 15px; padding-bottom: 15px;">
200 241 stefan
					<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
201 4 ryan
				</td>
202
			</tr>
203
			<tr>
204
				<td class="login">
205 865 doc
					<input type="submit" name="submit" value="<?php
206
						echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
207 4 ryan
				</td>
208
			</tr>
209
			<tr>
210
				<td class="login">
211
					<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
212
				</td>
213
			</tr>
214
			<tr>
215
				<td class="border">
216 865 doc
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
217 4 ryan
				</td>
218
			</tr>
219
			</table>
220
221
		</form>
222
		<?php
223
		}
224
		?>
225
	</td>
226
	<?php } ?>
227
	<td class="content" width="600" rowspan="2">
228
		<?php page_content(); ?>
229
	</td>
230
</tr>
231
<tr>
232
	<td height="20" width="155" valign="bottom" class="powered_by">
233
		<a href="http://www.websitebaker.org/" target="_blank">
234 865 doc
			<img src="<?php echo TEMPLATE_DIR; ?>/images/powered.jpg" border="0" alt="Powered By Website Baker" />
235 4 ryan
		</a>
236
	</td>
237
</tr>
238
<tr>
239
	<td colspan="2" class="border">
240 865 doc
		<img src="<?php echo TEMPLATE_DIR; ?>/images/footer.png" border="0" alt="" />
241 4 ryan
	</td>
242
</tr>
243
<tr>
244
	<td colspan="2" class="footer">
245
		<?php page_footer(); ?>
246
	</td>
247
</tr>
248
</table>
249 1106 Ruebenwurz
<?php
250
// automatically include optional WB module file frontend_body.js)
251
if (function_exists('register_frontend_modfiles_body')) { register_frontend_modfiles_body(); }
252
?>
253 4 ryan
</body>
254
</html>