manage_editjob.asp

来自「烈火之家整站程序 本程序集商业娱乐一体,本来是给自己用的但是我的国外空间支持不够」· ASP 代码 · 共 120 行

ASP
120
字号
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%if Request.QueryString("no")="eshop" then

id=request("id")
Duix=request("Duix")
Rens=request("Rens")
Did=request("Did")
Daiy=request("Daiy")
Yaoq=request("Yaoq")
Qix=request("Qix")


If Duix="" Then
response.write "SORRY <br>"
response.write "请输入更新内容"
response.end
end if
If Rens="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if
If Did="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if
If Daiy="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if
If Yaoq="" Then
response.write "SORRY <br>"
response.write "内容不能为空"
response.end
end if


Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Job where id="&id
rs.open sql,conn,1,3

rs("Duix")=Duix
rs("Rens")=Rens
rs("Did")=Did
rs("Daiy")=Daiy
rs("Yaoq")=Yaoq
rs("Qix")=Qix
rs.update
rs.close
response.redirect "Manage_Job.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From Job where id="&id, conn,3,3
%>
<!-- #include file="../Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr class=a4> 
    <td align="center" valign="top">
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="20"> <div align="center"><strong>修改业务定制
              </strong></div></td>
        </tr>
        <tr> 
          <form method="post" action="Manage_editJob.asp?no=eshop">
            <input type=hidden name=id value=<%=id%>>
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="2" cellpadding="3">
                  <tr> 
                    <td width="19%" height="25" bgcolor="#C0C0C0"> <div align="center">业务名称</div></td>
                    <td width="81%" bgcolor="#E3E3E3"> <input name="Duix" type="text" class="inputtext" id="Duix" value="<%=rs("Duix")%>" size="50" maxlength="50"></td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"> <div align="center">工作时日</div></td>
                    <td bgcolor="#E3E3E3"><input name="Rens" type="text" class="inputtext" id="Rens" value="<%=rs("Rens")%>" size="5" maxlength="30">
                      天</td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"> <div align="center">业务风格</div></td>
                    <td height="-4" bgcolor="#E3E3E3"> <input name="Did" type="text" class="inputtext" id="Did" value="<%=rs("Did")%>" size="50" maxlength="50"> 
                    </td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"><div align="center">制作费用</div></td>
                    <td height="-1" bgcolor="#E3E3E3"> <input name="Daiy" type="text" class="inputtext" id="Daiy" value="<%=rs("Daiy")%>" size="20" maxlength="50"></td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"> <div align="center">发布日期</div></td>
                    <td height="-3" bgcolor="#E3E3E3"> <%=Date()%></td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"><div align="center">业务演示</div></td>
                    <td height="0" bgcolor="#E3E3E3"><input name="Qix" type="text" class="inputtext" id="Qix" value="<%=rs("Qix")%>" size="50" maxlength="80">
                      </td>
                  </tr>
                  <tr> 
                    <td height="22" bgcolor="#C0C0C0"><div align="center">业务内容</div></td>
                    <td height="10" bgcolor="#E3E3E3"> <textarea name="Yaoq" cols="50" rows="8" class="inputtext" id="Yaoq"><%=rs("Yaoq")%></textarea></td>
                  </tr>
                  <tr> 
                    <td height="25" colspan="2" bgcolor="#E3E3E3"> <div align="center"> 
                        <input name="submit" type="submit" value="确定">
                        &nbsp; 
                        <input name="reset" type="reset" value="取消">
                      </div></td>
                  </tr>
                </table>
              </div></td>
          </form>
        </tr>
      </table> </td>
  </tr>
</table>
<!-- #include file="../Inc/Foot.asp" -->

⌨️ 快捷键说明

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