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.
220 lines
12 KiB
220 lines
12 KiB
{layout name="layout" /}
|
|
<link rel="stylesheet" type="text/css" href="{$yf_theme_path}public/css/bootstrap.css">
|
|
<style>
|
|
.user-detail .error{padding-left:5px;color:red;line-height:2.4em;}
|
|
|
|
|
|
.user-detail input[type=checkbox]{vertical-align:middle}
|
|
.user-detail textarea{height:4em;overflow:auto;width:220px;}
|
|
.user-detail span.special{vertical-align: middle}
|
|
.detail-edit{padding-top:30px !important;}
|
|
</style>
|
|
<div class="sec-user clearfix">
|
|
<div class="content">
|
|
<div class="user-detail">
|
|
<div class="detail-edit">
|
|
<form method="post" id="postForm" action="{:url('corporate')}" class="f-form-2 form-horizontal active">
|
|
<div class="sub-tit">企业基本信息</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">企业名称</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" class="form-control" id="name" name="name" value="{$detail.name}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">法人代表</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" class="form-control" id="legal_person" name="legal_person" value="{$detail.legal_person}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">所在省市</label>
|
|
<div class="col-xs-7">
|
|
<input type="hidden" id="region_id" name="region_id" value="{$detail.region_id}" />
|
|
<select id="province" name="province" class="form-control" style="width:158px;">
|
|
<option value="">请选择省份</option>
|
|
{foreach name="regions" id="vo"}
|
|
<option value="{$vo.id}" {if condition="$vo['id'] eq $detail['province']"}selected='selected'{/if}>{$vo.name}</option>
|
|
{/foreach}
|
|
</select>
|
|
<select id="city" name="city" class="form-control" style="margin-left:10px;line-height:1.4em;width:158px;">
|
|
<option value="">请选择城市</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">详细地址</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="address" name="address" class="form-control" value="{$detail.address}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">企业性质</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="nature" name="nature" class="form-control" value="{$detail.nature}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">注册时间</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="registration_date" class="form-control" data-widget='dateTime' data-format="yyyy-mm" name="registration_date"" value="{$detail.registration_date}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">注册资本</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="registration_capital" class="form-control" name="registration_capital" value="{$detail.registration_capital}" placeholder="单位万元" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">联系人</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="contact_name" name="contact_name" class="form-control" value="{$detail.contact_name}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">手机号</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="contact_phone" name="contact_phone" class="form-control" value="{$detail.contact_phone}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">传真</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="contact_fax" name="contact_fax" value="{$detail.contact_fax}" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">E-MAIL</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="contact_email" name="contact_email" value="{$detail.contact_email}" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<div class="sub-tit">融资计划信息(选填)</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">融资方式</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="financing_way" name="financing_way" value="{$detail.financing_way}" class="form-control"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label">股权/资产出让比</label>
|
|
<div class="col-xs-7">
|
|
<input type="text" id="stock_transfer_proportion" name="stock_transfer_proportion" value="{$detail.stock_transfer_proportion}" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2 control-label"></label>
|
|
<div class="col-xs-7">
|
|
{if condition="$profile['corporate_verification_status'] eq 1"}
|
|
<button type="button" class="btn-submit" onclick="window.location.href='{:url('index')}'">返回</button>
|
|
{else}
|
|
<button type="submit" class="btn-submit">保存</button>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="user-caidan">
|
|
{include file="public:userinfo" /}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="{$yf_theme_path}/public/js/jquery.form.js"></script>
|
|
<script src="{$yf_theme_path}/public/js/jquery.validate.min.js"></script>
|
|
<script src="{$yf_theme_path}/public/js/common.js"></script>
|
|
<script src="{$yf_theme_path}/public/js/base.js"></script>
|
|
<script>
|
|
$(function(){
|
|
// 手机号码验证
|
|
jQuery.validator.addMethod("isMobile", function(value, element) {
|
|
var length = value.length;
|
|
return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value));
|
|
}, "请正确填写您的手机号码。");
|
|
// 身份证号码验证
|
|
jQuery.validator.addMethod("isIdCardNo", function(value, element) {
|
|
//var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/;
|
|
return this.optional(element) || isIdCardNo(value);
|
|
}, "请输入正确的身份证号码。");
|
|
var regions={$regions|json_encode};
|
|
var city="{$detail.city}";
|
|
if(city!="")city=parseInt(city);
|
|
$("#province").change(function(){
|
|
$("#region_id").val("");
|
|
var html='<option value="">请选择城市</option>';
|
|
$("#city").html(html);
|
|
var val=$("#province").val();
|
|
var index=$("#province").get(0).selectedIndex;
|
|
if(index>0){
|
|
index=index-1;
|
|
if(typeof regions[index]!='undefined'){
|
|
var current=regions[index];
|
|
console.log(current);
|
|
var subregions=current['subregions'];
|
|
console.log(subregions);
|
|
var html='<option value="">请选择城市</option>';
|
|
if(subregions.length){
|
|
subregions.forEach(function(item){
|
|
if(city!=""&&item['id']==city){
|
|
html+='<option value="'+item['id']+'" selected="selected">'+item['name']+'</option>';
|
|
}else{
|
|
html+='<option value="'+item['id']+'">'+item['name']+'</option>';
|
|
}
|
|
});
|
|
$("#city").html(html);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
$("#city").change(function(){
|
|
var val=$("#city").val();
|
|
$("#region_id").val(val);
|
|
});
|
|
{if condition="$detail['province'] and $detail['city']"}
|
|
$("#province").trigger("change");
|
|
$("#region_id").val("{$detail.city}");
|
|
{/if}
|
|
var rules={
|
|
"name":"required",
|
|
"legal_person":"required",
|
|
"city":"required",
|
|
"address":"required",
|
|
"nature":"required",
|
|
"registration_date":"required",
|
|
"registration_capital":"required",
|
|
"financing_way":"required",
|
|
"stock_transfer_proportion":"required",
|
|
"contact_name":"required",
|
|
"contact_phone":{
|
|
"required":true,
|
|
"isMobile":true
|
|
},
|
|
"contact_email":{
|
|
"required":true,
|
|
"email":true
|
|
}
|
|
};
|
|
var messages={
|
|
"name":"企业名称必填",
|
|
"legal_person":"法人代表必填",
|
|
"city":"城市必选",
|
|
"address":"详细地址必填",
|
|
"nature":"企业性质必填",
|
|
"registration_date":"注册日期必填",
|
|
"registration_capital":"注册资本必填",
|
|
"financing_way":"融资方式必填",
|
|
"stock_transfer_proportion":"出让比必填",
|
|
"contact_name":"联系人必填",
|
|
"contact_phone":{
|
|
"required":"手机号码必填",
|
|
"isMobile":"请正确填写手机"
|
|
},
|
|
"contact_email":{
|
|
"required":"邮箱必填",
|
|
"email":"正确邮箱地址"
|
|
}
|
|
};
|
|
tool.commonForm("#postForm",rules,messages);
|
|
});
|
|
</script>
|