Changeset 31 for trunk/index.php


Ignore:
Timestamp:
Dec 30, 2018, 7:37:55 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Store date of meet items including time. For items without specified time, just use current time (time of import).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r30 r31  
    267267    $Output .= $PageList['Output'];
    268268    $TableColumns = array(
    269       array('Name' => 'Date', 'Title' => 'Datum'),
     269      array('Name' => 'Time', 'Title' => 'Čas'),
    270270      array('Name' => 'Name', 'Title' => 'Jméno'),
    271271      array('Name' => 'Height', 'Title' => 'Výška'),
     
    278278      array('Name' => '', 'Title' => 'Detail'),
    279279    );
    280     $Order = GetOrderTableHeader($TableColumns, 'Date', 1);
     280    $Order = GetOrderTableHeader($TableColumns, 'Time', 1);
    281281    $Output .= '<table class="WideTable">';
    282282    $Output .= $Order['Output'];
     
    286286    {
    287287      $Output .= '<tr>'.
    288         '<td>'.HumanDate(MysqlDateToTime($MeetItem['Date'])).'</td>'.
     288        '<td>'.HumanDate(MysqlDateToTime($MeetItem['Time'])).'</td>'.
    289289        '<td>'.$MeetItem['Name'].'</td>'.
    290290        '<td>'.$MeetItem['Height'].'</td>'.
     
    332332        else $Link = '';
    333333      $Output .= '<table class="ItemTable">'.
    334         '<tr><th>Datum</th><td>'.HumanDate(MysqlDateToTime($MeetItem['Date'])).'</td></tr>'.
     334        '<tr><th>Čas</th><td>'.HumanDate(MysqlDateToTime($MeetItem['Time'])).'</td></tr>'.
    335335        '<tr><th>Pohlaví</th><td>'.$Gender[$MeetItem['Gender']].'</td></tr>'.
    336336        '<tr><th>Jméno</th><td>'.$MeetItem['Name'].'</td></tr>'.
     
    360360
    361361    $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '.
    362       '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL, UNIX_TIMESTAMP(`Date`) AS `UnixTime`', '1 ORDER BY `Date` DESC LIMIT 30');
     362      '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL, UNIX_TIMESTAMP(`Time`) AS `UnixTime`', '1 ORDER BY `Time` DESC LIMIT 30');
    363363    while($MeetItem = $DbResult->fetch_assoc())
    364364    {
Note: See TracChangeset for help on using the changeset viewer.