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.
66 lines
3.2 KiB
66 lines
3.2 KiB
<div class="edu-class-container">
|
|
<%= form_tag(url_for(shixuns_managements_path), :id => "managements_shixuns_search", :method => "post", :remote => true ) do %>
|
|
<div class="edu-con-top clearfix mb20 bor-grey-e mt10">
|
|
<select class="fl task-form-10 task-height-30" id="sx_status" style="margin:0px 10px 0px 25px;" form="managements_shixuns_search" name="status">
|
|
<option value="" selected="selected">全部状态</option>
|
|
<option value="0">编辑中(<%= @edit_sx_num %>)</option>
|
|
<option value="1">待审核(<%= @audit_sx_num %>)</option>
|
|
<option value="2">已发布(<%= @publish_sx_num %>)</option>
|
|
<option value="3">已关闭(<%= @close_sx_num %>)</option>
|
|
</select>
|
|
<select class="fl task-form-15 task-height-30" id="sx_condition_status" form="managements_shixuns_search" name="keyword">
|
|
<option value="u_name">创建者姓名搜索</option>
|
|
<option value="sx_name">实训名称搜索</option>
|
|
<option value="user_depart">学校名称搜索</option>
|
|
</select>
|
|
<input class="fl task-form-20 task-height-30" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text">
|
|
<select class="fl task-form-15 task-height-30 ml10" name ="tech" id ="tech">
|
|
<option value="" selected="selected">技术分类</option>
|
|
<% @tech_system.each do |language| %>
|
|
<% if language.present? %>
|
|
<p data-shixun-value="<%= language %>"><%= language %></p>
|
|
<option value="<%= language %>"><%= language %></option>
|
|
<% end %>
|
|
<% end %>
|
|
</select>
|
|
<li class="fl ml10">
|
|
<a href="javascript:void(0)" class="task-btn task-btn-orange" onclick="$('#managements_shixuns_search').submit();">搜索</a>
|
|
<a href="javascript:clearSearchCondition();" class="task-btn mr10">清除</a>
|
|
</li>
|
|
<a href="<%= shixuns_managements_path(:status => @sx_status, :keyword => @keyword, :search => @search, :tech => @tech, :format => "xls") %>" class="task-btn task-btn-orange fr" id="shixun_xls">导出</a>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="ex_container" id="management_shixun_list">
|
|
<%= render :partial => "managements/shixun_list" %>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
//导航条的点击事件
|
|
$(".all_shixun_Item li").on("click",function(){
|
|
$(".all_shixun_Item li").removeClass("all_shixun_Item_on");
|
|
$(this).addClass("all_shixun_Item_on");
|
|
})
|
|
//显示实训
|
|
$("#shixun_status").hover(function(){
|
|
$(this).find(".edu-dropdown-menu").show();
|
|
},function(){
|
|
$(this).find(".edu-dropdown-menu").hide();
|
|
})
|
|
|
|
//选择实训
|
|
// $(".edu-dropdown-menu p a").on("click",function(){
|
|
// $(".edu-dropdown-menu").siblings("span").html($(this).html());
|
|
// $(".edu-dropdown-menu").hide();
|
|
// $(".edu-dropdown-menu").css("width",$("#shixun_status").width()+50);
|
|
// })
|
|
//清除查询条件
|
|
function clearSearchCondition(){
|
|
$("#shixun_Look_name").val("");
|
|
$("#sx_condition_status").val("u_name");
|
|
$("#sx_status").val("");
|
|
$("#tech").val("");
|
|
}
|
|
</script>
|