Example #1
0
<?php

echo \SvnPQA\ViewBase::getSideMenu();
Example #2
0
<?php

use SvnPQA\ViewBase;
include $this->resolveTemplate('inc/header.inc.php');
?>
<div id="col-aside"><?php 
echo ViewBase::getSideMenu();
?>
</div>
<div id="col-main">
	<div class="operate-bar">
		<a href="<?php 
echo $this->getUrl('config/update');
?>
" class="btn" rel="popup">新增配置</a>
	</div>
	<form class="search-frm well" action="<?php 
echo $this->getUrl('config');
?>
" method="get">
		<div class="frm-item">
			<label>
				<input class="txt" type="text" name="kw" value="<?php 
echo $search['kw'];
?>
" placeholder="关键字"/>
			</label>
		</div>
		<div class="frm-item">
			<input class="btn" type="submit" value="查询"/>
			<a href="<?php 
Example #3
0
    public static function checkAuth($controller, $action)
    {
        if (!$controller || !$action) {
            return;
        }
        $result = self::isAuthAction($controller, $action);
        if (!$result) {
            if (!self::instance()->isLogin()) {
                $url = Router::getUrl('index/login');
                $html = <<<EOT
<!doctype html>
<html lang="en">
<head>
\t<meta charset="UTF-8">
\t<title>Document</title>
\t<script>document.domain = "erp.com";</script>
\t<script>top.location.href="{$url}";</script>
</head>
<body>
\t正在登录系统...
</body>
</html>
EOT;
                die($html);
            } else {
                //暂时不返回
                $viewer = new ViewBase();
                echo $viewer->render('index/deny.php', true);
                die;
            }
        }
    }