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

📄 web_company_videomanage.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="Web_Session.asp" -->

<% 
Dim Action,Comid,PageNo
Dim TypeId,TypeName,News
'//检测是否跨站
Call Check_url()
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"110") <= 0 Then 
  Call CloseDB()
  Response.write "对不起!您没有访问该页面的权限..."
  Response.End()
End If
Action = Replace_text(request("action"))
Comid  = Replace_text(request("Comid"))
PageNo = Replace_text(request("pageno"))

Select Case Action
 Case "edit"
  Call Edit_Submit() '//跳转到编辑函数
End Select


 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../CSS/css.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" src="../js/jsdate.js"></script>
<body leftmargin="0" topmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5"></td>
  </tr>
  <tr> 
    <td height="25" bgcolor="fb7a03">&nbsp;<font color="#FFFFFF">::<strong>企业视频操作</strong></font></td>
  </tr>
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td align="left"> <table width="60%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">
        <tr> 
          <td bgcolor="#FFFFFF">
		  <table width="100%" border="0" cellspacing="1" cellpadding="4">
              <% 	
'查找会员的数据  
 Set Rs = Conn.Execute("Select Username,CompanyName,Email,Nc_Video,Video_Date,Video_EndDate,Video_File From [pH_Company_Base] Where Comid='"&Comid&"'")
 If Not Rs.Eof Then
  Username      = Rs(0) 
  CompanyName   = Rs(1)
  Email         = Rs(2)
  Nc_Video      = Rs(3)
  Video_Date    = Rs(4)
  Video_EndDate = Rs(5)
  Video_File    = Rs(6)
  
%>
              <form action="?action=edit" method="post" name="up">
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">企业名称:</td>
                  <td bgcolor="eff0eb"><%= CompanyName %></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">企业帐号:</td>
                  <td bgcolor="eff0eb"><%= Username %></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">企业视频:</td>
                  <td bgcolor="eff0eb">
				    <input type="radio" name="video" value="1" <% If Nc_Video = True Then Response.write "Checked" %>>有
                    <input type="radio" name="video" value="0" <% If Nc_Video = False Then Response.write "Checked" %>>没有
					
					</td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">开始时间:</td>
                  <td bgcolor="eff0eb"><input name="begindate" type="text" id="begindate" size="16" maxlength="30" onclick="SD(this,'document.all.begindate')" value="<%= Video_Date %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">截止时间:</td>
                  <td bgcolor="eff0eb"><input name="enddate" type="text" id="enddate" size="16" maxlength="30" onclick="SD(this,'document.all.enddate')" value="<%= Video_EndDate %>"> 
                  </td>
                </tr>
                <tr bgcolor="eff0eb">
                  <td height="25" align="right" bgcolor="eff0eb">视频文件:</td>
                  <td bgcolor="eff0eb"><input name="url" type="text" id="url" size="30" maxlength="80" value="<%= Video_File %>"> 
                    <input type="button" name="bnt1" value="上传文件" onClick="window.open('Upload_flash.asp?formname=up&editname=url&uppath=../UpLoadFiles/CompanyVideo&filelx=wmv','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" class="i2"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">&nbsp; 
                  </td>
                  <td bgcolor="eff0eb"><input type="submit" name="Submit" value="保 存"> 
                    <input name="comid" type="hidden" id="comid" value="<%= Comid %>"> 
                    <input name="pageno" type="hidden" id="pageno" value="<%= PageNo %>"> 
                    <input name="email" type="hidden" id="email" value="<%= Email %>"> 
                    <input name="companyname" type="hidden" id="companyname" value="<%= Companyname %>"> 
                  </td>
                </tr>
              </form>
              <% 
 Else
 %>
              <tr bgcolor="eff0eb"> 
                <td height="25" colspan="2" bgcolor="eff0eb">没有找到该企业!</td>
              </tr>
              <% 
 End if
 Rs.Close
 Set Rs = Nothing
 %>
            </table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<% 
Sub Edit_Submit() '修改密码
 Comid       = Replace_text(request("Comid"))
 PageNo      = Replace_text(request("PageNo"))
 Password    = Replace_text(request("Password"))
 Email       = Replace_text(request("Email"))
 CompanyName = Replace_text(request("CompanyName"))
 Video       = Replace_text(request("Video"))
 BeginDate   = Replace_text(request("BeginDate"))
 EndDate     = Replace_text(request("EndDate"))
 Url         = Replace_text(request("Url")) 
 If Url <> "" Then Url = Replace(Url,"../UpLoadFiles/CompanyVideo/","")
 
 '保存数据
 SQL = "UPdate [pH_Company_Base] Set Nc_Video="&Video&",Video_Date='"&BeginDate&"',Video_EndDate='"&EndDate&"',Video_File='"&Url&"' Where Comid='"&Trim(Comid)&"'"
 Conn.Execute(SQL)
 '发送邮件
 HtmlStr = "您好,我们是"&Cls_WebName&",我们的工作人员已经为您的企业在"&Cls_WebName&"上做好视频信息,请您及时登陆网站进行审核!"
 Call SendEmail(Email,HtmlStr,"您的企业视频制作成功")
 
 Response.write "<script language=JavaScript>alert('设置成功!');location.href='"&PageNo&"';</script>"
End Sub

Call CloseDB()
 %>

⌨️ 快捷键说明

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