Project

General

Profile

1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<?php
3
/**
4
 * $Id: index.php 1663 2012-04-17 01:59:54Z Luisehahne $
5
 * Website Baker template: round
6
 * This template is one of four basis templates distributed with Website Baker.
7
 * Feel free to modify or build up on this template.
8
 *
9
 * This file contains the overall template markup and the Website Baker
10
 * template functions to add the contents from the database.
11
 *
12
 * LICENSE: GNU General Public License
13
 * 
14
 * @author     Ryan Djurovich, C. Sommer
15
 * @copyright  GNU General Public License
16
 * @license    http://www.gnu.org/licenses/gpl.html
17
 * @version    2.70
18
 * @platform   Website Baker 2.7
19
 *
20
 * Website Baker is free software; you can redistribute it and/or modify
21
 * it under the terms of the GNU General Public License as published by
22
 * the Free Software Foundation; either version 2 of the License, or
23
 * (at your option) any later version.
24
 *
25
 * Website Baker is distributed in the hope that it will be useful,
26
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
 * GNU General Public License for more details.
29
*/
30

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

    
34
// TEMPLATE CODE STARTS BELOW
35
?>
36
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
37
<head>
38
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
39
	echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'; ?>" />
40
	<meta name="description" content="<?php page_description(); ?>" />
41
	<meta name="keywords" content="<?php page_keywords(); ?>" />
42
	<link rel="stylesheet" type="text/css" href="<?php
43
		echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
44
	<link rel="stylesheet" type="text/css" href="<?php
45
		echo TEMPLATE_DIR; ?>/print.css" media="print" />
46
	<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
47
<?php
48
	// automatically include optional WB module files (frontend.css, frontend.js)
49
	register_frontend_modfiles('css');
50
	// register_frontend_modfiles('jquery');
51
	register_frontend_modfiles('js');
52
?>
53
</head>
54

    
55
<body>
56

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