<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery DIV 后台管理界面</title>
<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/jQuery.niceTitle.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.divcorners.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/prettyCheckboxes.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.layout.js"></script>
<script type="text/javascript" src="js/jQuery.niceTitle.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>
<script type="text/javascript" src="js/jquery.divcorners.min.js"></script>
<script type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/prettyCheckboxes.js"></script>
<script type="text/javascript" src="js/jquery.livequery.js"></script>
<script type="text/javascript" src="js/layout.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
</head>
<!--
说明:
由于将原来的jsp页面改为现在的html页面,因此注释掉了页面中的jsp代码,页面中的jsp代码的功能为:
<1>判断用户是否登录,未登录则构建Ajax登录框,否则不构建
<2>显示登录用户的相关信息,如:用户名、角色等
为了比较全面的展示整个后台管理框架,这里也将在静态页面中为大家模拟登录功能(由于静态页面无法动态获取用户登录后的信息,所以每次刷新页面都要求登录,本来想引入Cookie插件来保存登录信息,但觉得这是仅仅是模拟一下登录功能,也就不必这么麻烦了,刷新重新登录一下就是)
-->
<!--<%
String _username = "", _userrole = "", _userpassword = "";
boolean islogin = false;
TUsers user = new TUsers();
if(null != session.getAttribute("sessionUser")){
user = (TUsers)session.getAttribute("sessionUser");
islogin = true;
}
if(islogin){
_username = user.getUUsername();
_userpassword = user.getUPassword();
if(user.getTRole()!=null){
_userrole = user.getTRole().getRName();
}
}else{
_username = "";
}
%>-->
<body>
<div class="ui-layout-west">
<div class="header">系统主菜单</div>
<div class="content overflow">
<img src="images/ajax-loader.gif" />数据处理中...
</div>
</div>
<div class="ui-layout-east">
<div class="header">便捷工具箱</div>
<div class="subhead pngfix"><img src="images/operating.png" /><span id="action_title"></span></div>
<div class="content">
</div>
<div class="footer">I'm a footer</div>
</div>
<div class="ui-layout-north">
<div class="content">
<div id="head-top">
<div id="logo"><img src="images/logo_test.gif" /></div>
<div id="quick-menu" class="pngfix">
<img align="absbottom" vspace="5px" src="images/user.png" />欢迎:
<a class="lightBlue" href="javascript:void(0);" id="userinfo">
<span id="name_span"><!--<%=_username %>-->admin</span>
</a>,
<a class="lightBlue" href="javascript:void(0);" id="userpwd">
<span id="pwd_span">修改密码</span>
</a>,
用户角色:<span id="role_span"><!--<%=_userrole %>-->超级管理员</span>,
<a class="lightBlue" href="javascript:void(0);" id="logout">退出</a>
</div>
<br class="clearfloat" />
</div>
<div id="head-toolbar">
<div id="layout-toolbar">
<ul class="toolbar">
<li id="tbarToggleNorth" class="first"><span></span></li>
<li id="tbarOpenSouth"><span></span></li>
<li id="tbarCloseSouth"><span></span></li>
<li id="tbarPinWest"><span></span></li>
<li id="tbarPinEast" class="last"><span></span></li>
</ul>
</div>
<div id="notice" class="pngfix">
<img align="absbottom" vspace="5px" src="images/notice.png" /> 最新公告:
</div>
<br class="clearfloat" />
</div>
</div>
</div>
<div class="ui-layout-south">
<div class="content">
IT北瓜 © 版权所有 2009 Design by <a class="lightBlue" href="http://www.imleeo.com">leeo</a>
</div>
</div>
<div class="ui-layout-center">
<div class="header" class="pngfix"><img align="absbottom" vspace="5px" src="images/location.png" />当前位置:首页<span id="location"></span></div>
<div class="ui-layout-content">
<!--<div id="dialog-div" style="display: none;">
<div id="dialog-content"></div>
</div>-->
<div id="data-div"></div>
</div>
</div>
<!-- 这里的if判断作用就是决定是否构建登录框,这里将if判断注释掉则每次刷新页面都会构建登录框 -->
<!-- <%if(!islogin){%>-->
<div id="login-container">
<div id="login-div">
<form id="login-form" action="" method="post">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80">用户名:</td>
<td><input type="text" name="users.UUsername" id="u_username" maxlength="30" class="username niceTitle" title="请输入imleeo" /></td>
</tr>
<tr>
<td width="80">密码:</td>
<td><input type="password" name="users.UPassword" id="u_password" maxlength="16" class="upwd niceTitle" title="请输入imleeo.com" /></td>
</tr>
<tr>
<td width="80">验证码:</td>
<td><input type="text" name="checkCode" id="checkCode" maxlength="4" class="rcode niceTitle" title="验证码只能是4位数字" onkeyup="value=value.replace(/[^\d]/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));" /><img align="absmiddle" id="imgcode" style="cursor: pointer;" alt="点击更换验证码!" onclick="changeValidateCode();"/></td>
</tr>
<tr>
<td id="login-msg" height="30"> </td>
<!-- 由于演示这个例子取消了form插件提交方式,因此将登录按钮类型改为button -->
<td><!--<input type="submit" value="登 录" />--><input type="button" id="testLogin" value="登 录" /> <input type="reset" value="重 置" /></td>
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
changeValidateCode();
$.blockUI({
message: $('#login-container'),
css: {
border: 'none',
width: '0px',
height: '0px',
cursor: 'default'
}
});
$("#login-div").dcCreate({
imgPrefix: "images/img-",
fileType: ".png",
expand: 10,
radius: 10,
position: "outside"
});
- 1
- 2
- 3
前往页