Changeset 379 for trunk/log.php


Ignore:
Timestamp:
Mar 11, 2010, 5:23:58 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazování sloupce Jméno uživatele ve výpisu záznamů.
  • Opraveno: Hledání slovíček ze slovníku souvisejících s překladem.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/log.php

    r376 r379  
    7373 
    7474  $TableColumns = array(
    75     array('Name' => 'date', 'Title' => 'Čas'),
    76     array('Name' => 'text', 'Title' => 'Text'),
    77     array('Name' => 'User', 'Title' => 'Uživatel'),
     75    array('Name' => 'Date', 'Title' => 'Čas'),
     76    array('Name' => 'Text', 'Title' => 'Text'),
     77    array('Name' => 'UserName', 'Title' => 'Uživatel'),
    7878    array('Name' => 'IP', 'Title' => 'Adresa'),
    7979  );
     
    8282  echo($Order['Output']);
    8383 
    84   $sql = 'SELECT *, `LogType`.`Color` AS `LogColor`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `User` FROM `Log` LEFT JOIN `LogType` ON `LogType`.`Id`=`Log`.`Type` '.$Where.$Order['SQL'].$PageList['SQLLimit'];
     84  $sql = 'SELECT *, `LogType`.`Color` AS `LogColor`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log` LEFT JOIN `LogType` ON `LogType`.`Id`=`Log`.`Type` '.$Where.$Order['SQL'].$PageList['SQLLimit'];
    8585  //echo($sql);
    8686  $ID = $Database->SQLCommand($sql);
    8787  while($Line = mysql_fetch_assoc($ID))
    8888  {
    89     echo('<tr><td>'.$Line['Date'].'</td><td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td><td>'.$Line['Name'].'</td><td>'.$Line['IP'].'</td></tr>');
     89    echo('<tr><td>'.$Line['Date'].'</td><td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td><td>'.$Line['UserName'].'</td><td>'.$Line['IP'].'</td></tr>');
    9090  }
    9191  echo('</table>');
Note: See TracChangeset for help on using the changeset viewer.