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

📄 modifysk.asp

📁 标准的小型企业网站程序
💻 ASP
字号:
<html>
<head>
<title>小类管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<link href="../css/main.css" rel="stylesheet" type="text/css">
<link href="../images/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<!--#include file=conn.asp-->
<!--#include file=refuse.asp-->
<%
dim message,name2,bclass
name2=request.QueryString("select")
message=request.QueryString("message")
if message="" then message="为了数据的安全,请你仔细填写各项(加*为必填)"
set rs=server.CreateObject("adodb.recordset")
    rs.open "select * from sclass",conn,1,1
	 rs.movefirst
	if name2="" then name2=rs("name")
	
%>

<body>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6B8FC8">
  <!--DWLayoutTable-->
  <tr> 
    <td width="496" height="29" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="496" height="27" valign="middle">
<div align="center" ><font color="red"  size="3"><%=message%></font></div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="236" valign="top" bgcolor="#E8F1FF"><div  align="center">
	    <form name="form1" id="form1" method="post" action="modifysk2.asp">
          <table >
            <!--DWLayoutTable-->
            <tr> 
              <td width="162" height="21">&nbsp;</td>
              <td width="116"></td>
            </tr>
            <tr> 
              <TD height="23" valign="top" class="boxcontent"> 请选择一个小类</TD>
              <td valign="top"> <div align="left"> 
                  <select name="select" onChange="MM_jumpMenu('self',this,0)">
				   <option value="modifysk.asp?select=<%=name2%>" selected><%=name2%></option> 
                    <%
					do while not rs.eof 
					%>
                    <option value="modifysk.asp?select=<%=rs("name")%>"><%=rs("name")%></option>
                    <%
					rs.movenext
					loop
					
					%>
                  </select>
                </div></td>
            </tr>
            <%
			rs.close
			rs.open "select * from sclass where name='"&name2&"'",conn,1,1
			
			 %>
            <tr> 
              <td height="22" valign="top" class="boxcontent">小类名称更改为:</td>
              <td valign="top"> <div align="left"> 
                  <input name="name" type="text" class="INPUT" id="name" value="<%=rs("name")%>" size="15">
                  *</div></td>
            </tr>
            <tr> 
              <td height="26" valign="top" class="boxcontent">所属大类更改为:</td>
              <td valign="top"><select name="bclass" id="bclass">
			  <option value="<%=rs("bclass")%>" slected><%=rs("bclass")%></option>
			  <%
			  rs.close
			  rs.open "select * from bclass"
			  %>
			  <%
			  do while not rs.eof
			  %>
                  <option value="<%=rs("name")%>"><%=rs("name")%></option>
				  <%
				  rs.movenext
				  loop
				  %>
                </select>
                *</td>
            </tr>
            <tr> 
              <td height="30" valign="top"><div align="center"> 
                  <input name="forename" type="hidden" id="forename" value="<%=name2%>">
                  <input type="submit" name="Submit" value="更改" onClick="return check();">
                </div></td>
              <td valign="top"><input type="reset" name="Submit2" value="重置"> 
              </td>
            </tr>
            <tr> 
              <td height="30" colspan="2" valign="top"> <div align="center" class="content">输入区域里是选中的大类的对应的所有信息</div></td>
            </tr>
            <%
			rs.close
			set rs=nothing
			conn.close
			%>
          </table>
		 
        </form>
		</div>
	</td>
  </tr>
</table>
<br>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
   if(checkspace(document.form1.name.value)) {
	document.form1.name.focus();
    alert("大类名不能为空,请重新输入!");
	return false;
  }
   
  if(checkspace(document.form1.intro.value)) {
	document.form1.intro.focus();
    alert("简介不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.cintro.value)) {
	document.form1.cintro.focus();
    alert("详细信息不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.pic1.value)) {
	document.form1.pic1.focus();
    alert("PIC1不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.pic2.value)) {
	document.form1.pic2.focus();
    alert("pic2不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.pic3.value)) {
	document.form1.pic3.focus();
    alert("pic3不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.pic4.value)) {
	document.form1.pic4.focus();
    alert("pic4不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.question1.value)) {
	document.form1.question1.focus();
    alert("question1不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.question2.value)) {
	document.form1.question2.focus();
    alert("question2不能为空,请重新输入!");
	return false;
  }
  if(checkspace(document.form1.question3.value)) {
	document.form1.question3.focus();
    alert("question3不能为空,请重新输入!");
	return false;
  }
  
 }


function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
</body>
</html>

⌨️ 快捷键说明

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