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

📄 modifyfjpr.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 prname,errormessage,productid,shanchu,sql
  productid=1

errormessage=request.QueryString("message")
  if errormessage="" then  errormessage="请谨慎用些功能!"
prname=request.QueryString("name")

set rs2=server.createobject("adodb.recordset")
    rs2.open "select * from product ",conn,1,1
   if prname=""then prname=rs2("name")
     set rs=server.createobject("adodb.recordset")
     rs.open "select * from product where name='"&prname&"'",conn,1,1
     productid=rs("id")
	 rs.close
 %>

<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" class="boxcontent"> 
            <div align="center" ><font color="red"  size="3"><%=errormessage%></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="modifyfjpr3.asp">
          <table >
            <!--DWLayoutTable-->
            <tr class="content"> 
              <td height="24" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
            </tr>
            <tr> 
              <td width="187" height="21">&nbsp;</td>
              <td width="216">&nbsp;</td>
            </tr>
                 <tr> 
              <td height="23" class="content">请造择要删除附加问题的产品:</td>
              <td valign="top"> <div align="left"> 
                  <select name="menu1" onChange="MM_jumpMenu('self',this,0)">
                    <option value="modifyfjpr.asp?name=<%=prname%>" selected><%=prname%></option>
					<%
					 do while not rs2.eof
					%>
					 <option value="modifyfjpr.asp?name=<%=rs2("name")%>"><%=rs2("name")%></option>
					 <%
					 rs2.movenext
					 loop
					 %>
                  </select>
                </div></td>
              </tr>
            <tr> 
              <td height="23" valign="top" class="content"> <div align="right">请造择附加问题:</div></td>
              <td valign="top"><select name="questionid" id="questionid">
                  <%
			  
                  rs.open "select * from question where productid="&productid,conn,1,1
				  do while not rs.eof and not rs.bof
			  %>
                  <option value="<%=rs("ID")%>"><%=rs("question")%></option>
				  <%
				  rs.movenext
				  loop
				  rs.close
				  
				  %>
                </select></td>
            </tr>
            <tr> 
              <td height="22">&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr> 
              <td height="23" valign="top"><div align="right">
                  <input name="hidden" type="hidden" value="del">
                  <input name="shanchu" type="submit" id="shanchu" value="删除" onClick="return check();" />
                </div></td>
              <td valign="top">&nbsp;&nbsp; <input type="reset" name="Submit" value="重置"></td>
            </tr>
            <tr> 
              <td height="34" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
            </tr>
            <tr> 
              <td height="40">&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
		 
        </form>
		</div>
	</td>
  </tr>
</table>
<br>
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
   if(checkspace(document.form1.question.value)) {
	document.form1.question.focus();
    alert("question不能为空,请重新输入!");
	return false;
  }
   
  if(checkspace(document.form1.answer.value)) {
	document.form1.answer.focus();
    alert("answer不能为空,请重新输入!");
	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 + -