Changeset 627 for trunk/rss.php
- Timestamp:
- Aug 19, 2009, 9:06:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss.php
r585 r627 42 42 if($_GET['category'] == 'finance') 43 43 { 44 $OperationType = array('consumption' => 'Spotřeba', 'contribution' => 'Příspěvek', 'buy' => 'Nákup', 'sell' => 'Prodej', 'internet' => 'Internet' );44 $OperationType = array('consumption' => 'Spotřeba', 'contribution' => 'Příspěvek', 'buy' => 'Nákup', 'sell' => 'Prodej', 'internet' => 'Internet', 'hosting' => 'Hosting'); 45 45 $Config['Web']['Title'] .= ' - finanční příspěvky'; 46 $DbResult = $db->query('SELECT UNIX_TIMESTAMP( time), operation, description, money FROM finance ORDER BY time DESC LIMIT '.$NewsCount);46 $DbResult = $db->query('SELECT UNIX_TIMESTAMP(Time), Operation, Description, Money FROM Finance ORDER BY Time DESC LIMIT '.$NewsCount); 47 47 while($Row = $DbResult->fetch_assoc()) 48 48 { 49 49 $Items[] = array 50 50 ( 51 'Title' => $OperationType[$Row[' operation']].' '.$Row['description'].' ('.$Row['money'].' Kč)',51 'Title' => $OperationType[$Row['Operation']].' '.$Row['Description'].' ('.$Row['Money'].' Kč)', 52 52 'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'].'finance/', 53 'Description' => $OperationType[$Row[' operation']].' '.$Row['description'].'<br />'.$Row['money'].' Kč',54 'Time' => $Row['UNIX_TIMESTAMP( time)'],53 'Description' => $OperationType[$Row['Operation']].' '.$Row['Description'].'<br />'.$Row['Money'].' Kč', 54 'Time' => $Row['UNIX_TIMESTAMP(Time)'], 55 55 ); 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.