Changeset 288 for trunk/log.php
- Timestamp:
- Dec 22, 2009, 1:10:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/log.php
r285 r288 68 68 $PageList = GetPageList($DbRow[0]); 69 69 70 $sql = 'SELECT *,(SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `log`.`user`) AS `user` FROM `log` '.$Where.' ORDER BY `date` DESC '.$PageList['SQLLimit'];71 72 70 echo($PageList['Output']); 73 echo('<table class="BaseTable"><tr><th>Čas</th><th>Text</th><th>Uživatel</th><th>Adresa</th></tr>'); 74 $ID = $Database->SQLCommand($sql); 71 72 $TableColumns = array( 73 array('Name' => 'date', 'Title' => 'Čas'), 74 array('Name' => 'text', 'Title' => 'Text'), 75 array('Name' => 'user', 'Title' => 'Uživatel'), 76 array('Name' => 'IP', 'Title' => 'Adresa'), 77 ); 78 $Order = GetOrderTableHeader($TableColumns, 'date'); 79 echo('<table width="98%" class="BaseTable">'); 80 echo($Order['Output']); 81 82 $sql = 'SELECT *,(SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `log`.`user`) AS `user` FROM `log` '.$Where.$Order['SQL'].$PageList['SQLLimit']; 83 $ID = $Database->SQLCommand($sql); 75 84 while($Line = mysql_fetch_assoc($ID)) 76 85 {
Note:
See TracChangeset
for help on using the changeset viewer.