Changeset 116


Ignore:
Timestamp:
Feb 19, 2009, 9:32:31 PM (15 years ago)
Author:
maron
Message:

Zobrazení 10 posledních překladů

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r110 r116  
    3131  return($Output);
    3232}
     33
     34function ShowLastTranslated()
     35{
     36  global $Database;
     37
     38  $Output = '<br /><strong>Poslední překlady:</strong><div class="NewsBox">';
     39  $DbResult = $Database->SQLCommand('SELECT date,user.user,text FROM log JOIN user ON user.ID = log.User WHERE type = 1 ORDER BY date DESC LIMIT 10');
     40  while($DbRow = mysql_fetch_assoc($DbResult))
     41    $Output .= '<strong>'.$DbRow['user'].'('.date('d.m.Y', MysqlDateTimeToTime($DbRow['date'])).')</strong>
     42    '.$DbRow['text'].' <br />'; 
     43  $Output .= '</div>';
     44  return($Output);
     45}
    3346 
    3447echo('<br />
     
    4154    <li>Projekt není zaměřen pouze na jeden server, ale umožňuje různé způsoby stahování přeložených textů.</li>
    4255    <li>Cílem projektu je přeložit všechny texty ze hry. Nikoliv pouze texty výprav (quests).</li>
    43   </ul>
    44   </td><td class="news-box">'.ShowNews().'</td></tr></table>');
     56  </ul>'.ShowLastTranslated().'</td><td class="news-box">'.ShowNews().'</td></tr></table>');
    4557 
    4658//  Některé texty najdete <a href="http://wow-cz.wz.cz/index.php">zde</a>
Note: See TracChangeset for help on using the changeset viewer.