<% Response.Buffer=True %>
<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	End If
	dim action,lookadd
	lookadd=0
	action="false"
	uid=int(ReplaceBadChar(replace(Trim(Request.QueryString("id")),"'","")))
	
	if uid="" then   
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end 
	end if
	
	set rs_company=server.createobject("adodb.recordset")
	company_sql="select * from company where id="&uid&""
	rs_company.open company_sql,conn,1,1
	
	if rs_company.eof or rs_company.bof then
		response.write "<script language=JavaScript>" & "alert('对不起，该用户不存在或已被删除！！');"&"window.location.href = 'index.asp'"&" </script>"
		response.end 
	end if
	
	Usercheck=rs_company("Usercheck")
	
	if Usercheck=1 then
		vote="本单位基本资料已通过网站证实。<BR />应聘风险级别：<font color=red>零级风险</font>，目前不存在或未发现风险.<BR/>以上信息仅供参考，请求职者注意求职风险."
	else
		vote="本单位基本资料未通过网站证实。<BR />应聘风险级别：<font color=red>未知风险</font>，目前不确定是否存在风险.<BR/>以上信息仅供参考，请求职者注意求职风险."
	end if
	
	grade=int(rs_company("grade")) '企业用户级别 0为初级，1为中级，2为高级
	dian=int(rs_company("dian"))	'企业用户的M币数量
	begintime=rs_company("begintime")	'会员期开始时间
	endtime=rs_company("endtime")	'会员期结束时间
	readnum=int(rs_company("readnum"))	'会员期内读取个人会员资料的数量，本项目只适用于中级企业用户
	changepay=int(rs_company("changepay"))	'读取用户的收费方式
	begint=int(datediff("d",now(),begintime))	'会员期开始时间与当前时间的差值
	endt=int(datediff("d",now(),endtime))	'会员期结束时间与当前时间的差值
	if grade=1 and begint<=0 and endt>=0 and readnum>=1 and changepay=1 then action="ture"
	if grade=2 and begint<=0 and endt>=0 and changepay=1 then action="ture"
	if dian>0 and changepay=0 then action="ture"
	if look_com_limit=1 then
		lookadd=1
	else
		if Request.Cookies("admin_person_name")<>"" then
			pname=ReplaceBadChar(Request.Cookies("admin_person_name"))
			set rs_ptime=createobject("adodb.recordset")
			ptime_sql="select * from person where uname='" & pname & "'"
			rs_ptime.open ptime_sql,Conn
			if not rs_ptime.eof then
				begintime=rs_ptime("begintime")
				endtime=rs_ptime("endtime")
				dian=rs_ptime("dian")
				changepay=rs_ptime("changepay")
			end if
			begint=datediff("d",now(),begintime)
			endt=datediff("d",now(),endtime)
			rs_ptime.close
			set rs_ptime = nothing
			if changepay=1 and begint<=0 and endt>=0 then lookadd=1
			if changepay=0 and dian>0 then lookadd=1
			if begint>0 then writenote="您的会员期还没有开始，请稍等"
			if endt<0 then writenote="您的会员期已经结束，请重新充值"
		else
			writenote="请登陆后再查看"
		end if
	end if
		
%>
<HTML>
<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 %>--浏览企业(<%= rs_company("cname") %>)详细资料</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/stylecompanyjobs.css" rel="stylesheet" type="text/css" />
<link href="css/joball.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<table align="center" width="977" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td>
	<div style="width: 100%; height: 100%; border:1px solid #BABABA;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
      
      <tr>
        <td height="93" valign="top" background="images/job/back2.gif" class="htop">
        <div class="title_div"><a class="title" style="font-size:18px; font-weight: bold;color:#FFFFFF"><%= rs_company("cname") %></a><h2>企业编号:Com<%= rs_company("id") %></h2></div>
        <div class="gnbtn">
            <% If usercheck=1 Then %><div class="vipbtn"><img src="images/job/zzbtn.gif" border="0" /></div><% End If %><% If action="ture" Then %><div class="vipbtn"><img src="images/job/vipbtn.gif" border="0" /></div><% End If %>
        </div></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="199" valign="top" style="background:#EAEAEA; border-right:1px solid #B3B3B3;"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div style="width:180px; margin-top:8px; margin-bottom:10px;"><img src="images/job/job.gif" /></div></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellpadding="8" cellspacing="0" class="kuang">
<%
   set rs_zp=server.createobject("adodb.recordset")
   zp_sql="select * from zp where uname='"& rs_company("uname") &"' and zhuangtai=1 order by idate desc,id desc"
   rs_zp.open zp_sql,conn,1,1
   do while not rs_zp.eof
	if rs_zp("jobtype")=0 then
		jobnameid=int(rs_zp("jtzw"))
