提交 d4ee909a 编写于 作者: 爱吃血肠's avatar 爱吃血肠

增加后台模板

上级 62646a53
......@@ -72,11 +72,11 @@ public class TOpreatorUserServiceImpl implements TOpreatorUserService{
opreatorUser.setOperatorPassword(Md5Util.md5Password(opreatorUser.getOperatorPassword()));
TOpreatorUser tOpreatorUser = tOpreatorUserDao.queryAdminInfo(opreatorUser);
if(tOpreatorUser == null){
throw new BizException("邮箱或密码错误");
throw new BizException("用户名或密码错误");
}
return tOpreatorUser;
}catch (BizException biz){
throw new BizException("邮箱或密码错误",biz);
throw new BizException("用户名或密码错误",biz);
}catch (Exception e){
throw new RuntimeException("登录出现异常",e);
}
......
......@@ -67,7 +67,32 @@ public class AdminLoginController {
*/
@RequestMapping(value = "/adminLoginSuccess")
public String adminLoginSuccess() {
return "/admin/success";
return "/admin/main";
}
/**
* 引入相关页面 index.jsp
* @return
*/
@RequestMapping(value = "/index")
public String index() {
return "/admin/index";
}
/**
* 引入相关页面 top.jsp
* @return
*/
@RequestMapping(value = "/top")
public String top() {
return "/admin/top";
}
/**
* 引入相关页面 left.jsp
* @return
*/
@RequestMapping(value = "/left")
public String left() {
return "/admin/left";
}
}
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery/jquery.1.11.2.min.js"></script>
</head>
<body>
<div class="comtitle">
<span><img src="images/clist.png"/></span>
<h2>资料(5)</h2>
<div class="rline"></div>
</div>
<ul class="disklist">
<li>
<a href="filelist.jsp">
<div class="dleft1"></div>
<div class="dright">
<h2>信息文档(25)</h2>
<div class="dinfo"><span style="width:100px;"></span></div>
<p>34 MB 空间,共 253 个文件</p>
</div>
</a>
</li>
<li>
<div class="dleft"></div>
<div class="dright">
<h2>图片(30)</h2>
<div class="dinfo"><span style="width:50px;"></span></div>
<p>120 MB 空间,共 5100 个文件</p>
</div>
</li>
<li>
<div class="dleft"></div>
<div class="dright">
<h2>软件资料(43)</h2>
<div class="dinfo"><span style="width:38px;"></span></div>
<p>500 MB 空间,共 12 个文件</p>
</div>
</li>
<li>
<div class="dleft"></div>
<div class="dright">
<h2>系统资料(25)</h2>
<div class="dinfo"><span style="width:60px;"></span></div>
<p>125 MB 空间,共 3585 个文件</p>
</div>
</li>
<li class="selected">
<div class="dleft"></div>
<div class="dright">
<h2>uimaker(89)</h2>
<div class="dinfo"><span style="width:40px;"></span></div>
<p>10 MB 空间,共 25 个文件</p>
</div>
</li>
<li>
<div class="dleft"></div>
<div class="dright">
<h2>其他(10)</h2>
<div class="dinfo"><span style="width:15px;"></span></div>
<p>2 MB 空间,共 53 个文件</p>
</div>
</li>
</ul>
<div class="comtitle">
<span><img src="images/clist.png"/></span>
<h2>其他(1)</h2>
<div class="rline"></div>
</div>
<ul class="disklist">
<li>
<div class="dleft2"></div>
<div class="dright">
<h3>相关信息资料</h3>
<p>文件夹</p>
</div>
</li>
</ul>
</body>
</html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery/jquery.1.11.2.min.js"></script>
<!-- 数据统计部分 -->
<script type="text/javascript" src="js/jsapi.js"></script>
<script type="text/javascript" src="js/format+zh_CN,default,corechart.I.js"></script>
<script type="text/javascript" src="js/jquery/jquery.gvChart-1.0.1.min.js"></script>
</head>
<body>
<div class="mainbox">
<!-- 整个左边部分 -->
<div class="mainleft">
<div class="leftinfo">
<div class="listtitle">
<a href="#" class="more1">更多</a>数据统计
</div>
<div class="maintj">
<table id='myTable5'>
<caption>以下是一个统计图</caption>
<thead>
<tr>
<th>yyyyyy</th>
<th>Jan</th>
<th>Feb</th>
<th>Mar</th>
<th>Apr</th>
<th>May</th>
<th>Jun</th>
<th>Jul</th>
<th>Aug</th>
<th>Sep</th>
<th>Oct</th>
<th>Nov</th>
<th>Dec</th>
</tr>
</thead>
<tbody>
<tr>
<th>2010</th>
<td>125</td>
<td>185</td>
<td>327</td>
<td>359</td>
<td>376</td>
<td>398</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="leftinfos">
<div class="infoleft">
<div class="listtitle"><a href="#" class="more1">更多</a>待办事项</div>
<ul class="newlist">
<li><a href="#">上海自贸区今日正式挂牌成立</a><b>10-09</b></li>
<li><a href="#">习近平将访东南亚两国 首次出席APEC峰会</a><b>10-08</b></li>
<li><a href="#">最高法:谎称炸弹致航班备降者从重追刑责</a><b>10-09</b></li>
<li><a href="#">华北大部遭遇雾霾天 北京全城陷重污染</a><b>10-06</b></li>
<li><a href="#">"环保专家"董良杰涉嫌寻衅滋事被刑拘</a><b>10-05</b></li>
<li><a href="#">中央巡视组:重庆对一把手监督不到位</a><b>10-04</b></li>
<li><a href="#">囧!悍马没改好成华丽马车(图)</a><b>10-03</b></li>
</ul>
</div>
<div class="inforight">
<div class="listtitle"><a href="#" class="more1">添加</a>常用工具</div>
<ul class="tooli">
<li><span><img src="images/d01.png"/></span><p><a href="#">信息资料</a></p></li>
<li><span><img src="images/d02.png"/></span><p><a href="#">编辑</a></p></li>
<li><span><img src="images/d03.png"/></span><p><a href="#">记事本</a></p></li>
<li><span><img src="images/d04.png"/></span><p><a href="#">任务日历</a></p></li>
<li><span><img src="images/d05.png"/></span><p><a href="#">图片管理</a></p></li>
<li><span><img src="images/d06.png"/></span><p><a href="#">交易</a></p></li>
<li><span><img src="images/d07.png"/></span><p><a href="#">档案袋</a></p></li>
</ul>
</div>
</div>
</div>
<!-- 整个右边部分 -->
<div class="mainright">
<div class="dflist">
<div class="listtitle"><a href="#" class="more1">更多</a>最新信息</div>
<ul class="newlist">
<li><a href="#">上海自贸区今日正式挂牌成立</a></li>
<li><a href="#">习近平将访东南亚两国 首次出席APEC峰会</a></li>
<li><a href="#">最高法:谎称炸弹致航班备降者从重追刑责</a></li>
<li><a href="#">华北大部遭遇雾霾天 北京全城陷重污染</a></li>
<li><a href="#">"环保专家"董良杰涉嫌寻衅滋事被刑拘</a></li>
<li><a href="#">中央巡视组:重庆对一把手监督不到位</a></li>
<li><a href="#">囧!悍马没改好成华丽马车(图)</a></li>
<li><a href="#">澳门黄金周加派稽查人员监察出租车违规行为</a></li>
<li><a href="#">香港环境局长吁民众支持政府扩建堆填区</a></li>
</ul>
</div>
<div class="dflist1">
<div class="listtitle"><a href="#" class="more1">更多</a>信息统计</div>
<ul class="newlist">
<li><i>会员数:</a></i>2535462</li>
<li><i>文档数:</a></i>5546</li>
<li><i>普通文章:</a></i>2315</li>
<li><i>软件:</a></i>1585</li>
<li><i>评论数:</a></i>5342</li>
</ul>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$(function(){
//饼图部分代码
gvChartInit();
$('#myTable5').gvChart({
chartType: 'PieChart',
gvSettings: {
vAxis: {title: 'No of players'},
hAxis: {title: 'Month'},
width: 650,
height: 250
}
});
//监听窗口变动
setWidth();
$(window).resize(function () {
setWidth();
});
function setWidth() {
var width = ($('.leftinfos').width() - 12) / 2;
$('.infoleft,.inforight').width(width);
}
});
</script>
</html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body style="background:#edf6fa;">
<div class="error">
<!-- <div class="reindex"><a href="main.jsp" target="_parent">返回首页</a></div> -->
</div>
</body>
</html>
<script type="text/javascript" src="js/jquery/jquery.1.11.2.min.js"></script>
<script language="javascript">
$(function () {
$('.error').css({'position': 'absolute', 'left': ($(window).width() - 490) / 2});
$(window).resize(function () {
$('.error').css({'position': 'absolute', 'left': ($(window).width() - 490) / 2});
})
});
</script>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery/jquery.1.11.2.min.js"></script>
</head>
<body>
<table class="filetable">
<thead>
<tr>
<th width="25%">名称</th>
<th width="11%">修改日期</th>
<th width="10%">类型</th>
<th width="6%">大小</th>
<th width="48%"></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="images/f01.png"/>Adobe Dreamweaver CS5简体中文绿色</td>
<td>2013/10/14 17:38</td>
<td>文件夹</td>
<td class="tdlast">0 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f01.png"/>Adobe Photoshop CS5</td>
<td>2013/10/14 17:38</td>
<td>文件夹</td>
<td class="tdlast">30 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f01.png"/>PS形状</td>
<td>2013/10/14 17:38</td>
<td>文件夹</td>
<td class="tdlast">0 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f01.png"/>Microsoft Office 2007中文版</td>
<td>2013/10/14 17:38</td>
<td>文件夹</td>
<td class="tdlast">0 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f02.png"/>SWiSHmax.rar</td>
<td>2013/10/14 17:38</td>
<td>压缩文件</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f02.png"/>autodesk3dsmax.zip</td>
<td>2013/10/14 17:38</td>
<td>压缩文件</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f02.png"/>Adobe Photoshop CS5.rar</td>
<td>2013/10/14 17:38</td>
<td>压缩文件</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f03.png"/>Thunder7.2.7.3496.exe</td>
<td>2013/10/14 17:38</td>
<td>程序</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f03.png"/>福昕阅读器_5.1.0.1117.exe</td>
<td>2013/10/14 17:38</td>
<td>程序</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f04.png"/>libeay32.ai</td>
<td>2013/10/14 17:38</td>
<td>设计软件</td>
<td class="tdlast">125 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f05.png"/>php.ini.xls</td>
<td>2013/10/14 17:38</td>
<td>电子表格</td>
<td class="tdlast">120 KB</td>
<td></td>
</tr>
<tr>
<td><img src="images/f06.png"/>pws-php5cgi.reg</td>