Ejemplo n.º 1
0
 }
 /*
  * some views here
  */
 //show global management panel
 show_window('', $ukv->panel());
 //renders tariffs list with controls
 if (wf_CheckGet(array('tariffs'))) {
     //tariffs editing
     if (wf_CheckPost(array('edittariff'))) {
         $ukv->tariffSave($_POST['edittariff'], $_POST['edittariffname'], $_POST['edittariffprice']);
         rcms_redirect(UkvSystem::URL_TARIFFS_MGMT);
     }
     //tariffs creation
     if (wf_CheckPost(array('createtariff'))) {
         $ukv->tariffCreate($_POST['createtariffname'], $_POST['createtariffprice']);
         rcms_redirect(UkvSystem::URL_TARIFFS_MGMT);
     }
     //tariffs deletion
     if (wf_CheckGet(array('tariffdelete'))) {
         $ukv->tariffDelete($_GET['tariffdelete']);
         rcms_redirect(UkvSystem::URL_TARIFFS_MGMT);
     }
     //show tariffs lister
     show_window(__('Available tariffs'), $ukv->renderTariffs());
 }
 //full users listing
 if (wf_CheckGet(array('users', 'userslist'))) {
     show_window(__('Available users'), $ukv->renderUsers());
 }
 //users registration