?? modifyfjpr2.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
erroremssage=errormessage&productid
%>
<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="modifyfjpr4.asp">
<table >
<!--DWLayoutTable-->
<tr class="content">
<td height="24" colspan="2" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td width="187" height="21"> </td>
<td width="216"> </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="modifyfjpr2.asp?name=<%=prname%>" selected><%=prname%></option>
<%
do while not rs2.eof
%>
<option value="modifyfjpr2.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 lanmu where productid="&productid,conn,1,1
do while not rs.eof and not rs.bof
%>
<option value="<%=rs("ID")%>"><%=rs("content")%></option>
<%
rs.movenext
loop
rs.close
%>
</select></td>
</tr>
<tr>
<td height="22"> </td>
<td> </td>
</tr>
<tr>
<td height="23" valign="top"><div align="right">
<input name="shanchu" type="submit" id="shanchu" value="刪除" onClick="return check();" />
</div></td>
<td valign="top"> <input type="reset" name="Submit" value="重置"></td>
</tr>
<tr>
<td height="34" colspan="2" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="40"> </td>
<td> </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 + -