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

📄 web_person_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,Perid,PageNo
Dim TypeId,TypeName,News
'//检测是否跨站
Call Check_url()
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"123") <= 0 Then 
  Call CloseDB()
  Response.write "对不起!您没有访问该页面的权限..."
  Response.End()
End If
Action = Replace_text(request("action"))
Perid  = Replace_text(request("Perid"))
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>
<script language="JavaScript">

function theForm_Submit(id)
{
		
		if (id=="video")
		{
		    up.target='_self';
			up.action="Web_Person_Option.asp?param=video&perid=<%= perid %>&pageno=Web_Person_VideoManage.asp?perid=<%= perid %>"
			up.submit();	   
		}			
		
}

</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="100%" 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 B.Username,I.RealName,B.UserEmail,I.Nc_Video,I.Video_Date,I.Video_EndDate,I.Video_File,I.Video_FilePath,I.Video_PhotoUrl,I.Video_BestFlag From pH_Person_Base As B,pH_Person_Info As I Where B.Perid=I.Perid And B.Perid='"&Perid&"'")
 If Not Rs.Eof Then
  Username        = Rs(0) 
  RealName        = Rs(1)
  Email           = Rs(2)
  Nc_Video        = Rs(3)
  Video_Date      = Rs(4)
  Video_EndDate   = Rs(5)
  Video_File      = Rs(6)
  Video_FilePath  = Rs(7)
  Video_PhotoUrl  = Rs(8)
  Video_BestFlag  = Rs(9)
  
  If Video_FilePath <> "" Then
   Video_Str = "<a href=""../Video/Resume/"&Video_FilePath&""" target=""_blank"">"&Cls_WebUrl&"Video/Resume/"&Video_FilePath&"</a>"
  Else
   Video_Str = "没有设置视频简历"
  End if
%>
              <form action="?action=edit" method="post" name="up">
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">姓 
                    名:</td>
                  <td bgcolor="eff0eb"><%= RealName %></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 type="radio" name="best" value="1" <% If Video_BestFlag = True Then Response.write "Checked" %>>
                    <input type="radio" name="best" value="0" <% If Video_BestFlag = 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="photo" type="text" size="20" maxlength="80" value="<%= Video_PhotoUrl %>"> 
                    <input type="button" name="bnt1" value="上传文件" onClick="window.open('Upload_flash.asp?formname=up&editname=photo&uppath=../UpLoadFiles/PersonVideoPhoto&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" class="i2"> 
                  </td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">视频文件:</td>
                  <td bgcolor="eff0eb"><%= Cls_WebUrl&"UpLoadFiles/VideoFile/" %> <input name="url" type="text" id="url" size="20" maxlength="80" value="<%= Video_File %>">
                    <input type="button" name="bnt12" value="上传文件" onClick="window.open('Upload_flash.asp?formname=up&editname=url&uppath=../UpLoadFiles/VideoFile&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="Perid" type="hidden" id="Perid" value="<%= Perid %>"> 
                    <input name="pageno" type="hidden" id="pageno" value="<%= PageNo %>"> 
                    <input name="email" type="hidden" id="email" value="<%= Email %>"> 
                    <input name="Realname" type="hidden" id="Realname" value="<%= Realname %>"> 
                    <input name="username" type="hidden" id="username" value="<%= username %>"> 
                  </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() '修改密码
 Perid       = Replace_text(request("Perid"))
 UserName    = Replace_text(request("UserName"))
 PageNo      = Replace_text(request("PageNo"))
 Password    = Replace_text(request("Password"))
 Email       = Replace_text(request("Email"))
 RealName    = Replace_text(request("RealName"))
 Video       = Replace_text(request("Video"))
 BeginDate   = Replace_text(request("BeginDate"))
 EndDate     = Replace_text(request("EndDate"))
 Url         = Replace_text(request("Url")) 
 Photo       = Replace_text(request("Photo")) 
 Best        = Replace_text(request("best")) 
 
 If Url <> "" Then Url = Replace(Url,"../UpLoadFiles/VideoFile/","")
 If Photo <> "" Then Photo = Replace(Photo,"../UpLoadFiles/PersonVideoPhoto/","")
 
 '保存数据
 SQL = "UPdate [pH_Person_Info] Set Nc_Video="&Video&",Video_Date='"&BeginDate&"',Video_EndDate='"&EndDate&"',Video_File='"&Url&"',Video_PhotoUrl='"&Photo&"',Video_BestFlag="&Best&" Where Perid='"&Trim(Perid)&"'"
 Conn.Execute(SQL)
 
 '发送邮件
 HtmlStr = "您好,我们是"&Cls_WebName&",我们的工作人员已经为您在"&Cls_WebName&"上做好视频简历,请您及时登陆网站进行审核!"
 Call SendEmail(Email,HtmlStr,"您的视频简历制作成功")
 
 Response.write "<script language=JavaScript>alert('设置成功!');location.href='Web_Person_Video.asp';</script>"
End Sub

Call CloseDB()
 %>

⌨️ 快捷键说明

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