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.
pgfqe6ch8/app/views/managements/myshixuns.html.erb

41 lines
1.6 KiB

6 years ago
<div class="edu-class-container">
<%= form_tag(url_for(myshixuns_managements_path), :id => "managements_myshixuns_search", :method => "get", :remote => true ) do %>
<div class="edu-con-top clearfix mb20">
<input class="fl task-form-20 task-height-30 ml15" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关卡标识搜索" type="text" style="height: 21px;">
<li class="fl ml10">
<a href="javascript:void(0)" class="task-btn task-btn-orange" onclick="$('#managements_myshixuns_search').submit();">搜索</a>
</li>
</div>
<% end %>
<div class="ex_container" id="management_myshixun_list">
<%= render :partial => "managements/myshixun_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("");
}
</script>