|
|
|
@ -1,26 +1,51 @@
|
|
|
|
|
<p class="clearfix edu-back-white">
|
|
|
|
|
<p class="clearfix df edu-back-white">
|
|
|
|
|
<span class="column-No">序号</span>
|
|
|
|
|
<span class="column-2" style="width:260px">单位名称</span>
|
|
|
|
|
<span class="column-1">教师</span>
|
|
|
|
|
<span class="column-1">学生</span>
|
|
|
|
|
<span class="column-1">课堂</span>
|
|
|
|
|
<span class="column-1">发布实训</span>
|
|
|
|
|
<span class="column-1">实训报告</span>
|
|
|
|
|
<span class="flex1 edu-txt-left">单位名称</span>
|
|
|
|
|
<span class="column-7">权限控制</span>
|
|
|
|
|
<span class="column-11">教师</span>
|
|
|
|
|
<span class="column-11">学生</span>
|
|
|
|
|
<span class="column-11">课堂</span>
|
|
|
|
|
<span class="column-11">发布实训</span>
|
|
|
|
|
<span class="column-11">实训报告</span>
|
|
|
|
|
<span class="column-2">最新课堂动态时间</span>
|
|
|
|
|
<span class="column-2 fr">使用详情</span>
|
|
|
|
|
<span class="column-No fr">使用详情</span>
|
|
|
|
|
</p>
|
|
|
|
|
<ul class="minH-560 edu-back-white pb20 courselist">
|
|
|
|
|
<% @schools.each_with_index do |school, index| %>
|
|
|
|
|
<li class="clearfix bor-bottom-greyE" id="major_list">
|
|
|
|
|
<li class="clearfix bor-bottom-greyE df" id="major_list">
|
|
|
|
|
<span class="column-No major_index"><%= index + 1 %></span>
|
|
|
|
|
<span class="column-2 fonthidden" style="width:260px"><%= school.name %></span>
|
|
|
|
|
<span class="column-1"><%= school.teacher_count %></span>
|
|
|
|
|
<span class="column-1"><%= school.student_count %></span>
|
|
|
|
|
<span class="column-1"><%= school.course_count %></span>
|
|
|
|
|
<span class="column-1"><%= school.shixun_count %></span>
|
|
|
|
|
<span class="column-1"><%= school.shixun_report_count %></span>
|
|
|
|
|
<span class="flex1 edu-txt-left fonthidden"><%= school.name %></span>
|
|
|
|
|
<span class="column-7">
|
|
|
|
|
<div class="with100 fl pr mr20 edu-txt-left" select-more>
|
|
|
|
|
<input type="hidden" name="small_type" id="shixun_language">
|
|
|
|
|
<input type="text" class="input-100-35 pr20 color-grey-3 font-14 pointer" readonly="" value="" placeholder="选择权限组--">
|
|
|
|
|
<div class="down-select d-s-back-grey" style="padding: 2px 0px; display: none;">
|
|
|
|
|
<p data-shixun-value="21">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror1_21" value="VNC">
|
|
|
|
|
<label style="top:0px" for="mirror1_21">VNC</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="27">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror1_27" value="Mysql">
|
|
|
|
|
<label style="top:0px" for="mirror1_27">Mysql</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="35">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror1_35" value="Html">
|
|
|
|
|
<label style="top:0px" for="mirror1_35">Html</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="36">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror1_36" value="Web">
|
|
|
|
|
<label style="top:0px" for="mirror1_36">Web</label>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="column-11"><%= school.teacher_count %></span>
|
|
|
|
|
<span class="column-11"><%= school.student_count %></span>
|
|
|
|
|
<span class="column-11"><%= school.course_count %></span>
|
|
|
|
|
<span class="column-11"><%= school.shixun_count %></span>
|
|
|
|
|
<span class="column-11"><%= school.shixun_report_count %></span>
|
|
|
|
|
<span class="column-2"><%= school.course_act_time.present? ? format_time(school.course_act_time) : "--" %></span>
|
|
|
|
|
<span class="column-2 fr">
|
|
|
|
|
<span class="column-No fr">
|
|
|
|
|
<% if school.statistic_url != "" %>
|
|
|
|
|
<a href="<%= school.statistic_url %>" target="_blank" class="color-blue">查看</a>
|
|
|
|
|
<% else %>
|
|
|
|
@ -29,6 +54,43 @@
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li class="clearfix bor-bottom-greyE df" id="major_list">
|
|
|
|
|
<span class="column-No major_index">1</span>
|
|
|
|
|
<span class="flex1 edu-txt-left fonthidden" style="width:260px">国防科技大学</span>
|
|
|
|
|
<span class="column-7">
|
|
|
|
|
<div class="with100 fl pr mr20 edu-txt-left" select-more>
|
|
|
|
|
<input type="hidden" name="small_type" id="shixun_language">
|
|
|
|
|
<input type="text" class="input-100-35 pr20 color-grey-3 font-14 pointer" readonly="" value="" placeholder="选择权限组--">
|
|
|
|
|
<div class="down-select d-s-back-grey" style="padding: 2px 0px; display: none;">
|
|
|
|
|
<p data-shixun-value="21">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror2_21" value="VNC">
|
|
|
|
|
<label style="top:0px" for="mirror2_21">VNC</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="27">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror2_27" value="Mysql">
|
|
|
|
|
<label style="top:0px" for="mirror2_27">Mysql</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="35">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror2_35" value="Html">
|
|
|
|
|
<label style="top:0px" for="mirror2_35">Html</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p data-shixun-value="36">
|
|
|
|
|
<input type="checkbox" class="magic-checkbox" id="mirror2_36" value="Web">
|
|
|
|
|
<label style="top:0px" for="mirror2_36">Web</label>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="column-11">2</span>
|
|
|
|
|
<span class="column-11">222</span>
|
|
|
|
|
<span class="column-11">22</span>
|
|
|
|
|
<span class="column-11">20</span>
|
|
|
|
|
<span class="column-11">1</span>
|
|
|
|
|
<span class="column-2">2019-05-10 10:10</span>
|
|
|
|
|
<span class="column-No fr">
|
|
|
|
|
--
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<div class="educontent edu-txt-center mb80 mt20">
|
|
|
|
@ -39,3 +101,43 @@
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(function(){
|
|
|
|
|
$("[select-more]").append("<i class='fa fa-sort-desc lesson_img color-grey-8'></i>");
|
|
|
|
|
$("[select-more]").hover(function () {
|
|
|
|
|
$(this).find(".down-select").show();
|
|
|
|
|
$(this).find(".search").show().focus();
|
|
|
|
|
var index=$(this).find(".down-select").find("input[type='checkbox']").eq(0).attr("name");
|
|
|
|
|
if($("input."+index+":checked").length>=3){
|
|
|
|
|
$("input."+index+":not(:checked)").attr("disabled","disabled");
|
|
|
|
|
}else{
|
|
|
|
|
$("input."+index+":not(:checked)").removeAttr("disabled");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, function () {
|
|
|
|
|
$(this).find(".down-select").hide();
|
|
|
|
|
$(this).find(".search").hide();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("[select-more] .down-select p input").bind("click", function () {
|
|
|
|
|
var index=$(this).attr("name");
|
|
|
|
|
var all = $(this).parents(".down-select");
|
|
|
|
|
var arr = "";
|
|
|
|
|
var idarr = [];
|
|
|
|
|
for (var i = 0; i < all.find("input").length; i++) {
|
|
|
|
|
if (all.find("input").eq(i).is(':checked')) {
|
|
|
|
|
arr += ";" + (all.find("input").eq(i).attr("value"));
|
|
|
|
|
idarr.push(all.find("input").eq(i).parents("p").attr("data-shixun-value").split("_")[1]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$(this).parents(".down-select").siblings("input[type='hidden']").val(idarr);
|
|
|
|
|
$(this).parents(".down-select").siblings("input[type='text']").val(arr.substring(1));
|
|
|
|
|
var shixun_id = $(this).attr("data-shixun");
|
|
|
|
|
var tag_id = $(this).attr("data-value");
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
</script>
|