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

📄 admininfoedit.asp

📁 程序名称:酷虎网校友录 V1.0 (商业版)*(修改版) * 本软体为商业软件
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/sessionadmin.asp"-->
<%
IF Request.Form.Count<>0 Then
Suc=True
Title=Request.Form("Title")
Mood=Request.Form("mood")
Content=Request.Form("Content")
Preface=Request.Form("Preface")
If Title="" Then
	Suc=False
	ErrInfo=ErrInfo & "·请填写信息标题!<BR>"
End IF
IF Preface="" Then
	Suc=False
	ErrInfo=ErrInfo & "·请填写信息前言!<BR>"
Else
	IF LEN(Preface)>58 Then
		Preface=Mid(Preface,1,58)
	End IF
End IF
IF Content="" Then
	Suc=False
	ErrInfo=ErrInfo & "·请填写信息内容!<BR>"
Else
	IF LEN(Content)>15000 Then
		Suc=False
		ErrInfo=ErrInfo & "·信息内容不能超过15000个字符!<BR>"
	End IF
End IF
IF Suc Then
SQL="Select * From 信息发布 Where ID=" & Int(Request("ID"))
Set RS=Server.CreateObject("ADODB.Recordset")
RS.Open SQL,Connstr,3,2
RS("心情符")=Mood
RS("主题")=Title
RS("内容")=Content
RS("前言")=Preface
RS.Update
End IF
End IF
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%IF Request.Form.Count<>0 And Suc=True Then%>
<meta http-equiv="refresh" content="3;url=admininfo.asp">
<%End IF%>
<!--#include file="inc/css.asp"-->
<title><%=WebsiteName%></title>
</head>
<body topmargin="0" background="images/bg.gif">
<!--#include file="admintop.asp"-->
<div align="center">
  <center>
  <table border="0" width="755" cellspacing="0" cellpadding="0">
    <tr>
      <td width="189" style="background-color: #FFFFFF; border-left: 1 solid #000000; border-top: 1 solid #000000; border-bottom: 1 solid #000000" valign="top"> 
  		<!--#include file="aleft.asp"-->
      </td>
      <td width="562" style="background-color: #FFFFFF; border: 1 solid #000000" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" height="25" bgcolor="#EDEDED" style="border-bottom: 1 solid #000000;">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%">
                    <p align="center">信息管理</td>                 
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="100%" valign="top" height="8">
            </td>
          </tr>
          <%IF Request.Form.Count=0 Then%>
          <form action="" method="post">
          <tr>
            <td width="100%" valign="top" height="10"><div align="center">
                <center>
                <table border="0" width="90%" cellspacing="0" cellpadding="0" style="border: 1 solid #000000" height="136">
                  <tr>
                    <td width="500" background="images/bg2.gif" height="22" colspan="2">
                      <p align="center"><b><font color="#545454">信 息 发 布</font></b></td>                                            
                  </tr>
                </center>
                <%
                ID=Request("ID")
             	IF ID="" Then
             	Response.Redirect "error.asp"
             	End IF
                SQL="Select * From 信息发布 Where ID=" & Int(ID) 
                Set RS=Server.CreateObject("ADODB.Recordset")
                RS.Open SQL,Connstr,1,1
                IF RS.Eof Then
                Response.Redirect "error.asp"
                End IF
                %>
                  <tr>
                    <td width="125" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p align="center">标&nbsp; 题</p>                                                           
                    </td>
                    <td width="377" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc" valign="middle">
                    <p style="margin-left: 5">
                    <input type=text name="Title" size=12 maxlength=24 style="background-attachment: scroll; background-repeat: repeat; font-size: 9pt; height: 18; width: 218; background-color: #FFFFFF; border: 1 solid #000000; background-position: none 0%" value="<%=RS("主题")%>">
                    </td>
                  </tr>
                  <tr>
                    <td width="125" height="22" bgcolor="#F6F6F6" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p align="center">心情符
                    </td>
                    <td width="377" height="22" bgcolor="#F6F6F6" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <div align="right">
                      <table border="0" width="98%" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="6%"><input type="radio" value="1" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/1.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="2" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/2.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="3" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/3.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="4" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/4.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="5" name="mood" ></td>
                          <td width="14%">
                            <p style="margin-top: 2"><img border="0" src="images/face/5.gif" width="20" height="20"></td>
                        </tr>
                        <tr>
                          <td width="6%"><input type="radio" value="6" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/6.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="7" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/7.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="8" name="mood" checked ></td>
                          <td width="14%"><img border="0" src="images/face/8.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="9" name="mood" ></td>
                          <td width="14%"><img border="0" src="images/face/9.gif" width="20" height="20"></td>
                          <td width="6%"><input type="radio" value="10" name="mood" ></td>
                          <td width="14%">
                            <p style="margin-bottom: 2"><img border="0" src="images/face/10.gif" width="20" height="20"></td>
                        </tr>
                      </table>
                    </div>
                    </td>
                  </tr>
                  <tr>
                    <td width="125" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p align="center">前&nbsp; 言                                                                    
                    </td>
                    <td width="377" height="25" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p style="margin-left: 5; margin-top: 3; margin-bottom: 3">
                    <textarea rows="3" name="Preface" cols="45"><%=RS("前言")%></textarea>
                    </p>
                    </td>
                  </tr>
                  <tr>
                    <td width="125" height="22" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p align="center">内&nbsp; 容                                                                     
                    </td>
                    <td width="377" height="22" bgcolor="#EDEDED" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">
                    <p style="margin-left: 5; margin-top: 3; margin-bottom: 3"><textarea rows="7" name="Content" cols="45"><%=RS("内容")%></textarea></p>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" width="500">
                      <p align="center" style="margin-top: 5; margin-bottom: 5"> <input type="submit" name="submit" value=" 提 交 " style="background-color: #DDDDDD; background-repeat: repeat; background-attachment: scroll; font-size: 9pt; height: 20; width: 75; border: 1px groove #000000; background-position: 0% 50%">&nbsp;                                   
                      <input type="reset" name="Reset" value=" 重 置 " style="background-color: #DDDDDD; background-repeat: repeat; background-attachment: scroll; font-size: 9pt; height: 20; width: 75; border: 1px groove #000000; background-position: 0% 50%">           
                      &nbsp;</td>                                             
                  </tr>
                </table>
              </div></td>
          </tr>
          </form>
          <%Else%>
          <%IF Suc=False Then%>
          <tr>
            <td width="100%" valign="top"><div align="center">
              <center>
              <table border="0" width="90%" cellspacing="0" cellpadding="0" style="border: 1 solid #000000">
                <tr>
                  <td width="100%" background="images/bg2.gif" height="22" colspan="2">
                    <p align="center"><b><font color="#FF0000">信息修改出错</font></b></td>
                </tr>
                <tr>
                  <td width="100%" colspan="2">
                    <p style="line-height: 150%; margin-left: 50; margin-top: 2; margin-bottom: 2"><font color="#FF0000"><%=ErrInfo%></font></td>
                </tr>
              </center>
              <tr>
                <td width="40%" height="22" background="images/bg3.GIF" valign="bottom">
                  <p align="right"><img border="0" src="images/go.gif" width="15" height="15"></td>
                <center>
                <td width="60%" height="22" background="images/bg3.GIF" valign="bottom"><a href="javascript:history.back()">返回上一页重新填写</a></td>
                </tr>
              </table>
              </center>
            </div></td>
          </tr>
          <%Else%>
          <tr>
            <td width="100%" valign="top"><div align="center">
              <center>
              <table border="0" width="90%" cellspacing="0" cellpadding="0" style="border: 1 solid #000000">
                <tr>
                  <td width="100%" background="images/bg2.gif" height="22">
                    <p align="center"><b><font color="#FF0000">信息修改成功</font></b></td>
                </tr>
                <tr>
                  <td width="100%">
                    <p style="line-height: 150%; margin-top: 20; margin-bottom: 20" align="center"><font color="#FF0000">恭喜您,您已经成功的修改信息,三秒钟后系统自动返回!</font><br>
                    [<a href="admininfo.asp">返回信息修改首页</a>]</td>                       
                </tr>
              </center>
                <center>
              </table>
              </center>
            </div></td>
          </tr>
          <%End IF%>
          <%End IF%>
          <tr>
            <td width="100%" valign="top">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
<!--#include file="bottom.asp"-->
</body>

</html>

⌨️ 快捷键说明

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