<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	id=int(ReplaceBadChar(Trim(Request.QueryString("id"))))
	pid=int(ReplaceBadChar(Trim(Request.QueryString("pid"))))
	if (id=0 or id="") and (pid=0 or pid="") then
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	elseif id<>0 and id<>"" and pid<>0 and pid<>"" then
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="gb2312">
<HEAD>
<link rel="Shortcut Icon" href="images/favicon.ico">
<link rel="Bookmark" href="images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--大头贴</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<LINK href="css/flash.css" type=text/css rel=stylesheet>
<script language="JavaScript">
 function login_check(){
 if (document.frmLogin.uname.value==""){
  alert("-请输入用户名-");
  document.frmLogin.uname.focus();
  return false;
 }
  if (document.frmLogin.pwd.value==""){
  alert("-请输入登陆密码-");
  document.frmLogin.pwd.focus();
  return false;
 }
  if (document.frmLogin.CheckCode.value==""){
  alert("-请输入登陆密码-");
  document.frmLogin.CheckCode.focus();
  return false;
 }
}
</script>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0" class="body">
<!--#include file="top.asp"-->
<div id="wzwidth">
<%
	if pid<>0 and pid<>"" then
		i=0
		set rs=server.createobject("adodb.recordset")
		sql="select swf_photo.PicURL,person.iname from swf_photo,person where swf_photo.User_id="&pid&" and swf_photo.User_id=person.id and swf_photo.zhuangtai=1 order by swf_photo.id desc" 
		rs.open sql,conn,1,3
%>
<DIV id="left1">
<div id="lbdhb">
<div id="left"><IMG src="images/flash/titl7.gif" width="91" height=28></div>
<div id="right"><IMG height=28 src="images/flash/titr2.gif" width=130></div>
</div>
<DIV id="zpzsdb">
<Div id=zsnt> <font color="#000000" size="5"><%= rs("iname") %>的大头贴欣赏</font></div>
<dIV id="zpnr">
  
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var interval = 3; // delay between rotating images (in seconds)
interval *= 1000;
var flagtime=0;
var image_index = 0;
image_list = new Array();
note_list = new noteArray(10);
var number_of_image = image_list.length;
var timesnum=0;
<%
	do while not rs.eof
%>
image_list[<%= i %>] = new imageItem("<%= rs("PicURL") %>");
note_list[<%= i %>] = "";

<%
	i=i+1
	rs.movenext
	loop
	rs.close
	set rs=nothing
	
	set rs=server.createobject("adodb.recordset")
	sql="select count(id) as sid from swf_photo where User_id="&pid&" and zhuangtai=1" 
	rs.open sql,conn,1,3
	if rs.eof then
		sid=0
	else
		sid=rs("sid")
	end if
	rs.close
	set rs=nothing
