<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{#$title#}</title>
<link rel="shortcut icon" href="{#$QISHI.main_domain#}favicon.ico" />
<meta name="author" content="骑士CMS" />
<meta name="copyright" content="74cms.com" />
<link href="{#$QISHI.site_template#}css/user_common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/user_company.css" rel="stylesheet" type="text/css" />
<script src="{#$QISHI.site_template#}js/jquery.js" type="text/javascript" language="javascript"></script>
<script src="{#$QISHI.site_template#}js/jquery.validate.min.js" type='text/javascript' language="javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
	
//控制图片大小
{#if $company_profile.certificate_img<>""#}
var imgwidth=$("#c_img").attr("width");
if (imgwidth>500)
{
$("#c_img").attr("width","500")
}
{#/if#}
});
//验证
$(document).ready(function() {
 $("#Form1").validate({
 //debug: true,
// onsubmit:false,
//onfocusout :true,
   rules:{
   license:"required",
	   certificate_img: {
	   required:true,
	   accept:true
	   }
	},
    messages: {
    license:{
    required:jQuery.format("请输入企业注册号")
   },
   certificate_img:{
    required:jQuery.format("请上传营业执照"),
	accept:jQuery.format("您上传的文件格式不正确")
   }   
  },
  errorPlacement: function(error, element) {
    if ( element.is(":radio") )
        error.appendTo( element.parent().next().next() );
    else if ( element.is(":checkbox") )
        error.appendTo ( element.next());
    else
        error.appendTo(element.parent());
	}
    });
});
</script>
</head>

<body>
{#include file="user/header.htm"#}

<div class="page_location link_bk">当前位置：<a href="{#$QISHI.main_domain#}">首页</a> > <a href="{#$userindexurl#}">会员中心</a> > 认证管理</div>

<div class="usermain">
  <div class="leftmenu com link_bk">
   {#include file="member_company/left.htm"#}	
  </div>
  <div class="rightmain">
	<div class="bbox1">	
	  <div class="addjob link_bk">
	    <div class="topnav">
			<div class="titleH1" style="margin-top:0;padding-left:30px;padding-top:17px;">
				<div class="h1-title">认证管理</div>
			</div>
			<div class="navs">
				  <a href="company_user.php?act=authenticate">安全认证</a>
				  <a href="company_info.php?act=company_auth" class="se">营业执照</a>
				<div class="clear"></div>
			</div>
		</div>
		
		  <div class="pic">
		  	{#if $company_profile.certificate_img<>"" && $company_profile.audit <>"1"#}
		  	<div class="logo_img">
		  		<div class="img"><img width="245" height="80" src="{#$QISHI.site_dir#}data/{#$QISHI.updir_certificate#}/{#$company_profile.certificate_img#}" border="0" id="c_img"/></div>
		  	</div>
		  	{#/if#}
		  	<div class="upload" style="margin-top:0;">
		  		<form action="?act=company_auth_save" method="post"  enctype="multipart/form-data" id="Form1">
		  		<table id="upform" width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall">
			  	<tbody>
			  		<tr>
						<td width="125" align="right">
							{#if $company_profile.audit=="0"#}
							  <span class="audit_nodone">认证状态：</span>
							{#elseif $company_profile.audit =="1"#}
							   <span class="audit_done">认证状态：</span>
							{#elseif $company_profile.audit =="2"#}
							   <span class="audit_nodone">认证状态：</span>
							{#elseif $company_profile.audit =="3"#}
							  <span class="audit_nodone">认证状态：</span>
							{#/if#}
						</td>
						<td width="150">
							{#if $company_profile.audit=="0"#}
							  <font color="red">未上传营业执照，请上传！</font>
							  {#elseif $company_profile.audit =="1"#}
							   <font color="green">已认证通过！</font>
							  {#elseif $company_profile.audit =="2"#}
							   <font color="orange">认证中,请耐心等待</font>
								{#elseif $company_profile.audit =="3"#}
							   <font color="red">认证失败！请上传正确的营业执照</font> 
							  {#/if#}&nbsp;	  
						</td>
						<td>{#if $company_profile.audit=="3"#}<font color="red">({#$reason#}){#/if#}</font></td>
			  		</tr>
			  		{#if $company_profile.audit <>"1"#}
			  		<tr>
						<td width="125" align="right">营业执照注册号：</td>
						<td width="150"><input type="text" name="license" id="license" class="input_text_200" maxlength="80"/></td>
						<td></td>
			  		</tr>
			  		<tr>
						<td width="125" align="right">上传图片：</td>
						<td width="150"><input type="file" name="certificate_img" id="certificate_img" class="input_text_200"  onkeydown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/></td>
						<td>(图片大小不超过 {#$QISHI.certificate_max_size#} KB,允许格式：jpg/gif/bmp/png)</td>
			  		</tr>
			  		<tr>
						<td width="125" align="right"></td>
						<td width="150"><input type="submit" name="Submit" value="上传" id="up" class="but_upload" /></td>
						<td></td>
			  		</tr>
			  		{#/if#}
			  	</tbody>
			  </table>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall" style="margin-top:15px; margin-bottom:15px;line-height:180%; display:none; color:#009900" id="upform_wait">
			  	<tbody>
			  		<tr>
						<td height="40" align="center"><img src="{#$QISHI.site_template#}images/30.gif"  border="0"/></td>
			  		</tr>
			  		<tr>
						<td height="20" align="center">正在上传，请稍后...</td>
			  		</tr>
			  	</tbody>
			  </table>
			</form>
		  	</div>
			<div class="bottomtip">
				<div class="tp h2-title">小贴士</div>
				营业执照只作为网站核实贵公司真实性的材料，不在任何页面显示，我们不会以任何形式公布您的执照信息！<br />
通过网站核实后营业执照我们将立即删除。<br />
① 通过认证后您将获得更多权限；<br />
{#if $QISHI.operation_mode=="1"#}
② 通过认证后可增加信息的可信度，成为<strong>已认证企业</strong>；<br />
③ 通过认证后可额外获得 {#$points.company_auth.value#} {#$QISHI.points_quantifier#}{#$QISHI.points_byname#}；<br />
{#else#}
② 通过认证后可增加信息的可信度，成为<strong>已认证企业</strong>；<br />
{#/if#}  
注：上传营业执照仅供我们审核，绝不会用任何形式对外公开。
			</div>
		  </div>

	  </div>
	</div>
  </div>
  <div class="clear"></div>
</div>
 {#include file="user/footer.htm"#}



</body>
</html>
