Changeset 501 for trunk/finance/manage.php
- Timestamp:
- Mar 10, 2013, 8:15:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/manage.php
r500 r501 1 1 <?php 2 2 3 include_once( '../Common/Global.php');3 include_once(dirname(__FILE__).'/../Common/Global.php'); 4 4 5 5 class FinanceManagePage extends Page … … 190 190 function ShowNewDeviceForm() 191 191 { 192 $Form = new Form('NewNetworkDevice'); 192 $Form = new Form($this->System->FormManager); 193 $Form->SetClass('NewNetworkDevice'); 193 194 $Form->OnSubmit = '?Operation=NewDeviceInsert'; 194 195 $Output = $Form->ShowEditForm(); … … 198 199 function ShowNewDeviceInsert() 199 200 { 200 $Form = new Form('NewNetworkDevice'); 201 $Form = new Form($this->System->FormManager); 202 $Form->SetClass('NewNetworkDevice'); 201 203 $Form->LoadValuesFromForm(); 202 204 $Form->SaveValuesToDatabase(0); … … 208 210 function ShowNewDeviceHistoryForm() 209 211 { 210 $Form = new Form('NewNetworkDeviceHistory'); 212 $Form = new Form($this->System->FormManager); 213 $Form->SetClass('NewNetworkDeviceHistory'); 211 214 $Form->OnSubmit = '?Operation=NewDeviceHistoryInsert'; 212 215 $Output = $Form->ShowEditForm(); … … 216 219 function ShowNewDeviceHistoryInsert() 217 220 { 218 $Form = new Form('NewNetworkDeviceHistory'); 221 $Form = new Form($this->System->FormManager); 222 $Form->SetClass('NewNetworkDeviceHistory'); 219 223 $Form->LoadValuesFromForm(); 220 224 $Form->SaveValuesToDatabase(0); … … 226 230 function ShowNewPaymentForm() 227 231 { 228 $Form = new Form('NewPayment'); 232 $Form = new Form($this->System->FormManager); 233 $Form->SetClass('NewPayment'); 229 234 $Form->OnSubmit = '?Operation=NewPaymentInsert'; 230 235 $Output = $Form->ShowEditForm(); … … 234 239 function ShowNewPaymentInsert() 235 240 { 236 $Form = new Form('NewPayment'); 241 $Form = new Form($this->System->FormManager); 242 $Form->SetClass('NewPayment'); 237 243 $Form->LoadValuesFromForm(); 238 244 $this->InsertMoney($Form->Values['Subject'], $Form->Values['Value'], $Form->Values['Cash'], $Form->Values['Taxable'], $Form->Values['Time'], $Form->Values['Text'], $Form->Values['DocumentLine']); … … 247 253 function ShowNewInvoiceForm() 248 254 { 249 $Form = new Form('NewInvoice'); 255 $Form = new Form($this->System->FormManager); 256 $Form->SetClass('NewInvoice'); 250 257 $Form->OnSubmit = '?Operation=NewInvoiceInsert'; 251 258 $Output = $Form->ShowEditForm(); … … 255 262 function ShowNewInvoiceInsert() 256 263 { 257 $Form = new Form('NewInvoice'); 264 $Form = new Form($this->System->FormManager); 265 $Form->SetClass('NewInvoice'); 258 266 $Form->LoadvaluesFromForm(); 259 267 $Items = array(array('Price' => $Form->Values['Value'],
Note:
See TracChangeset
for help on using the changeset viewer.