<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="Web_Session.asp" -->
<% 
Dim Rs,SQL
Dim PageNo,ThePage,Psize,PCount,RCount
Dim Action,Param,ParamName

'//获取分站参数
Dim c_City,c_Name
If Session("c_City") = "" Then 
 Response.Redirect "Web_Login.asp"
 Response.End()
End if
c_City = Session("c_City")
c_Name = Session("c_Name")

'//获取参数
ParamName = Replace_Text(Request("ParamName"))

'//查找企业表所有记录
Set Rs = Server.Createobject("ADODB.recordset")
'//组织查询语句
If ParamName = "" Then
 SQL = "Select B.Perid,B.Username,B.RegDate,I.RealName,I.Sex,I.PersonPhone,I.TopAll,I.Video_Flag,I.Video_Date,I.Video_EndDate,I.Video_BestFlag From pH_Person_Base As B,pH_Person_Info As I Where B.Perid=I.Perid And Nc_Video=1 And Cityid="&c_City
Else
 SQL = "Select B.Perid,B.Username,B.RegDate,I.RealName,I.Sex,I.PersonPhone,I.TopAll,I.Video_Flag,I.Video_Date,I.Video_EndDate,I.Video_BestFlag From pH_Person_Base As B,pH_Person_Info As I Where B.Perid=I.Perid And (B.Username Like '%"&ParamName&"%' or I.RealName Like '%"&ParamName&"%') And Nc_Video=1 And Cityid="&c_City
End if
SQL = SQL&" Order By B.Ncid Desc"
Rs.Open SQL,Conn,1,1

Rs.Pagesize = 10
Psize       = Rs.PageSize
PCount      = Rs.PageCount
RCount      = Rs.RecordCount

PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
 PageNo = 1
Elseif PageNo > PCount Then
 PageNo = PCount
End if
Thepage = (PageNo-1)*Psize
If Not Rs.Eof Then Rs.AbsolutePage = PageNo

 %>
<!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_offices.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script language="JavaScript">
function SelectAllItem(item)
{
    if( typeof(item.length) == "undefined" )
    {
        item.checked = !item.checked
    }
    else
    {
        for(i=0;i<item.length;i++)
        {
            item[i].checked=!item[i].checked
        }
    }
}

function theForm_Submit(id)
{
		
		if (id=="delperson")
		{
		  if(confirm('确认彻底删除选定的记录'))
		  {
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=delperson&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>";
			form.submit();	   
		   }

		}
		
		if (id=="novideo")
		{
		  if(confirm('确认取消选择的用户视频简历？'))
		  {
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=novideo&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>";
			form.submit();	   
		   }

		}
		if (id=="delvideo")
		{
		  if(confirm('确认删除选择的用户视频简历？'))
		  {
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=delvideo&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>";
			form.submit();	   
		   }

		}					
		if (id=="sendmail")
		{
		    form.target='_self';
			form.action="Web_Person_SendMail.asp?pageno=Web_Person_Video.asp?pageno=<%= PageNo %>";
			form.submit();	   
		}
		
		if (id=="notop")
		{
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=notop&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>"
			form.submit();	   
		}
		if (id=="bestvideo")
		{
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=bestvideo&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>"
			form.submit();	   
		}			
		if (id=="nobestvideo")
		{
		    form.target='_self';
			form.action="Web_Person_Option.asp?param=nobestvideo&pageno=Web_Person_Video.asp?pageno=<%= PageNo %>"
			form.submit();	   
		}
}

</script>

</head>

