挺好的东东
源代码在线查看: searchuser.jsp
软件大小: |
3055 K |
上传用户: |
supertruman |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
var ctimer;
function init(){
if (document.all){
tim2.style.left=tim1.style.posLeft;
tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;
settimes();
}
}
function settimes(){
var time= new Date();
years=time.getYear();
months=time.getMonth();
days=time.getDay();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
if (hours hours="0"+hours;
if(mins mins="0"+mins;
if (secs secs="0"+secs;
tim1.innerHTML=years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs
tim2.innerHTML=years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs
ctimer=setTimeout('settimes()',960);}
function check(){
if(form1.userid.value==""){
alert("请输入要查询的用户账号!");
form1.userid.focus();
}
else if (checkNum(form1.userid.value)==0 ){
window.alert ("用户账号为纯数字!");
}
else{
form1.submit();
}
}
function checkNum(NUM){
var i,j,strTemp;
strTemp="0123456789";
if ( NUM.length== 0)
return 0
for (i=0;i j=strTemp.indexOf(NUM.charAt(i));
if (j==-1){//说明有字符不是数字
return 0;
}
}//说明是数字
return 1;
}
.STYLE6 {
font-size: 12px;
font-weight: bold;
}
.STYLE7 {font-size: 12px}
-->
body {
background-image: url(../images/aa.gif);
}
.STYLE8 {
color: #6666FF;
font-weight: bold;
}
.STYLE9 {color: #6666FF}
-->
class="time">
Style="position:absolute; filter:flipv() alpha(opacity=20); font-style:italic"
class="time">
当前时间:
网站首页
·查询用户
请输入用户账号:
if(request.getParameter("userid")!=null){
User user=new User();
boolean result=user.UserInfo((String)request.getParameter("userid"));
%>
·用户信息
用户账号:
身 份:
if (user.qx==1){
out.print("教师");
}else {
out.print("学生");
}
%>
真实姓名:
昵 称:
密 码:
知道等级:
级
未查询到该用户信息!