<?
//if user keys in logout
if (isset($logout)) {
session_start();
session_unset(); //unsets all the variables
session_destroy(); //destroys the data.
echo $login_id;
}
include("loginfunctions.inc.php");
include ("header.php");
//ok check if dbase fail or login fail
if ($xc==3112) {
$error="Login failed due to system error. Please contact administrator.";
} elseif ($xc==24601) {
$error="Invalid username or password.";
} else {
$error="";
};
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<? showheader("Login"); ?>
<p>
<form method="post" action="menu.php" onSubmit="return checkrequired(this)">
<p>
<table width="100%">
<tr>
<td width=20%>
<table width="80%">
<td class='menu-bg'>
<? echo "<font color='red' size='1'><b>$error</b></font><p>";?>
<table border=0>
<tr><td class='menu-bg2'><b>Username</b></td><td><input type="text" value="<? echo $login ?>" name="login"></td></tr>
<tr><td class='menu-bg2'><b>Password</b></td><td><input type="password" value="<? echo $password ?>" name="password"></td></tr>
</table>
<p>
<input type="Submit" name="submitlogin" value="Login">
<p>
<!----Invitation only!
New Users sign up <a href="signup.php" class='menu-bg2'>HERE!</a>
---------->
</td>
</tr>
<tr></tr><tr></tr><tr></tr>
<tr></tr><tr></tr><tr></tr>
<tr>
<td class="menu-bg">
<b>Changes</b>
</td>
<td>
</td>
</tr>
<tr>
<td>
<!--Area A for information--->
Some announcements here.
<!---End of Area A--->
</td>
</tr>
</table>
</td>
<td>
<table width=100%>
<td width=100% class='title2'>
<!--Area B for information--->
<b>Golf stats for free!</b><p class='title2'>
Write your stuff here.
<p>
<b>Getting Started</b><p>
To get this to work, there are a few simple steps to take.<p>
<u><b>Your Stats</b></u><br>
You'll have to keep track of four statistics each round. This can
easily be done by segmenting on your scorecard the four columns (A|B|C|D) provided for
players to be <b>|Strokes|FairwayHit|Putts|DriveDistance|</b> in whatever order. The driving distance
is optional as only holes with recorded drives will be taken into calculation for average
driving distance. For the putts, if unrecorded, leave it blank. A value of 0 constitutes a chip-in!
Unfortunately, many of us don't have a Steve Williams to look after these stats for us so it takes
a little discipline to get it done.
<p>
<u><b>Your Course</b></u><br>
Once you have signed up, log in and go <i>Add Course</i>. Add the course you play in, but please make sure
it doesn't exist in the database already! You can check it by clicking the <i>Courses</i> menu. Adding a
course is self explanatory.<p>
<u><b>Your Score Card</b></u><br>
With these basic stats, you just have to start a scorecard for that game and
key in whatever you scored. Click on <i>Scorecard</i> and fire away. It's easy!
Once submitted, the personal statistics will be immediately generated. Course statistics on
each hole is generated periodically.
<p>
That's it. Login and have fun!
<p>
<!--End of Area B--->
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr><td> </td><td> </td></tr>
<tr><td> </td><td> </td></tr>
</table>
</td>
</tr>
</table>
<? showfooter(); ?>