<body leftmargin="0" topmargin="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5"></td>
  </tr>
  <tr> 
    <td height="25" background="Images/top11_bg.jpg" style="padding-top:3px;">&nbsp;<font color="#FFFFFF">■ <strong>视频简历</strong></font></td>
  </tr>
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<Form action="" name="form" method="post">
  <tr>
    <td align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td align="left"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="A5B6CC">
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td height="25" bgcolor="f5f5f5">
<table width="100%" border="0" cellspacing="0" cellpadding="4">

        <tr> 
          <td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
                      <td width="30%" align="right"> 
                        <%
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1&ParamName="&ParamName&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&ParamName="&ParamName&""">上页</a>&nbsp;"    
		  Else
		   Response.write "首页&nbsp;"
		   Response.write "上页&nbsp;" 
		  End if
		   %>
          <select name="menu2" onChange="MM_jumpMenu('self',this,0)" style="width:40px;">
               <% For i = 1 to PCount %>
                <option value="?PageNo=<%= i %>&ParamName=<%=ParamName%>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
		    <% Next %>
           </select>
                        
         <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&ParamName="&ParamName&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&ParamName="&ParamName&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %>

		  
		  </td>
        </tr>
      
      </table>
				</td>
              </tr>
            </table> </td>
        </tr>
      </table></td>
  </tr>
</table>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td height="5"></td>
          </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td align="left"> 
      <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="A5B6CC">
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">
                      <tr align="center" bgcolor="f5f5f5"> 
                        <td width="5%" height="25"><u>编号</u></td>
                        <td width="12%" height="25" bgcolor="f5f5f5"><u>用户名</u></td>
                        <td width="8%" bgcolor="f5f5f5"><u>姓 名</u></td>
                        <td width="5%" height="25"><u>性别</u></td>
                        <td width="12%" height="25"><u>联系电话</u></td>
                        <td width="9%" height="25"><u>开通日期</u></td>
                        <td width="9%"><u>截止日期</u></td>
                        <td width="10%" height="25" bgcolor="f5f5f5"><u>简历状态</u></td>
                        <td width="5%" bgcolor="f5f5f5"><u>推荐</u></td>
                        <td width="9%" height="25"><u>注册时间</u></td>
                        <td><u>管理操作</u></td>
                        <td width="3%"> <INPUT onclick=SelectAllItem(this.form.perid) type=checkbox value=all name=chk_all></td>
                      </tr>
                      <% 
For i = 1 to Psize
 If Rs.Eof Then Exit For
 Perid               = Rs("Perid")
 Username            = Rs("Username")
 RegDate             = Rs("RegDate")
 RealName            = Rs("RealName")
 Sex                 = Rs("Sex")
 PersonPhone         = Rs("PersonPhone")
 BestFlag            = Rs("Video_BestFlag")
 Video_Flag          = Rs("Video_Flag")
 Video_Date          = Rs("Video_Date")
 Video_EndDate       = Rs("Video_EndDate")
 
 '//获取注册日期
 If RegDate <> "" Then
  RegDate = FormatDateTime(RegDate,2)
 End if
 '//获取开通日期
 If Video_Date <> "" Then
  Video_Date = FormatDateTime(Video_Date,2)
 End if
 '//获取截止日期
 If Video_EndDate <> "" Then
  If DateDiff("d",Video_EndDate,Date()) > 0 Then
    Video_EndDate = "<font color=#ff0000>"&FormatDateTime(Video_EndDate,2)&"</font>"
  Else
    Video_EndDate = FormatDateTime(Video_EndDate,2)
  End if
 End if 
 
 '获取视频简历是否推荐
 Best_Str = ""
 If BestFlag = True Then
  Best_Str = "<font color=#009900>√</font>"
 End if
 '简历状态
 Flag_Str = ""
 Select Case Video_Flag
  Case 0:Flag_Str = "公开中"
  Case 1:Flag_Str = "<font color=#666666>对会员公开</font>"
  Case 2:Flag_Str = "<font color=#ff0000>屏蔽中</font>"
 End Select
 %>
                      <tr align="center" bgcolor="f5f5f5"> 
                        <td height="25"><%= ThePage+i %></td>
                        <td height="25" align="left"><a href="../c_Person/Resume/Resume_Master_Preview.asp?Param=<%= Perid %>" target="_blank"><%= Username %></a></td>
                        <td height="25" align="center"><a href="../c_Person/Resume/Resume_Master_Preview.asp?Param=<%= Perid %>" target="_blank"><%= RealName %></a></td>
                        <td height="25"><%= Sex_Str %></td>
                        <td height="25"><%= PersonPhone %></td>
                        <td height="25" align="center"><%= Video_Date %></td>
                        <td height="25" align="center"><%= Video_EndDate %></td>
                        <td height="25" bgcolor="f5f5f5"><%= Flag_Str %></td>
                        <td height="25" bgcolor="f5f5f5"><%= Best_Str %></td>
                        <td height="25"><%= RegDate %></td>
                        <td height="25" align="center" bgcolor="f5f5f5"> <a href="Web_Person_EditPass.asp?Perid=<%= Perid %>&PageNo=<%= "Web_Person_Video.asp?PageNo="&PageNo %>"><u>密码</u></a> 
                          <a href="Web_Person_TopManage.asp?Perid=<%= Perid %>&PageNo=<%= "Web_Person_Video.asp?PageNo="&PageNo %>"><u>固顶</u></a> 
                          <a href="Web_Person_VideoManage.asp?Param=rar&Perid=<%= Perid %>&PageNo=<%= "Web_Person_Video.asp?PageNo="&PageNo %>"><u>视频</u></a> 
                        </td>
                        <td height="25"><INPUT type=checkbox value=<%= Perid %> name="perid"></td>
                      </tr>
                      <% 
 Rs.Movenext 
Next
 %>
                    </table> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td align="left"> <table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="A5B6CC">
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td height="25" bgcolor="f5f5f5">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
                            <tr> 
                              <td width="30%" height="25">快速搜索 
                                <input name="ParamName" type="text" id="ParamName" size="16" maxlength="30">
                          <input type="submit" name="Submit" value="搜索">
                              </td>
                              <td width="70%" align="right">
							 <input type="button" name="delperson" value="删除会员" onClick="javascript:theForm_Submit('delperson')">
							  <input type="button" name="sendmail" value="发送邮件" onClick="javascript:theForm_Submit('sendmail')">
							  <input type="button" name="novideo" value="取消视频" onClick="javascript:theForm_Submit('novideo')">
							  <input type="button" name="delvideo" value="删除视频" onClick="javascript:theForm_Submit('delvideo')">
							  <input type="button" name="delvideo" value="取消推荐" onClick="javascript:theForm_Submit('nobestvideo')">
							  <input type="button" name="delvideo" value="设为推荐" onClick="javascript:theForm_Submit('bestvideo')">
                              </td>
        </tr>
      
      </table>
				</td>
              </tr>
            </table> </td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5"></td>
  </tr>
</table>
	</td>
  </tr>
 </Form>
</table>

</body>
</html>
<%
Rs.Close
Set Rs = Nothing

Call CloseDB()
%>