%>
function noteArray(size)
{
 this.length=size;
 for(i=1;i<=size;i++)
 {
 this[i]=""
 }
 return this;
}
function counternum(){
 if( timesnum < (<%= sid %>-1) ){
 timesnum++;
 document.all.slide_ent.src="about:blank";
 }
}
function run(obj){
 interval=obj.options[obj.selectedIndex].value*1000;
 rotateImage();
}
function stop(){
 interval=0;
}
function previous(){
 var new_image = getPreviousImage();
 document['rImage'].src = new_image;
}
function next(){
 var new_image = getNextImage();
 document['rImage'].src = new_image;
}
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function noteItem(note) {
this.note_item = new Image();
this.note_item.src = note;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function get_NoteItemLocation(noteObj) {
return(noteObj.note_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getPreviousImage() {
image_index = image_index-1;
if (image_index < 0){
 image_index=image_index+<%= sid %>;
 }
var new_image = get_ImageItemLocation(image_list[image_index]);
document.all.span_1.innerText=image_index+1;
document.all.summary.innerText=note_list[image_index];
return(new_image);
}
function getNextImage() {
image_index = image_index+1;
if (image_index >= <%= sid %>){
 image_index=image_index-<%= sid %>;
 }
var new_image = get_ImageItemLocation(image_list[image_index]);
document.all.span_1.innerText=image_index+1;
document.all.summary.innerText=note_list[image_index];
return(new_image);
}
function rotateImage() {
if (interval == 0){
 return 1;
}
if (flagtime == 1){
 var now = new Date();
 var time1 = now.getTime();
 var time2;
 time1=time1+3000;
 time2=now.getTime();
 while(time2 < time1){
 now = new Date();
 time2=now.getTime();
 }
 flagtime=0;
}
var new_image = getNextImage();
document['rImage'].src = new_image;
var recur_call = "rotateImage('"+'rImage'+"')";
setTimeout(recur_call,interval);
}
// End -->
</script>
<TABLE  cellSpacing=0 cellPadding=0  border=0 bgcolor="#F7FBDE" width="650" height="650" style="table-layout: fixed; word-wrap: break-word" align=center>
        <TR>
          <TD align="center" width="100%"><IMG src="" onload=counternum() border=0 name=rImage  alt="" onclick='javascript:window.open(this.src);' style='CURSOR: pointer' width="650" height=650></TD>
		</TR>
		<TR>
          <TD id=summary align="center" height=16></TD>
		</TR>
		<FORM name=form1><TR>
          <TD align=center height=16><SPAN id=span_1>1</SPAN>/<%= sid %>&nbsp;&nbsp;<font face="Webdings" style="cursor : pointer;" onclick=run(document.form1.select1) title="开始">4</font>&nbsp;<font style="cursor : pointer;"  onclick=stop() title="停止">■</font>&nbsp;<font face="Webdings" style="cursor : pointer;" onclick=previous() title="前一张">7</font>&nbsp;<font face="Webdings" style="cursor : pointer;" onclick=next() title="后一张">8</font><input type="hidden" name="select1" value="6" onchange=run(this)></TD>
		</TR></FORM>
</TABLE>
<script language="JavaScript">
<!--
function reapply(){
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply
//-->
</script>
<script language=javascript>
flagtime=1;
rotateImage();
slideit()
</script>
</DIV>
</DIV>
</DIV>
<%
	Elseif id<>0 and id<>"" then
		set rs=server.createobject("adodb.recordset")
		sql="select swf_photo.hits,swf_photo.title,swf_photo.PicURL,person.iname,person.id as pid from swf_photo,person where swf_photo.id="&id&" and swf_photo.User_id=person.id and swf_photo.zhuangtai=1" 
		rs.open sql,conn,1,3
		if rs.eof then
			response.write"<SCRIPT language=JavaScript>alert('对不起，没有找到您需要的文件！');"
			response.write"javascript:window.close();</SCRIPT>"
			response.end
		else
%>
<DIV id="left1">
<div id="lbdhb">
<div id="left"><IMG src="images/flash/titl7.gif" width="91" height=28></div>
<div id="right"><IMG height=28 src="images/flash/titr2.gif" width=130></div>
</div>
<DIV id="zpzsdb">
<Div id=zsnt> <span  class="biaotiz"><%= rs("title") %></span>&nbsp;&nbsp;[浏览数：<%= rs("hits") %>次]</div>
<dIV id="zpnr">
<DIV id="zpnrl">
<img src="<%= rs("PicURL") %>" alt="<%= homename %>--大头贴"  oncontextmenu="self.event.returnValue=false;" width="400" height="300">
</DIV>
<DIV id="zpnrr">
<UL>
<LI><SPAN>标　　题：</SPAN><%= rs("title") %>
<LI><SPAN>姓　　名：</SPAN><%= rs("iname") %>
<LI><SPAN>简历地址：</SPAN><a href="<%= homeurl %>/view_person.asp?id=<%= rs("pid") %>" target="_blank"><%= homeurl %>/view_person.asp?id=<%= rs("pid") %></a></LI>
</UL>
</DIV></DIV>
</div>
</DIV>
<%
		end if
		rs.close
		set rs=nothing
	End If
%>
<div id="right1">
<div id="rfb">
<A href="/person/flash_photo.asp" target=_blank><FONT style="FONT-SIZE: 18px" face=黑体  color=#ffffff>拍摄我的大头贴</FONT></A><br>
<span class="fbbz">展现设计才华　彰现自我优势</span><br>
<Div class="fbbzt"><A href="/person/" target=_blank><FONT style="FONT-SIZE: 18px" face=黑体 color=#ffffff >管理我的简历信息</FONT></A></Div>
<span class="fbbz">填写精彩简历　规划职业生涯</span>
</div>

<div id=r1>
<dIV id="rzpss"><IMG height=26 src="images/flash/rtl.gif" width=23 align=absMiddle>照片搜索 </dIV>
<DIV id="rzpssb">
<form method="post"  name="frmSearch" action="/art/search.asp" onSubmit="return VerifyInput();">
  <INPUT name="tag" class="box234">
 <INPUT type="submit" value="搜索" name="button"></form>
</DIV></div>
<div id=r2>
<dIV id="rzpss"><IMG height=26 src="images/flash/rtl.gif" width=23 align=absMiddle>推荐人才 </dIV>
<DIV id="rzpssb">

<%
	set rs_person=server.createobject("adodb.recordset")
	person_sql="select top 13 person.sex,person.hidename,person.iname,person.id,Resume_cn.jobs,Resume_cn.edu from person,Resume_cn where person.gj=1 and job<>'""' and person.Resume_id=Resume_cn.id and person.hideuser=1 order by person.setup desc,person.id desc" 
	rs_person.open person_sql,conn,1,3
	do while not rs_person.eof
	if rs_person("sex")="男" then
		sexname="先生"
	else
		sexname="小姐"
	end if
	jobnameid=int(rs_person("jobs"))
	if rs_person("hidename")=0 then iname=left(rs_person("iname"),5) else iname=left(rs_person("iname"),1)&sexname
%>
<!--#include file="inc/jobname.asp"-->
<UL>
<LI><img src="images/flash/hot_2.gif" />&nbsp;&nbsp;<a href="view_person.asp?id=<%= rs_person("id") %>" target="_blank" title="浏览高级人才 <%= iname %> 的详细信息"><% =iname %></a></LI>
<LI><a href="view_person.asp?id=<%= rs_person("id") %>" target="_blank" title="高级人才 <%= rs_person("iname") %> 的最高学历"><%= left(rs_person("edu"),3) %></a></LI>
<LI><a href="view_person.asp?id=<%= rs_person("id") %>" target="_blank" title="高级人才 <%= iname %> 的期望职位"><%= left(jobname,4) %></a></LI></UL>
<%
	rs_person.movenext
	loop
	rs_person.close
	set rs_person=nothing
%>

</DIV>
</div>
<div id=r1>
<dIV id="rzpss"><IMG height=26 src="images/flash/rtl.gif" width=23 align=absMiddle>大头贴人气排行榜</dIV>
<DIV id="rzpssb">  
<%
	set rs=server.createobject("adodb.recordset")
	sql="select top 7 swf_photo.*,person.iname,person.id pid,person.sex,person.hidename from swf_photo,person where swf_photo.zhuangtai=1 and swf_photo.tj=1 and swf_photo.User_id=person.id and person.hideuser=1 order by swf_photo.id desc" 
	rs.open sql,conn,1,3
	do while not rs.eof
	if rs("sex")="男" then
		sexname="先生"
	else
		sexname="小姐"
	end if
	if rs("hidename")=0 then iname=rs("iname") else iname=left(rs("iname"),1)&sexname
%>
<DIV class=zpz > <a href="view_flash.asp?id=<%= rs("id") %>" target="_blank"><img height=85 src="<%= rs("PicURL") %>" width=80 align=left style="border:1px #666 solid"></a>
作品名称：<%=left(rs("Title"),4) %><% If len(rs("Title")) Then Response.Write("...")%><BR>
设 计 者：<a title="查看<%= iname %>的个人简历"  href="/view_person.asp?id=<%= rs("pid") %>" target=_blank><%= iname %></a> <br>
人气指数：<%= rs("hits") %> <br></DIV>
<%
	rs.movenext
	loop
	rs.close
	set rs=nothing
%>
</DIV>
</div>

</div>
</div>
</div>
<!--#include file="end.asp"-->