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

📄 aboutedit.asp

📁 相对于流通企业
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┐
'┊                              ┊
'┊       速群企业网站管理系统(www.suqun.net)     ┊
'┊                              ┊
'  版权所有 Suqun.Net
'
'  程序制作 速群网络
'       Add:江西省九江市速群网络科技
'       Tel:13879284993
'       E-m:suqun@suqun.net
'       Q Q:190771179
'
'  相关网址 [产品介绍]http://www.suqun.net
'       [支持论坛]http://bbs.suqun.net
'
'  演示网址 http://www.suqun.net
'┊                              ┊
'└┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
%>
<% Option Explicit %>
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<META NAME="copyright" CONTENT="Copyright 2004-2008 - Suqun.Net-STUDIO" />
<META NAME="Author" CONTENT="速群网络科技,www.suqun.net" />
<META NAME="Keywords" CONTENT="" />
<META NAME="Description" CONTENT="" />
<TITLE>编辑企业</TITLE>
<link rel="stylesheet" href="Images/CssAdmin.css">
<script language="javascript" src="../Script/Admin.js"></script>
</HEAD>
<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/ConnSiteData.asp" -->
<!--#include file="CheckAdmin.asp"-->
<%
if Instr(session("AdminPurview"),"|11,")=0 then 
  response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
  response.end
end if
'========判断是否具有管理权限
%>
<BODY>
<% 
dim Result
Result=request.QueryString("Result")
dim ID,AboutNameSi,AboutNameTr,AboutNameEn,ViewFlagSi,ViewFlagTr,ViewFlagEn,ContentSi,ContentTr,ContentEn
dim GroupID,GroupIdName,Exclusive,ChildFlag
ID=request.QueryString("ID")
call AboutEdit() 
%>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#6298E1">
  <tr>
    <td height="24" nowrap><font color="#FFFFFF"><img src="Images/Explain.gif" width="18" height="18" border="0" align="absmiddle">&nbsp;<strong>企业信息:添加,修改介绍企业相关的内容</strong></font></td>
  </tr>
  <tr>
    <td height="24" align="center" nowrap  bgcolor="#EBF2F9"><a href="AboutEdit.asp?Result=Add" onClick='changeAdminFlag("添加企业信息")'>添加企业信息</a><font color="#0000FF">&nbsp;|&nbsp;</font><a href="AboutList.asp" onClick='changeAdminFlag("企业信息")'>查看企业信息</a></td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#6298E1">
  <form name="editAboutForm" method="post" action="AboutEdit.asp?Action=SaveEdit&Result=<%=Result%>&ID=<%=ID%>">
  <tr>
    <td height="24" nowrap bgcolor="#EBF2F9"><table width="100%" border="0" cellpadding="0" cellspacing="0" id=editProduct idth="100%">

      <tr>
        <td width="120" height="20" align="right">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="20" align="right">简体名称:</td>
        <td><input name="AboutNameSi" type="text" class="textfield" id="AboutNameSi" style="WIDTH: 240;" value="<%=AboutNameSi%>" maxlength="100">&nbsp;显示:<input name="ViewFlagSi" type="checkbox" style='HEIGHT: 13px;WIDTH: 13px;' value="1" checked <%if ViewFlagSi then response.write ("checked")%>>
