|
|
@ -1,18 +1,19 @@
|
|
|
|
<div>
|
|
|
|
<% if false %>
|
|
|
|
<p class="collegeInfo">湖南警察学院大数据培训缴费</p>
|
|
|
|
<div>
|
|
|
|
<%= form_for @training do |f| %>
|
|
|
|
<p class="collegeInfo">湖南警察学院大数据培训缴费</p>
|
|
|
|
<p class="subtitle">基本信息</p>
|
|
|
|
<%= form_for @training do |f| %>
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<p class="subtitle">基本信息</p>
|
|
|
|
<span class="left_tag fl">姓名</span>
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<input type="text" class="right_input" id="username" name="name"
|
|
|
|
<span class="left_tag fl">姓名</span>
|
|
|
|
placeholder="请输入真实姓名" value="<%= @training.name %>"/>
|
|
|
|
<input type="text" class="right_input" id="username" name="name"
|
|
|
|
</li>
|
|
|
|
placeholder="请输入真实姓名" value="<%= @training.name %>"/>
|
|
|
|
<li class="clearfix infoBar" id="userSex" NavShow>
|
|
|
|
</li>
|
|
|
|
<span class="left_tag fl">性别</span>
|
|
|
|
<li class="clearfix infoBar" id="userSex" NavShow>
|
|
|
|
<label class="fr" id="sexl" style="margin-right: 24px;"><%= @training.sex == 1 ? '男' : '女' %></label>
|
|
|
|
<span class="left_tag fl">性别</span>
|
|
|
|
<i class="iconfont icon-youjiantou rightArrow"></i>
|
|
|
|
<label class="fr" id="sexl" style="margin-right: 24px;"><%= @training.sex == 1 ? '男' : '女' %></label>
|
|
|
|
<input type="hidden" id="sex" name="sex" value="<%= @training.sex ==1 ?1 : 2 %>">
|
|
|
|
<i class="iconfont icon-youjiantou rightArrow"></i>
|
|
|
|
</li>
|
|
|
|
<input type="hidden" id="sex" name="sex" value="<%= @training.sex == 1 ? 1 : 2 %>">
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<span class="left_tag fl">专业</span>
|
|
|
|
<span class="left_tag fl">专业</span>
|
|
|
|
<input type="text" class="right_input" id="userMajor" placeholder="请输入专业"
|
|
|
|
<input type="text" class="right_input" id="userMajor" placeholder="请输入专业"
|
|
|
@ -25,19 +26,19 @@
|
|
|
|
name="student_id"
|
|
|
|
name="student_id"
|
|
|
|
value="<%= @training.student_id %>"/>
|
|
|
|
value="<%= @training.student_id %>"/>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
<span class="left_tag fl">单位</span>
|
|
|
|
<span class="left_tag fl">单位</span>
|
|
|
|
<input type="text" class="right_input" id="userunit" placeholder="请输入单位名称或学校"
|
|
|
|
<input type="text" class="right_input" id="userunit" placeholder="请输入单位名称或学校"
|
|
|
|
name="school"
|
|
|
|
name="school"
|
|
|
|
value="<%#= @training.school %>"/>
|
|
|
|
value="<%#= @training.school %>"/>
|
|
|
|
</li>-->
|
|
|
|
</li>-->
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
<span class="left_tag fl">职称</span>
|
|
|
|
<span class="left_tag fl">职称</span>
|
|
|
|
<input type="text" class="right_input" id="usertitle" placeholder="请输入职称"
|
|
|
|
<input type="text" class="right_input" id="usertitle" placeholder="请输入职称"
|
|
|
|
name="position"
|
|
|
|
name="position"
|
|
|
|
value="<%#= @training.position %>"/>
|
|
|
|
value="<%#= @training.position %>"/>
|
|
|
|
</li>-->
|
|
|
|
</li>-->
|
|
|
|
<!--<p class="subtitle">通讯地址</p>
|
|
|
|
<!--<p class="subtitle">通讯地址</p>
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<!– <div class="clearfix" id="userArea" NavShow>–>
|
|
|
|
<!– <div class="clearfix" id="userArea" NavShow>–>
|
|
|
|
<!– <span class="left_tag fl">地区</span>–>
|
|
|
|
<!– <span class="left_tag fl">地区</span>–>
|
|
|
@ -48,20 +49,205 @@
|
|
|
|
id="DetailAdd"><%#= @training.address %></textarea>
|
|
|
|
id="DetailAdd"><%#= @training.address %></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
</li>-->
|
|
|
|
</li>-->
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">手机号码</span>
|
|
|
|
|
|
|
|
<input type="text" class="right_input" placeholder="请输入手机号" id="userphone"
|
|
|
|
|
|
|
|
name="phone"
|
|
|
|
|
|
|
|
value="<%= @training.phone %>"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">Email</span>
|
|
|
|
|
|
|
|
<input type="text" class="right_input" placeholder="请输入Email" id="userEmail"
|
|
|
|
|
|
|
|
name="email"
|
|
|
|
|
|
|
|
value="<%#= @training.email %>"/>
|
|
|
|
|
|
|
|
</li>-->
|
|
|
|
|
|
|
|
<p style="height: 50px;"></p>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="EnrollNext" onclick="NextStep();">下一步</a>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sexDownNav downNav">
|
|
|
|
|
|
|
|
<li>男</li>
|
|
|
|
|
|
|
|
<li>女</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
var down = $('#userSex');
|
|
|
|
|
|
|
|
var downNav = $(".sexDownNav");
|
|
|
|
|
|
|
|
showNav(down, downNav, "down");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".sexDownNav li").on("click", function () {
|
|
|
|
|
|
|
|
$(down).find("#sexl").html($(this).html());
|
|
|
|
|
|
|
|
hideNav(downNav);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($(this).html() == '男') {
|
|
|
|
|
|
|
|
$('#sex').val("1");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('#sex').val("2");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//下一步
|
|
|
|
|
|
|
|
function NextStep() {
|
|
|
|
|
|
|
|
var username = $("#username").val();
|
|
|
|
|
|
|
|
var userMajor = $("#userMajor").val();
|
|
|
|
|
|
|
|
var userphone = $("#userphone").val();
|
|
|
|
|
|
|
|
var userID = $("#userID").val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (username == '') {
|
|
|
|
|
|
|
|
alert("请输入真实姓名");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (userMajor == '') {
|
|
|
|
|
|
|
|
alert("请输入专业");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userID == '') {
|
|
|
|
|
|
|
|
alert("请输入学号");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userphone == '') {
|
|
|
|
|
|
|
|
alert("请输入手机号码");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else if (!/^1\d{10}$/.test(userphone) && !/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(userphone)) {
|
|
|
|
|
|
|
|
alert("请输入正确的手机号码");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('form').submit();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p class="collegeInfo"><%= @training_title %></p>
|
|
|
|
|
|
|
|
<%= form_for @training do |f| %>
|
|
|
|
|
|
|
|
<%= hidden_field_tag(:tag_id, @tag_id) %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="subtitle">基本信息</p>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">姓名</span>
|
|
|
|
|
|
|
|
<input type="text" class="right_input" id="username" name="name"
|
|
|
|
|
|
|
|
placeholder="请输入真实姓名" value="<%= @training.name %>"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar" id="userSex" NavShow>
|
|
|
|
|
|
|
|
<span class="left_tag fl">性别</span>
|
|
|
|
|
|
|
|
<label class="fr" id="sexl" style="margin-right: 24px;"><%= @training.sex == 1 ? '男' : '女' %></label>
|
|
|
|
|
|
|
|
<i class="iconfont icon-youjiantou rightArrow"></i>
|
|
|
|
|
|
|
|
<input type="hidden" id="sex" name="sex" value="<%= @training.sex == 1 ? 1 : 2 %>">
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">单位</span>
|
|
|
|
|
|
|
|
<input type="text" class="right_input" id="userUnit" placeholder="请输入单位名称或者学校"
|
|
|
|
|
|
|
|
name="school"
|
|
|
|
|
|
|
|
value="<%= @training.school %>"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">职称</span>
|
|
|
|
|
|
|
|
<input type="text" class="right_input" id="userPositional" placeholder="请输入职称"
|
|
|
|
|
|
|
|
name="position"
|
|
|
|
|
|
|
|
value="<%= @training.position %>"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
|
|
|
<p class="subtitle">培训类型</p>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">大数据方向</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<%= radio_button_tag(:training_category, '大数据方向', @training.training_category == '大数据方向', id: 'type_1', class: 'magic-radio') %>
|
|
|
|
|
|
|
|
<label for="type_1" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">人工智能方向</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<%= radio_button_tag(:training_category, '人工智能方向', @training.training_category == '人工智能方向', id: 'type_2', class: 'magic-radio') %>
|
|
|
|
|
|
|
|
<label for="type_2" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">大数据+人工智能方向</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<%= radio_button_tag(:training_category, '大数据+人工智能方向', @training.training_category == '大数据+人工智能方向', id: 'type_3', class: 'magic-radio') %>
|
|
|
|
|
|
|
|
<label for="type_3" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<p class="subtitle">您的授课/研究领域(最少选1项)</p>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">机器学习/深度学习</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="机器学习/深度学习" <%= @training.research_field_include?("机器学习/深度学习") ? "checked" : "" %> id="check_1" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_1" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">计算机结构与组成</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="计算机结构与组成" <%= @training.research_field_include?("计算机结构与组成") ? "checked" : "" %> id="check_2" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_2" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">计算机系统</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="计算机系统" <%= @training.research_field_include?("计算机系统") ? "checked" : "" %> id="check_3" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_3" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">计算机软件技术和应用</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="计算机软件技术和应用" <%= @training.research_field_include?("计算机软件技术和应用") ? "checked" : "" %> id="check_4" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_4" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">计算机理论</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="计算机理论" <%= @training.research_field_include?("计算机理论") ? "checked" : "" %> id="check_5" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_5" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">计算机应用与学科交叉</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="计算机应用与学科交叉" <%= @training.research_field_include?("计算机应用与学科交叉") ? "checked" : "" %> id="check_6" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_6" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<span class="left_tag fl">其他</span>
|
|
|
|
|
|
|
|
<span class="fr">
|
|
|
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="其他" <%= @training.research_field_include?("其他") ? "checked" : "" %> id="check_7" class="magic-checkbox">
|
|
|
|
|
|
|
|
<label for="check_7" style="top:8px"> </label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="subtitle">通讯地址</p>
|
|
|
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
|
|
|
<!--<div class="clearfix" id="userArea" NavShow>-->
|
|
|
|
|
|
|
|
<!--<span class="left_tag fl">地区</span>-->
|
|
|
|
|
|
|
|
<!--<input type="text" class="right_input" id="usertitle" placeholder="填写区域"/>-->
|
|
|
|
|
|
|
|
<!--<i class="iconfont icon-youjiantou rightArrow"></i>-->
|
|
|
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
<textarea class="DetailAddress" placeholder="请输入详细地址" name="address" id="DetailAdd" style="margin-top: 15px;"><%= @training.address %></textarea>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<span class="left_tag fl">手机号码</span>
|
|
|
|
<span class="left_tag fl">手机号码</span>
|
|
|
|
<input type="text" class="right_input" placeholder="请输入手机号" id="userphone"
|
|
|
|
<input type="text" class="right_input" placeholder="请输入手机号" id="userphone"
|
|
|
|
name="phone"
|
|
|
|
name="phone"
|
|
|
|
value="<%= @training.phone %>"/>
|
|
|
|
value="<%= @training.phone %>"/>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<!--<li class="clearfix infoBar">
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
<span class="left_tag fl">Email</span>
|
|
|
|
<span class="left_tag fl">Email</span>
|
|
|
|
<input type="text" class="right_input" placeholder="请输入Email" id="userEmail"
|
|
|
|
<input type="text" class="right_input" placeholder="请输入Email" id="userEmail" name="email" value="<%= @training.email %>"/>
|
|
|
|
name="email"
|
|
|
|
</li>
|
|
|
|
value="<%#= @training.email %>"/>
|
|
|
|
|
|
|
|
</li>-->
|
|
|
|
|
|
|
|
<p style="height: 50px;"></p>
|
|
|
|
<p style="height: 50px;"></p>
|
|
|
|
<a href="javascript:void(0)" class="EnrollNext" onclick="NextStep();">下一步</a>
|
|
|
|
<a href="javascript:void(0)" class="EnrollNext" onclick="NextStep();">完成</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -79,9 +265,9 @@
|
|
|
|
$(down).find("#sexl").html($(this).html());
|
|
|
|
$(down).find("#sexl").html($(this).html());
|
|
|
|
hideNav(downNav);
|
|
|
|
hideNav(downNav);
|
|
|
|
|
|
|
|
|
|
|
|
if ($(this).html()=='男'){
|
|
|
|
if ($(this).html() == '男') {
|
|
|
|
$('#sex').val("1");
|
|
|
|
$('#sex').val("1");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#sex').val("2");
|
|
|
|
$('#sex').val("2");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -108,6 +294,19 @@
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
|
|
|
var trainingCategory = $('input[type="radio"][name="training_category"]:checked').val();
|
|
|
|
|
|
|
|
if (trainingCategory == undefined || trainingCategory == '') {
|
|
|
|
|
|
|
|
alert('请选择培训类型');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($("input[type='checkbox'][name='research_field[]']:checked").length == 0) {
|
|
|
|
|
|
|
|
alert('请选择授课类型/研究领域');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
if (userphone == '') {
|
|
|
|
if (userphone == '') {
|
|
|
|
alert("请输入手机号码");
|
|
|
|
alert("请输入手机号码");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|