<html>
<head>
<META content=ywnt,云网互动影视管理系统 name=keywords>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>云网互动影视6.0--会员帮助管理</title>
<LINK href="css/css.css" type=text/css rel=stylesheet>
</head>
<BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0">
<script language=JavaScript src='../Editor/language/schi/editor_lang.js'></script>
<script language=JavaScript src='../Editor/editor.js'></script>
<script language="JavaScript" src="YWNT_TMS_Inc/YWNT_TMS_Common.js"></script>
<!--#include file="../Conn.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" -->
<!--#include file="YWNT_TMS_inc/YWNT_TMS_Page.asp" -->
<%
'===================================================================================================================
'软件名称：云网影视管理系统
'Copyright (C) 2002-2007 ywnt.net  All rights reserved.
'产品咨询QQ：489234,2813712
'程序版权：云网互动科技有限公司
'程序开发：云网互动科技有限公司
'官方网站：http://www.ywnt.net 
'郑重声明:
'    1、免费版本请在程序首页保留版权信息，并做上本站LOGO友情连接,商业版本无此要求;
'    2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息；
'    3、云网互动科技有限公司保留此软件的法律追究权利
'===================================================================================================================
Call CheckLogin("UsersHelp")
sub EditSave()
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_UsersHelp where ID="&NoSqlHack(Request.Form("ID"))
		Rs.open sql,Conn,1,3
		RS("HelpHeading")=NoSqlHack(Request.Form("HelpHeading"))
		RS("HelpContent")=NoSqlHack(Request.Form("Content"))
		Rs.Update
		Rs.Close
		Set Rs = Nothing
		Call AddLog("修改用户帮助"&Request.Form("HelpHeading"),7)
		call Admin_ShowErr("<li>用户帮助修改成功</li>","Admin_UsersHelp.asp",1)
end sub
sub AddSave()
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_UsersHelp"
		Rs.open sql,Conn,1,3
		Rs.addnew
		RS("HelpHeading")=NoSqlHack(Request.Form("HelpHeading"))
		RS("HelpContent")=NoSqlHack(Request.Form("Content"))
		RS("HelpDate")=Now()
		Rs.Update
		Rs.Close
		Set Rs = Nothing
		Call AddLog("添加用户帮助"&Request.Form("HelpHeading"),7)
		call Admin_ShowErr("<li>用户帮助添加成功</li>","Admin_UsersHelp.asp",1)
end sub
sub Del()
	conn.execute "delete from YWNT_TMS_UsersHelp WHERE ID = "&NoSqlHack(Request("ID"))&""
	Call AddLog("删除用户帮助",7)
	call Admin_ShowErr("<li>用户帮助删除成功！</li>","Admin_UsersHelp.asp",1)
end sub%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td class=xingmu>会员帮助管理</td>
    </tr>
    <tr>
      <td class="hback"><a href="Admin_UsersHelp.asp">会员帮助管理首页</a> | <a href="Admin_UsersHelp.asp?Action=Add">会员帮助添加</a></td>
    </tr>
  </tbody>
</table>
<% Action=Trim(request("Action"))
Select Case Action
Case "Add"
	call Add()
Case "AddSave"
	call AddSave()
Case "Edit"
		Set Rs=Server.CreateObject(YWNT_TMS_RS)
		sql="select * from YWNT_TMS_UsersHelp where ID="&NoSqlHack(Request.QueryString("ID"))
		Rs.open sql,Conn,1,1
		YWNT_TMS_ID=RS("ID")
		YWNT_TMS_UsersHelpName=RS("HelpHeading")
		YWNT_TMS_HelpContent=RS("HelpContent")
		RS.close   
      	set RS=nothing
	call Edit()
Case "EditSave"
	call EditSave()
Case "Del"
	call Del()
Case else
	call List()
