<?php /*a:6:{s:24:"./template/user\reg.html";i:1663238714;s:29:"./template/common\common.html";i:1663207974;s:26:"./template/common\top.html";i:1663035631;s:27:"./template/common\menu.html";i:1663208173;s:27:"./template/common\foot.html";i:1663059053;s:29:"./template/common\bottom.html";i:1655692342;}*/ ?>
<?php 
$F=F();
$WEB=web_system();
$USER_ID=request()->session('USER_ID');
//$reset_table_id=table_id('tq_admin');//给表重置id
 ?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="keywords" content="<?php if($info['seo_keywords']==''): ?><?php echo htmlentities($WEB['seo_keywords']); else: ?><?php echo htmlentities($info['seo_keywords']); ?><?php endif; ?>" />
<meta name="description" content="<?php if($info['seo_description']==''): ?><?php echo htmlentities($WEB['seo_description']); else: ?><?php echo htmlentities($info['seo_description']); ?><?php endif; ?>" />
<title><?php if($info['seo_title']==''): ?><?php echo htmlentities($WEB['seo_title']); else: ?><?php echo htmlentities($info['seo_title']); ?><?php endif; ?></title>

<link rel="Shortcut Icon" type="image/x-icon" href="/template/common/img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/template/common/css/reset.css"/>
<link rel="stylesheet" href="/template/common/css/iconfont.css">
<link rel="stylesheet" href="/template/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="/template/common/css/swiper.min7.css"/>
<link rel="stylesheet" type="text/css" href="/template/common/css/hover.css"/>
<link rel="stylesheet" href="/template/common/css/animate.css">
<link rel="stylesheet" href="/template/common/css/aos.css">
<link rel="stylesheet" type="text/css" href="/template/common/css/stardots.css"/>
<link rel="stylesheet" type="text/css" href="/template/common/css/bubble.css"/>
<link rel="stylesheet" type="text/css" href="/template/common/css/style.css"/>
<script type="text/javascript" src="/template/common/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="/template/common/js/html5shiv.js"></script>
<script type="text/javascript" src="/template/common/js/swiper.min7.js"></script>
<script type="text/javascript" src="/template/common/js/swiper.animate.min.js"></script>
<script type="text/javascript" src="/template/common/js/prefixfree.min.js"></script>

<link rel="stylesheet" href="/template/common/css/mCustomScrollbar.css">
<script type="text/javascript" src="/template/common/js/mCustomScrollbar.js"></script>

