Location: PHPKode > projects > EdLite-light-weight web classrooms > edlite/templates/student_template/index.php
<?php
/*
This file is part of EdLite.
Copyright (C) 2005 Philip Spears and Philip Allen

Edlite is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Edlite is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with EdLite; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Version: 2005081900 


*/

/* check for configuration file! */
if (file_exists("../../../config.php")) {
	include ("../../../config.php");
} else {
	printf("Issue with the configuration file. Possibly missing, corrupt, or the path used is invalid");
	exit;
} // end if for configuration requirement.
$student_name = str_replace(dirname(getcwd())."/", "", getcwd());
$course_name = str_replace(dirname(dirname(getcwd()))."/", "", dirname(getcwd()));

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
 <meta http equiv="Content-Type" content="text/html; charset="ISO-8895-1" />
 <link rel="stylesheet" type="text/css" href="../../../css/student.css" />
</head>

<BODY BGCOLOR="#FFFFFF">
<center>
<table border="0" width="560" align="center">
<tr>
	<td align="center">
		<img src="../../../images/logo.gif">
		<br />
		<font face="verdana,arial,helvetica,sans-serif" color="#323545" size="4">
<?php
// if (file_exists("./name.txt")) { include ("./name.txt"); }
?>
		<?php printf($student_name."'s ".$course_name); ?> Site<br /><br />
		</font>
	</td>
</tr>
<tr>
	<td align="center" bgcolor="#e3ecf3">
		<font size="2" color="#336699">
		<a href="assignments.php">Assignments</a>&nbsp;&nbsp;&nbsp;
		<a href="homework/">Homework</a> &nbsp;&nbsp;&nbsp;
		<a href="journal.php">Journal</a>&nbsp;&nbsp;&nbsp;
		<a href="<?php printf($wb_link); ?>">Whiteboard</a>
		</font>
	<td>
</tr>
<tr>
	<td colspan="5"></td>
</tr>
</table>
</center>
<center>
<table width="560" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#ffffff">
	<td width="550" align="center" valign="middle">
		<table width="560" border="0" cellspacing="1" cellpadding="10">
		<tr>
		<dtml-in "PARENTS[2].objectValues(['Message'])">
			<td width="265" align="left" valign="top" bgcolor="#ffffff">
				<font size="2"><b>Messages:<br>
				</b><dtml-var entry><br></font>
			</td>
		</dtml-in>	
		</tr>
		</table>
		<table bgcolor="#ffffff" align="center">
		<tr>
			<td>
				<img src="../../../images/studentbg.gif">
			</td>
		</tr>
		<tr>
			<td align="center" valign="top" bgcolor="#ffffff">
				<table>
				<tr bgcolor="#e3ecf3">
					<td align="center" width="560">
						<font size="2">
						<a href="<?php printf($lib_link); ?>">Library</a> &nbsp;&nbsp;&nbsp;
						<a href="<?php printf($cur_link); ?>">Curriculum and Resources</a> &nbsp;&nbsp;&nbsp;
						<a href="<?php printf($support_link); ?>">Support</a> &nbsp;&nbsp;&nbsp;
						<a href="<?php printf($howto_link); ?>" target="_blank">HowTo's</a>
						</font>
					</td>
				</tr>
				<tr>
					<td colspan="3"></td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
</center>
</body>
</html>
Return current item: EdLite-light-weight web classrooms