body, td {font:12px Arial;} input[type=text], select {font:12px Arial;color:red;} select, input[type=text] { border:1px solid silver; margin:0; padding: 2px; font:12px Arial; } */ // $findladder = "
"; //echo "".$debug; ?>=1) $future_utc_ts = return_utc($i, 0); // returns 'future utc ts' converted from laddertime 'num days from now' else $future_utc_ts = $utc_ts; // start with today if($future_utc_ts <= $utc_tsmax) { $date = dst_time("Y-m-d", $timezone, $dst, $future_utc_ts); $date2 = dst_time("D M j", $timezone, $dst, $future_utc_ts); // Thu Oct 6 if($dateselected!=0 AND $dateselected==$date){ $selected = " SELECTED"; $textabove = "
"; $textbelowbefore = ""; } else $selected = ""; $selectdate .= ""; } } if($dateselected==0) $selectdate = "".$selectdate; if($uid==0) $uid=""; return array($textabove, $textbelowbefore."".$textbelowafter); } function select_time($timeselected,$uid){ for($min=0; $min<(16*2*30); $min=$min+30){ // from 6 in the morning to 10 is 15,5 hrs $time = date("H:i", mktime(6,$min,0,0,0,0)); // 18:00 $time2 = date("g:i A", mktime(6,$min,0,0,0,0)); // 1-12 AM/PM if($timeselected!=0 AND $timeselected==$time){ $selected = " SELECTED"; //$textabove = "
"; $textabove = "
"; $textbelowbefore = ""; } else $selected = ""; $selecttime .= ""; } if($timeselected==0) $selecttime = "".$selecttime; if($uid==0) $uid=""; return array($textabove, $textbelowbefore."".$textbelowafter); } // returns 'now' or 'dayshrsminstr' function time_diff($s){ // 3 days-1sec = 259199 // s is seconds DIFFERENCE between two values if($s<30) $td="now"; else{ $s = $s+30; $d = (int)($s/86400); if($d>0) $td=($d<2)?"$d day, ":"$d days, "; $hr = (int)(($s-($d*86400))/3600); if(($d>0 AND $hr==0) OR $hr>0) $td.=($hr==1)?"$hr hr, ":"$hr hrs, "; $m = (int)(($s-($d*86400)-($hr*3600))/60); $td.="$m min"; //$s = ($s-($d*86400)-($hr*3600)-($m*60)-30); } /* $s=$s+30; $m=0;$hr=0;$d=0;$td="now"; if($s>59) { // if over 59 s $m = (int)($s/60); // m = minimum 1 minute $s = $s-($m*60); // sec left over $td = "$m min"; // NEW display minutes } if($m>59){ // if over 59 s AND 59 m $hr = (int)($m/60); // hr = minimum 1 hr $m = $m-($hr*60); // min left over $td = "$hr hr"; // NEW display hr if($hr>1) $td .= "s"; // show trailing "s" if hr"s" if($m>0) $td .= ", $m min"; // ADDON display hr(s), min } if($hr>23){ // if over 23 hr $d = (int)($hr/24); // d = minimum 1 day $hr = $hr-($d*24); // hr left over $td = "$d day"; // NEW display day if($d>1) $td .= "s"; // show trailing "s" if day"s" //if($d<3){ if($hr>0) $td .= ", $hr hr"; if($hr>1) $td .= "s"; if($m>0) $td .= ", $m min"; //} } */ return $td; } function game_results($gender){ $himher = ($gender=="M") ? "Him" : "Her"; for($g=1;$g<=3;$g++){ // GAME 1,2,3 $results .= "SET $g: \n"; for($p=1;$p<=2;$p++){ // SELECTLIST 1,2 $results .= "\n"; $results .= ($p==1)? "-":" "; } } return $results; } ?>