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

📄 deluser.jsp

📁 挺好的东东
💻 JSP
字号:
<%@ include file="../checklogin.jsp" %>
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page language="java"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.know.Module" %>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<%request.setCharacterEncoding("gb2312");%>
<script language="javascript">
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<10)
hours="0"+hours;
if(mins<10)
mins="0"+mins;
if  (secs<10)
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=="" && form1.userid1.value=="" &&form1.userid2.value=="")||(form1.userid.value=="" && (form1.userid1.value=="" || form1.userid2.value==""))){
   alert("请输入用户账号!");
  }	 else if ((form1.userid.value!="" && checkNum(form1.userid.value)==0 )||(form1.userid.value=="" && (checkNum(form1.userid1.value)==0 ||checkNum(form1.userid2.value)==0 ))){
		window.alert ("用户账号只能含有数字字符!");
	}else if((form1.userid.value=="")&& (parseInt(form1.userid1.value)>parseInt(form1.userid2.value))){
      alert("前面的账号必须比后面的账号小!");
	}
  else{
  form1.submit();
  }
}
function checkNum(NUM){
	var i,j,strTemp;
	strTemp="0123456789";
	if ( NUM.length== 0)
		return 0
	for (i=0;i<NUM.length;i++){
		j=strTemp.indexOf(NUM.charAt(i));
		if (j==-1){//说明有字符不是数字
			return 0;
        }
	}//说明是数字
	return 1;
}

function showObj(num) {

document.form1.userid.value="";
document.form1.userid1.value=""
document.form1.userid2.value=""
  
  if (num==2) {
    odiv2.style.display="none"
    odiv1.style.display="inline";
  }
  else if (num==1) {
    odiv1.style.display="none"
    odiv2.style.display="inline";
  }

}
function resetform(){

   form1.userid.value="";
   form1.userid1.value="";
   form1.userid2.value="";
}
</script> 

<style type="text/css">
<!--
.STYLE6 {
	font-size: 12px;
	font-weight: bold;
}
.STYLE7 {font-size: 12px}
-->
</style>
<link href="../css/left.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(../images/aa.gif);
}
-->
</style></head>
<html>
<body onLoad="init()">
<div  align="center"  Id="tim1"  Style="position:absolute;  width:102px;  height:11px;  top:19px;  left:180px"
class="time"></div>
<div  Id="tim2"
Style="position:absolute;  filter:flipv()  alpha(opacity=20);  font-style:italic"
class="time"></div>

 <link href="../css/left.css" rel="stylesheet" type="text/css">
<form action="del.jsp" method="post"   name="form1" >
  <br />
  <table width="731" border="0" align="center" >
    <tr>
      <td width="43">&nbsp;</td>
      <td width="559"><span class="STYLE7">当前时间:</span></td>
      <td width="115"><a href="../../index.jsp" target="_blank">网站首页</a></td>
    </tr>
  </table>
  <br />
  <table width="712" border="0" align="center" class="tableBorder">

  <tr >
    <td width="11%" ><span class="STYLE7">·</span><span class="STYLE6">删除用户</span></td>
    </tr>
  <tr >
    <td ><div align="right" ><span class="STYLE7">删除方式:</span></div></td>
    <td width="89%" class="STYLE7"><input name="fangshi" type="radio" onClick="showObj(1)" value="1" checked>
      批量删除 
        <input type="radio" name="fangshi" value="2" onClick="showObj(2)">
        个人删除</td>
  </tr>
  <tr >
    <td colspan="2">
	<div id="odiv1" style="display:none">
	<table width="13" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="13">
		<table width="285" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="87" ><div align="right"><span class="STYLE7">用户账号:</span></div></td>
            <td width="182" ><input name="userid" type="text" class="textbox" id="userid" ></td>
            <td width="16">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table>
	</div>	</td>
    </tr>
  <tr >
    <td colspan="2">
	<div id="odiv2">
	<table width="524" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="87"><div align="right"><span class="STYLE7">用户账号:</span></div></td>
        <td width="437"><input name="userid1" type="text" class="textbox" id="userid1" >
          -
            <input name="userid2" type="text" class="textbox" id="userid2" ></td>
      </tr>
    </table>
	</div></td>
  </tr>
  <tr >
    <td height="39" colspan="2">	
      	    
 <input type="button" name="Submit" value="提交" onClick="check()" class="btn">
	      
      <INPUT type=button name=b2 value="重填"  class="btn" onClick="resetform()">      &nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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