📄 main.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>六合彩网上投注系统</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<script language="JavaScript">
function go(flag)
{
self.location="main.jsp?flag="+flag;
}
function openWin()
{
window.open ("rule.htm", "newwindow", "height=350, width=440, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
}
function gologout()
{
self.location="logout.jsp";
}
</script>
</head>
<body>
<jsp:useBean id="judge" scope="session" class="operation.JudgeDate" />
<%
String username = (String)session.getAttribute("username");
boolean bl = judge.startJudge();
if(username == null)
{
%>
<script language="JavaScript">
self.location="login.jsp";
</script>
<%
}
if(bl == false)
{
%>
<div id="Layer1" style="position:absolute; left:327px; top:80px; width:660px; height:19px; z-index:1">
<input type="button" name="Submit" value="状态查询" onClick="JavaScript:go('statusQuery')">
<input type="button" name="Submit2" value="快速下注" onClick="JavaScript:go('close')">
<input type="button" name="Submit3" value="开奖结果" onClick="JavaScript:go('result')">
<input type="button" name="Submit4" value="中奖查询" onClick="JavaScript:go('close')">
<input type="button" name="Submit5" value="奖金金额" onClick="JavaScript:go('resultMoney')">
<input type="button" name="Submit7" value="六合彩规则" onClick="JavaScript:openWin()">
<input type="button" name="Submit8" value="会员注销" onClick="JavaScript:gologout()">
</div>
<%
}
else
{
%>
<div id="Layer1" style="position:absolute; left:327px; top:80px; width:660px; height:19px; z-index:1">
<input type="button" name="Submit" value="状态查询" onClick="JavaScript:go('statusQuery')">
<input type="button" name="Submit2" value="快速下注" onClick="JavaScript:go('chip_in')">
<input type="button" name="Submit3" value="开奖结果" onClick="JavaScript:go('result')">
<input type="button" name="Submit4" value="中奖查询" onClick="JavaScript:go('isorWin')">
<input type="button" name="Submit5" value="奖金金额" onClick="JavaScript:go('resultMoney')">
<input type="button" name="Submit7" value="六合彩规则" onClick="JavaScript:openWin()">
<input type="button" name="Submit8" value="会员注销" onClick="JavaScript:gologout()">
</div>
<%
}
%>
<table width="994" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="994" height="89" valign="top" background="images/lie.gif"><img src="images/top2.gif" width="300" height="89">
</td>
</tr>
</table>
<table width="994" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="202" height="410" align="left" valign="top" nowrap>
<jsp:include page="left.jsp" flush="true"/></td>
<%
String flag = request.getParameter("flag");
System.out.println("flag="+flag);
if(flag == null)
{
%>
<td width="792" valign="top"><jsp:include page="main.htm" flush="true"/></td>
<%
}
else if(flag.equals("close"))
{
%>
<script language="JavaScript">
alert('对不起,今天不是服务器开放的日子,详情请见六合彩规则!');
</script>
<td width="792" valign="top"><jsp:include page="main.htm" flush="true"/></td>
<%
}
else if(flag.equals("statusQuery"))
{
%>
<td width="792" valign="top"><jsp:include page="statusQuery.jsp" flush="true"/></td>
<%
}
else if(flag.equals("chip_in"))
{
%>
<td width="792" valign="top"><jsp:include page="chip_in.jsp" flush="true"/></td>
<%
}
else if(flag.equals("isorWin"))
{
%>
<td width="792" valign="top"><jsp:include page="isorWin.jsp" flush="true"/></td>
<%
}
else if(flag.equals("result"))
{
%>
<td width="792" valign="top"><jsp:include page="result.jsp" flush="true"/></td>
<%
}
else if(flag.equals("resultMoney"))
{
%>
<td width="792" valign="top"><jsp:include page="resultMoney.jsp" flush="true"/></td>
<%
}
else
{
%>
<td width="792" valign="top"><jsp:include page="main.htm" flush="true"/></td>
<%
}
%>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -