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

📄 admin_logadd.asp

📁 mlm双轨制直销系统V8.0免费版 可用于: 1、直拨、回拨电话卡公司。 2、保健品、药品公司。 3、在线销售商品等等。 4、其他类型用到双轨制模式的线上开盘公司。
💻 ASP
字号:
<!--#include file="include/conn.asp"-->
<!--#include file="inc/error.asp"-->
<!--#include file="inc/FORMAT.asp"-->
<!--#include file="inc/UBBshow.asp"-->
<!--#include file="inc/UBB_news.asp"-->
<%if request.Form("action")="newart" then
        sql="select * from log"
        set rs=server.createobject("adodb.recordset")
        rs.open sql,conn,1,3
        dim zhu,cid,title,content
        title=trim(replace(request.form("art_title"),"'",""))
        content=replace(request.form("art_content"),"'","")
        rs.addnew
      
        if title="" then
             founderr=true
             errmsg=errmsg+"<br>"+"<li>你必须输入故事的标题!"
        else
             rs("l_title")=title
         end if
         if content="" then
             founderr=true
             errmsg=errmsg+"<br>"+"<li>你必须输入故事内容!"
         else
             rs("l_content")=content
         end if

         if not founderr then
		      rs("u_id")=session("u_id")
              rs.update
              rs.close
              set rs=nothing
              response.write"<script>alert(""添加成功,确认!"");location.href=""admin_logadd.asp"";</script>"
         else
              call diserror()
              response.end
          end if
%>
<%else%>
<BR><BR><BR><BR>
<table width="75%" border="0" align="center" cellpadding="4" cellspacing="1" bordercolor="#C0C0C0" bgcolor="#000000" style="border-collapse: collapse">
        <form name="form1" method="post" action="admin_logadd.asp">
          <tr> 
            <td align="center" bgcolor="#E8E8E8"><a name="newnews"  style="font-size: 9pt">添加故事</a></font></td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF" class="chinese"><span  style="font-size: 9pt">标题</span>-
            <input type="text" name="art_title" class="textarea" size="50">            </td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF" class="chinese"><%call ubbshow()%> </td>
          </tr>
          <tr> 
            <td bgcolor="#FFFFFF" class="chinese">
              <textarea name="art_content" cols="84" rows="12" class="textarea" wrap="OFF"></textarea>
            </td>
          </tr>
          <tr> 
            <td bgcolor="#F5F5F5" class="chinese" height="30" align="center">
              <input type="submit" name="Submit2" value="确定新增" class="button">
              <input type="reset" name="Reset" value="清空重填" class="button">
            </td>
          </tr>
		  <input type="hidden" name="action" value="newart">
        </form>
</table>
<%end if%>

⌨️ 快捷键说明

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