Changeset 479 for trunk/finance/user_state.php
- Timestamp:
- Feb 5, 2013, 9:45:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/user_state.php
r456 r479 35 35 'FROM Member LEFT JOIN MemberPayment ON MemberPayment.Member=Member.Id WHERE Member.Subject='.$Subject['Id']); 36 36 $Member = $DbResult->fetch_assoc(); 37 $TarifName = $Finance->Tariffs[$Member['InternetTariffCurrentMonth']]['Name'];38 $TarifPrice = $Finance->Tariffs[$Member['InternetTariffCurrentMonth']]['Price'];39 37 $Output = '<table width="100%" border="0" cellspacing="0" cellpadding="3"><tr><td valign="top">'; 40 38 … … 89 87 $SumValue = $SumValue + $Row['Value']; 90 88 } 91 89 $Output .= '<tr><td style="text-align: right;" colspan="2"><strong>Celkem za rok</strong></td><td style="text-align: right;"><strong>'.$SumValue.'</strong></td><td style="text-align: center;"> </td></tr>'; 92 90 93 91 … … 100 98 $Total = 0; 101 99 $Output .= 'Rozpis měsíčního poplatku:<br><table class="WideTable">'. 102 '<tr><th>Část</th><th>Cena [Kč]</th></tr>'. 103 '<tr><td>Internet - tarif '.$TarifName.'</td><td>'.$TarifPrice.'</td></tr>'; 104 $Total += $TarifPrice; 100 '<tr><th>Služba</th><th>Cena [Kč]</th></tr>'; 101 $DbResult = $this->Database->query('SELECT Service.Name, Service.Price FROM ServiceCustomerRel LEFT JOIN Service '. 102 'ON Service.Id=ServiceCustomerRel.Service WHERE (ServiceCustomerRel.Customer='.$Member['Id'].') AND (ServiceCustomerRel.Period=0)'); 103 while($DbRow = $DbResult->fetch_assoc()) 104 { 105 $Output .= '<tr><td>'.$DbRow['Name'].'</td><td>'.$DbRow['Price'].'</td></tr>'; 106 $Total += $DbRow['Price']; 107 } 108 105 109 if($Member['Hire'] != 0) 106 110 {
Note:
See TracChangeset
for help on using the changeset viewer.