Ejemplo n.º 1
0
 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=');
 }
Ejemplo n.º 2
0
 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=');
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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');
 }
Ejemplo n.º 6
0
 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>';
 }
Ejemplo n.º 7
0
 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>';
 }
Ejemplo n.º 8
0
 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');
 }
Ejemplo n.º 9
0
 public function init()
 {
     UserModPasswordController::$modPasswordUrl = adminAppUrl('system/userModPassword/modPassword?id=');
 }
Ejemplo n.º 10
0
 public function out()
 {
     $result = $this->_user->logout();
     $this->jsRedirect(adminAppUrl('/'));
 }
Ejemplo n.º 11
0
 public function init()
 {
     ConfigController::$dataTableUrl = adminAppUrl('system/config/dataTable');
     ConfigController::$modUrl = adminAppUrl('system/config/mod');
 }
Ejemplo n.º 12
0
    /**
     * 显示没有登录的页面
     * @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>';
    }