&nbsp;*&nbsp;不少于3个字符</td>
      </tr>
      <tr>
        <td height="20" align="right">繁体名称:</td>
        <td><input name="AboutNameTr" type="text" class="textfield" id="AboutNameTr" style="WIDTH: 240;" value="<%=AboutNameTr%>" maxlength="100">&nbsp;显示:<input name="ViewFlagTr" type="checkbox" value="1" style='HEIGHT: 13px;WIDTH: 13px;' <%if ViewFlagTr then response.write ("checked")%>></td>
      </tr>
      <tr>
        <td height="20" align="right">英文名称:</td>
        <td><input name="AboutNameEn" type="text" class="textfield" id="AboutNameEn" style="WIDTH: 240;" value="<%=AboutNameEn%>" maxlength="100">&nbsp;显示:<input name="ViewFlagEn" type="checkbox" value="1" style='HEIGHT: 13px;WIDTH: 13px;' <%if ViewFlagEn then response.write ("checked")%>></td>
      </tr>
      <tr>
        <td height="20" align="right">标  记:</td>
        <td><input name="ChildFlag" type="checkbox" value="1" style='HEIGHT: 13px;WIDTH: 13px;' <%if ChildFlag then response.write ("checked")%>>&nbsp;分页</td>
      </tr>
      <tr>
        <td height="20" align="right">查看权限:</td>
        <td><select name="GroupID" class="textfield">
          <% call SelectGroup() %>
          </select>
          <input name="Exclusive" type="radio" value="&gt;="  <%if Exclusive="" or Exclusive=">=" then response.write ("checked")%>> 隶属<input type="radio"  <%if Exclusive="=" then response.write ("checked")%> name="Exclusive" value="=">专属(隶属:权限值≥可查看,专属:权限值=可查看)</td>
      </tr>
      <tr>
        <td height="20" align="right" valign="top">简体内容:<br>
		  <img title="点击进入可视化查看、编辑环境..." src="Images/Edit.gif" width="51" height="20" style="cursor:hand" onClick="OpenDialog('../Editor/EditorDialog.html?lnk=ContentSi&file=Editor_1.html',800,520);">
        <td><textarea name="ContentSi" rows="8" class="textfield" id="ContentSi" style="WIDTH: 86%;" readonly><%=ContentSi%></textarea></td>
      </tr>
      <tr>
        <td height="20" align="right" valign="top">繁体内容:<br>
          <img title="点击进入可视化查看、编辑环境..." src="Images/Edit.gif" width="51" height="20" style="cursor:hand" onClick="OpenDialog('../Editor/EditorDialog.html?lnk=ContentTr&file=Editor_1.html',800,520);"></td>
        <td><textarea name="ContentTr" rows="8" class="textfield" id="ContentTr" style="WIDTH: 86%;" readonly><%=ContentTr%></textarea></td>
      </tr>
      <tr>
        <td height="20" align="right" valign="top">英文内容:<br>
          <img title="点击进入可视化查看、编辑环境..." src="Images/Edit.gif" width="51" height="20" style="cursor:hand" onClick="OpenDialog('../Editor/EditorDialog.html?lnk=ContentEn&file=Editor_1.html',800,520);"></td>
        <td><textarea name="ContentEn" rows="8" class="textfield" id="ContentEn" style="WIDTH: 86%;" readonly><%=ContentEn%></textarea></td>
      </tr>
      <tr>
        <td height="30" align="right">&nbsp;</td>
        <td valign="bottom"><input name="submitSaveEdit" type="submit" class="button"  id="submitSaveEdit" value="保存" style="WIDTH: 80;" ></td>
      </tr>
      <tr>
        <td height="20" align="right">&nbsp;</td>
        <td valign="bottom">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  </form>
