echo "$first_name $last_name"; ?>
|
Personal Information
|
Member Number: |
echo $id; ?>
|
E-mail: |
echo $email; ?>
|
Email Lists: |
if ($maillist1 == "1"){ $maillists = "$cfg_mailmanListName1"; }
if ($maillist2 == "1"){ $maillists .= ", $cfg_mailmanListName2"; }
if ($maillist3 == "1"){ $maillists .= ", $cfg_mailmanListName3"; }
echo " $maillists";
?>
|
Phone Number: |
echo $phone_number;?>
|
Mailing Address: |
echo $street_address; ?>
|
|
Membership
|
Member Type: | echo $membertype; ?>
|
Liability Waiver Signed? |
if ($waiver == "1"){ $waivercheck = "Yes"; } else { $waivercheck = "No"; }
?>
echo $waivercheck; ?>
|
Membership Expires: |
echo $expiredate; ?>
|
|
Member Standing / Hours
|
Member Flags: |
if ($warnedonce == "1"){ $flags = "Warned Once"; }
if ($warnedtwice == "1"){ $flags .= " - Warned Twice"; }
if ($banned == "1"){ $flags .= " - Banned"; }
echo " $flags";
?>
|
Notes About This Member: |
echo $comments; ?>
|
Record of Visits: |
$vquery = "SELECT *, DATE_FORMAT(endout,'%l:%i %p') as humanout, DATE_FORMAT(intime,'%b %e, %Y') as humanindate, DATE_FORMAT(intime,'%l:%i %p') as humanintime, UNIX_TIMESTAMP(intime) as unixin, UNIX_TIMESTAMP(endout) as unixout FROM visits WHERE userID=$id AND endout >= 1";
$vresult = mysql_query($vquery);
if (!$result) {
die("Query to show visits from table failed");
}
$totalseconds=0;
while($row = mysql_fetch_array($vresult)){
echo "";
echo "$row[humanindate] |
$row[humanintime] - $row[humanout] |
$row[activity] |
";
$timespent = $row[unixout] - $row[unixin];
echo number_format(round($timespent / 3600*4)/4, 2) . " hrs";
echo " |
[Edit This Visit] |
";
$totalseconds = $totalseconds + $timespent;
}
$hours=round($totalseconds/3600);
echo " | Rounded Total: | $hours hours | ";
?>
|
|