68 lines
3.3 KiB
Plaintext
68 lines
3.3 KiB
Plaintext
<script>
|
|
// $(document).ready(function(){
|
|
//// var popupHeight = $(".referenceResourcesPopup").outerHeight(true);
|
|
//// $(".referenceResourcesPopup").css("marginTop",-popupHeight/2);
|
|
//
|
|
//
|
|
// $(".resourcePopupClose").click(function(){
|
|
// $(".referenceResourcesPopup").css("display","none");
|
|
// });
|
|
// });
|
|
|
|
$(document).ready(function(){
|
|
$(".referenceTypeBlock").click(function(){
|
|
var activeBlock = $(".referenceResourceType").children(".referenceTypeActive");
|
|
activeBlock.removeClass("referenceTypeActive");
|
|
$(this).addClass("referenceTypeActive");
|
|
});
|
|
});
|
|
</script>
|
|
<!--<div class="referenceResourcesPopup">-->
|
|
<div>
|
|
<div class="referenceText">引用资源库资源</div>
|
|
</div>
|
|
<div>
|
|
<div class="referenceResourceType fl">
|
|
<a href="<%= user_resource_type_user_path(user)%>" class="referenceTypeBlock referenceTypeActive" data-remote="true" >资源库</a>
|
|
<a href="<%= user_resource_type_user_path(user,:type=>'2')%>" class="referenceTypeBlock" data-remote="true">课程资源</a>
|
|
<a href="<%= user_resource_type_user_path(user,:type=>'3')%>" class="referenceTypeBlock" data-remote="true">项目资源</a>
|
|
<a href="<%= user_resource_type_user_path(user,:type=>'5')%>" class="referenceTypeBlock" data-remote="true">用户资源</a>
|
|
<a href="<%= user_resource_type_user_path(user,:type=>'4')%>" class="referenceTypeBlock" data-remote="true">附件</a> </div>
|
|
<div class="fr">
|
|
<!--<form class="referenceSearchBox">-->
|
|
<%= form_tag(user_ref_resource_search_user_path(user),:method => 'get',:remote=>'true',:class=>'referenceSearchBox') do%>
|
|
<input type="text" name="search" placeholder="输入资源关键词进行搜索" class="searchReferencePopup" />
|
|
<a href="javascript:void(0);" onclick="$(this).parent().submit();" class="referenceSearchIcon"></a>
|
|
<% end %>
|
|
<!--</form>-->
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<div class="resourcesListBanner">
|
|
<ul class="resourcesListTab">
|
|
<li class="resourcesListCheckbox fl"> </li>
|
|
<li class="resourcesListName fl">资源名称</li>
|
|
<li class="resourcesListSize fl">大小</li>
|
|
<li class="resourcesListType fl">类别</li>
|
|
<li class="resourcesListUploader fl">上传者</li>
|
|
<li class="resourcesListTime fl">上传时间</li>
|
|
</ul>
|
|
</div>
|
|
<%= form_tag(import_resources_to_homework_user_path(user),:method => 'post',:remote=>'true') do %>
|
|
<input type="hidden" name="homework_id" value="<%= homework_id%>"/>
|
|
<div style="height: 300px" id="user_ref_resources">
|
|
<%= render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments} %>
|
|
</div>
|
|
<div >
|
|
<ul class="wlist" id="resource_ref_pages" style="margin-top: 5px;">
|
|
<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true%>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<div class="courseSendSubmit"><a href="javascript:void(0);" onclick="$(this).parent().parent().parent().submit();" class="sendSourceText">确定</a></div>
|
|
<div class="courseSendCancel"><a href="javascript:void(0);" onclick="hideModal();" class="sendSourceText">取消</a></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<% end %>
|
|
<!--</div>-->
|