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

📄 modify_info.asp

📁 物品借用管理程序
💻 ASP
字号:
<%
if request.cookies("adminok")="" then
  response.redirect "login.htm"
end if
%>

<html>
<head>
<title>借用登记信息修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=javascript id=clientEventHandlersJS>
//函数名:fucCheckNUM
//功能介绍:检查是否为数字
//参数说明:要检查的数字
//返回值:1为是数字,0为不是数字
function fucCheckNUM(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;
}


</SCRIPT>

<SCRIPT language=javascript id=clientEventHandlersJS>
<!--

function form1_onsubmit() 
{
  if(document.FORM1.p_name.value.length<1)
 {
   alert("您必须输入借用物品名称!");
   document.FORM1.p_name.focus();
   return false;
 }
   if(document.FORM1.p_number.value.length<1)
 {
   alert("您必须输入借用物品数量!");
   document.FORM1.p_number.focus();
   return false;
 }
   if(document.FORM1.p_owner.value.length<1)
 {
   alert("请输入借用人姓名!");
   document.FORM1.p_owner.focus();
   return false;
 }
  if(document.FORM1.p_time.value.length<1)
 {
   alert("请输入借用时间!");
   document.FORM1.p_time.focus();
   return false;
 }
  if(document.FORM1.p_retime.value.length<1)
 {
   alert("请输入归还时间!");
   document.FORM1.p_retime.focus();
   return false;
 }
if ((fucCheckNUM(document.FORM1.p_number.value)==0) )
	{	alert ("借用数量有非法字符,请填写正确借用数量。");
		document.FORM1.p_number.focus();
		return false;
	}
	
}

//-->
</SCRIPT>



<STYLE type=text/css>.main {
	FONT-SIZE: 12px
}
.main1 {
	FONT-SIZE: 14px
}
.main2 {
	FONT-SIZE: 16px
}
.main3 {
	FONT-SIZE: 7px
}
.main4 {
	FONT-SIZE: 10px
}
A:link {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A:active {
	COLOR: #ff0000; TEXT-DECORATION: none
}
A:hover {
	COLOR: #aa0000; TEXT-DECORATION: underline
}
</STYLE>
</head>
<!--#include file="conn.asp"-->
<%
id=request("id")
page=request("page")
set rs=server.createobject("adodb.recordset")
sqltext="select * from borecorder where bo_id=" & id
rs.open sqltext,conn,1,1
%>
<body  text="#000000">
<FORM language=javascript name=FORM1   onsubmit="return form1_onsubmit()"
      action=modify_info_ok.asp method=post>
       <INPUT  type=hidden value=<%=rs("bo_id")%> name="bo_id">
      <div align="center">
        <center>
            <TABLE cellSpacing=1 cellPadding=4 width=429 bgColor=#416327 height="144">
              <TBODY>
              <TR vAlign=top bgColor=#e1f0ff>
                <TD class=main1 colSpan=2 width="415" height="10" bgcolor="#1f60a0"></TD></TR>
              <TR vAlign=top bgColor=#e1f0ff>
                <TD class=main1 colSpan=2 width="415" height="32"><font color="#0000FF">物品借用登记信息修改--</font></TD></TR>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">物品名称:</font></SPAN></TD>
                <TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_name" size="31" value="<%=rs("bo_name")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></TD>
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">借用数量:</font></SPAN></TD>
                <TD  width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_number" size="10" value="<%=rs("bo_total")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></TD>
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">借用部门:</font></SPAN></TD>
                <TD  width=301 height=25 bgcolor="#e1f0ff"><select size="1" name="p_dev" value="<%=rs("bo_dep")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
                    <option selected>电自部</option>
                    <option>其他</option>
                  </select></TD>
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">借用人:</font></SPAN></TD>
                <TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_owner" size="20" value="<%=rs("bo_owner")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></TD>
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">借用时间:</font></SPAN></TD>
                <TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_time" size="20" value="<%=rs("bo_time")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"> 
                  如:2002-6-28</TD>                
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">归还时间:</font></SPAN></TD>
                <TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><input type="text" name="p_retime" size="20" value="<%=rs("bo_retime")%>" style="font-family: 新细明体, 宋体, Arial; font-size: 14px; height:20px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></TD>
              </tr>
              <tr>
                <TD class=main1 width=102 bgColor=#1f60a0 height=25 align="right"><SPAN 
                  class=main1><font color="#FFFFFF">备注:</font></SPAN></TD>
                <TD class=main1 width=301 height=25 bgcolor="#e1f0ff"><textarea rows="4" name="p_remark" cols="40"  style="font-family: 新细明体, 宋体, Arial; font-size: 14px;background-color:#f3f3f3;border:1 solid black"  onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"><%=rs("bo_remark")%></textarea></TD>
              </tr>
              <TR vAlign=top bgColor=#e1f0ff>
                <TD class=main1 colSpan=2 width="415" height="15"></TD></TR>
              <TR bgColor=#e1f0ff>
                <TD class=main1 colSpan=2 width="415" height="27">
                  <p align="center">
<INPUT class=main type=submit size=3 value='  修改  ' name=Submit2>  
<input class=main type=reset value="重写" name="B4" size=3> 
                </TD></TR>
              <TR bgColor=#e1f0ff>
                <TD class=main1 colSpan=2 width="415" height="4" bgcolor="#1f60a0"></TD></TR></TBODY></TABLE>
        </center>
      </div>
        
</form>

</body>
</html>

⌨️ 快捷键说明

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