Location: PHPKode > projects > Run > Run-0.8.0.2/Run-0.8.0.2/details.php
<?php
include("system/functions.php");
include("system/environment.php");
?>

<html>
<?php
include("system/head.php");
?>
<body>

<script language="javascript" type="text/javascript">
function editWindow(url) {
	link = window.open(url,'edit','location=no,toolbar=no,scrollbars=no,width=370,height=630');
}
</script>

<div class="logo"><img src="system/imgs/runsmall.png"></div>

<div class="content">
<b>Runner: <?php echo $user ?></b>
<p class="header">Details for the selected run</p>

<?php
$select = mysql_query("select * from $mysqlTableRunningLogs where ID='".$_GET['ID']."'");
$details = mysql_fetch_assoc($select);
printf("
<table border=\"0\">
<tr><td class=\"details\">Date:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Time of Day:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Time:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Distance:</td><td class=\"left\">%s %s</td></tr>
<tr><td class=\"details\">Run Type:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Surface:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Terrain:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Weather:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Temperature:</td><td class=\"left\">%s &deg;%s</td></tr>
<tr><td class=\"details\">Average HR:</td><td class=\"left\">%s bpm</td></tr>
<tr><td class=\"details\">Weight:</td><td class=\"left\">%s %s</td></tr>
<tr><td class=\"details\">Shoes:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Feeling:</td><td class=\"left\">%s</td></tr>
<tr><td class=\"details\">Notes:</td><td class=\"left\" width=\"240px\">%s</td></tr>
<tr><td height=\"10px\"></td></tr>
<tr><td colspan=\"2\" class=\"right\"><a href=\"javascript:editWindow('edit.php?ID=%s')\" class=\"url\">Edit Entry</a> | <a href=\"javascript:window.close()\" class=\"url\">Close</a></td></tr>
</table>\n",
datum($details["Date"]), $details["TimeOfDay"], $details["Time"], stripslashes($details["Distance"]), $details["DistanceUnit"], $details["RunType"], $details["Surface"], $details["Terrain"], $details["Weather"], stripslashes($details["Temperature"]), $details["TemperatureUnit"], stripslashes($details["AHR"]), stripslashes($details["Weight"]), $details["WeightUnit"], $details["Shoes"], $details["Feeling"], stripslashes(nl2br(htmlentities($details["Notes"]))), $details["ID"]);
?>
</div>

</body>
</html>
Return current item: Run