diff --git a/app/views/users/_import_resource_info.html.erb b/app/views/users/_import_resource_info.html.erb new file mode 100644 index 000000000..63a411acb --- /dev/null +++ b/app/views/users/_import_resource_info.html.erb @@ -0,0 +1,271 @@ +<%#= javascript_include_tag 'bootstrap'%> +<%#= stylesheet_link_tag 'project' %> +<%#= stylesheet_link_tag 'leftside' %> +<%#= javascript_include_tag 'attachments'%> +
+ +
+
+
+ <%= form_tag( url_for(:controller => 'users', :action => 'resource_search', :id => User.current.id), + :remote => true , :method => 'get', :class => 'resourcesSearchloadBox mt10', :id => 'resource_search_form') do %> + + <%= hidden_field_tag(:type,type.nil? ? 1 : type) %> + <%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :style => 'border-style:none' %> + + <% end %> +
+
+
+ +
+
+
+ <% @attachments.each do |attach| %> +
    +
  • + + +
  • + +
  • <%= format_date(attach.created_on) %>
  • +
  • <%= attach.id %>
  • + +
  • <%= attach.author_id %>
  • +
  • <%= get_resource_type(attach.container_type)%>
  • +
  • <%= attach.id %>
  • +
  • <%= number_to_human_size(attach.filesize) %>
  • +
  • <%= attach.id %>
  • + +
  • <%= attach.id %>
  • +
+
+ <% end %> +
+
+
+
+ +
+ 全选 + 删除 +
+
选择 0 个资源
+
+ 发送 +
+
+
+
+
+
+ +
+ +
+ + + + +
+
+ + + +
+
选用资源库中的资源
+
+ 公共资源 + 我的资源 + <%= form_tag( url_for(:controller => 'users', :action => 'resource_search', :id => User.current.id), + :remote => true , :method => 'get', :class => 'resourcesSearchloadBox mt10', :id => 'resource_search_form') do %> + + <%= hidden_field_tag(:type,type.nil? ? 1 : type) %> + <%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :style => 'border-style:none' %> + + <% end %> +
+
+ + + + +
    + +
  • 类别
  • +
  • 大小
  • +
  • 上传者
  • +
  • 上传时间
  • +
+ + <% @attachments.each do |attach| %> +
    +
  • + + +
  • + + + + + +
  • <%= get_resource_type(attach.container_type)%>
  • + +
  • <%= number_to_human_size(attach.filesize) %>
  • + + +
  • <%= format_date(attach.created_on) %>
  • +
+
+ <% end %> +
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 项目资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 附件
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
    + +
  • 课程资源
  • +
  • 123.0KB
  • +
  • 尹刚
  • +
  • 2016-01-21
  • +
+
+ + +
+ + + + + + + +
+
+
+
+
+ + diff --git a/app/views/users/import_resources.js.erb b/app/views/users/import_resources.js.erb index 3a932d366..ce5362bcb 100644 --- a/app/views/users/import_resources.js.erb +++ b/app/views/users/import_resources.js.erb @@ -1,10 +1,8 @@ -$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/resource_search_form', :locals => {:user => User.current, :type => 1} ) %>'); -$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/resources_list' , :locals => { :attachments => @attachments}) %>'); -$('#ajax-modal').html('<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>'); -showModal('ajax-modal', '513px'); +$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => 1} ) %>'); +showModal('ajax-modal', '615px'); $('#ajax-modal').siblings().remove(); $('#ajax-modal').before(""); -$('#ajax-modal').parent().css("top","40%").css("left","36%").css("border","3px solid #269ac9"); +$('#ajax-modal').parent().css("top","10%").css("left","36%").css("border","3px solid #269ac9"); $('#ajax-modal').parent().addClass("popbox_polls");