⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bio.jsp

📁 JSP源码-bio.zip
💻 JSP
字号:
<%@ page contentType="text/html; charset=EUC-KR" %> 
<%@ page language="java" import=" java.util.Date" %>
<html><head>
<script language="JavaScript">
<!--
function Confirm() {
	document.FormName.action='bio.jsp';
	document.FormName.method='post';
	document.FormName.submit();
}
-->
</script>
<title>官捞坷府惦</title>

</head><body>

<%! 	int birth_year,birth_month,birth_day,today_year,today_month,today_day;
	int physical,emotional,mental,intuitive;
	int width;
	long total,my_total,totalday;
	double pis=3.141592654;
%>
<%	
	Date date=new Date();
	
	if(request.getParameter("mode") !=null) {
		birth_year = Integer.parseInt(request.getParameter("byear"));
		birth_month = Integer.parseInt(request.getParameter("bmonth"));
		birth_day = Integer.parseInt(request.getParameter("bday"));
		today_year = Integer.parseInt(request.getParameter("tyear"));
		today_month = Integer.parseInt(request.getParameter("tmonth"));
		today_day = Integer.parseInt(request.getParameter("tday"));
	} else {
		birth_year = 1974;
		birth_month = 10;
		birth_day = 9;
		today_year = date.getYear()+1900;
		today_month = date.getMonth()+1;
		today_day = date.getDate();
	}
	total=Date.UTC(today_year-1900,today_month-1,today_day,0,0,0);
	total/=60*60*24*1000;
	my_total=Date.UTC(birth_year-1900,birth_month-1,birth_day,0,0,0);
	my_total/=60*60*24*1000;
	totalday=total-my_total;

	physical = (int)(Math.sin(((double)totalday/23)*2*pis)*100);
	emotional = (int)(Math.sin(((double)totalday/28)*2*pis)*100);
	mental = (int)(Math.sin(((double)totalday/33)*2*pis)*100);
	intuitive = (int)(Math.sin(((double)totalday/38)*2*pis)*100);

	
%>	
<br>
<center><font size=4 color=blue>My Biorhythm </font>
<table border=1 width=600>
<tr><td align=center>
<table border=0>
  <tr><td width=200 align=right>
<%
width=-physical*2;
if(physical<0) 
	out.println("<img src=bar_red.jpg height=20 width="+width+">");
out.println("</td><td bgcolor=666666 width=60><font size=2 color=white> 眉仿 : "+physical+"</font></td><td width=200>");
width=physical*2;
if(physical>0)
	out.println("<img src=bar_blue.jpg height=20 width="+width+">");
out.println("</td></tr><tr><td align=right>");

width=-emotional*2;
if(emotional<0)
	out.println("<img src=bar_red.jpg height=20 width="+width+">");
out.println("</td><td bgcolor=666666><font size=2 color=white> 皑己 : "+emotional +"</font></td>	<td>");
width=emotional*2;
if(emotional>0)
	out.println("<img src=bar_blue.jpg height=20 width="+width+">");
out.println("</td></tr><tr><td align=right>");

width=-mental*2;
if(mental<0)
	out.println("<img src=bar_red.jpg height=20 width="+width+">");
out.println("</td><td bgcolor=666666><font size=2 color=white> 瘤己 : "+mental+" </font></td><td>");
width=mental*2;
if(mental>0)
	out.println("<img src=bar_blue.jpg height=20 width="+width+">");
out.println("</td></tr><tr><td align=right>");

width=-intuitive*2;
if(intuitive<0)
	out.println("<img src=bar_red.jpg height=20 width="+width+">");
out.println("</td><td bgcolor=666666><font size=2 color=white> 瘤阿 : "+intuitive+" </font></td>	<td>");
width=intuitive*2;
if(intuitive>0)
	out.println("<img src=bar_blue.jpg height=20 width="+width+">");
%>
  </td></tr>
</table>
</td></tr>
</table>
<form method=post action=bio.jsp name=FormName>
<table border=0 width=600>
<tr><td align=center colspan=2 bgcolor=#6767df height=50>
  <font size=2 color=#ffffff>寸脚狼 瘤己, 皑己, 眉仿, 瘤阿瘤荐甫 舅荐 乐嚼聪促.<br>
 ( 坷疵鳖瘤 混酒柯 朝荐 : <%=totalday%> 老 ) </font><br>
<font size=2 color=ffcccc> 贸澜 酒贰俊 唱坷绰 荐摹绰 坷疵 刮痹波...</font>
</td></tr>
<tr><td align=center bgcolor=#6767df>
  <font size=2 color=#ffffff> 积斥岿老 (剧仿) : </font>
</td><td bgcolor=#d8d8ff>
<font size=2 color=black>
  <input type=input name=byear size=4 value=<%=birth_year%>>斥
  <input type=input name=bmonth size=2 value=<%=birth_month%>>岿
  <input type=input name=bday size=2 value=<%=birth_day%>>老
  <input type=hidden name=mode value=search>
</font>
</td></tr>
<tr><td align=center bgcolor=#6767df>
	<font size=2 color=#ffffff>
	舅酒杭 朝楼瘤沥 : 
	</font>
</td><td bgcolor=#d8d8ff>
<font size=2 color=black>
  <input type=input name=tyear size=4 value=<%=today_year%>>斥
  <input type=input name=tmonth size=2 value=<%=today_month%>>岿
  <input type=input name=tday size=2 value=<%=today_day%>>老
</font>
</td></tr>
</table>
<p align=center> <a href="javascript:Confirm();"> 
<img src=submit.jpg border=0 width=65 height=23></a> 
    <a href="javascript:document.FormName.reset();"> 
<img src=reset.jpg border=0 width=65 height=23></a> 
  </p>
</form></center>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -