Changeset 627 for trunk/pages/dotation.php
- Timestamp:
- Aug 19, 2009, 9:06:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/dotation.php
r625 r627 10 10 <th>Příspěvek(CZK)</th> 11 11 </tr>'; 12 $load_dotation = $db->query('SELECT * FROM ` finance_reward` ORDER BY `Price` DESC');12 $load_dotation = $db->query('SELECT * FROM `FinanceReward` ORDER BY `Price` DESC'); 13 13 while($row = $load_dotation->fetch_assoc()) 14 14 { … … 31 31 ); 32 32 33 $load_money = $db->query('SELECT SUM(` money`) FROM `finance`;')->fetch_row();33 $load_money = $db->query('SELECT SUM(`Money`) FROM `Finance`;')->fetch_row(); 34 34 35 35 $Output .= '<p><strong>Aktuální stav financí: '.$load_money[0].' Kč</strong></p>'; … … 42 42 '</tr>'; 43 43 44 $load_dotation = $db->query('SELECT * FROM ` finance` ORDER BY `id` DESC');44 $load_dotation = $db->query('SELECT * FROM `Finance` ORDER BY `Id` DESC'); 45 45 while($row = $load_dotation->fetch_assoc()) 46 46 { 47 $odmena = $row[' odmena'];47 $odmena = $row['Reward']; 48 48 49 if($row[' time'] != '')49 if($row['Time'] != '') 50 50 { 51 $date = $server->HumanDate($row[' time'], 0);51 $date = $server->HumanDate($row['Time'], 0); 52 52 //$date = $row['time']; 53 53 } else $date = ''; 54 if($row[' money'] > 0) $plus = '+';54 if($row['Money'] > 0) $plus = '+'; 55 55 else $plus = ''; 56 56 $Output .= '<tr>'. 57 57 '<td>'.$date.'</td>'. 58 '<td>'.$plus.$row[' money'].'</td>'.59 '<td>'.$operace[$row[' operation']].' '.$row['description'].'</td>'.58 '<td>'.$plus.$row['Money'].'</td>'. 59 '<td>'.$operace[$row['Operation']].' '.$row['Description'].'</td>'. 60 60 '<td>'.$odmena.'</td>'. 61 61 '</tr>';
Note:
See TracChangeset
for help on using the changeset viewer.