<?php /*a:7:{s:31:"./template/lists/list_wybm.html";i:1663231696;s:29:"./template/common\common.html";i:1663207974;s:26:"./template/common\top.html";i:1663035631;s:30:"./template/common\menu_xx.html";i:1663208161;s:30:"./template/common\menu_zm.html";i:1663050257;s:30:"./template/common\foot_wq.html";i:1663059326;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="xt_header">
	<div class="center_box flex_box">
		<a class="logo fl" href="<?php echo cate(19,url); ?>"><img src="/template/common/img/xt_logo_xx.png" alt=""></a>
		<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>
</header>
<div class="xt_header_height"></div>
<!-- /header -->

<!-- 主体 -->
<main class="xt_main">
	<div class="center_box">
		<!-- 当前位置 -->
		<p class="inner_loc pd_tb20">
			<span class="inner_loc_tit"><i class="iconfont icon-shouye"></i></span>
			<span>当前位置：</span>
			<a href="<?php echo cate($F[1],url); ?>">信息服务系统</a>&nbsp;—&nbsp;<a>志愿者招募</a>&nbsp;—&nbsp;<span>我要报名</span>
		</p>
		<!-- /当前位置 -->
		
		<!-- 招募信息 -->
		<div class="xt2_fwjgjs pd_b80">
			<div class="center_box">
				<div class="border_whitebg pd_50 pd_t0">
					<div class="xt2_fwjgjs_tit flex_box pd_tb20">
						<div class="r_title flex_box">
							<span class="r_title_icon icon_svg_img flex_box"><img src="/template/common/img/xt2_zmxx_icon.png" alt=""></span>
							<h1 class="r_title_h">志愿者招募</h1>
						</div>
						<a class="ipn_return flex_box" href="javascript:history.back(-1)">
							<span>返回上级</span>
							<i class="iconfont icon-fanhui"></i>
						</a>
					</div>
					<div class="xt2_zyz flex_box mg_t30">
						<div class="xt2_zyz_l">
	<div class="xt2_zyz_nav">
		<div class="xt2_zyz_nav_tit flex_box">
			<span class="xt2_zyz_nav_icon icon_svg_img flex_box"><img src="/template/common/img/xt2_zyzzm_icon.png" alt=""></span>
			<h2 class="xt2_zyz_nav_h">志愿者招募</h2>
		</div>
		<div class="xt2_zyz_nav_con">
			<ul class="pd_tb15">
				
				<?php $_result=cates($F[2]);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 class="<?php if(is_this($v['id'])==1): ?>active<?php endif; ?>"><a class="pd_tb15" href="<?php echo htmlentities($v['url']); ?>"><?php echo htmlentities($v['catename']); ?></a></li>
				<?php endforeach; endif; else: echo "" ;endif; ?>
				
			</ul>
		</div>
	</div>
</div>
						<div class="xt2_zyz_r">
							<div class="r_title2 pd_b20">
								<h1 class="r_title_h">我要报名</h1>
							</div>
							<div class="xt2_wybm xt1_form mg_t30">
								<form name="form_1" id="form_1" onsubmit="return form_go();">
								<input name="table" type="hidden" value="form_content4" />
								<div class="xt2_sczp">
									<input type="file" class="upimg_btn" id="up-img-file" onchange="upimg(this)">
									<input name="ly1" id="ly1" type="hidden" value="" />
									<label for="up-img-file">
										<span class="xt2_sczp_img">
											<img src="" alt="" style="display:none">
										</span>
										<div class="xt2_sczp_wrap flex_box">
											<p class="xt2_w">上传照片</p>
										</div>
									</label>
								</div>
								<div class="xt2_row flex_box mg_b15 xt2_row_h">
									<div class="xt2_item xt2_c4">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>姓名：</span>
											<div class="xt2_inp">
												<input type="text" name="ly2" required>
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_item_zs xt2_c3">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>性别：</span>
											<div class="xt2_inp">
												<input type="text" name="ly3" required>
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_item_zs xt2_c3">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>民族：</span>
											<div class="xt2_inp">
												<input type="text" name="ly4" required>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15 xt2_row_h">
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>出生年月：</span>
											<div class="xt2_inp">
												<input type="text" name="ly5" required>
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>专业领域：</span>
											<div class="xt2_inp">
												<input type="text" name="ly6" required>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15 xt2_row_h">
									<div class="xt2_item xt2_c10">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">身份证号：</span>
											<div class="xt2_inp">
												<input type="text" name="ly7">
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15 xt2_row_h">
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">职称：</span>
											<div class="xt2_inp">
												<input type="text" name="ly8">
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_item_zs xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">职务：</span>
											<div class="xt2_inp">
												<input type="text" name="ly9">
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c10">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>所学专业：</span>
											<div class="xt2_inp">
												<input type="text" name="ly10" required>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">在岗状态：</span>
											<div class="xt2_inp">
												<input type="text" name="ly11">
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">工作单位：</span>
											<div class="xt2_inp">
												<input type="text" name="ly12">
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c6">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">通讯地址：</span>
											<div class="xt2_inp">
												<input type="text" name="ly13">
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_item_zs xt2_c4">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">邮编：</span>
											<div class="xt2_inp">
												<input type="text" name="ly14">
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">单位电话：</span>
											<div class="xt2_inp">
												<input type="text" name="ly15">
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name">单位传真：</span>
											<div class="xt2_inp">
												<input type="text" name="ly16">
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>手机号码：</span>
											<div class="xt2_inp">
												<input type="text" name="ly17" required>
											</div>
										</div>
									</div>
									<div class="xt2_item xt2_c5">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>邮箱号码：</span>
											<div class="xt2_inp">
												<input type="text" name="ly18" required>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c10">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>学习经历：</span>
											<div class="xt2_inp xt2_tj_wrap flex_box">
												<i class="xt2_line"></i>
												<span class="xt2_tj_btn xt2_tj_btn1">+ 添加学习经历</span>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_clone_box xt2_clone_box1">
									<div class="xt2_row flex_box mg_b15">
										<div class="xt2_item xt2_c4">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">起止年月：</span>
												<div class="xt2_inp">
													<input type="text" name="ly19[1][]" required>
												</div>
											</div>
										</div>
										<div class="xt2_item xt2_item_zd xt2_c4">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">院校、系及专业：</span>
												<div class="xt2_inp">
													<input type="text" name="ly19[2][]" required>
												</div>
											</div>
										</div>
										<div class="xt2_item xt2_item_zs xt2_c2">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">学位：</span>
												<div class="xt2_inp">
													<input type="text" name="ly19[3][]" required>
												</div>
											</div>
										</div>
										<span class="xt2_del flex_box">
											<i class="iconfont icon-tianjia"></i>
										</span>
									</div>
								</div>
								<div class="xt2_row flex_box mg_b15">
									<div class="xt2_item xt2_c10">
										<div class="xt2_ss flex_box">
											<span class="xt2_name"><em>*</em>工作经历：</span>
											<div class="xt2_inp xt2_tj_wrap flex_box">
												<i class="xt2_line"></i>
												<span class="xt2_tj_btn xt2_tj_btn2">+ 添加工作经历</span>
											</div>
										</div>
									</div>
								</div>
								<div class="xt2_clone_box xt2_clone_box2">
									<div class="xt2_row flex_box mg_b15">
										<div class="xt2_item xt2_c4">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">起止年月：</span>
												<div class="xt2_inp">
													<input type="text" name="ly20[1][]" required>
												</div>
											</div>
										</div>
										<div class="xt2_item xt2_item_zd xt2_c4">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">工作单位：</span>
												<div class="xt2_inp">
													<input type="text" name="ly20[2][]" required>
												</div>
											</div>
										</div>
										<div class="xt2_item xt2_item_zs xt2_c2">
											<div class="xt2_ss flex_box">
												<span class="xt2_name">职务：</span>
												<div class="xt2_inp">
													<input type="text" name="ly20[3][]" required>
												</div>
											</div>
										</div>
										<span class="xt2_del flex_box">
											<i class="iconfont icon-tianjia"></i>
										</span>
									</div>
								</div>
								<div class="xt1_fitem dlzc_btns mg_t50">
									<a class="dlzc_btn dlzc_btn1" href="javascript:form_go();">提交</a>
									<a class="dlzc_btn dlzc_btn2" href="javascript:document.form_1.reset();">重置</a>
								</div>
								</form>
							</div>
							<script>
								$(".xt2_tj_btn1").click(function(){
									$(".xt2_clone_box1").append($(".xt2_clone_box1 .xt2_row:eq(0)").clone());
								});
								$(".xt2_tj_btn2").click(function(){
									$(".xt2_clone_box2").append($(".xt2_clone_box2 .xt2_row:eq(0)").clone());
								});
								$("body").on("click", ".xt2_del", function(){
									$(this).parent(".xt2_row").remove();
								})
							</script>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- /招募信息 -->
		
	</div>
	
</main>
<!-- /主体 -->
<script>
function form_go(){
	var post_data=$("#form_1").serialize();
	post_data.Ajax=1;
	$.ajax({
		url:"<?php echo url('index/Form/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 upimg(obj){
	if( obj.value =="" ) { return; }
	var formdata = new FormData();
	formdata.append("file" , $(obj)[0].files[0]);//获取文件法二
	$.ajax({
		type : 'post',
		url : "<?php echo url('index/Upload/upload'); ?>", //接口
		data : formdata,
		cache : false,
		processData : false, // 不处理发送的数据，因为data值是Formdata对象，不需要对数据做处理
		contentType : false, // 不设置Content-type请求头
		success : function(response){
			//console.log(response);
			if(response.type==1){
				$('.xt2_sczp_img img').attr('src',response.file).show();
				$('#ly1').val(response.file);
			}else{
				alert(response.info);
			}
		},
		error : function(){ }
	});
}
</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>
<!-- /侧边固定栏 -->

<!-- 页脚 -->
<div class="xt_footer_height"></div>
<footer class="xt_footer">
	<div class="xt_cpr center_box">
		<span><?php echo htmlentities($WEB['content4']); ?></span>
	</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>