Changeset 27
- Timestamp:
- Sep 11, 2019, 6:26:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r26 r27 414 414 '<td>'.$Item['Money'].'</td>'. 415 415 '<td>'.$Item['Rank'].'</td>'. 416 '<td>'. HumanDateTime(MysqlDateTimeToTime($Item['Time'])).'</td>'.416 '<td>'.$this->RunningState(MysqlDateTimeToTime($Item['Time'])).'</td>'. 417 417 '</tr>'; 418 418 } … … 487 487 } 488 488 489 function RunningState($Time) 490 { 491 $Output = HumanDateTime($Time); 492 if ($Time > time() - 30 * 60) 493 $Output = '<span style="color: green; font-weight: bold; ">'.$Output.'</span>'; 494 return $Output; 495 } 496 489 497 function ShowTeam() 490 498 { … … 541 549 '<td>'.$Item['Money'].'</td>'. 542 550 '<td>'.$Item['Rank'].'</td>'. 543 '<td>'. HumanDateTime(MysqlDateTimeToTime($Item['Time'])).'</td>'.551 '<td>'.$this->RunningState(MysqlDateTimeToTime($Item['Time'])).'</td>'. 544 552 '</tr>'; 545 553 } … … 639 647 { 640 648 $Output .= '<tr>'. 641 '<td>'.HumanDate Time(MysqlDateTimeToTime($Item['Time'])).'</td>'.649 '<td>'.HumanDate(MysqlDateTimeToTime($Item['Time'])).'</td>'. 642 650 '<td>'.$Item['Distance'].'</td>'. 643 651 '<td>'.$Item['Money'].'</td>'. … … 711 719 '<td>'.$Item['Money'].'</td>'. 712 720 '<td>'.$Item['Rank'].'</td>'. 713 '<td>'. HumanDateTime(MysqlDateTimeToTime($Item['Time'])).'</td>'.721 '<td>'.$this->RunningState(MysqlDateTimeToTime($Item['Time'])).'</td>'. 714 722 '</tr>'; 715 723 }
Note:
See TracChangeset
for help on using the changeset viewer.