</head>
<body>
<!-- header -->
<header class="header_box">
	<input id="hamburger" class="hamburger" type="checkbox">
	<label for="hamburger" class="menu"><i></i></label>
	<div class="menu_bg"></div>
	<div class="header_top">
		<div class="center_box flex_box">
			<div class="header_tl fl"><?php echo htmlentities($WEB['content1']); ?></div>
			<div class="header_dlzc fr">
				
				<?php if($USER_ID==''): ?>
				<!-- 未登录 -->
				<div class="header_un_dlzc">
					<div class="header_dlzc_state flex_box">
						<ul class="flex_box">
							<li><a href="/login.html">登录</a></li>
							<li><a href="/reg.html">注册</a></li>
						</ul>
					</div>
				</div>
				<!-- /未登录 -->
				<?php else: ?>
				<!-- 已登录 -->
				<div class="header_dlzc_ed">
					<div class="header_dlzc_state flex_box">
						<i class="iconfont icon-weidenglutouxiang"></i>
						<ul class="flex_box">
							<li><a href="/user.html">个人中心</a></li>
							<li><a href="<?php echo url('index/User/out'); ?>">退出登录</a></li>
						</ul>
					</div>
				</div>
				<!-- /已登录 -->
				<?php endif; ?>
				
			</div>
		</div>
	</div>
	<div class="header_bot">
		<div class="center_box flex_box">
			<a class="logo fl" href="/"><img src="/template/common/img/logo.png" alt="中国（内蒙古）知识产权保护中心"></a>
			<nav class="nav_box fr">
				<ul class="flex_box">
					<li <?php if(is_home()==1): ?>class="active"<?php endif; ?>>
						<a class="flex_box" href="/"><span>首页</span></a>
					</li>
					
					<?php $_result=menu();if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
					<li <?php if(is_this($v['id'])==1): ?>class="active"<?php endif; ?>>
						<a class="flex_box" href="<?php echo htmlentities($v['url']); ?>" <?php echo htmlentities($v['is_new']); ?>><span><?php echo htmlentities($v['catename']); ?></span></a>
						<div class="subnav">
							<ol>
								
								<?php $_result=menu_cate($v['id']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?>
								<li><a href="<?php echo htmlentities($c['url']); ?>" <?php echo htmlentities($c['is_new']); ?>><?php echo htmlentities($c['catename']); ?></a></li>
								<?php endforeach; endif; else: echo "" ;endif; ?>
								
							</ol>
						</div>
					</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>

				</ul>
			</nav>
		</div>
	</div>
</header>
<div class="header_height"></div>
<!-- /header -->


<div class="user_box">
	<!-- banner -->
	<div class="inner_banner">
		<img class="wow scaleBox" data-wow-duration="4s" src="/template/common/img/zlxz_banner.jpg">
	</div>
	<!-- /banner -->
	
	<!-- 主体 -->
	<main class="main_box">
		<div class="user_bg pd_b80">
			
			<!-- 注册 -->
			<div class="dlzc_box1 zc_box1">
				<div class="dlzc_container pd_t10 pd_b50">
					<div class="dlzc_tab">
						<ul class="flex_box">
							<li class="active pd_tb40">个人用户注册</li>
							<li class="pd_tb40">企业用户注册</li>
						</ul>
					</div>
					<div class="dlzc_con pd_t30">
						<div class="dlzc_item dlzc_gr">
							
							<form name="form_1" id="form_1" onsubmit="return form_reg(1);">
							<input type="hidden" name="type" value="1">
							<ul class="dlzc_ul">
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">用户名</span>
										<div class="dlzc_inp">
											<input type="text" name="name" placeholder="3-12位英文、数字">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">密&nbsp;&nbsp;&nbsp;码</span>
										<div class="dlzc_inp">
											<input type="password" name="password" placeholder="请输入8-18位数字与字母的组合">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">重复密码</span>
										<div class="dlzc_inp">
											<input type="password" name="password1" placeholder="请再次输入密码">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">邮&nbsp;&nbsp;&nbsp;箱</span>
										<div class="dlzc_inp">
											<input type="text" name="mail" placeholder="请输入邮箱号码">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">联系电话</span>
										<div class="dlzc_inp">
											<input type="text" id="phone1" name="phone" placeholder="请输入联系电话用于接收验证码">
										</div>
									</div>
								</li>
								
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">验证码</span>
										<div class="dlzc_inp">
											<input type="text" name="code" placeholder="请输入短信验证码">
										</div>
										<span class="dlzc_send send1" onclick="sendSMS(1);">发送验证码</span>
									</div>
								</li>
								
								<li class="dlzc_li dlzc_btns mg_t50">
									<a class="dlzc_btn dlzc_btn1" href="javascript:form_reg(1)">注册</a>
								</li>
							</ul>
							</form>
							
						</div>
						<div class="dlzc_item dlzc_qy">
							<form name="form_2" id="form_2" onsubmit="return form_reg(2);">
							<input type="hidden" name="type" value="2">
							<ul class="dlzc_ul">
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">用户名</span>
										<div class="dlzc_inp">
											<input type="text" name="name" placeholder="3-12位英文、数字">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">密&nbsp;&nbsp;&nbsp;码</span>
										<div class="dlzc_inp">
											<input type="password" name="password" placeholder="请输入8-18位数字与字母的组合">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">重复密码</span>
										<div class="dlzc_inp">
											<input type="password" name="password1" placeholder="请再次输入密码">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">企业全称</span>
										<div class="dlzc_inp">
											<input type="text" name="qyname" placeholder="请输入企业全称">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">联系人姓名</span>
										<div class="dlzc_inp">
											<input type="text" name="lxr" placeholder="请输入联系人姓名">
										</div>
									</div>
								</li>

								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">联系人邮箱</span>
										<div class="dlzc_inp">
											<input type="text" name="mail" placeholder="请输入联系人邮箱">
										</div>
									</div>
								</li>
								
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">联系人电话</span>
										<div class="dlzc_inp">
											<input type="text" id="phone2" name="phone" placeholder="请输入联系电话用于接收验证码">
										</div>
									</div>
								</li>
								<li class="dlzc_li mg_t20">
									<div class="dlzc_field">
										<span class="dlzc_name">验证码</span>
										<div class="dlzc_inp">
											<input type="text" name="code" placeholder="请输入短信验证码">
										</div>
										<span class="dlzc_send send2" onclick="sendSMS(2);">发送验证码</span>
									</div>
								</li>
								<li class="dlzc_li dlzc_btns mg_t50">
									<a class="dlzc_btn dlzc_btn1" href="javascript:form_reg(2)">注册</a>
								</li>
								
							</ul>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!-- /注册 -->
			
		</div>
		
		
	</main>
	<!-- /主体 -->
</div><!-- /user_box -->
<script>
function form_reg(a){
	var post_data=$("#form_"+a+"").serialize();
	post_data.Ajax=1;
	$.ajax({
		url:"<?php echo url('index/User/insert'); ?>",
		type: 'post',
		dataType: 'json',
		async:false,
		data:post_data,
		success:function(data){
			console.log(data);
			if(data.type=='ok'){ 
				alert(data.msg);
				window.location.href ='/user.html';
				$('#form_1')[0].reset();
				//window.location.reload();
				return false;
			}else{
				alert(data.msg);
			}

		}
	})
	return false
}

function sendSMS(a){
	var phone = $('#phone'+a+'').val();
	$.ajax({
		url:"<?php echo url('index/Sms/send_aliyun'); ?>",
		data: "phone="+phone+"",
		dataType: "json",
		success: function (obj) {
			//console.log(obj);
			if(obj.msg=='OK'){
				alert('已发送!');
			}else{
				alert(obj.msg);
			}
		}
	});

	$('.send'+a+'').attr('onclick','');
	var m=60;
	var sms_time=setInterval(function(){
		if(m==0){
			$('.send'+a+'').text("发送验证码").attr('onclick','sendSMS('+a+')');
			clearInterval(sms_time);
		}else{
			$('.send'+a+'').text("重新发送("+m+")").attr('onclick','');
		}
		m--;
	},1000);
	return false;
}
</script>

<!-- 侧边固定栏 -->
<aside class="fix_bar">
	<ul>
		<li>
			<a class="fix_ss flex_box" href="<?php echo htmlentities($WEB['r1']); ?>" target="_blank">
				<span class="fix_icon flex_box"><img src="/template/common/img/fix_bar_icon1.png" alt=""></span>
				<p class="fix_w">维权小常识</p>
			</a>
		</li>
		<li>
			<a class="fix_ss flex_box" href="<?php echo htmlentities($WEB['r2']); ?>" target="_blank">
				<span class="fix_icon flex_box"><img src="/template/common/img/fix_bar_icon2.png" alt=""></span>
				<p class="fix_w">预审知多少</p>
			</a>
		</li>
		<li>
			<a class="fix_ss flex_box" href="<?php echo htmlentities($WEB['r3']); ?>" target="_blank">
				<span class="fix_icon flex_box"><img src="/template/common/img/fix_bar_icon3.png" alt=""></span>
				<p class="fix_w">远程教育</p>
			</a>
		</li>
		<li class="as_totop">
			<span class="fix_ss flex_box">
				<span class="fix_icon flex_box"><img src="/template/common/img/fix_bar_icon4.png" alt=""></span>
				<p class="fix_w">返回顶部</p>
			</span>
		</li>
	</ul>
</aside>
<!-- /侧边固定栏 -->

<!-- 页脚 -->
<footer class="footer_box">
	<div class="footer_top footer_fri pd_tb30">
		<div class="center_box flex_box">
			<span class="footer_name">友情链接：</span>
			<div class="footer_wrapper">
				<ul>
					
					<?php $_result=ads_list(2,99);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
					<li><a href="<?php echo htmlentities($v['url']); ?>" <?php echo htmlentities($v['is_new']); ?>><?php echo htmlentities($v['title']); ?></a></li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
					
				</ul>
			</div>
		</div>
	</div>
	<div class="footer_bot pd_tb40">
		<div class="center_box">
			<div class="footer_l fl">
				<div class="footer_info">
					<span><?php echo hang($WEB['foot_content']); ?></span>
				</div>
				<div class="footer_icp">
					<a href="<?php echo htmlentities($WEB['content3']); ?>" target="_blank"><img src="/template/common/img/gonganbeian.png" alt=""> <?php echo htmlentities($WEB['content2']); ?></a>|
					<a href="<?php echo htmlentities($WEB['beianurl']); ?>" target="_blank"><?php echo htmlentities($WEB['beian']); ?></a>
				</div>
			</div>
			<div class="footer_r fr">
				<div class="footer_qr">
					<ul>
						<li>
							<span class="footer_img"><img src="<?php echo htmlentities($WEB['foot_ewm1']); ?>" alt=""></span>
							<p class="footer_w">便民利企小程序</p>
						</li>
						<li>
							<span class="footer_img"><img src="<?php echo htmlentities($WEB['foot_ewm2']); ?>" alt=""></span>
							<p class="footer_w">远程教育</p>
						</li>
						<li>
							<span class="footer_img"><img src="<?php echo htmlentities($WEB['foot_ewm3']); ?>" alt=""></span>
							<p class="footer_w">微信公众号</p>
						</li>
					</ul>
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="footer_canvas waves"></div>
</footer>
<!-- /页脚 -->


<!--[if lte IE 9]> 
<script type="text/javascript" src="/template/common/js/jquery-animate-css-rotate-scale.js"></script>
<script type="text/javascript" src="/template/common/js/IE9.js"></script>
<![endif]-->
<script type="text/javascript" src="/template/common/js/footercanvas.js"></script>
<script type="text/javascript" src="/template/common/js/wow.js"></script>
<script type="text/javascript" src="/template/common/js/aos.js"></script>
<script>
	AOS.init({
		easing: 'ease-out-back',
		duration: 1000
	});
	
</script>
<script type="text/javascript" src="/template/common/js/common.js"></script>
</body>
</html>