You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
221 lines
12 KiB
221 lines
12 KiB
<!DOCTYPE html>
|
|
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
|
|
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
|
|
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{$menu.menu_seo_title|default=$site_seo_title} {$site_name}</title>
|
|
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
|
|
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
|
|
{include file="public:head" /}
|
|
</head>
|
|
<body class="home">
|
|
<div class="wrap">
|
|
{include file="public:nav" /}
|
|
<link href="__PUBLIC__/ppy/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
|
|
<script src="__PUBLIC__/ppy/js/fileinput.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ppy/js/fileinput_locale_zh.js" type="text/javascript"></script>
|
|
<div class="content bodymb">
|
|
<div class=" entry entry_in basictop">
|
|
<div class="entry_i">
|
|
<div class="moderighttag modeub modeac">
|
|
<div class="linecolor"></div>
|
|
<div class="basictitle">
|
|
{if condition="$list.k_type eq 2"}
|
|
{if condition="$list.apply_type eq 1"}【国有托管】{$list.c_name}
|
|
{elseif condition="$list.apply_type eq 2"}【非国有托管】{$list.p_name}
|
|
{else /}【其他托管】{$list.t_apply_username}
|
|
{/if}<span style="color: red">(补充资料)</span>
|
|
{elseif condition="$list.k_type eq 3"/}
|
|
{if condition="$list.apply_type eq 4"}【招拍挂平台】{$list.c_name}
|
|
{elseif condition="$list.apply_type eq 5"}【策略联盟挂牌】{$list.p_name}
|
|
{/if}<span style="color: red">(补充资料)</span>
|
|
{else /}
|
|
{if condition="$list.apply_type eq 1"}【企业托管】{$list.c_name}
|
|
{elseif condition="$list.apply_type eq 2"}【项目托管】{$list.p_name}
|
|
{else /}【人才托管】{$list.t_apply_username}
|
|
{/if}<span style="color: red">(补充资料)</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<form id="subname1" class="form-horizontal ajax-form-file" name="form0" id="sub" method="post" action="{:url('home/Listn/gp_upedit')}" enctype='multipart/form-data'>
|
|
<input type="hidden" name="apply_id" value="{$list.apply_id}" />
|
|
{notempty name="files"}
|
|
<div class="basiccon basiccon2 basiccon3">
|
|
<div class=" modeub modept modeac modepc">
|
|
<div class="sicon logobackimg"></div>
|
|
<div class="filename">附件提交</div>
|
|
<div class="sicon logobackimg"></div>
|
|
</div>
|
|
<div class="">
|
|
<div class="modeub listborder">
|
|
<div class="listleftright modeub modef1">
|
|
<div class=" listnumber">#</div>
|
|
<div class="modef1 liststyle">附件标题</div>
|
|
<div class="liststu modeub modepc">文件格式</div>
|
|
<div class="liststu" style="width: 500px;text-align: right;padding-right: 85px;">上传</div>
|
|
</div>
|
|
</div>
|
|
{volist name="files" id="vo" key="k"}
|
|
<div class="modeub listborder">
|
|
<div class="listleftright modeub modef1">
|
|
<div class=" listnumber">{$k}</div>
|
|
<div class=" modef1 liststyle modeub modeac">
|
|
<div class=" modef1 liststyle modeub modeac">
|
|
<div class="xuzhi" style="width: 275px">{$vo.ftypedescr}</div>
|
|
{notempty name="vo.ftemp_id"}
|
|
<div class="icondown logobackimg" style="background-size: 65%;" onclick="javascript:window.open('{:get_tempfile($vo.ftemp_id)}')"></div>
|
|
<div style="color:#eb600b;font-size: 12px;" onclick="javascript:window.open('{:get_tempfile($vo.ftemp_id)}')">下载模板</div>
|
|
{/notempty}
|
|
</div>
|
|
</div>
|
|
<div class="liststu listedstatus modeub modepc">{$vo.ftype|strtolower}</div>
|
|
<div class="liststu listedstatus modeub modepc" style="width: 500px;">
|
|
<div style="line-height: 32px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: 300px;">
|
|
</div>
|
|
<div class="buttonright modeub buttonright2" style="margin-left: 0px;">
|
|
<div class="leftbutton2"></div>
|
|
<div class="modef1 centerbutton2 modeub modeac modepc">选择文件</div>
|
|
<div class="rightbutton2"></div>
|
|
</div>
|
|
<!-- <input name="file_one{$vo.ftype_id}" accept="application/pdf" id="file_one{$k}" type="file" class="upfileter" data-show-preview="false" data-show-upload="false" data-show-caption="true" data-allowed-file-extensions='["{$vo.ftype}"]' required>-->
|
|
<input type="file" style="left: 340px;" name="file_one{$vo.ftype_id}" id="file_one{$k}" data-show-preview="false" data-show-upload="false"
|
|
{if condition="$vo.ftype eq 'JPG'"}accept="image/jpeg" {/if}{if condition="$vo.ftype eq 'PDF'"}accept="application/pdf" {/if}{if condition="$vo.ftype eq 'DOC'"}accept=" application/msword" {/if}
|
|
data-show-caption="true" data-allowed-file-extensions='["{$vo.ftype}"]' class="upfileter file_name" {if condition="$vo.mustupload eq 1"} required{/if}>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/volist}
|
|
{if condition="$list.apply_type neq 4"}
|
|
<div class="modeub listborder">
|
|
<div class="listleftright modeub modef1 cursor_text">
|
|
<div class=" listnumber">{:count($files)+1}</div>
|
|
<div class=" modef1 liststyle modeub modeac">
|
|
<div class="xuzhi" style="width: 275px">付款证明</div>
|
|
{if condition="$list.apply_type neq 5"}
|
|
<div class="icondown logobackimg" style="background-size: 65%;" onclick="javascript:window.open('/data/upload/paymenturl.pdf')"></div>
|
|
<div style="color:#eb600b;font-size: 12px;" onclick="javascript:window.open('/data/upload/paymenturl.pdf')">下载模板</div>
|
|
{else}
|
|
<div class="icondown logobackimg" style="background-size: 65%;" onclick="javascript:window.open('/data/upload/paymenturl2.pdf')"></div>
|
|
<div style="color:#eb600b;font-size: 12px;" onclick="javascript:window.open('/data/upload/paymenturl2.pdf')">下载模板</div>
|
|
{/if}
|
|
</div>
|
|
<div class="liststu listedstatus modeub modepc">PDF</div>
|
|
<div class="liststu listedstatus modeub modepc" style="width: 500px;">
|
|
<div style="line-height: 32px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;width: 300px;"></div>
|
|
<div class="buttonright modeub buttonright2" style="margin-left: 0px;">
|
|
<div class="leftbutton2"></div>
|
|
<div class="modef1 centerbutton2 modeub modeac modepc">选择文件</div>
|
|
<div class="rightbutton2"></div>
|
|
</div>
|
|
<input type="file" style="left: 340px;" name="payment_url" id="file_one{:count($files)+1}" data-show-preview="false" data-show-upload="false" accept="application/pdf" data-show-caption="true" data-allowed-file-extensions='["pdf"]' class="upfileter file_name" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/notempty}
|
|
<div class="basiccon basiccon2 basiccon3">
|
|
<div class=" modeub modept modeac modepc">
|
|
<div class="headerightbun modeub modeac modepc" onclick="sub()">提交</div>
|
|
</div>
|
|
<input type="submit" id="apply_btn3" style="display: none">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{include file="public:footer"/}
|
|
<script>
|
|
function loading(msg){
|
|
html='<div class="layui-layer-shade" id="loadingbg" style="z-index:19891017; background-color:#000; opacity:0.6; filter:alpha(opacity=60);"></div>';
|
|
html+='<div class="layui-layer layer-anim layui-layer-dialog layui-layer-msg" id="loadingmsg" type="dialog" style="z-index: 19891018; top:48%; left:48%;"><div id="" class="layui-layer-content layui-layer-padding"><i class="layui-layer-ico layui-layer-ico16"></i>提交中,请勿关闭浏览器</div><span class="layui-layer-setwin"></span></div>';
|
|
$("body").append(html);
|
|
}
|
|
function closeloading(){
|
|
var len=$("#loadingbg").length;
|
|
if(len){
|
|
$("#loadingbg").remove();
|
|
$("#loadingmsg").remove();
|
|
}
|
|
}
|
|
function sub() {
|
|
var isvalid = true;
|
|
$("#subname1 input:file").each(function(){
|
|
if($(this)[0].validity.valueMissing){
|
|
isvalid=false;
|
|
}
|
|
});
|
|
if(isvalid){
|
|
loading("提交中,请勿关闭浏览器");
|
|
var formData = new FormData($("#subname1")[0]);
|
|
setTimeout(function(){
|
|
$.ajax({type:"POST",
|
|
url:$("#subname1").attr("action"),
|
|
data:formData,
|
|
contentType: false,
|
|
processData: false,
|
|
mimeType:"multipart/form-data",
|
|
async: false,
|
|
success:function (data) {
|
|
closeloading();
|
|
data = JSON.parse(data)
|
|
if (data.code == 1) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
}else{
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
});
|
|
}
|
|
}
|
|
})
|
|
},3000);
|
|
}else{
|
|
$("#apply_btn3").click();
|
|
}
|
|
}
|
|
$(".file_name").change(function(e){
|
|
if(e.currentTarget.files.length==0){
|
|
$(this).prev().prev().text("");
|
|
}else{
|
|
if(e.currentTarget.files[0].size>(20*1024*1024)){
|
|
name ='文件超过20M';
|
|
$(this).val('');
|
|
$(this).prev().prev().css("text-align","right");
|
|
$(this).prev().prev().text(name);
|
|
return false;
|
|
}
|
|
var name = e.currentTarget.files[0].name;
|
|
var filetype = name.substring(name.lastIndexOf(".")+1).toUpperCase();
|
|
$(this).prev().prev().css("text-align","left")
|
|
if($(this).parent().prev().text().toUpperCase()=='PDF'){
|
|
if(filetype!='PDF'){
|
|
name ='文件类型错误';
|
|
$(this).val('');
|
|
$(this).prev().prev().css("text-align","right");
|
|
}
|
|
}else if($(this).parent().prev().text().toUpperCase()=='JPG'){
|
|
if(filetype!='JPG'){
|
|
name ='文件类型错误';
|
|
$(this).val('');
|
|
$(this).prev().prev().css("text-align","right")
|
|
}
|
|
}else if($(this).parent().prev().text().toUpperCase()=='DOC'){
|
|
if(filetype!='DOC' && filetype!='DOCX' ){
|
|
name ='文件类型错误';
|
|
$(this).val('');
|
|
$(this).prev().prev().css("text-align","right")
|
|
}
|
|
}
|
|
$(this).prev().prev().text(name);
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|