Project

General

Profile

1
<?php
2
/**
3
 * $Id: index.php 1606 2012-02-08 22:31:52Z Luisehahne $
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
	<link rel="stylesheet" type="text/css" href="<?php
44
		echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
45
	<link rel="stylesheet" type="text/css" href="<?php
46
		echo TEMPLATE_DIR; ?>/print.css" media="print" />
47
	<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
48
	<?php
49
	// automatically include optional WB module files (frontend.css, frontend.js)
50
	if (function_exists('register_frontend_modfiles')) {
51
		register_frontend_modfiles('css');
52
		// register_frontend_modfiles('jquery');
53
		register_frontend_modfiles('js');
54
	} ?>
55
</head>
56

    
57
<body>
58

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