End Select
sub List()
Dim int_RPP
	int_RPP=GetConfig("PageNumber") '设置每页显示数目%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td width="5%" align="center" class=xingmu>ID</td>
      <td align="center" class=xingmu>帮助标题</td>
      <td width="15%" align="center" class=xingmu>添加时间</td>
	  <td width="10%" align="center" class=xingmu>操作</td>
    </tr>
		<%  Set Rs = server.CreateObject(YWNT_TMS_RS)
		sql="Select ID,HelpHeading,HelpDate from YWNT_TMS_UsersHelp Order by ID desc"
		Rs.open sql,Conn,1,1
	if Rs.eof then
	   Response.Write"<TR  class=""hback""><TD colspan=""4"" class=""hback"" height=""40"">没有记录。</TD></TR>"
	else
		Rs.PageSize=int_RPP
		cPageNo=NoSqlHack(Request.QueryString("Page"))
		If cPageNo="" Then cPageNo = 1
		If not isnumeric(cPageNo) Then cPageNo = 1
		cPageNo = Clng(cPageNo)
		If cPageNo>Rs.PageCount Then cPageNo=Rs.PageCount 
		If cPageNo<=0 Then cPageNo=1
		Rs.AbsolutePage=cPageNo 
	for i=1 to int_RPP
	 if Rs.eof Then exit For %> 
    <tr>
      <td height=32 align="center" class="hback"><%=RS("ID")%></td>
      <td height=32 class="hback"><%=RS("HelpHeading")%></td>
      <td align="center" class="hback"><%=RS("HelpDate")%></td>
	  <td align="center" class="hback"><A href="Admin_UsersHelp.asp?Action=Edit&ID=<%=RS("ID")%>">修改</A>｜<A href="Admin_UsersHelp.asp?Action=Del&ID=<%=RS("ID")%>">删除</A></td>
    </tr>
	<%Rs.MoveNext
	next 
	end if%>
	<tr align="right">
	<td height=32 colspan="4" class="hback"><% response.Write fPageCount(Rs,cPageNo) %></td>
	</tr>
  </tbody>
</table>
<%end sub
sub Add()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>添加会员帮助</td>
    </tr>
	 <form name="form" action="Admin_UsersHelp.asp?Action=AddSave" method="post">
    <tr>
      <td width="21%" height=32 align="right" class="hback">帮助标题：</td>
      <td height=7 class="hback"><input name="HelpHeading" type="text" id="HelpHeading" size="40"></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">帮助内容：</td>
      <td height=16 class="hback"><script>
		var oEdit1 = new InnovaEditor("oEdit1");
		oEdit1.arrStyle = [["BODY",false,"","font:12px verdana,arial,sans-serif;"]];
		oEdit1.height=400;
		oEdit1.cmdAssetManager="modalDialogShow('<%=GetConfig("WebiInstallDir")&GetConfig("AdminDir")%>Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',500,4100)";
		oEdit1.btnFlash=true;
		oEdit1.btnMedia=true;
		oEdit1.RENDER("");
	</script>
	<input type="hidden" name="Content"  id="Content" value=""></TD>
</td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input type="button" name="Submit" value="添 加" onClick="SubmitHelp();"></td>
    </tr>
	</form>
  </tbody>
</table>
<%end sub
sub Edit()%>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>修改会员帮助</td>
    </tr>
	 <form name="form" action="Admin_UsersHelp.asp?Action=EditSave" method="post">
    <tr>
      <td width="21%" height=32 align="right" class="hback">帮助标题：</td>
      <td height=7 class="hback"><input name="HelpHeading" type="text" id="HelpHeading" value="<%=YWNT_TMS_UsersHelpName%>" size="40"></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">帮助内容：</td>
      <td height=16 class="hback"><pre id="idTemporary" name="idTemporary" style="display:none"><%if YWNT_TMS_HelpContent<>"" then Response.Write Server.HTMLEncode(YWNT_TMS_HelpContent)%></pre>
        <script>
		var oEdit1 = new InnovaEditor("oEdit1");
		oEdit1.arrStyle = [["BODY",false,"","font:12px verdana,arial,sans-serif;"]];
		oEdit1.height=400;
		oEdit1.cmdAssetManager="modalDialogShow('<%=GetConfig("WebiInstallDir")&GetConfig("AdminDir")%>Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',500,4100)";
		oEdit1.btnFlash=true;
		oEdit1.btnMedia=true;
		oEdit1.RENDER(document.getElementById("idTemporary").innerHTML);
	</script>
	<input type="hidden" name="Content"  id="Content" value=""></TD>
</td>
    </tr>
    <tr>
      <td height=32 colspan="2" align="center" class="hback"><input name="ID" type="hidden" value="<%=YWNT_TMS_ID%>"><input type="button" name="Submit" value="修 改" onClick="SubmitHelp();"></td>
    </tr>
	</form>
  </tbody>
</table>
<%end sub
call connclose()%>
</BODY></HTML>
