public function init() { MenuController::$dataTableUrl = adminAppUrl('system/menu/dataTable'); MenuController::$addUrl = adminAppUrl('system/menu/add'); MenuController::$modUrl = adminAppUrl('system/menu/mod?id='); MenuController::$delUrl = adminAppUrl('system/menu/del?id='); }
public function init() { RoleController::$dataTableUrl = adminAppUrl('system/role/dataTable'); RoleController::$addUrl = adminAppUrl('system/role/add'); RoleController::$modUrl = adminAppUrl('system/role/mod?id='); RoleController::$delUrl = adminAppUrl('system/role/del?id='); }
public function init() { MapController::$dataTableUrl = adminAppUrl('operation/map/dataTable'); MapController::$addUrl = adminAppUrl('operation/map/add'); MapController::$modUrl = adminAppUrl('operation/map/mod?id='); MapController::$delUrl = adminAppUrl('operation/map/del?id='); MapController::$city = DBproxy::getProcedure('Manage')->setDimension(2)->getCityList(); }
public function init() { Doo::loadClassAt('City', 'default'); CityController::$dataTableUrl = adminAppUrl('operation/city/dataTable'); CityController::$addUrl = adminAppUrl('operation/city/add'); CityController::$modUrl = adminAppUrl('operation/city/mod?id='); CityController::$delUrl = adminAppUrl('operation/city/del?id='); // CityController::$city = DBproxy::getProcedure('Manage')->setDimension(2)->getCityList(); }
public function init() { UserController::$dataTableUrl = adminAppUrl('system/user/dataTable'); UserController::$modUrl = adminAppUrl('system/user/mod?id='); UserController::$addUrl = adminAppUrl('system/user/add'); UserController::$modPasswordUrl = adminAppUrl('system/user/modPassword?id='); UserController::$delUrl = adminAppUrl('system/user/del?id='); UserController::$login = adminAppUrl('system/user/login?uname='); UserController::$sGetUserRoleids = adminAppUrl('system/user/sGetUserRoleids'); }
public function init() { Doo::loadClassAt('Category', 'default'); Doo::loadClassAt('City', 'default'); BookController::$dataTableUrl = adminAppUrl('operation/book/dataTable'); BookController::$addUrl = adminAppUrl('operation/book/add'); BookController::$modUrl = adminAppUrl('operation/book/mod?id='); BookController::$delUrl = adminAppUrl('operation/book/del?id='); BookController::$city = '<select class="m-wrap" name="city" id="city-element"><option value="0">' . L('全部城市') . '</option>' . City::cateToOption($this->getUrlVar('city'), 1) . '</select>'; }
public function init() { OrderController::$status = array('' => '全部') + Doo::conf()->wxStatus; Doo::loadClassAt('City', 'default'); OrderController::$dataTableUrl = adminAppUrl('operation/order/dataTable'); OrderController::$addUrl = adminAppUrl('operation/order/add'); OrderController::$modUrl = adminAppUrl('operation/order/mod?id='); OrderController::$delUrl = adminAppUrl('operation/order/del?id='); OrderController::$city = '<select class="m-wrap" name="city" id="city-element"><option value="0">' . L('顶级城市') . '</option>' . City::cateToOption($this->getUrlVar('city'), false) . '</select>'; }
public function init() { Doo::loadClassAt('Category', 'default'); Doo::loadClassAt('City', 'default'); PeiSongController::$dataTableUrl = adminAppUrl('system/config/peisong/dataTable'); PeiSongController::$addUrl = adminAppUrl('system/config/peisong/add'); PeiSongController::$modUrl = adminAppUrl('system/config/peisong/mod?id='); PeiSongController::$delUrl = adminAppUrl('system/config/peisong/del?id='); PeiSongController::$city = '<select class="m-wrap" name="city" id="city-element">' . City::cateToOption($this->getUrlVar('city'), false) . '</select>'; PeiSongController::$cityArr = City::cateToOption(0, false, 'array'); }
public function init() { UserModPasswordController::$modPasswordUrl = adminAppUrl('system/userModPassword/modPassword?id='); }
public function out() { $result = $this->_user->logout(); $this->jsRedirect(adminAppUrl('/')); }
public function init() { ConfigController::$dataTableUrl = adminAppUrl('system/config/dataTable'); ConfigController::$modUrl = adminAppUrl('system/config/mod'); }
/** * 显示没有登录的页面 * @return string html */ public function notLoginPage() { $a = adminAppUrl('in'); echo '<!Doctype html><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=Content-Type content="text/html;charset=utf-8"><title>请登录</title></head> <script type="text/javascript"> function delayURL(url) { var delay = document.getElementById("time").innerHTML; if(delay > 0) { delay--; document.getElementById("time").innerHTML = delay; } else { window.top.location.href = url; } setTimeout("delayURL(\'" + url + "\')", 1000); } </script> <span id="time"><b>3</b></span>秒钟后自动跳转,如果不跳转,请点击下面的链接<a href="' . $a . '">登录</a> <script type="text/javascript"> delayURL("' . $a . '"); </script></html>'; }