📄 shilian_edit.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="../Inc/articleCHAR.INC"-->
<%if Request.QueryString("no")="eshop" then
id=request("id")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from shilian where id="&id
rs.open sql,conn,1,3
rs("shilian_name")=request("shilian_name")
rs("min_time")=request("min_time")
rs("max_time")=request("max_time")
rs("isviewanswer")=request("isviewanswer")
rs("kuo_pic")=request("kuo_pic")
rs("sm")=request("sm")
rs("sb")=request("sb")
rs.update
rs.close
response.redirect "shilian_manage.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From shilian where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br>
<table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td class="back_southidc" height="25"> <div align="center"><strong>修改实验信息 <br>
</strong></div></td>
</tr>
<tr>
<form method="post" action="shilian_edit.asp?no=eshop">
<input type=hidden name=id value=<%=id%>>
<td><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#E7E7E7">
<td width="32%" height="25" bgcolor="#ECF5FF">
<div align="center">实验名称:</div></td>
<td width="68%" bgcolor="#ECF5FF">
<input type="text" name="shilian_name" maxlength="30" size="25" value="<%=rs("shilian_name")%>"> </td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">最小预约时长:</font></div></td>
<td>
<input type="text" name="min_time" maxlength="30" size="25" value="<%=rs("min_time")%>"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">最大预约时长:</font></div></td>
<td>
<input type="text" name="max_time" maxlength="30" size="25" value="<%=rs("max_time")%>"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">允许查看标准答案:</font></div></td>
<td>
<select name="isviewanswer" id="p_box">
<option selected="selected" value="允许">允许</option>
<option value="不允许">不允许</option>
</select></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">上传实验拓朴图:</font></div></td>
<td><label>
<input type="file" name="kuo_pic" value="<%=rs("kuo_pic")%>">
(图片格式任意,大小1024k)
</label></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">实验说明:</font></div></td>
<td>
<textarea name="sm" cols="40" rows="5" value="<%=rs("sm")%>"><%=rs("sm")%></textarea></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">实验设备:</font></div></td>
<td>
<textarea name="sb" cols="40" rows="3" value="<%=rs("sb")%>"><%=rs("sb")%></textarea></td>
</tr>
<tr bgcolor="#E7E7E7">
<td height="25" colspan="2" bgcolor="#ECF5FF">
<div align="center">
<input type="submit" value="修改">
<a href="javascript:history.go(-1);" style="color: #0000FF">返回</a> </div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table>
<br> <br> </td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -