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

📄 anli_add.asp

📁 网站的后台管理代码......内容比较全面....新手比较适合
💻 ASP
字号:
<%
'====================================================================
'
'           中国企业平台后台管理系统  版权所有:中国企业平台
'
'                公司网址 http://www.cnept.net
'
'                        版权所有 翻版必究
'====================================================================
%>
<!--#include file="../inc/adconn.asp"-->
<!--#include file="../css.asp"-->
<% set rs=server.CreateObject("adodb.recordset") %>
<%
if session("admin_name")="" then 
response.end
end if%>
<% dim title,pic,content,sclass
if request("action")="save" then 
title=trim(request.Form("title"))
content=trim(request.Form("hw_content"))
sclass=request.Form("sclass")
host=request.Form("host")
tuijian=request.Form("tuijian")
pic=request.Form("pic")
sql="select * from anli order by id desc"
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("content")=content
rs("sclass")=sclass
rs("tuijian")=tuijian
rs("host")=host
rs("pic")=pic
rs.update
response.Write "添加案例成功!!"
	response.Write "<a href='anli_manage.asp'>"
	Response.Write "返回"
	Response.Write("</a>")
	response.End
%>
<% rs.close
set rs=nothing
conn.close
set conn=nothing
 %>
	<%end if%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<title>添加案例</title>
<link rel="stylesheet" type="text/css" href="style.css">

<form method="POST" name="form2" action="anli_add.asp?action=save">
<INPUT name=upfile onchange=return(OnUpFile()) type=hidden>
<INPUT name=upfile2 onchange=return(OnUpFile2()) type=hidden>
  <TABLE cellSpacing=1 cellPadding=0 width="550" align=center bgColor=#999999 
border=0>
    <TBODY> 
    <TR> 
        <TD width="735" bgcolor="f0f0f0" id=maintitleback> 
          <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
          <TBODY>
            <TR> 
                <TD width="100%" height="30" valign="bottom" bgcolor="#FFCC00" id=maintitle>案例添加 -&gt;<b>所有选项都必须填写</b></TD>
            </TR>
          </TBODY>
        </TABLE>
        </TD>
    </TR>
    <TR> 
      <TD id=mainbg> 
	  
	    <TABLE cellSpacing=1 cellPadding=4 width="100%" border=0 height="249">
            <TBODY>
              <TR> 
                <TD height="30" noWrap 
          background=../images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF">案例名称</font></div></TD>
                <TD height="30" noWrap 
          background=../images/pics/tile_sub.gif id=titlemedium></label>
                  <font color=#333333>
                  <input type="text" name="title">
                  *</font>
                  <div align="center"></div> </TD>
              </TR>
			                <TR>
			                  <TD bgColor=#ffffff height="30">网 址</TD>
			                  <TD height="30" align=left bgColor=#ffffff><input name="host" type="text" id="host" value="http://">
			                    *</TD>
                            <TR>
                              <TD bgColor=#ffffff height="30">案例图片</TD>
                              <TD height="30" align=left bgColor=#ffffff><input name="pic" type="text" id="pic"></TD>
                            <TR>
                              <TD bgColor=#ffffff height="30">上传图片</TD>
                              <TD height="30" align=left bgColor=#ffffff><% call lanyuhtml("upload.asp",400,25)%></TD>
              <TR> 
                <TD bgColor=#ffffff height="30"> <div align="center" style="color: #000000">案例类型</div></TD>
                <TD height="30" align=left bgColor=#ffffff><input type="text" name="sclass">
                  *</TD>
              <TR> 
                <TD bgColor=#ffffff height="30"> 
                  <div align="center" style="color: #000000">内容简介</div></TD>
                <TD height="30" align=center bgColor=#ffffff><input type="hidden" name="hw_content">
                  <iframe id="eWebEditor1" src="../eWebEditor/ewebeditor.asp?id=hw_content&style=s_blue" frameborder="0" scrolling="no" width="550" height="350"></iframe>
                  <font color=#ff6600> *</font></TD>
              </TR>
              <TR> 
                <TD height="30" colspan="2" bgColor=#ffffff> <div align="center">
                  <label>
                  <input type="radio" name="tuijian" value="1">
                  推荐
                  <input type="radio" name="tuijian" value="0">
                  不推荐</label>
                </div></TD>
              </TR>
              <TR> 
                <TD id=mainfoot colSpan=2 height="30"> <div align="center"> 
                    <table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td height="25"> <div align="center"> 
						    <input name=submit2 type=image src="../IMAGES/pics/s_button000.gif" alt=进入 align=absMiddle width="45" height="20" cache tppabs="" >
                          </div></td>
                        <td> <div align="center"> 
                            <input type="reset" value="全部重写" name="B22" class=input>
                          </div></td>
                      </tr>
                    </table>
                  </div></TD>
              </TR>
            </TBODY>
          </TABLE>
		</TD>
    </TR>
  </TBODY>
</TABLE></form>  
</body>
<%
sub lanyuhtml(addr,w,h)
Response.write("<IFRAME name='i1' src='"&addr&"'; frameBorder=0 width="&w&" scrolling=no height="&h&"> </IFRAME>")
end sub%>



⌨️ 快捷键说明

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