2015-08-25 14:09:37 +08:00
|
|
|
|
<%# course_model %>
|
2015-09-25 16:11:59 +08:00
|
|
|
|
<% teacher_num = searchTeacherAndAssistant(@course).count %>
|
2015-01-08 17:04:25 +08:00
|
|
|
|
<% student_num = studentCount(@course) %>
|
2015-03-30 17:44:40 +08:00
|
|
|
|
<% course_file_num = visable_attachemnts_incourse(@course).count%>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %>
|
2013-12-11 10:00:38 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
2014-05-19 17:56:39 +08:00
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
2014-10-21 14:00:45 +08:00
|
|
|
|
<title>
|
|
|
|
|
<%= h html_title %>
|
|
|
|
|
</title>
|
2014-05-19 17:56:39 +08:00
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>"/>
|
|
|
|
|
<meta name="keywords" content="issue,bug,tracker"/>
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
|
<%= favicon %>
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
2015-09-28 17:09:07 +08:00
|
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','public', 'leftside','prettify', 'courses','header'%>
|
2015-09-10 16:38:45 +08:00
|
|
|
|
<%= javascript_include_tag "course","header","attachments",'prettify' %>
|
2014-05-19 17:56:39 +08:00
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
2015-11-17 15:24:01 +08:00
|
|
|
|
<!-- MathJax的配置 -->
|
|
|
|
|
<script type="text/javascript"
|
2015-11-18 09:57:03 +08:00
|
|
|
|
src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
2015-11-17 15:24:01 +08:00
|
|
|
|
</script>
|
2015-11-18 09:57:03 +08:00
|
|
|
|
<!--<script type="text/javascript"-->
|
|
|
|
|
<!--src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">-->
|
|
|
|
|
<!--</script>-->
|
2015-11-17 15:24:01 +08:00
|
|
|
|
<!-- 配置 : 在生成的公式图片上去掉Math定义的右键菜单,$$ $$ \( \) \[ \] 中的公式给予显示-->
|
|
|
|
|
<script type="text/x-mathjax-config">
|
|
|
|
|
MathJax.Hub.Config({
|
2015-11-18 10:55:55 +08:00
|
|
|
|
|
2015-11-17 15:24:01 +08:00
|
|
|
|
showMathMenu: false,
|
|
|
|
|
showMathMenuMSIE: false,
|
|
|
|
|
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2014-05-19 17:56:39 +08:00
|
|
|
|
</head>
|
|
|
|
|
<!--add by huang-->
|
2015-09-29 15:13:05 +08:00
|
|
|
|
<body onload="prettyPrint();">
|
2015-08-25 14:09:37 +08:00
|
|
|
|
<div class="navContainer mb10">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<%= render :partial => 'layouts/logined_header' %>
|
|
|
|
|
<% else%>
|
|
|
|
|
<%= render :partial => 'layouts/unlogin_header' %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
2015-03-17 15:30:15 +08:00
|
|
|
|
<div id="Container">
|
2015-03-18 10:47:30 +08:00
|
|
|
|
<div id="content">
|
2015-03-17 17:34:43 +08:00
|
|
|
|
<div id="LSide" class="fl">
|
|
|
|
|
<div class="project_info">
|
2015-03-18 10:15:10 +08:00
|
|
|
|
<div class="pr_info_logo fl mr10 mb5">
|
|
|
|
|
<!--<a href="#"><img src="images/courses/pic_courses.jpg" width="60" height="60" alt="logo" /></a>-->
|
2015-03-30 10:11:11 +08:00
|
|
|
|
<%= image_tag(url_to_avatar(@course), :width => "60", :height => "60") %>
|
2015-03-18 10:15:10 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_id fl mb5 f14">
|
|
|
|
|
ID:<%= @course.id%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_join fl">
|
2015-03-18 17:14:26 +08:00
|
|
|
|
<% if is_teacher%>
|
|
|
|
|
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, {:controller => 'courses', :action => 'settings', :id => @course}, :class => "pr_join_a" %>
|
|
|
|
|
<%= set_course_time @course%>
|
2015-09-11 11:41:31 +08:00
|
|
|
|
<%#= link_to "<span class='pr_copy'></span>#{l(:button_copy)}".html_safe, copy_course_course_path(@course.id), :class => "pr_join_a" %>
|
2015-03-18 17:14:26 +08:00
|
|
|
|
<% else%>
|
2015-03-27 19:50:01 +08:00
|
|
|
|
<div id="join_in_course_header"><%= join_in_course_header(@course, User.current) %></div>
|
2015-03-18 17:14:26 +08:00
|
|
|
|
<% end%>
|
2015-03-18 10:15:10 +08:00
|
|
|
|
</div>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-03-18 16:34:25 +08:00
|
|
|
|
|
2015-10-29 17:09:03 +08:00
|
|
|
|
<!--<div >-->
|
|
|
|
|
<!--<a class="pr_info_name fl c_dark fb break_word" href="http://<%#= Setting.host_course%>/courses/<%#= @course.id%>" target="_blank">-->
|
|
|
|
|
<!--<%#= @course.name %>-->
|
|
|
|
|
<!--</a>-->
|
|
|
|
|
<!--<%# if @course.is_public == 0%>-->
|
|
|
|
|
<!--<span class="img_private ">-->
|
|
|
|
|
<!--<%#= l(:field_is_private)%>-->
|
|
|
|
|
<!--</span>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
<!--<%#if @course.tea_id == User.current.id && @course.outline == 0 %>-->
|
|
|
|
|
<!--<span>-->
|
|
|
|
|
<!--<a href="javascript:void(0)" onclick="course_outline('<%#= @course.id%>');">设置大纲</a>-->
|
|
|
|
|
<!--</span>-->
|
|
|
|
|
<!--<%# else%>-->
|
|
|
|
|
<!--<span>-->
|
|
|
|
|
<!--<a href="javascript:void(0)" onclick="course_outline('<%#= @course.id%>');">设置大纲</a>-->
|
|
|
|
|
<!--</span>-->
|
|
|
|
|
<!--<%# end %>-->
|
|
|
|
|
<!--</div>-->
|
2015-03-18 10:15:10 +08:00
|
|
|
|
<div >
|
2015-10-29 17:09:03 +08:00
|
|
|
|
<a class="pr_info_name fl c_dark fb break_word" href="http://<%= Setting.host_course%>/courses/<%= @course.id%>" target="_blank"></a>
|
|
|
|
|
<div>
|
|
|
|
|
<a class="pr_info_name c_dark fb break_word fl" href="http://<%= Setting.host_course%>/courses/<%= @course.id%>" target="_blank">
|
|
|
|
|
<%= @course.name %>
|
|
|
|
|
</a>
|
|
|
|
|
<% if @course.is_public == 0%>
|
|
|
|
|
<!--<span class="img_private "></span>-->
|
|
|
|
|
<span class="img_private mr5 fl">
|
2015-03-18 10:15:10 +08:00
|
|
|
|
<%= l(:field_is_private)%>
|
|
|
|
|
</span>
|
2015-10-29 17:09:03 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<span id="course_outline_bar">
|
2015-10-30 10:46:51 +08:00
|
|
|
|
<%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %>
|
2015-10-29 17:09:03 +08:00
|
|
|
|
<a href="javascript:void(0);" title="设置课程大纲" onclick="course_outline('<%= @course.id%>')" class="mr5 syllabusSetting fl"> </a>
|
2015-10-30 10:46:51 +08:00
|
|
|
|
<% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%>
|
2015-10-30 17:21:12 +08:00
|
|
|
|
<a href="<%=syllabus_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
2015-10-30 17:13:06 +08:00
|
|
|
|
<% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%>
|
2015-10-30 17:21:12 +08:00
|
|
|
|
<a href="<%=syllabus_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
2015-10-30 17:13:06 +08:00
|
|
|
|
<% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%>
|
2015-10-30 17:21:12 +08:00
|
|
|
|
<a href="<%=syllabus_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
2015-10-30 10:46:51 +08:00
|
|
|
|
<%else%>
|
2015-10-29 17:09:03 +08:00
|
|
|
|
<%end %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="pr_info_foot ">
|
|
|
|
|
<%= l(:label_account_identity_teacher)%>(<%= course_teacher_link teacher_num %>)
|
|
|
|
|
<span>| </span>
|
|
|
|
|
<%= l(:label_account_identity_student)%>(<%= course_student_link student_num %>)
|
|
|
|
|
<span>| </span>
|
2015-05-19 11:30:31 +08:00
|
|
|
|
<%= l(:project_module_attachments)%>(<%= link_to course_file_num, course_files_path(@course), :class => 'info_foot_num c_blue',:id=>'courses_files_count_info' %>)</div>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--课程信息 end-->
|
|
|
|
|
<div class="info_box">
|
|
|
|
|
<ul>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<li><%= l(:label_main_teacher)%> : <%= link_to(@course.teacher.lastname+@course.teacher.firstname, user_path(@course.teacher), :class => 'c_dblue') %></li>
|
|
|
|
|
<li><%= l(:label_class_period)%> : <span ><%= @course.class_period %> <%= l(:label_class_hour) %></span></li>
|
2015-03-18 17:14:26 +08:00
|
|
|
|
<li><%= l(:label_main_term)%> : <span><%= @course.time %> <%= @course.term %></span></li>
|
|
|
|
|
<% if @course.school%>
|
|
|
|
|
<li><%= l(:label_course_organizers)%> : <a href="http://<%= Setting.host_course%>/?school_id=<%= @course.school.id%>" target="_blank" class="c_dblue"><%= @course.school%></a></li>
|
|
|
|
|
<% end%>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="subNavBox">
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_activity), course_path(@course), :class => "f14 c_blue02" %>
|
|
|
|
|
<!--暂时不显示课程动态数,优化后在显示-->
|
2015-08-12 16:24:27 +08:00
|
|
|
|
<%= link_to "(#{@course.course_activities.count})", course_path(@course), :class => "subnav_num c_orange"%>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
2015-09-29 10:48:50 +08:00
|
|
|
|
<%= link_to l(:label_homework), homework_common_index_path(:course => @course.id), :class => "f14 c_blue02"%>
|
2015-05-19 17:12:43 +08:00
|
|
|
|
<%= link_to "(#{@course.homework_commons.count})", homework_common_index_path(:course => @course.id), :class => "subnav_num c_orange"%>
|
2015-09-29 10:48:50 +08:00
|
|
|
|
<%= link_to( "+#{l(:label_course_homework_new)}", homework_common_index_path(:course => @course.id,:is_new => 1), :class => 'subnav_green c_white') if is_teacher %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_course_news), course_news_index_path(@course), :class => "f14 c_blue02" %>
|
|
|
|
|
<%= link_to "(#{@course.news.count})", course_news_index_path(@course), :class => "subnav_num c_orange"%>
|
2015-03-27 11:55:18 +08:00
|
|
|
|
<%= link_to( "+#{l(:label_course_news_new)}", new_course_news_path(@course), :class => 'subnav_green c_white') if is_teacher %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-30 17:44:40 +08:00
|
|
|
|
<%= link_to l(:label_course_file), course_files_path(@course), :class => "f14 c_blue02" %>
|
2015-05-19 11:30:31 +08:00
|
|
|
|
<%= link_to "(#{course_file_num})", course_files_path(@course), :class => "subnav_num c_orange",:id=>'courses_files_count_nav' %>
|
2015-11-18 10:18:54 +08:00
|
|
|
|
<% if is_teacher || (@course.publish_resource == 1 && User.current.member_of_course?(@course)) %>
|
2015-11-03 10:28:13 +08:00
|
|
|
|
<!--link_to( "+#{l(:label_upload_files)}", course_files_path(@course), :class => 'subnav_green ml95 c_white')-->
|
|
|
|
|
<a class="subnav_green ml95 c_white" href="javascript:void(0);" onclick="course_files_upload();">+上传资源 </a>
|
|
|
|
|
<% end %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_course_board), course_boards_path(@course), :class => "f14 c_blue02" %>
|
2015-04-23 11:44:07 +08:00
|
|
|
|
<%= link_to "(#{@course.boards.first ? @course.boards.first.topics.count : 0})", course_boards_path(@course), :class => "subnav_num c_orange" %>
|
2015-10-15 16:17:48 +08:00
|
|
|
|
<%= link_to( "+#{l(:label_message_new)}",course_boards_path(@course, :flag => true, :is_new => 1),:class => 'subnav_green ml95 c_white') if User.current.member_of_course?(@course) && @course.boards.first %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_course_feedback), course_feedback_path(@course), :class => "f14 c_blue02" %>
|
2015-04-23 15:25:04 +08:00
|
|
|
|
<%= link_to "(#{course_feedback_count})", course_feedback_path(@course), :class => "subnav_num c_orange", :id => "course_jour_count"%>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-19 15:04:44 +08:00
|
|
|
|
<%= link_to l(:label_poll), poll_index_path(:polls_type => "Course", :polls_group_id => @course.id), :class => " f14 c_blue02"%>
|
|
|
|
|
<%= link_to "(#{course_poll_count})", poll_index_path(:polls_type => "Course", :polls_group_id => @course.id), :class => "subnav_num c_orange" %>
|
|
|
|
|
<%= link_to( "+#{l(:label_new_poll)}", new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => 'subnav_green c_white') if is_teacher %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-11-13 16:40:39 +08:00
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to "在线测验", exercise_index_path(:course_id => @course.id), :class => " f14 c_blue02"%>
|
2015-11-20 17:29:15 +08:00
|
|
|
|
<%= link_to "(#{User.current.allowed_to?(:as_teacher,@course)? @course.exercises.count : @course.exercises.where("exercise_status=2").count})", exercise_index_path(:course_id => @course.id), :class => "subnav_num c_orange" %>
|
2015-11-13 16:40:39 +08:00
|
|
|
|
<%= link_to( "+新建试卷", new_exercise_path(:course_id => @course.id), :class => 'subnav_green c_white') if is_teacher %>
|
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
</div><!--项目侧导航 end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="project_intro">
|
|
|
|
|
<div id="course_description" class="course_description">
|
|
|
|
|
<h4 ><%= l(:label_course_brief_introduction)%>:</h4>
|
2015-03-25 14:09:44 +08:00
|
|
|
|
<div id="course_description_content">
|
|
|
|
|
<%= textilizable(@course.description) if @course.description && !@course.description.blank? %>
|
|
|
|
|
</div>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-25 14:09:44 +08:00
|
|
|
|
<div class="lg-foot" id="lg-foot" onclick="show_more_msg();">
|
2015-03-18 15:18:06 +08:00
|
|
|
|
<%= l(:label_expend_information)%>
|
|
|
|
|
<span class="g-arr-down">
|
|
|
|
|
<img src="/images/jiantou.jpg" width="12" height="6" />
|
|
|
|
|
</span>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
</div><!--项目简介 end-->
|
|
|
|
|
<div class="project_Label">
|
|
|
|
|
<h4 class="mb5" ><%= l(:label_tag)%>:</h4>
|
|
|
|
|
<div class="tag_h" >
|
|
|
|
|
<%= render :partial => 'tags/new_tag', :locals => {:obj => @course, :object_flag => "9"} %>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
2015-03-18 15:18:06 +08:00
|
|
|
|
</div><!--项目标签 end-->
|
|
|
|
|
</div><!--LSide end-->
|
2015-03-17 17:34:43 +08:00
|
|
|
|
|
2015-03-18 18:03:17 +08:00
|
|
|
|
<div id="RSide" class="fl">
|
|
|
|
|
<%= yield %>
|
2015-09-16 15:51:35 +08:00
|
|
|
|
<%#= render_flash_messages %>
|
|
|
|
|
<%#= call_hook :view_layouts_base_content %>
|
2015-03-18 18:03:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-09-16 15:51:35 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-03-17 17:34:43 +08:00
|
|
|
|
|
|
|
|
|
</div><!--Content end-->
|
2015-03-18 10:47:30 +08:00
|
|
|
|
</div><!--Container end-->
|
2015-08-25 14:09:37 +08:00
|
|
|
|
|
2015-08-25 19:41:22 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<%= render :partial => 'layouts/footer' %>
|
|
|
|
|
<div class="cl"></div>
|
2015-08-25 14:09:37 +08:00
|
|
|
|
|
2015-03-17 15:30:15 +08:00
|
|
|
|
<%= render :partial => 'layouts/new_feedback' %>
|
2015-03-20 11:37:56 +08:00
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
2015-03-25 10:21:33 +08:00
|
|
|
|
<span><%= l(:label_loading) %></span>
|
2015-03-20 11:37:56 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
2014-05-19 17:56:39 +08:00
|
|
|
|
</body>
|
2015-10-29 09:07:26 +08:00
|
|
|
|
<script>
|
2015-10-29 11:53:52 +08:00
|
|
|
|
var blog_artile_list_html = '';
|
2015-10-29 09:07:26 +08:00
|
|
|
|
$(function(){
|
|
|
|
|
$(document).on('input','input[name="course_outline_search"]',function(e){
|
|
|
|
|
throttle(course_outline_search,window,e);
|
|
|
|
|
})
|
|
|
|
|
function throttle(method,context,e){
|
|
|
|
|
clearTimeout(method.tId);
|
|
|
|
|
method.tId=setTimeout(function(){
|
|
|
|
|
method.call(context,e);
|
2015-10-29 11:53:52 +08:00
|
|
|
|
},500);
|
2015-10-29 09:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
function course_outline_search(e){
|
2015-10-29 11:53:52 +08:00
|
|
|
|
// if($(e.target).val().trim() == ''){
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
$("#course_outline_hint").hide();
|
2015-10-29 09:07:26 +08:00
|
|
|
|
$.ajax({
|
2015-10-29 11:53:52 +08:00
|
|
|
|
url:'<%=search_course_outline_course_path(@course) %>'+"?&title="+ e.target.value,
|
2015-10-29 09:07:26 +08:00
|
|
|
|
type:'post',
|
|
|
|
|
success:function(data){
|
|
|
|
|
|
2015-10-29 11:53:52 +08:00
|
|
|
|
if(data.length != 0 ){
|
|
|
|
|
$("#course_outline_list").html('');
|
|
|
|
|
for(var i =0;i<data.length;i++){
|
|
|
|
|
var html = ' <ul class="blogRow"> '+
|
|
|
|
|
' <li class="fl"> '+
|
|
|
|
|
'<input name="outline_id" type="radio" value="'+data[i].blog_comment.id+'" class="courseSendCheckbox"/>'+
|
|
|
|
|
'</li>'+
|
|
|
|
|
'<li class="blogTitle fl">'+data[i].blog_comment.title+'</li>'+
|
|
|
|
|
'</ul>'+
|
|
|
|
|
'<div class="homeworkPublishTime">发布时间:'+data[i].blog_comment.created_at.match(/(\S*)T/)[1]+'</div>';
|
|
|
|
|
$("#course_outline_list").append(html)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
2015-10-30 10:46:51 +08:00
|
|
|
|
$("#course_outline_list").html('');
|
2015-10-29 11:53:52 +08:00
|
|
|
|
$("#course_outline_hint").show();
|
|
|
|
|
}
|
2015-10-29 09:07:26 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
2015-11-03 10:28:13 +08:00
|
|
|
|
function course_files_upload(){
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'files/upload_course_files',:locals => {:course => @course,:course_attachment_type => 1}) %>');
|
|
|
|
|
showModal('ajax-modal', '513px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
2015-11-03 10:33:23 +08:00
|
|
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
2015-11-03 10:28:13 +08:00
|
|
|
|
$('#ajax-modal').parent().css("top","").css("left","");
|
|
|
|
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-29 09:07:26 +08:00
|
|
|
|
</script>
|
2014-05-20 09:12:15 +08:00
|
|
|
|
|
2013-09-14 09:51:26 +08:00
|
|
|
|
</html>
|