62,046
社区成员
发帖
与我相关
我的任务
分享
<%@page contentType="text/HTML;charset=gbk"%>
<jsp:directive.page import="sysUtil.language.LanSupport"/>
<jsp:useBean scope="page" id="ctop" class="ctop.Basic"/>
<HTML>
<head>
<title>Login</title>
<script>
function newwindow(url,isBig)
{
if (isBig=="false")
{
var x=screen.availwidth-10;
var y=screen.availheight-25;
var s=open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y+",top=0,left=0");
if (!s)
alert("<%=LanSupport.getCharacter("check_winerr",session)%>");
else
{
this.focus();
this.opener=null;
this.close();
s.focus();
}
}
else
location.href=url;
}
</script>
</head>
<BODY>
<%
String login_type = pub.PubFunc.toString(request.getParameter("login_type"));
String username = pub.PubFunc.toString(request.getParameter("username"));
String passwd = pub.PubFunc.toString(request.getParameter("password"));
String loginhere = pub.PubFunc.toString(request.getParameter("loginhere"));
String isDebug = pub.PubFunc.toString(request.getParameter("isDebug"));
String codepassword = pub.PubFunc.toString(request.getParameter("codepassword"));
if (isDebug.equals(""))
isDebug = "false";
else
isDebug = "true";
String ip = request.getRemoteAddr();
%>
<script>
var popstr = "";
var url = "<%=ctop.check(session,response,login_type,username,passwd,codepassword,loginhere,ip,request)%>";
if (popstr!=null && popstr.length>0) {
alert(popstr);
}
newwindow(url,"<%=isDebug%>");
</script>
</BODY>
</HTML>
<html>
<head>
<script type="text/javascript">
function a() {
window.open('', '_parent', '');
window.close();
}
</script>
</head>
<body>
<input type="button" value="弹出新窗口" onclick="a()"/>
<a href="time.html" target="_parent">超级链接在父窗口中打开新页面</a>
</body>
</html>