www.gusucode.com > 追梦翔飞数字报静态生成版 7.0 体验版码程序 > admin/ModifyNewsPaper.asp

    <%@language=vbscript codepage=936 %>
<!--#include file="Admin.asp" -->
<!--#include file="cf.asp" -->
<!--#include file="../include/conn.asp" -->
<!--#include file="../include/safe.asp"-->

<script language="javascript" src="js/addata.js"></script>
<%if request("no")="modi" then
BigClassIDss=request("BigClassID")
BigClassName=request("BigClassName")
url=request("url")
     sql="update bigclass set bigclassname='"&BigClassName&"',url='"&url&"'where BigClassID="&BigClassIDss&""
	 'response.write sql
	 'Response.End
     conn.execute(sql)
     conn.close
	 set conn=nothing
response.write "<script language='javascript'>" & chr(13)
		response.write "alert('刊期修改成功!');" & Chr(13)
		response.write "window.document.location.href='HotManage.asp';"&Chr(13)
		response.write "</script>" & Chr(13)
Response.End
end if
%>
<%
dim action,bigclassname,founderr,errmsg,BigClassIDrs
dim rs,sql
BigClassIDrs=request("BigClassID")

sql="select * from FangBao_BigClass where bigclassid="&BigClassIDrs
'response.write sql 
'response.End()
   set rs = conn.execute(sql)
     if rs.eof then
         response.write"<script language=javascript>alert('服务器出错,请联系管理员!');"
          response.write"javascript:history.go(-1)</script>"
     else
%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>

<link href="images/skin.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td width="1212" height="29" valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">报刊管理</div></td>
      </tr>
    </table></td>
    <td width="22" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="257" valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="257" border="0" cellpadding="0" cellspacing="0">
      <tr><form name="form1" method="post" action="ModifyNewsPaper.asp?no=modi">
        <td height="13" valign="top">&nbsp;</td>
      <tr>
        <td height="244" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
              <tr>
                <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;修改期刊</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="138"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="left_bt2">
		
              <tr>
                <td width="35%" height="30" align="right" class="left_txt2">报纸期数:</td>
                <td width="1%">&nbsp;</td>
                <td width="19%" height="30"> <input name="BigClassID" type="text" value="<%=rs("BigClassID")%>" id="BigClassID" size="30" maxlength="30" readonly> </td>
                <td width="45%" height="30" class="left_txt">此处不能修改               </td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">发行时间:</td>
                <td>&nbsp;</td>
                <td height="30"><input name="BigClassName" type="text" id="BigClassName" value="<%=rs("BigClassName")%>" size="30" maxlength="20" onFocus="setday(this)" /></td>
                <td height="30" class="left_txt">点击文本框选择</td>
              </tr>
            </table></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>
              <td width="44%" height="44" align="right"><input name="add" type="submit" value=" 修 改 "></td>
              <td width="2%" height="44" align="right">&nbsp;</td>
              <td width="54%" height="44"><input type="reset" value="取  消" name="B12" /></td>
            </tr>
            <tr>
              <td height="13" colspan="3">&nbsp;</td>
            </tr>
          </table></td>
      </tr></form>
    </table><%end if%></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>