Example #1
0
         }
     }
 } else {
     if (wf_CheckGet(array('showhash'))) {
         //changing some contract into the banksta
         if (wf_CheckPost(array('bankstacontractedit', 'newbankcontr'))) {
             $ukv->bankstaSetContract($_POST['bankstacontractedit'], $_POST['newbankcontr']);
             if (isset($_POST['lockbankstarow'])) {
                 //locking some row if needed
                 $ukv->bankstaSetProcessed($_POST['bankstacontractedit']);
             }
             rcms_redirect(UkvSystem::URL_BANKSTA_PROCESSING . $_GET['showhash']);
         }
         //push cash to users if is needed
         if (wf_CheckPost(array('bankstaneedpaymentspush'))) {
             $ukv->bankstaPushPayments();
             rcms_redirect(UkvSystem::URL_BANKSTA_MGMT);
         }
         show_window(__('Bank statement processing'), $ukv->bankstaProcessingForm($_GET['showhash']));
     } else {
         if (wf_CheckGet(array('showdetailed'))) {
             //show banksta row detailed info
             show_window(__('Bank statement'), $ukv->bankstaGetDetailedRowInfo($_GET['showdetailed']));
         } else {
             //show upload form
             show_window(__('Import bank statement'), $ukv->bankstaLoadForm());
             //and available bank statements
             show_window(__('Previously loaded bank statements'), $ukv->bankstaRenderList());
         }
     }
 }