Project

General

Profile

1
<?php
2
/**
3
 * $Id: index.php 1106 2009-08-06 16:07:39Z Ruebenwurzel $
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
*/
29

    
30
// prevent this file from being accessed directly
31
if (!defined('WB_PATH')) die(header('Location: ../../../index.php'));
32

    
33
// TEMPLATE CODE STARTS BELOW
34
?>
35
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
36
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
38
<head>
39
	<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
</head>
55

    
56
<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
		<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
	</td>
66
</tr>
67
<tr>
68
	<?php
69
	// navigation menu
70
	if(SHOW_MENU) {
71
	?>	
72
	<td style="padding: 10px; background-color: #FFF;" valign="top">
73
		<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu">
74
		<tr>
75
			<td class="border">
76
				<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
77
			</td>
78
		</tr>
79
		<tr>
80
			<td width="170">
81
				<?php show_menu(); ?>
82
			</td>
83
		</tr>
84
		<tr>
85
			<td class="border">
86
				<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
87
			</td>
88
		</tr>
89
		</table>
90
		
91
		
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
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
98
				<tr>
99
					<td class="border">
100
						<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
101
					</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
						<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" />
111
					</td>
112
				</tr>
113
				<tr>
114
					<td class="border">
115
						<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
116
					</td>
117
				</tr>
118
			</table>
119
		</form>
120
		<?php } ?>
121
		
122
		<?php
123
		if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
124
		?>
125
		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post">
126
			
127
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
128
			<tr>
129
				<td class="border">
130
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
131
				</td>
132
			</tr>
133
			<tr>
134
				<td class="login" style="text-transform: uppercase;">
135
					<b><?php echo $TEXT['LOGIN']; ?></b>
136
				</td>
137
			</tr>
138
			<tr>
139
				<td class="login" style="text-align: left;">
140
					<?php echo $TEXT['USERNAME']; ?>:
141
				</td>
142
			</tr>
143
			<tr>
144
				<td class="login">
145
					<input type="text" name="username" />
146
				</td>
147
			</tr>
148
			<tr>
149
				<td class="login" style="text-align: left;">
150
					<?php echo $TEXT['PASSWORD']; ?>:
151
				</td>
152
			</tr>
153
			<tr>
154
				<td class="login">
155
					<input type="password" name="password" />
156
				</td>
157
			</tr>
158
			<tr>
159
				<td class="login">
160
					<input type="submit" name="submit" value="<?php 
161
						echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
162
				</td>
163
			</tr>
164
			<tr>
165
				<td class="login">
166
					<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
167
					<?php if (is_numeric(FRONTEND_SIGNUP)) { ?>
168
						<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
169
					<?php } ?>
170
				</td>
171
			</tr>
172
			<tr>
173
				<td class="border">
174
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
175
				</td>
176
			</tr>
177
			</table>
178
		
179
		</form>
180
		<?php
181
		} elseif (FRONTEND_LOGIN AND $wb->is_authenticated()) {
182
		?>
183
		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
184
			
185
			<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
186
			<tr>
187
				<td class="border">
188
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
189
				</td>
190
			</tr>
191
			<tr>
192
				<td class="login" style="text-transform: uppercase;">
193
					<b><?php echo $TEXT['LOGGED_IN']; ?></b>
194
				</td>
195
			</tr>
196
			<tr>
197
				<td class="login" style="padding-top: 15px; padding-bottom: 15px;">
198
					<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
199
				</td>
200
			</tr>
201
			<tr>
202
				<td class="login">
203
					<input type="submit" name="submit" value="<?php 
204
						echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
205
				</td>
206
			</tr>
207
			<tr>
208
				<td class="login">
209
					<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
210
				</td>
211
			</tr>
212
			<tr>
213
				<td class="border">
214
					<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
215
				</td>
216
			</tr>
217
			</table>
218
		
219
		</form>
220
		<?php
221
		}
222
		?>
223
	</td>
224
	<?php } ?>
225
	<td class="content" width="600" rowspan="2">
226
		<?php page_content(); ?>
227
	</td>
228
</tr>
229
<tr>
230
	<td height="20" width="155" valign="bottom" class="powered_by">
231
		<a href="http://www.websitebaker.org/" target="_blank">
232
			<img src="<?php echo TEMPLATE_DIR; ?>/images/powered.jpg" border="0" alt="Powered By Website Baker" />
233
		</a>
234
	</td>
235
</tr>
236
<tr>
237
	<td colspan="2" class="border">
238
		<img src="<?php echo TEMPLATE_DIR; ?>/images/footer.png" border="0" alt="" />
239
	</td>
240
</tr>
241
<tr>
242
	<td colspan="2" class="footer">
243
		<?php page_footer(); ?>
244
	</td>
245
</tr>
246
</table>
247
<?php 
248
// automatically include optional WB module file frontend_body.js)
249
if (function_exists('register_frontend_modfiles_body')) { register_frontend_modfiles_body(); } 
250
?>
251
</body>
252
</html>
(1-1/5)