%>
<!--#include file="inc/jobname.asp"-->
<%
	else
		jobname=rs_zp("jobname")
		if len(jobname)>10 then jobname=left(jobname,10)&"..." else jobname=jobname
	end if
%>
                  <tr class="underline">
                    <td><div class="icon"></div><a href="view_job.asp?id=<%= rs_zp("id") %>"><%= jobname %></a></td>
                  </tr>
<% 
	rs_zp.movenext
	loop 
	rs_zp.close
	set rs_zp = nothing
%>
                </table></td>
              </tr>
              <tr style="display:">
                <td><a href="preg.asp" target="_blank"><img src="images/job/enrol.gif" alt="免费注册个人会员" width="180" height="82" border="0" /></a></td>
              </tr>
			  <tr style="display:">
                <td>&nbsp;</td>
              </tr>     
			   <tr style="display:">
                <td><IMG SRC="images/job/001.jpg" WIDTH="17" HEIGHT="18">&nbsp;&nbsp;风险提示</td>
              </tr>
			  <tr style="display:">
                <td>&nbsp;</td>
              </tr>   
			  <tr style="display:">
                <td><%= vote %></td>
              </tr>
			  <tr style="display:" align="right">
                <td><a href="JavaScript:openScript('toushu.asp?cid=<%=rs_company("id")%>&cname=<%=rs_company("cname")%>',350,185)"><IMG SRC="images/job/ts_01.gif" WIDTH="101" HEIGHT="27" BORDER="0" alt="投诉该企业"/></A></td>
              </tr>        
            </table></td>
            <td valign="top">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td height="30" align="left" class="underline"><a href="view_company.asp?id=<%= Trim(Request.QueryString("id")) %>"><strong>公司简介</strong></a> | <a href="company_job.asp?id=<%= Trim(Request.QueryString("id")) %>"><strong>招聘职位</strong></a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td valign="top">
                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="419"><img src="images/job/title1.gif" /></td>
                        </tr>
                        <tr>
                            <td><div class="text2" style=" padding-top:8px; padding-bottom:8px;"><%= rs_company("jianj") %></div></td>
                        </tr>
                        <tr>
                            <td><div align="center"></div></td>
                        </tr>
                        <tr>
                            <td><img src="images/job/title2.gif" /></td>
                        </tr>
                        <tr>
                            <td></td>
                        </tr>
                        <tr>
                            <td><table width="97%" border="0" align="center" cellpadding="6" cellspacing="0">
                                <tr class="underline1" style="display:none">
                                    <td width="16%"><span class="text3">注册资金：</span></td>
                                    <td width="84%"><%= rs_company("fund") %></td>
                                </tr>
                                <tr class="underline">
                                    <td width="16%"><span class="text3">员工人数：</span></td>
                                    <td width="84%"><%= rs_company("yuangong") %></td>
                                </tr>
                                <tr class="underline1">
                                    <td><span class="text3">企业性质：</span></td>
                                    <td><%= rs_company("cxz") %></td>
                                </tr>
                                <tr class="underline">
                                    <td><span class="text3">公司网站：</span></td>
                                    <td><a href="<%= rs_company("http") %>" target="_blank"><%= rs_company("http") %></a></td>
                                </tr>
                                <tr class="underline1">
                                    <td><span class="text3">公司地址：</span></td>
                                    <td><%= rs_company("address") %></td>
                                </tr>
                                <tr class="underline">
                                    <td><span class="text3">邮政编码：</span></td>
                                    <td><%= rs_company("zip") %></td>
                                </tr>
                                <tr class="underline1">
                                    <td><span class="text3">传真号码：</span></td>
                                    <td><% if lookadd=1 then Response.Write(rs_company("fax")) else Response.Write(writenote)%></td>
                                </tr>
                                <tr class="underline">
                                    <td><span class="text3">联系电话：</span></td>
                                    <td><% if lookadd=1 then Response.Write(rs_company("phone")) else Response.Write(writenote)%></td>
                                </tr>
                                <tr class="underline1">
                                    <td><span class="text3">电子邮件：</span></td>
                                    <td><% if lookadd=1 then Response.Write(rs_company("email")) else Response.Write(writenote)%></td>
                                </tr>
                                <tr class="underline">
                                    <td><span class="text3">联 系 人</span>：</td>
                                    <td><%= rs_company("pname") %></td>
                                </tr>
                            </table>
                        </td>
                    </tr>		
                </table>		
                </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
	</div>
    </td>
  </tr>
</table>
<%
	rs_company.close
	set rs_company=nothing
%>
<!--#include file="end.asp"-->