function __construct()
 {
     $this->checkRights();
     if (Funcs::$uri[2] == '') {
         View::plugin('index');
     }
 }
 function users()
 {
     if (Funcs::$uri[3] == '') {
         $data['list'] = Selling::getList(0);
         View::plugin('iusers', $data);
     } else {
         View::plugin('iuser', Selling::getOne(Funcs::$uri[3]));
     }
 }
Beispiel #3
0
 function edit()
 {
     DB::escapePost();
     if ($_POST) {
         Votes::edit(Funcs::$uri[3]);
         $this->redirect('/votes/edit/' . Funcs::$uri[3] . '/');
     } else {
         View::plugin('add', Votes::getOne(Funcs::$uri[3]));
     }
 }
 function edit()
 {
     if ($_POST) {
         DB::escapePost();
         Translator::edit();
         $this->redirect('/translator/');
     } else {
         View::plugin('add', array('list' => Translator::getOne(Funcs::$uri[3])));
     }
 }
 function __construct()
 {
     $this->checkRights();
     if (Funcs::$uri[2] == '') {
         $data['list'] = Reporting::getList();
         View::plugin('list', $data);
     } elseif (Funcs::$uri[2] == 'export') {
         Reporting::export();
     }
 }
Beispiel #6
0
 function edit()
 {
     DB::escapePost();
     if ($_POST) {
         Codes::editCodesType();
         $this->redirect('/codes/');
     } else {
         $data = Codes::getType($_GET['id']);
         View::plugin('add', $data);
     }
 }
 function __construct()
 {
     $this->checkRights();
     if (Funcs::$uri[2] == '') {
         $list = Feedback::getList();
         View::plugin('index', array('list' => $list));
     } elseif (Funcs::$uri[2] == 'history') {
         $list = Feedback::getList('history');
         View::plugin('index', array('list' => $list));
     }
 }
 function __construct()
 {
     $this->checkRights();
     if (Funcs::$uri[2] == '') {
         $data['list'] = Requests::getList();
         View::plugin('list', $data);
     } elseif (Funcs::$uri[2] == 'export') {
         Requests::export();
     } elseif (Funcs::$uri[2] == 'history') {
         if (Funcs::$uri[3] == '') {
             View::plugin('history', Requests::history());
         } elseif (Funcs::$uri[3] == 'export') {
             Requests::historyExport();
         }
     } else {
         if ($_POST) {
             Requests::setPaid($_POST['id']);
             $this->redirect('/requests/');
         } else {
             View::plugin('one', Requests::getOne(Funcs::$uri[2]));
         }
     }
 }
 public function editfile()
 {
     //$now = date('Y-m-d H:i:s');
     $data = DealersFiles::getOneFile($_GET['id']);
     $dealer = DealersMain::getOne($data['dealer']);
     View::plugin('files/edit', array('data' => $data, 'dealer' => $dealer, 'formpath' => 'acteditfile'));
 }
 function group()
 {
     $data = Notification::getGroup($_GET['name']);
     View::plugin('group', $data);
 }
Beispiel #11
0
 function edituser()
 {
     $groups = Iuser::getGroupListAll();
     $user = Iuser::getUser();
     View::plugin('adduser', array('formpath' => 'actedituser', 'tree' => $tree, 'fields' => OneSSA::$iuserStandart, 'groups' => $groups, 'iuser' => $user));
 }
Beispiel #12
0
 public function editstatus()
 {
     if ($_POST) {
         Orders::setStatuses();
         $this->redirect('/orders/editstatus/');
     } elseif ($_GET['act'] == 'del') {
         Orders::delStatuses();
         $this->redirect('/orders/editstatus/');
     } else {
         if ($_GET['id']) {
             $action = 'Редактировать статус';
         } else {
             $action = 'Добавить статус';
         }
         View::plugin('editstatus', array('action' => $action));
     }
 }