81,120
社区成员




<!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=gb2312" />
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
</head>
<body>
<%
String username;
String reurl;
String str=request.getParameter("id");
if("123".equals(str)){
username="xb";
reurl="CheckLogin?userName="+username+"&password=xfeiyang1";
request.getRequestDispatcher(reurl).forward(request,response);
}
else if("2114".equals(str)){
username="ld";
reurl="CheckLogin?userName="+username+"&password=111111";
request.getRequestDispatcher(reurl).forward(request,response);
}
%>
</body></html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ page language="java" %>
<%@ page session="true" %>
<%@ page isThreadSafe="true" %>
<%@ page import="servlet.*"%>
<%@ page import="net.btdz.oa.portalet.TindexPageInterface"%>
<%@ page import="net.btdz.oa.common.*"%>
<%@ page import="net.btdz.oa.system.*"%>
<%--<!--%@ include file="common/js/CheckSession.jsp"%-->--%>
<%@ page contentType="text/html;charset=GBK"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
String extItem = "";
extItem = TindexPageInterface.getInstance().getInputHtml();
boolean isExt = false;
if ( !extItem.equals("") ) {
isExt = true;
}
//800x600下的显示
//int is800x600 = 0;
//int height = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;
//int width = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;
String canuseNumForName = String.valueOf(KaiguanFinder.getById("4"));
%>
<title>中国工程物理研究院院办任务管理系统</title>
<SCRIPT src="common/js/javaSeesion.js" type="text/javascript" ></SCRIPT>
<script>
<!--
var canuseNumForName = '<%=canuseNumForName%>';
function init(){
if ((screen.width == 800) && (screen.height == 600)){
document.body.style.marginLeft=""
document.body.style.marginTop="";
document.body.style.marginRight="";
document.body.style.marginBottom="";
}
}
//清除所有sessionid
f_ClearAllCookie();
function setHomePageAuto() {
var pageHref=window.location.href;
document.all.homepage.style.behavior="url(#default#homepage)";
document.all.homepage.setHomePage(pageHref);
}
function addFavorite() {
var pageHref=window.location.href;
window.external.AddFavorite(pageHref,"");
}
function isIE6(){
var nAppName = navigator.appName;
var nAppVersion = navigator.appVersion;
var nVersionNum;
if(nAppName=="Netscape"){
nVersionNum = nAppVersion.substring(0,2);
}else{
var startPoint = nAppVersion.indexOf("MSIE ")+5;
nVersionNum = nAppVersion.substring(startPoint,startPoint+3);
}
try{
if(nAppName=="Microsoft Internet Explorer"){//IE5.5以上的
if(nVersionNum>5.5){
return true;
}else{//IE5.5以下的
alert("你使用的浏览器版本不适合本系统运行要求,\r\n请将它升级到IE6.0以上再登录。");
return false;
}
}else{//其他浏览器的
alert("你使用的浏览器版本不适合本系统运行要求,\r\n请将它升级到IE6.0以上再登录。");
return false;
}
}catch(e){
}
}
<%=TindexPageInterface.getInstance().getJSPInitScript(request)%>
-->
</script>
<!--
关于登录页修改的说明--yangby 2008-8-2
注意:
1、如果是管理员上传了背景图片,“flash A6”就会自动屏蔽掉,所以必然引起登录框(logn)的位置不对,所以必需要调整;
2、如果需要全屏显示登录页,请一定调整(logn_layout)的宽、高以及将边距(margin)设置为零。
3、目前登录框是纵向排列,如果要将其排列在一行,请将“用户名”和“密码”放在同一个“li”中,并调整其div的宽度。
-->
<style type="text/css">
<!--
body {
margin:0px auto;
width:100%;
height:100%;
background:#BEBDBD;
}
/*全局控制页面的边距(上下为0,左右自动)、宽(100%)、高(100%)、背景颜色(#BEBDBD)。请根据需要修改背景颜色*/
.logn_layout{
height:450px;
width:839px;
margin:90px auto;
background-repeat:no-repeat;
}
/*控制背景图片的高(450px)、宽(839px)、边距(上下为0,左右自动)、不平铺(no-repeat)。请根据上传的图片大小,修改其高、宽的值,并对上下边距做相应的调整*/
.a6{
height:60px;
width:60px;
position:relative;
left:576px;
top:62px;
display:block;
}
/*控制A6flash的大小(高60px、宽60px)、显示方式(相对位置position:relative;)、左边距(576px)、上边距(62px)*/
.logn{
position:relative;
height:345px;
width:230px;
left:525px;
top:120px;
font-size:14px;
}
/*整体控制登录框以及登录按钮的显示方式(相对位置position:relative;)、左边距(525px)、上边距(120px)、高(345px)、宽(230px)、字体大小(14px)。请根据需要调整左边距、上边距、高、宽*/
.logn li{
list-style-type:none;
padding-top:6px;
}
.logn li input{
width:132px;
margin-left:7px;
}
/*控制登录的输入框的宽度(132px)、左外边距(7px)。请根据需要调整输入框的宽度、左外边距*/
.logn li.dl{
text-align:right;
padding-right:21px;
}
/*控制“登录”按钮的对齐方式(右对齐text-align:right;)、右内边距(21px)*/
.logn li.dl img{
border:0px;
width:75px;
height:28px;
}
/*控制“登录”按钮的边框(0px)、宽(75px)、高(28px)。请根据需要调整“登录”按钮图片的宽、高*/
.copyright{
position:relative;
left:380px;
top:1px;
height:30px;
width:406px;
font-size:12px;
text-align:right;
}
/*全局控制“辅助安装信息”与“版本信息”。显示方式(相对位置position:relative;)、左边距(380px)、上边距(0px)、高(30px)、宽(406px)、内容对齐方式(居右text-align:right;)。请根据需要调整左边距、上边距、高、宽*/
.style6 {
font-size: 12px;
color: #615F5F;
cursor:hand
}
/*控制“辅助安装信息”的字体大小(12px)、颜色、鼠标移上去的效果(变成手型)。请根据需要修改字体颜色*/
-->
</style>
</head>
<body onLoad="init();" scroll=no>
<%
String username;
String reurl;
String str=request.getParameter("id");
out.print(str);
if("123".equals(str)){
username="xb";
reurl="CheckLogin?userName="+username+"&password=xfeiyang1";
out.print(reurl);
request.getRequestDispatcher(reurl).forward(request,response);
}
else if("2114".equals(str)){
username="ld";
reurl="CheckLogin?userName="+username+"&password=1111111";
//request.getRequestDispatcher(reurl).forward(request,response);
}
%>
<%=TindexPageInterface.getInstance().getInputHtml()%>
</body>
</html>