|
|
|
@ -152,58 +152,26 @@
|
|
|
|
|
name="position"
|
|
|
|
|
value="<%= @training.position %>"/>
|
|
|
|
|
</li>
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
<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>
|
|
|
|
|
<span class="left_tag fl">手机号码</span>
|
|
|
|
|
<input type="text" class="right_input" placeholder="请输入手机号" id="userphone"
|
|
|
|
|
name="phone"
|
|
|
|
|
value="<%= @training.phone %>"/>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
<p class="subtitle">您关注的课程类型(最少选1项)</p>
|
|
|
|
|
|
|
|
|
|
<% %w(程序设计 操作系统 数据库 软件工程 云计算 大数据 人工智能 计算机网络 物联网 信息安全 其他).each_with_index do |name, index| %>
|
|
|
|
|
<li class="clearfix infoBar">
|
|
|
|
|
<span class="left_tag fl">其他</span>
|
|
|
|
|
<span class="left_tag fl"><%= name %></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>
|
|
|
|
|
<input type="checkbox" name="research_field[]" value="<%= name %>" <%= @training.research_field_include?(name) ? "checked" : "" %> id="check_<%= index %>" class="magic-checkbox">
|
|
|
|
|
<label for="check_<%= index %>" style="top:8px"> </label>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<!-- <p class="subtitle">通讯地址</p>-->
|
|
|
|
|
<!-- <li class="clearfix infoBar">-->
|
|
|
|
@ -214,12 +182,6 @@
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <textarea class="DetailAddress" placeholder="请输入详细地址" name="address" id="DetailAdd" style="margin-top: 15px;"><%#= @training.address %></textarea>-->
|
|
|
|
|
<!-- </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 %>"/>-->
|
|
|
|
@ -259,30 +221,23 @@
|
|
|
|
|
//下一步
|
|
|
|
|
function NextStep() {
|
|
|
|
|
var username = $("#username").val();
|
|
|
|
|
var userMajor = $("#userMajor").val();
|
|
|
|
|
var userUnit = $("#userUnit").val();
|
|
|
|
|
var userPositional = $("#userPositional").val();
|
|
|
|
|
var userphone = $("#userphone").val();
|
|
|
|
|
var userID = $("#userID").val();
|
|
|
|
|
|
|
|
|
|
if (username == '') {
|
|
|
|
|
alert("请输入真实姓名");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (userMajor == '') {
|
|
|
|
|
alert("请输入专业");
|
|
|
|
|
alert("请输入姓名");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (userID == '') {
|
|
|
|
|
alert("请输入学号");
|
|
|
|
|
if (userUnit == '') {
|
|
|
|
|
alert("请输入单位名称或者学校");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
if ($("input[type='checkbox'][name='research_field[]']:checked").length == 0) {
|
|
|
|
|
alert('请选择授课类型/研究领域');
|
|
|
|
|
if (userPositional == '') {
|
|
|
|
|
alert("请输入职称");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
if (userphone == '') {
|
|
|
|
|
alert("请输入手机号码");
|
|
|
|
@ -292,6 +247,13 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<% if @training_type == 3 %>
|
|
|
|
|
if ($("input[type='checkbox'][name='research_field[]']:checked").length == 0) {
|
|
|
|
|
alert('请选择您关注的课程类型');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
$('form').submit();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|