</table>
</BODY>
</HTML>
<%
sub AboutEdit()
  dim Action,rsCheckAdd,rs,sql
  Action=request.QueryString("Action")
  if Action="SaveEdit" then '保存编辑管理员信息
    set rs = server.createobject("adodb.recordset")
    if len(trim(request.Form("AboutNameSi")))<3 then
      response.write ("<script language=javascript> alert('""简体""名称为必填项目!');history.back(-1);</script>")
      response.end
    end if
    if request.Form("ViewFlagTr")=1 then
      if len(trim(request.Form("AboutNameTr")))<3 then
      response.write ("<script language=javascript> alert('您已经选择了""繁体""显示,因此繁体名称必填!');history.back(-1);</script>")
      response.end
      end if
    end if
    if request.Form("ViewFlagEn")=1 then
      if len(trim(request.Form("AboutNameEn")))<3 then
      response.write ("<script language=javascript> alert('您已经选择了""英文""显示,因此英文名称必填!');history.back(-1);</script>")
      response.end
      end if
    end if
    if Result="Add" then '创建网站管理员
	  sql="select * from suqun_About"
      rs.open sql,conn,1,3
      rs.addnew
      rs("AboutNameSi")=trim(Request.Form("AboutNameSi"))
      rs("AboutNameTr")=trim(Request.Form("AboutNameTr"))
      rs("AboutNameEn")=trim(Request.Form("AboutNameEn"))
	  if Request.Form("ViewFlagSi")=1 then
        rs("ViewFlagSi")=Request.Form("ViewFlagSi")
	  else
        rs("ViewFlagSi")=0
	  end if
	  if Request.Form("ViewFlagTr")=1 then
        rs("ViewFlagTr")=Request.Form("ViewFlagTr")
	  else
        rs("ViewFlagTr")=0
	  end if
	  if Request.Form("ViewFlagEn")=1 then
        rs("ViewFlagEn")=Request.Form("ViewFlagEn")
	  else
        rs("ViewFlagEn")=0
	  end if
	  rs("ContentSi")=Request.Form("ContentSi")
	  rs("ContentTr")=Request.Form("ContentTr")
	  rs("ContentEn")=Request.Form("ContentEn")
      GroupIdName=split(Request.Form("GroupID"),"┎╂┚")
	  rs("GroupID")=GroupIdName(0)
	  rs("Exclusive")=trim(Request.Form("Exclusive"))
	  if Request.Form("ChildFlag")=1 then
        rs("ChildFlag")=Request.Form("ChildFlag")
	    rs("Sequence")=999
	  else
        rs("ChildFlag")=0
	    rs("Sequence")=99
	  end if
	  rs("AddTime")=now()
	end if  
	if Result="Modify" then '修改网站管理员
      sql="select * from suqun_About where ID="&ID
      rs.open sql,conn,1,3
      rs("AboutNameSi")=trim(Request.Form("AboutNameSi"))
      rs("AboutNameTr")=trim(Request.Form("AboutNameTr"))
      rs("AboutNameEn")=trim(Request.Form("AboutNameEn"))
	  if Request.Form("ViewFlagSi")=1 then
        rs("ViewFlagSi")=Request.Form("ViewFlagSi")
	  else
        rs("ViewFlagSi")=0
	  end if
	  if Request.Form("ViewFlagTr")=1 then
        rs("ViewFlagTr")=Request.Form("ViewFlagTr")
	  else
        rs("ViewFlagTr")=0
	  end if
	  if Request.Form("ViewFlagEn")=1 then
        rs("ViewFlagEn")=Request.Form("ViewFlagEn")
	  else
        rs("ViewFlagEn")=0
	  end if
	  rs("ContentSi")=Request.Form("ContentSi")
	  rs("ContentTr")=Request.Form("ContentTr")
	  rs("ContentEn")=Request.Form("ContentEn")
      GroupIdName=split(Request.Form("GroupID"),"┎╂┚")
	  rs("GroupID")=GroupIdName(0)
	  rs("Exclusive")=trim(Request.Form("Exclusive"))
	  if Request.Form("ChildFlag")=1 then
        rs("ChildFlag")=Request.Form("ChildFlag")
	    rs("Sequence")=100
	  else
        rs("ChildFlag")=0
	  end if
	end if
	rs.update
	rs.close
    set rs=nothing 
    response.write "<script language=javascript> alert('成功编辑企业信息!');changeAdminFlag('企业信息列表');location.replace('AboutList.asp');</script>"
  else '提取管理员信息
	if Result="Modify" then
      set rs = server.createobject("adodb.recordset")
      sql="select * from suqun_About where ID="& ID
      rs.open sql,conn,1,1
	  AboutNameSi=rs("AboutNameSi")
	  AboutNameTr=rs("AboutNameTr")
	  AboutNameEn=rs("AboutNameEn")
	  ViewFlagSi=rs("ViewFlagSi")
	  ViewFlagTr=rs("ViewFlagTr")
	  ViewFlagEn=rs("ViewFlagEn")
	  GroupID=rs("GroupID")
	  Exclusive=rs("Exclusive")
      ContentSi=rs("ContentSi")
      ContentTr=rs("ContentTr")
      ContentEn=rs("ContentEn")
	  ChildFlag=rs("ChildFlag")
	  rs.close
      set rs=nothing 
	end if
  end if
end sub
%>
<% 
sub SelectGroup()
  dim rs,sql
  set rs = server.createobject("adodb.recordset")
  sql="select GroupID,GroupNameSi from suqun_MemGroup"
  rs.open sql,conn,1,1
  if rs.bof and rs.eof then
    response.write("未设组别")
  end if
  while not rs.eof
    response.write("<option value='"&rs("GroupID")&"┎╂┚"&rs("GroupNameSi")&"'")
    if GroupID=rs("GroupID") then response.write ("selected")
    response.write(">"&rs("GroupNameSi")&"</option>")
    rs.movenext
  wend
  rs.close
  set rs=nothing
end sub
%>

⌨️ 快捷键说明

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