diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index bee294f5c..ddce8496d 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -371,7 +371,7 @@ class AttachmentsController < ApplicationController
@attachment = Attachment.find(params[:attachments ].first[1][:attachment_id])
#将需要修改的记录保存到历史记录
@history = AttachmentHistory.new
- @history.attributes = @old_attachment.attributes.dup.except("id")
+ @history.attributes = @old_attachment.attributes.dup.except("id", "resource_bank_id")
@history.attachment_id = params[:old_attachment_id]
#需要更新版本号,需要拿到原来该文件最大的历史版本号
@old_history = @old_attachment.attachment_histories.reorder('version desc').first
diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb
index 389efc638..50a7f4486 100644
--- a/app/controllers/courses_controller.rb
+++ b/app/controllers/courses_controller.rb
@@ -46,21 +46,22 @@ class CoursesController < ApplicationController
syllabus_members = SyllabusMember.where("user_id = #{@user.id}")
syllabus_member_ids = syllabus_members.empty? ? "(-1)" : "(" + syllabus_members.map{|syl_mem| syl_mem.syllabus_id}.join(',') + ")"
- search = params[:search].nil? ? '' : params[:search]
+ @search = params[:search].nil? ? '' : params[:search]
+ @select = params[:select].nil? ? '' : params[:select]
# 我发布的课程
- create_syllabuses = Syllabus.where("user_id = #{@user.id} and title like '%#{search}%'").order("created_at desc")
+ create_syllabuses = Syllabus.where("user_id = #{@user.id} and title like '%#{@search}%'").order("created_at desc")
# 我参与的课程
- join_syllabuses = Syllabus.where("(id in #{syllabus_ids} or id in #{syllabus_member_ids}) and user_id != #{@user.id} and title like '%#{search}%'").order("created_at desc")
+ join_syllabuses = Syllabus.where("(id in #{syllabus_ids} or id in #{syllabus_member_ids}) and user_id != #{@user.id} and title like '%#{@search}%'").order("created_at desc")
# 我的所有课程
- all_syllabuses = Syllabus.where("title like '%#{search}%'").order("created_at desc")
+ all_syllabuses = Syllabus.where("title like '%#{@search}%'").order("created_at desc")
@syllabus_count = Syllabus.all.count
@join_syllabuses_count = join_syllabuses.count
@create_syllabuses_count = create_syllabuses.count
# 页面筛选的课程
- if params[:select] == "create"
+ if @select == "create"
@syllabuses = create_syllabuses
- elsif params[:select] == "join"
+ elsif @select == "join"
@syllabuses = join_syllabuses
else
@syllabuses = all_syllabuses
diff --git a/app/controllers/homework_common_controller.rb b/app/controllers/homework_common_controller.rb
index 458b5d6dc..b0e6995ec 100644
--- a/app/controllers/homework_common_controller.rb
+++ b/app/controllers/homework_common_controller.rb
@@ -19,37 +19,42 @@ class HomeworkCommonController < ApplicationController
#unless params[:page]
# update_homework_time(@course.homework_commons)
#end
- @search = "#{params[:search].to_s.strip.downcase}"
+ @search = "#{params[:search].to_s.strip.downcase}" if params[:search]
@order = params[:order]
@new_homework = HomeworkCommon.new
@new_homework.homework_detail_manual = HomeworkDetailManual.new
@new_homework.course = @course
@page = params[:page] ? params[:page].to_i + 1 : 0
@is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course))
+ if @search
+ @homework_commons = @course.homework_commons.where("name like '%#{@search}%'")
+ else
+ @homework_commons = @course.homework_commons
+ end
if @order.blank?
if @is_teacher
- @homework_commons = @course.homework_commons.where("name like '%#{@search}%'").order("created_at desc")
+ @homework_commons = @homework_commons.order("created_at desc")
else
- @homework_commons = @course.homework_commons.where("name like '%#{@search}%' and publish_time <= '#{Time.now}'").order("created_at desc")
+ @homework_commons = @homework_commons.where("publish_time <= '#{Time.now}'").order("created_at desc")
end
else
case @order
when '1'
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and homework_detail_manuals.comment_status = #{@order} and end_time > '#{Time.now}'").order("homework_commons.created_at desc")
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("homework_detail_manuals.comment_status = #{@order} and end_time > '#{Time.now}'").order("homework_commons.created_at desc")
when '2'
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and homework_detail_manuals.comment_status = #{@order} and late_time > '#{Time.now}'").order("homework_commons.created_at desc")
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("homework_detail_manuals.comment_status = #{@order} and late_time > '#{Time.now}'").order("homework_commons.created_at desc")
when '3'
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and (homework_detail_manuals.comment_status = #{@order} and homework_detail_manuals.evaluation_end > '#{Time.now}')
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("(homework_detail_manuals.comment_status = #{@order} and homework_detail_manuals.evaluation_end > '#{Time.now}')
or (homework_detail_manuals.comment_status = 1 and end_time < '#{Time.now}' and allow_late = 0 and anonymous_comment = 0 and homework_detail_manuals.evaluation_start >= '#{Time.now}')
or (homework_detail_manuals.comment_status = 2 and late_time < '#{Time.now}' and anonymous_comment = 0 and homework_detail_manuals.evaluation_start >= '#{Time.now}')").order("homework_commons.created_at desc")
when '4'
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and (homework_detail_manuals.comment_status = #{@order} and homework_detail_manuals.appeal_time > '#{Time.now}')").order("homework_commons.created_at desc")
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("(homework_detail_manuals.comment_status = #{@order} and homework_detail_manuals.appeal_time > '#{Time.now}')").order("homework_commons.created_at desc")
when '5'
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and (homework_detail_manuals.comment_status = #{@order} and archive_time > '#{Time.now}')
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("(homework_detail_manuals.comment_status = #{@order} and archive_time > '#{Time.now}')
or (homework_detail_manuals.comment_status = 1 and end_time < '#{Time.now}' and (anonymous_comment = 1 or (anonymous_comment = 0 and homework_detail_manuals.evaluation_start < '#{Time.now}')) and archive_time >= '#{Time.now}')
or (homework_detail_manuals.comment_status = 2 and late_time < '#{Time.now}' and (anonymous_comment = 1 or (anonymous_comment = 0 and homework_detail_manuals.evaluation_start < '#{Time.now}')) and archive_time >= '#{Time.now}')").order("homework_commons.created_at desc")
else
- @homework_commons = @course.homework_commons.includes(:homework_detail_manual).where("name like '%#{@search}%' and homework_detail_manuals.comment_status = #{@order}").order("homework_commons.created_at desc")
+ @homework_commons = @homework_commons.includes(:homework_detail_manual).where("homework_detail_manuals.comment_status = #{@order}").order("homework_commons.created_at desc")
end
end
@is_student = User.current.logged? && (User.current.admin? || (User.current.member_of_course?(@course) && !@is_teacher))
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index 8e2e931f1..fe71494ad 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -150,7 +150,7 @@ class MyController < ApplicationController
# 基本资料不完善 @force为false, 完善 @force为true
@force = false
if params[:tip]
- @force = trues
+ @force = true
else
user = UserExtensions.where(:user_id => User.current.id).first
if user.gender.nil? || user.school_id.nil? || User.current.lastname.nil?
@@ -160,6 +160,9 @@ class MyController < ApplicationController
end
end
+ # 用户认证
+ @auth = @user.authentication ? false : true
+
@s_message = AppliedMessage.where(:status => 3, :user_id => User.current.id, :viewed => 0, :applied_type => 'ApplyAddSchools').first
@d_message = AppliedMessage.where(:status => 3, :user_id => User.current.id, :viewed => 0, :applied_type => 'ApplyAddDepartment').first
diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb
index d8fdb601d..505e73699 100644
--- a/app/controllers/shixuns_controller.rb
+++ b/app/controllers/shixuns_controller.rb
@@ -27,6 +27,10 @@ class ShixunsController < ApplicationController
@latest_myshixuns = myshixuns.order("created_at desc").limit(4)
end
+ def autocompletion
+
+ end
+
def index
# @type = params[:type]
# @status = params[:status]
diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb
index 5136ba806..070107633 100644
--- a/app/controllers/student_work_controller.rb
+++ b/app/controllers/student_work_controller.rb
@@ -363,7 +363,7 @@ class StudentWorkController < ApplicationController
@homework_commons = @course.homework_commons.where("publish_time <= ?",Time.now).order("created_at desc")
@all_homework_commons = @course.homework_commons.order("created_at desc")
@is_teacher = User.current.allowed_to?(:as_teacher,@course) || User.current.admin?
- @is_evaluation = @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status == 2 && !@is_teacher #是不是匿评
+ @is_evaluation = @homework.homework_detail_manual && @homework.homework_detail_manual.comment_status == 3 && !@is_teacher #是不是匿评
@show_all = false
# 0表示没有分组的学生,-1表示所有分组的学生
@@ -376,11 +376,11 @@ class StudentWorkController < ApplicationController
end
#开放作品 || 老师 || 超级管理员 || 禁用匿评&&作业截止&&已提交作品 显示所有列表
- if (@homework.is_open == 1 && @course.is_public == 1) || (@homework.is_open == 1 && @course.is_public == 0 && User.current.member_of_course?(@course)) || @is_teacher || User.current.admin? || (User.current.member_of_course?(@course) && @homework.anonymous_comment == 1 && @homework.end_time < Time.now && !@homework.student_works.where(:user_id => User.current.id).empty?)
+ if (@homework.is_open == 1 && @course.is_public == 1) || (@homework.is_open == 1 && @course.is_public == 0 && User.current.member_of_course?(@course)) || @is_teacher || User.current.admin? || (User.current.member_of_course?(@course) && @homework.homework_detail_manual.comment_status == 6)
@stundet_works = @homework.student_works.select("student_works.*,student_works.work_score as score").joins(:user).where("users.id in #{student_in_group}").order("#{@order} #{@b_sort}")
@show_all = true
elsif User.current.member_of_course?(@course)
- if @homework.homework_detail_manual.comment_status == 1 #学生 && 未开启匿评 只看到自己的
+ if @homework.homework_detail_manual.comment_status == 1 || @homework.homework_detail_manual.comment_status == 2 #学生 && 未开启匿评 只看到自己的
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -391,7 +391,7 @@ class StudentWorkController < ApplicationController
else
@stundet_works = @homework.student_works.select("student_works.*,student_works.work_score as score").where(:user_id => User.current.id)
end
- elsif @homework.homework_detail_manual.comment_status == 2 #学生 && 开启匿评 看到匿评列表
+ elsif @homework.homework_detail_manual.comment_status == 3 || @homework.homework_detail_manual.comment_status == 4 #学生 && 开启匿评 看到匿评列表
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -403,7 +403,7 @@ class StudentWorkController < ApplicationController
my_work = @homework.student_works.where(:user_id => User.current.id)
end
@stundet_works = my_work + User.current.student_works_evaluation_distributions.map(&:student_work).select { |work| work.homework_common_id == @homework.id}
- elsif @homework.homework_detail_manual.comment_status == 3 #学生 && 关闭匿评 未提交作品之前列表为空,提交了作品看到所有的
+ elsif @homework.homework_detail_manual.comment_status == 5 #学生 && 关闭匿评 未提交作品之前列表为空,提交了作品看到所有的
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -429,11 +429,11 @@ class StudentWorkController < ApplicationController
end
else
- if (@homework.is_open == 1 &&@course.is_public == 1) || (@homework.is_open == 1 && @course.is_public == 0 && User.current.member_of_course?(@course)) || @is_teacher || User.current.admin? || (User.current.member_of_course?(@course) && @homework.anonymous_comment == 1 && @homework.end_time < Time.now && !@homework.student_works.where(:user_id => User.current.id).empty?)
+ if (@homework.is_open == 1 && @course.is_public == 1) || (@homework.is_open == 1 && @course.is_public == 0 && User.current.member_of_course?(@course)) || @is_teacher || User.current.admin? || (User.current.member_of_course?(@course) && @homework.homework_detail_manual.comment_status == 6)
@stundet_works = @homework.student_works.select("student_works.*,student_works.work_score as score").includes(:user => {:user_extensions => []}, :project => {}, :student_works_scores => {}).order("#{@order} #{@b_sort}")
@show_all = true
elsif User.current.member_of_course?(@course)
- if @homework.homework_detail_manual.comment_status == 1 #学生 && 未开启匿评 只看到自己的
+ if @homework.homework_detail_manual.comment_status == 1 || @homework.homework_detail_manual.comment_status == 2 #学生 && 未开启匿评 只看到自己的
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -444,7 +444,7 @@ class StudentWorkController < ApplicationController
else
@stundet_works = @homework.student_works.select("student_works.*,student_works.work_score as score").where(:user_id => User.current.id)
end
- elsif @homework.homework_detail_manual.comment_status == 2 #学生 && 开启匿评 看到匿评列表
+ elsif @homework.homework_detail_manual.comment_status == 3 || @homework.homework_detail_manual.comment_status == 4 #学生 && 开启匿评 看到匿评列表
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -456,7 +456,7 @@ class StudentWorkController < ApplicationController
my_work = @homework.student_works.where(:user_id => User.current.id)
end
@stundet_works = my_work + User.current.student_works_evaluation_distributions.map(&:student_work).select { |work| work.homework_common_id == @homework.id}
- elsif @homework.homework_detail_manual.comment_status == 3 #学生 && 关闭匿评 未提交作品之前列表为空,提交了作品看到所有的
+ elsif @homework.homework_detail_manual.comment_status == 5 #学生 && 关闭匿评 未提交作品之前列表为空,提交了作品看到所有的
if @homework.homework_type == 3
pro = @homework.student_work_projects.where(:user_id => User.current.id).first
if pro.nil?
@@ -509,7 +509,7 @@ class StudentWorkController < ApplicationController
format.js
format.html { render :layout => 'base_edu'}
format.xls {
- filename = "#{@course.teacher.lastname.to_s + @course.teacher.firstname}_#{@course.name}_#{@course.time.to_s + @course.term}_#{@homework.name}#{l(:excel_homework_list)}.xls"
+ filename = "#{@course.teacher.lastname.to_s + @course.teacher.firstname}_#{@course.name}_#{@homework.name}#{l(:excel_homework_list)}.xls"
send_data(homework_to_xls(@stundet_works), :type => "text/excel;charset=utf-8; header=present",
:filename => filename_for_content_disposition(filename))
}
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 7e90a11d7..54dd8c081 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -2972,16 +2972,15 @@ class UsersController < ApplicationController
@user = User.current
if !params[:search].nil?
search = "%#{params[:search].to_s.strip.downcase}%"
- @course = @user.courses.not_deleted.where(" #{Course.table_name}.id = #{params[:search].to_i } or #{Course.table_name}.name like :p",:p=>search)
+ @course = @user.courses.not_deleted_not_end.where(" #{Course.table_name}.id = #{params[:search].to_i } or #{Course.table_name}.name like :p",:p=>search)
else
- @course = @user.courses.not_deleted
+ @course = @user.courses.not_deleted_not_end
end
@search = params[:search]
@type = params[:type]
#这里仅仅是传递需要发送的资源id
@send_id = params[:send_id]
@send_ids = params[:checkbox1] || params[:send_ids]
- @hidden_unproject = hidden_unproject_infos
respond_to do |format|
format.js
end
@@ -3059,60 +3058,61 @@ class UsersController < ApplicationController
else
@flag = false
end
- @order, @b_sort = params[:order] || "created_on", params[:sort] || "asc"
- @score = @b_sort == "desc" ? "asc" : "desc"
- user_project_ids = User.current.projects.map {|p| p.id}
- user_course_ids = User.current.courses.map { |c| c.id} #我的资源库的话,那么应该是我上传的所有资源 加上 我加入的课程的所有资源
- if(params[:type] == "1") # 我的资源
- # 修正:我的资源库的话,那么应该是我上传的所有资源加上,我加入的课程、项目、组织的所有资源
- if params[:status] == "2"
- @attachments = get_course_resources(User.current.id, user_course_ids, @order, @score)
- elsif params[:status] == "3"
- @attachments = get_project_resources(User.current.id, user_project_ids, @order, @score)
- elsif params[:status] == "4"
- @attachments = get_attch_resources(User.current.id, @order, @score)
- elsif params[:status] == "5"
- @attachments = get_principal_resources(User.current.id, @order, @score)
- else
- # 公共资源库:所有公开资源或者我上传的私有资源
- @attachments = get_my_resources(User.current.id, user_course_ids, user_project_ids, @order, @score)
- end
- elsif (params[:type].blank? || params[:type] == "6") # 公共资源
- if params[:status] == "2"
- @attachments = get_course_resources_public( user_course_ids, @order, @score)
- elsif params[:status] == "3"
- @attachments = get_project_resources_public(user_project_ids, @order, @score)
- elsif params[:status] == "4"
- @attachments = get_attch_resources_public(@order, @score)
- elsif params[:status] == "5"
- @attachments = get_principal_resources_public(@order, @score)
- else
- # 公共资源库:所有公开资源或者我上传的私有资源
- @attachments = get_public_resources(user_course_ids, user_project_ids, params[:order], @score)
- end
- # elsif params[:type] == "2"
- # apply_ids = ApplyResource.where("user_id =? and status =?", params[:id], 2).map { |ar| ar.attachment_id}
- # if params[:status] == "2"
- # resource_type = "'Course'"
- # elsif params[:status] == "3"
- # resource_type = "'Project'"
- # elsif params[:status] == "5"
- # resource_type = "'Principal'"
- # else
- # resource_type = "'Project','OrgSubfield','Principal','Course'"
- # end
- # @attachments = get_my_private_resources(apply_ids, resource_type, @order, @score)
- end
- @type = params[:type]
- @limit = 25
- @path = user_resource_user_path(User.current, :type => @type)
- @user = User.current
- @is_remote = true
- @atta_count = @attachments.count
- @atta_pages = Paginator.new @atta_count, @limit, params['page'] || 1
- @offset ||= @atta_pages.offset
- #@curse_attachments_all = @all_attachments[@offset, @limit]
- @attachments = paginateHelper @attachments,25
+ # @order, @b_sort = params[:order] || "created_on", params[:sort] || "asc"
+ # @score = @b_sort == "desc" ? "asc" : "desc"
+ # user_project_ids = User.current.projects.map {|p| p.id}
+ # user_course_ids = User.current.courses.map { |c| c.id} #我的资源库的话,那么应该是我上传的所有资源 加上 我加入的课程的所有资源
+ # if(params[:type] == "1") # 我的资源
+ # # 修正:我的资源库的话,那么应该是我上传的所有资源加上,我加入的课程、项目、组织的所有资源
+ # if params[:status] == "2"
+ # @attachments = get_course_resources(User.current.id, user_course_ids, @order, @score)
+ # elsif params[:status] == "3"
+ # @attachments = get_project_resources(User.current.id, user_project_ids, @order, @score)
+ # elsif params[:status] == "4"
+ # @attachments = get_attch_resources(User.current.id, @order, @score)
+ # elsif params[:status] == "5"
+ # @attachments = get_principal_resources(User.current.id, @order, @score)
+ # else
+ # # 公共资源库:所有公开资源或者我上传的私有资源
+ # @attachments = get_my_resources(User.current.id, user_course_ids, user_project_ids, @order, @score)
+ # end
+ # elsif (params[:type].blank? || params[:type] == "6") # 公共资源
+ # if params[:status] == "2"
+ # @attachments = get_course_resources_public( user_course_ids, @order, @score)
+ # elsif params[:status] == "3"
+ # @attachments = get_project_resources_public(user_project_ids, @order, @score)
+ # elsif params[:status] == "4"
+ # @attachments = get_attch_resources_public(@order, @score)
+ # elsif params[:status] == "5"
+ # @attachments = get_principal_resources_public(@order, @score)
+ # else
+ # # 公共资源库:所有公开资源或者我上传的私有资源
+ # @attachments = get_public_resources(user_course_ids, user_project_ids, params[:order], @score)
+ # end
+ # # elsif params[:type] == "2"
+ # # apply_ids = ApplyResource.where("user_id =? and status =?", params[:id], 2).map { |ar| ar.attachment_id}
+ # # if params[:status] == "2"
+ # # resource_type = "'Course'"
+ # # elsif params[:status] == "3"
+ # # resource_type = "'Project'"
+ # # elsif params[:status] == "5"
+ # # resource_type = "'Principal'"
+ # # else
+ # # resource_type = "'Project','OrgSubfield','Principal','Course'"
+ # # end
+ # # @attachments = get_my_private_resources(apply_ids, resource_type, @order, @score)
+ # end
+ # @type = params[:type]
+ # @limit = 25
+ # @path = user_resource_user_path(User.current, :type => @type)
+ # @user = User.current
+ # @is_remote = true
+ # @atta_count = @attachments.count
+ # @atta_pages = Paginator.new @atta_count, @limit, params['page'] || 1
+ # @offset ||= @atta_pages.offset
+ # #@curse_attachments_all = @all_attachments[@offset, @limit]
+ # @attachments = paginateHelper @attachments,25
+ @course = @ori.course
respond_to do |format|
format.js
end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index cd44ea064..a5cf87e77 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -3558,50 +3558,50 @@ module ApplicationHelper
if User.current.logged?
if User.current.member_of_course?(homework.course)
if is_teacher #老师显示作品数量
- link_to "作品(#{count})", student_work_index_url_in_org(homework.id, 2), :class => "c_blue"
+ link_to "作品(#{count})", student_work_index_url_in_org(homework.id, 2), :class => "c_blue homepagePostSubmit"
else #学生显示提交作品、修改作品等按钮
work = cur_user_works_for_homework homework
project = cur_user_projects_for_homework homework
if work.nil? && homework.end_time >= Time.now
if homework.homework_type ==3 && project.nil? && homework.homework_detail_group.base_on_project == 1
- link_to "提交作品(#{count})","javascript:void(0)", :class => 'c_grey',:style=>"cursor:not-allowed",:title => '请先关联项目再提交作品'
+ link_to "提交作品(#{count})","javascript:void(0)", :class => 'c_grey homepagePostSubmit',:style=>"cursor:not-allowed",:title => '请先关联项目再提交作品'
else
link_to "提交作品(#{count})", new_student_work_url_without_domain(homework.id),:class => 'c_blue'
end
elsif work.nil? && homework.end_time < Time.now
- if homework.homework_type ==3 && project.nil? && homework.homework_detail_group.base_on_project == 1
- link_to "补交作品(#{count})","javascript:void(0)", :class => 'c_grey',:style=>"cursor:not-allowed",:title => '请先关联项目再补交作品'
- else
- link_to "补交作品(#{count})", new_student_work_url_without_domain(homework.id),:class => 'c_red'
+ if homework.allow_late
+ if homework.homework_type ==3 && project.nil? && homework.homework_detail_group.base_on_project == 1
+ link_to "补交作品(#{count})","javascript:void(0)", :class => 'c_grey homepagePostSubmit',:style=>"cursor:not-allowed",:title => '请先关联项目再补交作品'
+ else
+ link_to "补交作品(#{count})", new_student_work_url_without_domain(homework.id),:class => 'c_red homepagePostSubmit'
+ end
end
- else
- if homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 2 && StudentWorksEvaluationDistribution.where("student_work_id = #{work.id}").count > 0 #匿评作业,且作业状态不是在开启匿评之前
+ elsif work
+ if homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 3 && StudentWorksEvaluationDistribution.where("student_work_id = #{work.id}").count > 0 #匿评作业,且作业状态不是在开启匿评之前
if homework.homework_type != 3
- link_to "作品匿评", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue', :title => "开启匿评后不可修改作品"
+ link_to "作品匿评", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue homepagePostSubmit', :title => "开启匿评后不可修改作品"
else
work_ids = "(" + homework.student_works.has_committed.map(&:id).join(",") + ")"
if User.current.student_works_evaluation_distributions.where("student_work_id IN #{work_ids}").count > 0
- link_to "作品匿评", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue', :title => "开启匿评后不可修改作品"
+ link_to "作品匿评", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue homepagePostSubmit', :title => "开启匿评后不可修改作品"
else
- link_to "查看作品(#{count})",student_work_index_url_in_org(homework.id, 2), :class => 'c_blue', :title => "匿评开启后提交的作品不参与匿评"
+ link_to "查看作品(#{count})",student_work_index_url_in_org(homework.id, 2), :class => 'c_blue homepagePostSubmit', :title => "匿评开启后提交的作品不参与匿评"
end
end
- elsif homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 3
- link_to "查看作品(#{count})",student_work_index_url_in_org(homework.id, 2), :class => 'c_blue', :title => "匿评已结束"
- elsif homework.homework_type == 2 && homework.end_time >= Time.now#编程作业不能修改作品
- link_to "修改作品(#{count})", new_student_work_url_without_domain(homework.id),:class => 'c_blue'
+ elsif homework.homework_detail_manual && homework.homework_detail_manual.comment_status > 3
+ link_to "查看作品(#{count})",student_work_index_url_in_org(homework.id, 2), :class => 'c_blue homepagePostSubmit', :title => "匿评已结束"
elsif homework.end_time >= Time.now && work.user_id == User.current.id
- link_to "修改作品(#{count})", edit_student_work_url_without_domain(work.id),:class => 'c_blue'
+ link_to "修改作品(#{count})", edit_student_work_url_without_domain(work.id),:class => 'c_blue homepagePostSubmit'
else
- link_to "查看作品(#{count})", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue', :title => "作业截止后不可修改作品"
+ link_to "查看作品(#{count})", student_work_index_url_in_org(homework.id, 2), :class => 'c_blue homepagePostSubmit', :title => "作业截止后不可修改作品"
end
end
end
else
- link_to "作品(#{count})", "javascript:void(0)", :class => "c_blue", :onclick => "notice_sure_box('您不是班级成员,不能提交作品
请先从老师处获取邀请码后加入班级,再提交作品')"
+ link_to "作品(#{count})", "javascript:void(0)", :class => "c_blue homepagePostSubmit", :onclick => "notice_sure_box('您不是班级成员,不能提交作品
请先从老师处获取邀请码后加入班级,再提交作品')"
end
else
- link_to "作品(#{count})", "javascript:void(0)", :class => "c_blue", :onclick => "login_notice_box('#{signin_url_without_domain}');"
+ link_to "作品(#{count})", "javascript:void(0)", :class => "c_blue homepagePostSubmit", :onclick => "login_notice_box('#{signin_url_without_domain}');"
end
end
diff --git a/app/helpers/student_work_helper.rb b/app/helpers/student_work_helper.rb
index cca310a02..61b4ff8cd 100644
--- a/app/helpers/student_work_helper.rb
+++ b/app/helpers/student_work_helper.rb
@@ -103,7 +103,7 @@ module StudentWorkHelper
if homework.allow_late
link_to "补交作品", new_student_work_url_without_domain(homework.id),:class => 'task-btn task-btn-blue fr'
end
- else
+ elsif work
if homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 3 && StudentWorksEvaluationDistribution.where("student_work_id = #{work.id}").count > 0 #匿评作业,且作业状态不是在开启匿评之前
if homework.homework_type != 3
link_to "匿评作品", student_work_index_url_in_org(homework.id, 2), :class => 'task-btn task-btn-blue fr', :title => "开启匿评后不可修改作品"
@@ -112,15 +112,15 @@ module StudentWorkHelper
if User.current.student_works_evaluation_distributions.where("student_work_id IN #{work_ids}").count > 0
link_to "匿评作品", student_work_index_url_in_org(homework.id, 2), :class => 'task-btn task-btn-blue fr', :title => "开启匿评后不可修改作品"
else
- link_to "查看作品",student_work_index_url_in_org(homework.id, 2), :class => 'task-btn task-btn-blue fr', :title => "匿评开启后提交的作品不参与匿评"
+ link_to "查看作品", student_work_path(work), :class => 'task-btn task-btn-blue fr', :title => "匿评开启后提交的作品不参与匿评"
end
end
elsif homework.homework_detail_manual && homework.homework_detail_manual.comment_status > 3
- link_to "查看作品",student_work_index_url_in_org(homework.id, 2), :class => 'task-btn task-btn-blue fr', :title => "匿评已结束"
+ link_to "查看作品", student_work_path(work), :class => 'task-btn task-btn-blue fr', :title => "匿评已结束"
elsif homework.end_time >= Time.now && work.user_id == User.current.id
link_to "修改作品", edit_student_work_url_without_domain(work.id),:class => 'task-btn task-btn-blue fr'
else
- link_to "查看作品", student_work_index_url_in_org(homework.id, 2), :class => 'task-btn task-btn-blue fr', :title => "作业截止后不可修改作品"
+ link_to "查看作品", student_work_path(work), :class => 'task-btn task-btn-blue fr', :title => "作业截止后不可修改作品"
end
end
end
diff --git a/app/views/account/_has_authentication.html.erb b/app/views/account/_has_authentication.html.erb
index 844311089..4244df0c5 100644
--- a/app/views/account/_has_authentication.html.erb
+++ b/app/views/account/_has_authentication.html.erb
@@ -5,6 +5,16 @@
已认证
<% end %>
+<% if !@user.authentication && @apply_user_auth && @apply_user_auth.status == 0 %>
+ <%= render :partial => "welcome/one_btn_mask_pop",
+ :locals => {
+ :tip1 => "更多功能,需要经过管理员的授权审核",
+ :tip2 => "认证申请已提交,我们将在1个工作日内完成审核",
+ :btn => "试用申请",
+ :url => "javascript:void(0);"
+ }
+ %>
+<% end %>
- <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %> + <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', courses_path %>
- 模块设置 - -
+ + + +| 资源名称 | -下载数 | +下载数 | 引用数 | 版本号 | @@ -10,7 +10,7 @@ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= @attachment.filename %> 当前版本 |
+ <%= @attachment.filename %> 当前版本 |
<%= @attachment.downloads %> | <%= @attachment.try(:quotes).to_i %> | <%= format_time(@attachment.created_on) %> | @@ -51,10 +51,9 @@ -
| 资源名称 | -下载数 | +下载数 | 引用数 | 版本号 | @@ -28,7 +28,6 @@ |
<%= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history_delete"),
:remote => true,
- :data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:class => "postOptionLink",
:class => "btn") if allow_to_delete_attachment(history) %>
diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb
index 6e10e4114..6a8e6aeed 100644
--- a/app/views/files/_course_file.html.erb
+++ b/app/views/files/_course_file.html.erb
@@ -101,8 +101,8 @@
<%= submit_tag "班内搜索", :class => "blueBtn mr5 fl",:name => "incourse",:id => "incourse" %>
<%#= submit_tag "全站搜索", :class => "blueBtn mr5 fl",:name => "insite",:id => "insite" %>
<% if is_course_teacher(User.current,@course) || (@course.publish_resource==1 && User.current.member_of_course?(@course) ) %>
-
- <%= link_to("导入资源", import_resources_user_path(User.current, :type => 6, :course_id => @course.id), :class => "blue-btn fr mr5", :remote => true) %>
+ 上传资源
+ <%= link_to("导入资源", import_resources_user_path(User.current, :type => 6, :course_id => @course.id), :class => "task-btn task-btn-blue fr mr5", :remote => true) %>
<% end %>
<% end %>
diff --git a/app/views/files/_hidden_file.html.erb b/app/views/files/_hidden_file.html.erb
index 6d8d861d5..da0090c5c 100644
--- a/app/views/files/_hidden_file.html.erb
+++ b/app/views/files/_hidden_file.html.erb
@@ -1,12 +1,11 @@
-
-
- 发布设置- - +
+
-
+
<%= form_tag(republish_file_course_file_path(@course,@file), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
diff --git a/app/views/files/_new_style_attachment_list.html.erb b/app/views/files/_new_style_attachment_list.html.erb
index 80e41d55a..818c6c24f 100644
--- a/app/views/files/_new_style_attachment_list.html.erb
+++ b/app/views/files/_new_style_attachment_list.html.erb
@@ -23,12 +23,8 @@
-
- <%= l(:label_no_file_uploaded)%>
-
-单个文件最大限制:<%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>
+单个文件最大限制:<%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>
@@ -18,8 +17,9 @@
- 确定
- 取消
+
+ 确定
+ 取消
<% end %>
-
-
+
\ No newline at end of file
diff --git a/app/views/files/_resource_detail.html.erb b/app/views/files/_resource_detail.html.erb
index dbb3ca880..5f7abeea4 100644
--- a/app/views/files/_resource_detail.html.erb
+++ b/app/views/files/_resource_detail.html.erb
@@ -17,7 +17,7 @@
:class => "linkGrey3 f_14",
:style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;", :remote=>true %>
<% end %>
- <%= file_preview_eye(file, class: 'preview') %>
+ <%#= file_preview_eye(file, class: 'preview') %>
<% if file.is_public? == false%>
私有
@@ -82,7 +82,7 @@
<%end%>
-
- 上传资源- - +
+
-
-
+
+
<%= error_messages_for 'attachment' %>
- <%= form_tag(course_files_path(course), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
+ <%= form_tag(course_files_path(course), :multipart => true,:remote => !ie8?,:id=>"upload_course_file_form") do %>
-
+
@@ -103,11 +102,25 @@
function submit_course_resource()
{
<% if User.current.allowed_to?(:as_teacher,course) %>
- if(regex_publish_time()) {
- $('#submit_resource').parent().submit();
+ if($("#upload_course_file_form").find('.upload_filename').length == 0){
+ $("#upload_file_count_notice").html('请至少上传一个资源').show();
+ event.preventDefault();
+ return false;
+ }else{
+ $("#upload_file_count_notice").hide();
+ if(regex_publish_time()) {
+ $('#submit_resource').parent().submit();
+ }
}
<% else %>
- $('#submit_resource').parent().submit();
+ if($("#upload_course_file_form").find('.upload_filename').length == 0){
+ $("#upload_file_count_notice").html('请至少上传一个资源').show();
+ event.preventDefault();
+ return false;
+ }else {
+ $("#upload_file_count_notice").hide();
+ $('#submit_resource').parent().submit();
+ }
<% end %>
}
function reset_publish_time(){
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index e2792254d..1e473f47c 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -439,11 +439,11 @@
//更新文件版本 表单提交确认,原则是只能有一个更新文件
function upload_attachment_version(event){
if($("#upload_form").find('.upload_filename').length > 1){
- $("#upload_file_count").html('(只能上传一个更新文件)')
+ $("#upload_file_count").html('(只能上传一个更新文件)');
event.preventDefault();
return false;
}else if($("#upload_form").find('.upload_filename').length == 0){
- $("#upload_file_count").html('(请上传一个更新文件)')
+ $("#upload_file_count").html('(请上传一个更新文件)');
event.preventDefault();
return false;
}else{
diff --git a/app/views/games/_file_edit_form.html.erb b/app/views/games/_file_edit_form.html.erb
index e8097423b..dd1afdee6 100644
--- a/app/views/games/_file_edit_form.html.erb
+++ b/app/views/games/_file_edit_form.html.erb
@@ -10,25 +10,26 @@
+
diff --git a/app/views/student_work/_evaluation_work.html.erb b/app/views/student_work/_evaluation_work.html.erb
index 61a778e03..063de0caf 100644
--- a/app/views/student_work/_evaluation_work.html.erb
+++ b/app/views/student_work/_evaluation_work.html.erb
@@ -12,7 +12,7 @@
<%= render :partial => 'files/new_style_attachment_list',:locals => {:container => course} %>
@@ -62,13 +61,13 @@
-
+
<%= student_work.user.show_name%> |
<%= student_work.updated_at %> |
- <%= format("%.1f",student_work.student_score) %>((<%= student_work.student_works_scores.where(:reviewer_role => 3).group_by(&:user_id).count%>))
+ <%= student_work.student_score.nil? ? '--' : format("%.1f",student_work.student_score) %>((<%= student_work.student_works_scores.where(:reviewer_role => 3).group_by(&:user_id).count%>))
|
<%= link_to '查看', student_work_path(student_work), :class => 'link-color-blue' %>
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb
index c11fbf241..63e40c1ff 100644
--- a/app/views/student_work/index.html.erb
+++ b/app/views/student_work/index.html.erb
@@ -269,16 +269,23 @@
<% if @homework.homework_detail_manual.comment_status == 1%>
<% end_time = @homework.end_time.to_i %>
<% if end_time >= Time.now.to_i %>
- 提交剩余时间 <%= (end_time - Time.now.to_i) / (24*60*60) %> 天 <%= ((end_time - Time.now.to_i) % (24*60*60)) / (60*60)%> 小时 <%= (((end_time - Time.now.to_i) % (24*60*60)) % (60*60)) / 60%> 分
+ 提交剩余时间 <%= (end_time - Time.now.to_i) / (24*60*60) %> 天 <%= ((end_time - Time.now.to_i) % (24*60*60)) / (60*60)%> 小时 <%= (((end_time - Time.now.to_i) % (24*60*60)) % (60*60)) / 60%> 分
<% else %>
- 提交已截止
+ 提交已截止
<% end %>
<% elsif @homework.homework_detail_manual.comment_status == 2%>
+ <% late_time = @homework.late_time.to_i %>
+ <% if late_time >= Time.now.to_i %>
+ 补交剩余时间 <%= (late_time - Time.now.to_i) / (24*60*60) %> 天 <%= ((late_time - Time.now.to_i) % (24*60*60)) / (60*60)%> 小时 <%= (((late_time - Time.now.to_i) % (24*60*60)) % (60*60)) / 60%> 分
+ <% else %>
+ 补交已截止
+ <% end %>
+ <% elsif @homework.homework_detail_manual.comment_status == 3%>
<% end_time = @homework.homework_detail_manual.evaluation_end.to_time.to_i + 24*60*60 - 1 %>
<% if end_time >= Time.now.to_i %>
- 匿评剩余时间 <%= (end_time - Time.now.to_i) / (24*60*60)%> 天 <%= ((end_time - Time.now.to_i) % (24*60*60)) / (60*60)%> 小时 <%= (((end_time - Time.now.to_i) % (24*60*60)) % (60*60)) / 60%> 分
+ 匿评剩余时间 <%= (end_time - Time.now.to_i) / (24*60*60)%> 天 <%= ((end_time - Time.now.to_i) % (24*60*60)) / (60*60)%> 小时 <%= (((end_time - Time.now.to_i) % (24*60*60)) % (60*60)) / 60%> 分
<% else %>
- 匿评已截止
+ 匿评已截止
<% end %>
<% end%>
<% end%>
diff --git a/app/views/student_work/work_canrepeat.js.erb b/app/views/student_work/work_canrepeat.js.erb
index 4c7cb8489..7e40ba5f8 100644
--- a/app/views/student_work/work_canrepeat.js.erb
+++ b/app/views/student_work/work_canrepeat.js.erb
@@ -1,13 +1,7 @@
//代码查重
<% if @work_count <= 1 %>
//弹框
- $("#ajax-modal").html('<%= escape_javascript( render :partial => 'courses/compare_code_tips_2',:locals => {:des=>"对不起该作业的作品过少不能查重!",:status=>0, :homework=> @homework,:courseid=> @course_id})%>');
- showModal('ajax-modal', '580px');
- $('#ajax-modal').siblings().remove();
- $('#ajax-modal').before("");
- $('#ajax-modal').parent().css("top", "30%").css("left", "50%").css("padding-top", "10px").css("position", "fixed");
- $('#ajax-modal').parent().addClass("resourceUploadPopup");
- $('#ajax-modal').css("padding-left", "16px").css("padding-bottom", "16px");
+ notice_box("对不起该作业的作品过少不能查重!");
function closeModal() {
hideModal($(".blue-border-box"));
diff --git a/app/views/syllabuses/_courses_list.html.erb b/app/views/syllabuses/_courses_list.html.erb
index 64341b888..44cd7858d 100644
--- a/app/views/syllabuses/_courses_list.html.erb
+++ b/app/views/syllabuses/_courses_list.html.erb
@@ -3,7 +3,7 @@
<% allow_visit = course.is_delete == 0 && (User.current.member_of_course?(course) || User.current.admin? || course.is_public == 1) %>
|
@@ -8,7 +9,7 @@
- <%= syllabus.title %>
+ <%= syllabus.title %>
<% if course_count > 0 %>
<%= course_count %>
<% end %>
@@ -37,3 +38,6 @@
<% end %>
<% end %>
+<% else %>
+<%= render :partial => 'welcome/no_data' %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/syllabuses/_my_syllabuses.html.erb b/app/views/syllabuses/_my_syllabuses.html.erb
index df9825c3c..972f44dbe 100644
--- a/app/views/syllabuses/_my_syllabuses.html.erb
+++ b/app/views/syllabuses/_my_syllabuses.html.erb
@@ -1,3 +1,4 @@
+<% if @my_syllabuses.count > 0 %>
<% @my_syllabuses.each_with_index do |syllabus, index|%>
<% course_count = @status == 1 ? syllabus.courses.where("is_delete = 0 and is_end = 0").count : syllabus.courses.where("is_delete = 0 and is_end = 1").count %>
<% if !(@status == 2 && course_count == 0) %>
@@ -8,7 +9,7 @@
- <%= syllabus.title %>
+ <%= syllabus.title %>
<% if course_count > 0 %>
<%= course_count %>
<% end %>
@@ -36,4 +37,7 @@
<% end %>
+<% end %>
+<% else %>
+ <%= render :partial => 'welcome/no_data' %>
<% end %>
\ No newline at end of file
diff --git a/app/views/syllabuses/edit.html.erb b/app/views/syllabuses/edit.html.erb
index f087c2ed1..d45d8c451 100644
--- a/app/views/syllabuses/edit.html.erb
+++ b/app/views/syllabuses/edit.html.erb
@@ -1,7 +1,7 @@
- <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %> + <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', courses_path %> 编辑课程 diff --git a/app/views/syllabuses/new.html.erb b/app/views/syllabuses/new.html.erb index 18e13475d..fb482dc44 100644 --- a/app/views/syllabuses/new.html.erb +++ b/app/views/syllabuses/new.html.erb @@ -1,7 +1,7 @@- <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %> + <%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', courses_path %> 新建课程 diff --git a/app/views/users/_course_file_form.html.erb b/app/views/users/_course_file_form.html.erb index 750a96053..4d35b6297 100644 --- a/app/views/users/_course_file_form.html.erb +++ b/app/views/users/_course_file_form.html.erb @@ -1,28 +1,18 @@ - <%= form_tag add_exist_file_to_course_user_path(user, :type => defined?(type) ? type : "6" ),:remote=>true,:id=>'course_list_form' do %> -
- <%= hidden_field_tag(:send_id, send_id) %>
- <%= hidden_field_tag(:send_ids, send_ids) %>
-
- <%=get_hw_status(activity).html_safe %>
+ <% homework_curr_status = homework_curr_time(activity) %>
+ <%= homework_curr_status[:status] %>
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1%>
diff --git a/app/views/users/_homework_opr.html.erb b/app/views/users/_homework_opr.html.erb
index 650e35744..eeb698492 100644
--- a/app/views/users/_homework_opr.html.erb
+++ b/app/views/users/_homework_opr.html.erb
@@ -11,7 +11,7 @@
+
-
-
+ <%= hidden_field_tag(:send_id, send_id) %>
+
-
-
<% end %>
\ No newline at end of file
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb
index 78928e98e..c5a6ac69c 100644
--- a/app/views/users/_course_homework.html.erb
+++ b/app/views/users/_course_homework.html.erb
@@ -23,7 +23,8 @@
<%= link_to activity.name.to_s, student_work_index_path(:homework => activity.id,:host=> Setting.host_course), :class => "postGrey edu-txt-850"%>
<% end %>
-
- <%= submit_tag '确定',:class=>'sendSourceText',:onfocus=>'this.blur();' %>
-
-
+
+
<%= user_for_homework_common activity,is_teacher,work %>
<% if !is_teacher && !work.nil? && work.user == User.current && activity.end_time < Time.now %>
diff --git a/app/views/users/_import_resource_info.html.erb b/app/views/users/_import_resource_info.html.erb
index 9ad24c8ee..42ced5657 100644
--- a/app/views/users/_import_resource_info.html.erb
+++ b/app/views/users/_import_resource_info.html.erb
@@ -14,50 +14,51 @@
});
});
-选用资源库中的资源
-
- <% if !params[:course_id].nil? %>
- 公共资源
- 我的资源
- <% elsif !params[:project_id].nil? %>
- 公共资源
- 我的资源
- <% elsif !params[:subfield_file_id].nil? %>
- 公共资源
- 我的资源
- <% end %>
-
- <%=render :partial=>'users/user_import_resource_search', :locals => {:type => @type, :search => '', :mul_id => @resource_id, :mul_type => @resource_type} %>
+
+
-
-
-
-
-
-
+
+
+ <% if !params[:course_id].nil? %>
+ 公共资源
+ 我的资源
+ <% elsif !params[:project_id].nil? %>
+ 公共资源
+ 我的资源
+ <% elsif !params[:subfield_file_id].nil? %>
+ 公共资源
+ 我的资源
+ <% end %>
+
diff --git a/app/views/users/_resource_share_popup.html.erb b/app/views/users/_resource_share_popup.html.erb
index 47a84481b..eed2f2a86 100644
--- a/app/views/users/_resource_share_popup.html.erb
+++ b/app/views/users/_resource_share_popup.html.erb
@@ -1,35 +1,30 @@
-
-
-
+ <%=render :partial=>'users/user_import_resource_search', :locals => {:type => @type, :search => '', :mul_id => @resource_id, :mul_type => @resource_type} %>
+
-
-
-
-
-
-
-
- <%= render :partial => 'users/user_import_resource_list',:locals => {:project_id => params[:project_id], :subfield_file_id => params[:subfield_file_id], :course_id => params[:course_id]} %>
+
+
+
-
+
+
+
+ <%= render :partial => 'users/user_import_resource_list',:locals => {:project_id => params[:project_id], :subfield_file_id => params[:subfield_file_id], :course_id => params[:course_id]} %>
+
+
+
+ 选用
+ 取消
+
-
-
-
- 发送到
-
- <% unless send_ids.blank? %>
- <% send_ids = send_ids.class == String ? send_ids : send_ids.join(",") %>
- <% end %>
-
+
+
+
diff --git a/app/views/users/_user_import_resource_list.html.erb b/app/views/users/_user_import_resource_list.html.erb
index 72cd9cd4a..71638b672 100644
--- a/app/views/users/_user_import_resource_list.html.erb
+++ b/app/views/users/_user_import_resource_list.html.erb
@@ -5,12 +5,10 @@
<% @attachments.each do |attach| %>
+
-
-
+
-
-
+ <%= form_tag search_user_course_user_path(user),:method => 'get', :remote=>true, :id=> 'search_user_course_form', :class=> '' do %>
+ <%= hidden_field_tag(:send_id, send_id) %>
+
+
+
+ <% end %>
+
+
+ <%= render :partial => "users/course_file_form", :locals => {:user => user, :send_id => send_id, :courses => courses, :type => type} %>
+
+
- <%= form_tag search_user_course_user_path(user),:method => 'get', :remote=>true, :id=> 'search_user_course_form', :class=> 'resourcesSearchBox' do %>
- <%= hidden_field_tag(:send_id, send_id) %>
- <%= hidden_field_tag(:send_ids, send_ids) %>
-
-
-
- <%= submit_tag '',:class=>'searchIcon2',:onfocus=>"this.blur();",:style=>'border-style:none' %>
- <% end %>
-
-
- <%= render :partial => "users/course_file_form", :locals => {:user => user, :send_id => send_id, :send_ids => send_ids, :courses => courses, :type => type} %>
- ' +
'' +
+ '
- 没有数据可以显示! +
+
\ No newline at end of file
diff --git a/app/views/welcome/_one_btn_mask_pop.html.erb b/app/views/welcome/_one_btn_mask_pop.html.erb
new file mode 100644
index 000000000..4d8329f7c
--- /dev/null
+++ b/app/views/welcome/_one_btn_mask_pop.html.erb
@@ -0,0 +1,29 @@
+
+
+
+ 没有数据可以显示!
+
\ No newline at end of file
diff --git a/app/views/welcome/_two_btn_mask_pop.html.erb b/app/views/welcome/_two_btn_mask_pop.html.erb
new file mode 100644
index 000000000..bf5a92e1b
--- /dev/null
+++ b/app/views/welcome/_two_btn_mask_pop.html.erb
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 2bf20608c..67ed60488 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -41,6 +41,7 @@ RedmineApp::Application.routes.draw do
match 'add_collaborators', :via => [:get, :post]
post 'shixun_members_added'
get 'shixun_monitor'
+ get 'autocompletion'
get 'shixun_exec'
post 'add_script'
post 'shixun_members'
diff --git a/public/codemirror/addon/hint/javascript-hint.js b/public/codemirror/addon/hint/javascript-hint.js
index d7088c191..c7e28f3d4 100644
--- a/public/codemirror/addon/hint/javascript-hint.js
+++ b/public/codemirror/addon/hint/javascript-hint.js
@@ -2,154 +2,159 @@
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror"], mod);
- else // Plain browser env
- mod(CodeMirror);
+ if (typeof exports == "object" && typeof module == "object") // CommonJS
+ mod(require("../../lib/codemirror"));
+ else if (typeof define == "function" && define.amd) // AMD
+ define(["../../lib/codemirror"], mod);
+ else // Plain browser env
+ mod(CodeMirror);
})(function(CodeMirror) {
- var Pos = CodeMirror.Pos;
+ var Pos = CodeMirror.Pos;
- function forEach(arr, f) {
- for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
- }
+ function forEach(arr, f) {
+ for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
+ }
- function arrayContains(arr, item) {
- if (!Array.prototype.indexOf) {
- var i = arr.length;
- while (i--) {
- if (arr[i] === item) {
- return true;
+ function arrayContains(arr, item) {
+ if (!Array.prototype.indexOf) {
+ var i = arr.length;
+ while (i--) {
+ if (arr[i] === item) {
+ return true;
+ }
+ }
+ return false;
}
- }
- return false;
- }
- return arr.indexOf(item) != -1;
- }
-
- function scriptHint(editor, keywords, getToken, options) {
- // Find the token at the cursor
- var cur = editor.getCursor(), token = getToken(editor, cur);
- if (/\b(?:string|comment)\b/.test(token.type)) return;
- token.state = CodeMirror.innerMode(editor.getMode(), token.state).state;
-
- // If it's not a 'word-style' token, ignore the token.
- if (!/^[\w$_]*$/.test(token.string)) {
- token = {start: cur.ch, end: cur.ch, string: "", state: token.state,
- type: token.string == "." ? "property" : null};
- } else if (token.end > cur.ch) {
- token.end = cur.ch;
- token.string = token.string.slice(0, cur.ch - token.start);
+ return arr.indexOf(item) != -1;
}
- var tprop = token;
- // If it is a property, find out what it is a property of.
- while (tprop.type == "property") {
- tprop = getToken(editor, Pos(cur.line, tprop.start));
- if (tprop.string != ".") return;
- tprop = getToken(editor, Pos(cur.line, tprop.start));
- if (!context) var context = [];
- context.push(tprop);
- }
- return {list: getCompletions(token, context, keywords, options),
+ function scriptHint(editor, keywords, getToken, options) {
+ // Find the token at the cursor
+ var cur = editor.getCursor(), token = getToken(editor, cur);
+ if (/\b(?:string|comment)\b/.test(token.type)) return;
+ token.state = CodeMirror.innerMode(editor.getMode(), token.state).state;
+
+ // If it's not a 'word-style' token, ignore the token.
+ if (!/^[\w$_]*$/.test(token.string)) {
+ token = {start: cur.ch, end: cur.ch, string: "", state: token.state,
+ type: token.string == "." ? "property" : null};
+ } else if (token.end > cur.ch) {
+ token.end = cur.ch;
+ token.string = token.string.slice(0, cur.ch - token.start);
+ }
+
+ var tprop = token;
+ // If it is a property, find out what it is a property of.
+ while (tprop.type == "property") {
+ tprop = getToken(editor, Pos(cur.line, tprop.start));
+ if (tprop.string != ".") return;
+ tprop = getToken(editor, Pos(cur.line, tprop.start));
+ if (!context) var context = [];
+ context.push(tprop);
+ }
+ return {list: getCompletions(token, context, keywords, options),
from: Pos(cur.line, token.start),
to: Pos(cur.line, token.end)};
- }
-
- function javascriptHint(editor, options) {
- return scriptHint(editor, javascriptKeywords,
- function (e, cur) {return e.getTokenAt(cur);},
- options);
- };
- CodeMirror.registerHelper("hint", "javascript", javascriptHint);
-
- function getCoffeeScriptToken(editor, cur) {
- // This getToken, it is for coffeescript, imitates the behavior of
- // getTokenAt method in javascript.js, that is, returning "property"
- // type and treat "." as indepenent token.
- var token = editor.getTokenAt(cur);
- if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') {
- token.end = token.start;
- token.string = '.';
- token.type = "property";
- }
- else if (/^\.[\w$_]*$/.test(token.string)) {
- token.type = "property";
- token.start++;
- token.string = token.string.replace(/\./, '');
- }
- return token;
- }
-
- function coffeescriptHint(editor, options) {
- return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options);
- }
- CodeMirror.registerHelper("hint", "coffeescript", coffeescriptHint);
-
- var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " +
- "toUpperCase toLowerCase split concat match replace search").split(" ");
- var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " +
- "lastIndexOf every some filter forEach map reduce reduceRight ").split(" ");
- var funcProps = "prototype apply call bind".split(" ");
- var javascriptKeywords = ("break case catch continue debugger default delete do else false finally for function " +
- "if in instanceof new null return switch throw true try typeof var void while with").split(" ");
- var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " +
- "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" ");
-
- function forAllProps(obj, callback) {
- if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {
- for (var name in obj) callback(name)
- } else {
- for (var o = obj; o; o = Object.getPrototypeOf(o))
- Object.getOwnPropertyNames(o).forEach(callback)
- }
- }
-
- function getCompletions(token, context, keywords, options) {
- var found = [], start = token.string, global = options && options.globalScope || window;
- function maybeAdd(str) {
- if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str);
- }
- function gatherCompletions(obj) {
- if (typeof obj == "string") forEach(stringProps, maybeAdd);
- else if (obj instanceof Array) forEach(arrayProps, maybeAdd);
- else if (obj instanceof Function) forEach(funcProps, maybeAdd);
- forAllProps(obj, maybeAdd)
}
- if (context && context.length) {
- // If this is a property, see if it belongs to some object we can
- // find in the current environment.
- var obj = context.pop(), base;
- if (obj.type && obj.type.indexOf("variable") === 0) {
- if (options && options.additionalContext)
- base = options.additionalContext[obj.string];
- if (!options || options.useGlobalScope !== false)
- base = base || global[obj.string];
- } else if (obj.type == "string") {
- base = "";
- } else if (obj.type == "atom") {
- base = 1;
- } else if (obj.type == "function") {
- if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&
- (typeof global.jQuery == 'function'))
- base = global.jQuery();
- else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function'))
- base = global._();
- }
- while (base != null && context.length)
- base = base[context.pop().string];
- if (base != null) gatherCompletions(base);
- } else {
- // If not, just look in the global object and any local scope
- // (reading into JS mode internals to get at the local and global variables)
- for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);
- for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
- if (!options || options.useGlobalScope !== false)
- gatherCompletions(global);
- forEach(keywords, maybeAdd);
+ function javascriptHint(editor, options) {
+ return scriptHint(editor, javascriptKeywords,
+ function (e, cur) {return e.getTokenAt(cur);},
+ options);
+ };
+ CodeMirror.registerHelper("hint", "javascript", javascriptHint);
+
+ function getCoffeeScriptToken(editor, cur) {
+ // This getToken, it is for coffeescript, imitates the behavior of
+ // getTokenAt method in javascript.js, that is, returning "property"
+ // type and treat "." as indepenent token.
+ var token = editor.getTokenAt(cur);
+ if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') {
+ token.end = token.start;
+ token.string = '.';
+ token.type = "property";
+ }
+ else if (/^\.[\w$_]*$/.test(token.string)) {
+ token.type = "property";
+ token.start++;
+ token.string = token.string.replace(/\./, '');
+ }
+ return token;
+ }
+
+ function coffeescriptHint(editor, options) {
+ return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options);
+ }
+ CodeMirror.registerHelper("hint", "coffeescript", coffeescriptHint);
+
+/* var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " +
+ "toUpperCase toLowerCase split concat match replace search").split(" ");
+ var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " +
+ "lastIndexOf every some filter forEach map reduce reduceRight ").split(" ");
+ var funcProps = "prototype apply call bind".split(" ");*/
+ var javascriptKeywords = ("double float int long short null true false enum super this void auto for register static const friend mutable explicit virtual template typename printf " +
+ "break continue return do while if else for instanceof switch case default try catch finally throw throws assert import package boolean byte char delete private " +
+ "inline struct union signed unsigned export extern namespace using operator sizeof typedef typeid and del from not as elif or with pass except " +
+ "print exec raise is def lambda private protected public abstract class extends final implements interface native new static strictfp synchronized transient main " +
+ "String string System println vector bool boolean FALSE TRUE").split(" ");
+/*
+ var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " +
+ "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" ");
+*/
+
+ function forAllProps(obj, callback) {
+ if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {
+ for (var name in obj) callback(name)
+ } else {
+ for (var o = obj; o; o = Object.getPrototypeOf(o))
+ Object.getOwnPropertyNames(o).forEach(callback)
+ }
+ }
+
+ function getCompletions(token, context, keywords, options) {
+ var found = [], start = token.string, global = options && options.globalScope || window;
+ function maybeAdd(str) {
+ if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str);
+ }
+ function gatherCompletions(obj) {
+ if (typeof obj == "string") forEach(stringProps, maybeAdd);
+ else if (obj instanceof Array) forEach(arrayProps, maybeAdd);
+ else if (obj instanceof Function) forEach(funcProps, maybeAdd);
+ forAllProps(obj, maybeAdd)
+ }
+
+ if (context && context.length) {
+ // If this is a property, see if it belongs to some object we can
+ // find in the current environment.
+ var obj = context.pop(), base;
+ if (obj.type && obj.type.indexOf("variable") === 0) {
+ if (options && options.additionalContext)
+ base = options.additionalContext[obj.string];
+ if (!options || options.useGlobalScope !== false)
+ base = base || global[obj.string];
+ } else if (obj.type == "string") {
+ base = "";
+ } else if (obj.type == "atom") {
+ base = 1;
+ } else if (obj.type == "function") {
+ if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&
+ (typeof global.jQuery == 'function'))
+ base = global.jQuery();
+ else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function'))
+ base = global._();
+ }
+ while (base != null && context.length)
+ base = base[context.pop().string];
+ if (base != null) gatherCompletions(base);
+ } else {
+ // If not, just look in the global object and any local scope
+ // (reading into JS mode internals to get at the local and global variables)
+ /* for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);*/
+/* for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
+ if (!options || options.useGlobalScope !== false)
+ gatherCompletions(global);*/
+ forEach(keywords, maybeAdd);
+ }
+ return found;
}
- return found;
- }
});
diff --git a/public/images/bigdata/pointer2.png b/public/images/bigdata/pointer2.png
new file mode 100644
index 000000000..6d091af5d
Binary files /dev/null and b/public/images/bigdata/pointer2.png differ
diff --git a/public/images/bigdata/user-renzheng.jpg b/public/images/bigdata/user-renzheng.jpg
index 5764e5bdd..507d67cd3 100644
Binary files a/public/images/bigdata/user-renzheng.jpg and b/public/images/bigdata/user-renzheng.jpg differ
diff --git a/public/images/bigdata/ziliao01.png b/public/images/bigdata/ziliao01.png
new file mode 100644
index 000000000..56b86d212
Binary files /dev/null and b/public/images/bigdata/ziliao01.png differ
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js
index bc9cf513d..117dff04a 100644
--- a/public/javascripts/attachments.js
+++ b/public/javascripts/attachments.js
@@ -35,11 +35,16 @@ function addFile_board(inputEl, file, eagerUpload, id,btnId) {
});
fileSpan.append(
+ $('').attr({
+ 'class': 'fa fa-folder mr5 color-light-grey',
+ 'aria-hidden': true
+ }),
$('', {
'type': 'text',
- 'class': 'upload_filename readonly',
+ 'class': 'upload_filename readonly hidden',
'name': 'attachments[' + attachmentId + '][filename]',
- 'readonly': 'readonly'
+ 'readonly': 'readonly',
+ 'style': 'border:none; max-width:300px;white-space: nowrap; text-overflow:ellipsis;'
}).val(file.name),
// $('', {
// 'type': 'text',
@@ -58,10 +63,10 @@ function addFile_board(inputEl, file, eagerUpload, id,btnId) {
// 'name': 'attachments[' + attachmentId + '][is_public_checkbox]',
// checked: 'checked'
// }).toggle(!eagerUpload),
- $(' ').attr({
+ $('').attr({
'href': "#",
'class': 'remove-upload',
- 'data-containerid': id
+ 'style': 'vertical-align:top;'
}).click(function() {
if (confirm($(inputEl).data('areYouSure'))) {
removeFile();
@@ -104,20 +109,26 @@ function addFile(inputEl, file, eagerUpload,btnId) {
'class': 'attachment'
});
+ var allow_blank = $(inputEl).data('allow-blank');
+ if(allow_blank == '0'){
+ } else{
+ fileSpan.append(
+ $('
+
+
+
+
+
+ 完善您的基本资料后,才能使用其他功能哦 "); } $("#account_tip").show(); - }); + });*/ }); function cancel_edit_account(status) { diff --git a/public/javascripts/edu/application.js b/public/javascripts/edu/application.js index 246c22ff4..8d27650be 100644 --- a/public/javascripts/edu/application.js +++ b/public/javascripts/edu/application.js @@ -576,7 +576,7 @@ function regex_course_name(str) syl_title = $("#"+str+"_syllabus_id").find("option:selected").text(); if(name.length < 2) { - $("#"+str+"_course_name_notice").html('请班级名称不能为空且至少有两个字符'); + $("#"+str+"_course_name_notice").html('班级名称不能为空且至少有两个字符'); $("#"+str+"_course_name_notice").show(); return false; } @@ -919,4 +919,14 @@ function formate_time(time){ } str = year + '-' + month + '-' + day + ' ' + hour + ':' + min; return str; +} + +function submit_send_res_to_course(){ + if($("input[name='course_ids[]']:checked").length >= 1){ + $("#search_course_notice_h").html("").hide(); + $("#course_list_form").submit(); + hideModal(); + }else{ + $("#search_course_notice_h").html("请先选择一个班级").show(); + } } \ No newline at end of file diff --git a/public/javascripts/edu/course.js b/public/javascripts/edu/course.js index 2fd74b99c..883d54158 100644 --- a/public/javascripts/edu/course.js +++ b/public/javascripts/edu/course.js @@ -378,4 +378,12 @@ function submit_add_student_form(){ }else{ $("#add_student_notice").html("请至少选择一个用户").show(); } +} + +function res_send_to_course(id, user_id, send_type){ + $.ajax({ + type: 'get', + url: '/users/' + user_id + '/search_user_course', + data:{send_id:id, send_type:send_type} + }); } \ No newline at end of file diff --git a/public/javascripts/edu/homework.js b/public/javascripts/edu/homework.js index 01b04abb0..e8f047813 100644 --- a/public/javascripts/edu/homework.js +++ b/public/javascripts/edu/homework.js @@ -282,33 +282,33 @@ function alert_choose_homework_type(id){ '作业类别:' + '
请先选择作业类型 ' +
'' +
'取消' +
'确定' +
diff --git a/public/javascripts/paopao.js b/public/javascripts/paopao.js
new file mode 100644
index 000000000..939ebc414
--- /dev/null
+++ b/public/javascripts/paopao.js
@@ -0,0 +1,114 @@
+
+(function ($) {
+ $.guidance = function (json,fn) {
+ //json.obj 设置跟随对象 必选参数
+ //json.title 设置提示消息 必选参数
+ //json.url 设置下一步链接 可选参数
+ //json.style 定义样式 可选参数 默认有背景
+ json.url = json.url || "javascript:;";
+ json.style = json.style || {} ;
+ json.title = json.title || '可设置的提示信息哦,可以更换的背景图片哦';
+ json.style.bgImg = json.style.bgImg || "url(img/questionmark.png)";
+ json.style.point1 = json.style.point1 || 'url(../images/bigdata/pointer2.png)';
+ json.style.point2 = json.style.point2 || 'url(../images/bigdata/pointer2.png)';
+ var index = 0;
+ if (json.obj.length>0){
+ window.closeAll = function () {
+ $('#maskBg').remove();
+ window.closeAll = null;
+ }
+ var $viewG = $(' \
+ \
+ ');
+ var viewW = $(document.body).width();
+ var viewH = $(document.body).height();
+ $viewG.css({
+ 'height':viewH + 'px',
+ 'width': viewW + 'px'
+ });
+ if ($('#maskBg').length<=0){
+ $(document.body).append($viewG);
+ $('#warnData').css('background-image',json.style.bgImg);
+
+ }
+ function mainWarn (posObj) {
+ var iW = posObj.innerWidth();
+ var iH = posObj.innerHeight();
+ var iL = posObj.offset().left;
+ var iT = posObj.offset().top;
+ var userAgent = window.navigator.userAgent.toLowerCase();
+ var version = $.browser.version;
+ console.log(userAgent);
+ console.log(version);
+ var newIL = (parseInt(version) < 50) ? (iL - 1.8) : iL;
+ $('#mask').css({
+ 'width':iW + 2 + 'px',
+ 'height': iH + 'px',
+ 'border-width':iT + 'px' + ' '+ (viewW - iL - iW) + 'px' + ' '+ (viewH - iH - iT) + 'px' + ' ' + newIL + 'px'
+ });
+ if (iL<400){
+ $('#maskTitle').css({
+ 'left':iL + iW - 30 + 'px',
+ 'top':iT + iH + 10 + 'px'
+ });
+ $('#pointer').css('background-image',json.style.point1);
+ } else if ((viewW - iL - iW) < 400){
+ $('#maskTitle').css({
+ 'left':iL - 260 + 'px',
+ 'top':iT + iH - 36 + 'px'
+ });
+ $('#pointer').css('background-image',json.style.point2);
+ } else {
+ $('#maskTitle').css({
+ 'left':iL - 260 + 'px',
+ 'top':iT + iH - 36 + 'px'
+ });
+ $('#pointer').css('background-image',json.style.point1);
+ }
+
+ }
+ if ($.isArray(json.obj)){
+ mainWarn(json.obj[index]);
+ $('#warnData').text(json.title[index]);
+ $('#nextStep').bind('click',function () {
+ index++;
+ if (index == json.obj.length){
+ closeAll();
+ return;
+ }
+ mainWarn(json.obj[index]);
+ $('#warnData').text(json.title[index]);
+ });
+ } else {
+ mainWarn(json.obj);
+ $('#warnData').text(json.title);
+ if (fn){
+ $('#nextStep').bind('click',fn);
+ }else {
+ $('#nextStep').bind('click',function () {
+ closeAll();
+ });
+ }
+
+ }
+ }
+ }
+})(jQuery);
+
+/*
+ 气泡提示功能说明
+ json.obj 可以是单独的,可以是一个数组,但必须是jQuery 对象
+ json.title 对应 json.obj
+ json.url 设计本应该为下一步提供链接
+ json.style = {}
+ 设置 语言信息,背景图信息功能
+ 关于fn目前只能在单独使用的时候调用,也就是不在传入多个对象的时候调用
+
+ */
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 91b0eaca8..6f471eb50 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1875,8 +1875,6 @@ span.required {color: #bb0000;}
#attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
#attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
#attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%; width:1px; display:inline-block; padding-left:16px;margin-left: 5px;}
-a.remove-upload:hover {text-decoration:none !important;}
/*gcm upload file count and deleteall*/
#upload_file_count #count {color:red; font-size:1.5em;}
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index f5e4d7ee2..7906daa10 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -626,7 +626,6 @@ blockquote {background: #e8e8e8;padding: 10px;margin-bottom: 5px;word-break: bre
#attachments_fields input.description {margin-left: 4px;width: 100px;}
#attachments_fields span.ispublic-label {display: inline-block;width: 30px;margin-left: 10px;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
#attachments_fields input.filename {border: 0;height: 1.8em;color: #555;background-color: inherit;background: url(../images/attachment.png) no-repeat 1px ;padding-left: 18px;padding-top: 2px; white-space: nowrap; }
span.add_attachment {font-size: 80%;line-height: 2.5em;}
#attachments_fields span {display: block;white-space: nowrap;}
@@ -641,10 +640,8 @@ span.add_attachment {font-size: 80%;line-height: 2.5em;}
.attachments_fields input.description {margin-left:4px; width:100px; }
.attachments_fields span .boldSpan{display:block; white-space:nowrap; font-family:'微软雅黑';}
.attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-a.remove-upload:hover {text-decoration:none !important;}
.attachments_fields span.ispublic-label {display: inline-block;width: 30px;margin-left: 10px;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
.attachments_fields input.filename {border: 0;height: 1.8em;color: #555;background-color: inherit;background: url(../images/attachment.png) no-repeat 1px ;padding-left: 18px;padding-top: 2px;}
span.add_attachment {font-size: 80%;line-height: 2.5em;}
.attachments_fields span {display: block;white-space: nowrap;}
@@ -977,7 +974,6 @@ a.work_list_tit{width:580px; display:block; overflow:hidden; font-size:14px; f
.ajax-waiting input.upload_filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-.upload_filename{ background: url(../images/pic_file.png) 0 -20px no-repeat;color: #7f7f7f;width: 270px;border: none; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.evaluation{position: relative;}
.evaluation_submit{position: absolute;right: 0px;bottom: 0px;}
.student_work_search{background-color: #64bdd9;color: white !important;padding: 2px 7px;margin-left: 10px;cursor: pointer; }
@@ -1065,7 +1061,6 @@ a:hover.icon_remove{background:url(../images/course/icons.png) -20px -338px no-r
.SearchIcon:hover{background:url(../images/homepage_icon2.png) 676px -419px no-repeat; }
a.link_file{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; }
a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
a.FilesName{ max-width:540px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
a.FilesName02{ max-width:665px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
.ProResultUl span { display:block; float:left;}
diff --git a/public/stylesheets/css/courses.css b/public/stylesheets/css/courses.css
index ce0a442a8..62d7ad4f1 100644
--- a/public/stylesheets/css/courses.css
+++ b/public/stylesheets/css/courses.css
@@ -27,7 +27,6 @@ a:hover.DropBtn{background: url(../images/homepage_icon.png) -125px -370px no-re
.SearchIcon:hover{background:url(../images/homepage_icon2.png) 676px -419px no-repeat; }
a.link_file{ background:url(/images/pic_file.png) 0 2px no-repeat; padding-left:20px; }
a:hover.link_file{ background:url(/images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
-a.remove-upload {background: url(/images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
a.FilesName{ max-width:540px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
a.FilesName02{ max-width:665px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
.ProResultUl span { display:block; float:left;}
@@ -430,7 +429,7 @@ a.blueCir{ display:inline-block; padding:2px 5px; background-color:#ffffff;borde
a:hover.blueCir{ background:#3598db; color:#fff;}
.proList {background-color:#eaeaea; padding:5px 10px; display:block; max-width:655px; float:left;}
.reCon{ margin:5px; width:710px;}
-.reTop{width:710px; height:40px; background:#eaeaea; padding:5px;}
+.reTop{width:99%; height:40px; background:#eaeaea; padding:5px; }
.filesTag{ width:auto;background:#e2f3f9; color:#54aeca; border:1px solid #bbe2ef; padding:1px 5px; float:left; margin-right:10px;cursor: pointer }
.fileTagWrap{ width:710px;}
.boxShadow {box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5);}
diff --git a/public/stylesheets/css/edu-common.css b/public/stylesheets/css/edu-common.css
index dba2b97b8..9fd702424 100644
--- a/public/stylesheets/css/edu-common.css
+++ b/public/stylesheets/css/edu-common.css
@@ -69,9 +69,9 @@ a:hover.link-color-grey03{color:#3498db!important;}
.font-28{ font-size: 28px!important;}
.font-30{ font-size: 30px!important;}
/*通用内外边距*/
-.mt3{ margin-top:3px;}.mt5{ margin-top:5px;}.mt6{ margin-top:6px;}.mt7{ margin-top:7px;}.mt8{ margin-top:8px;}.mt10{ margin-top:10px;}.mt12{ margin-top:12px;}.mt15{ margin-top:15px;}.mt20{ margin-top:20px;}.mt25{ margin-top:25px;}.mt30{ margin-top:30px;}.mt50{ margin-top:50px;}
+.mt-10{ margin-top:-10px;}.mt3{ margin-top:3px;}.mt5{ margin-top:5px;}.mt6{ margin-top:6px;}.mt7{ margin-top:7px;}.mt8{ margin-top:8px;}.mt10{ margin-top:10px;}.mt12{ margin-top:12px;}.mt15{ margin-top:15px;}.mt20{ margin-top:20px;}.mt25{ margin-top:25px;}.mt30{ margin-top:30px;}.mt50{ margin-top:50px;}
.mb5{ margin-bottom: 5px;}.mb10{ margin-bottom: 10px;}.mb15{ margin-bottom: 15px;}.mb20{ margin-bottom: 20px;}.mb25{ margin-bottom: 25px;}.mb30{ margin-bottom: 30px;}.mb50{ margin-bottom: 50px;}
-.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml6{ margin-left: 6px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml35{ margin-left:35px;}.ml50{ margin-left: 50px;}.ml115{margin-left: 115px}.ml230{ margin-left: 230px;}
+.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml6{ margin-left: 6px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml35{ margin-left:35px;}.ml50{ margin-left: 50px;}.ml75{ margin-left: 75px;}.ml115{margin-left: 115px}.ml230{ margin-left: 230px;}
.mr5{ margin-right: 5px;}.mr10{ margin-right: 10px;}.mr15{ margin-right: 15px;}.mr18{ margin-right: 18px;}.mr20{ margin-right: 20px;}.mr25{ margin-right: 25px;}.mr30{ margin-right:30px;}.mr50{ margin-right: 50px;}.mr60{ margin-right:60px;}
.pt5{ padding-top:5px;}.pt10{ padding-top:10px;}.pt15{ padding-top:15px;}.pt20{ padding-top:20px;}
.pb5{ padding-bottom:5px;}.pb10{ padding-bottom:10px;}.pb15{ padding-bottom:15px;}.pb20{ padding-bottom:20px;}
diff --git a/public/stylesheets/css/edu-popup.css b/public/stylesheets/css/edu-popup.css
index 138d72d0c..076898bcb 100644
--- a/public/stylesheets/css/edu-popup.css
+++ b/public/stylesheets/css/edu-popup.css
@@ -36,8 +36,10 @@ a:hover.task_icons_close{background: url(../images/popup/sy_icons_close.png) -40
.upload_select_box li div.mt5{ margin-top:0px;}
.upload_select_box li:hover{ background:#e4eaf6;}
.task-popup-submit02{ margin:15px auto; width:110px;}
+.task-popup-submit03{ margin:15px auto; width:70px;}
+.task-popup-submit04{ margin:15px auto; width:85px;}
/*智能课堂弹框tab 20170428byLB*/
-.newupload_conbox{ background: #fff; padding:15px; padding-bottom: 0;}
+.newupload_conbox{ background: #fff; padding-bottom: 0;}
.newupload_navbox{border-bottom:1px solid #dbdbdb;}
.newupload_nav { height: 38px; line-height: 38px; background: #e7e7e7; }
.newupload_nav li {float:left; padding:0 15px; display: block; text-align:center; }
diff --git a/public/stylesheets/css/edu-public.css b/public/stylesheets/css/edu-public.css
index aa2da4d29..3ebfb4179 100644
--- a/public/stylesheets/css/edu-public.css
+++ b/public/stylesheets/css/edu-public.css
@@ -225,6 +225,7 @@ a.task-index-name{ display: inline-block; max-width:80px;}
.edu-con-top{ padding:10px 0; background:#fff; border-bottom:1px solid #eee;font-size:16px; }
.edu-con-top h2{ font-size:16px;}
.edu-con-bg01{ width: 100%; background:#fff;}
+.edu-con-top .color-grey{ color:#666!important;}
/*附件上传的样式*/
.atta_input{ width: 980px; white-space: nowrap; text-overflow:ellipsis;}
diff --git a/public/stylesheets/css/popup.css b/public/stylesheets/css/popup.css
index d23a51e9d..d79fc5df9 100644
--- a/public/stylesheets/css/popup.css
+++ b/public/stylesheets/css/popup.css
@@ -83,7 +83,7 @@ a.referenceTypeBlock {color:#888888; display:inline-block; padding:0px 20px;}
.subject-list {width:685px;}
.subject-detail {width:285px;}
a.subject-choose {padding:8px 20px; background-color:#f1f1f1; color:#888888;}
-a.choose-active {background-color:#3b94d6; color:#ffffff;}
+a.choose-active {background-color:#3498db; color:#ffffff !important;}
.subject-pop-banner {width:685px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;}
.subject-pop-banner li {height:40px; line-height:40px; vertical-align:middle;}
.subject-pop-name {width:260px; padding-left:10px; padding-right:10px;}
@@ -230,8 +230,6 @@ span.add_attachment {font-size: 80%;line-height: 2.5em;}
.attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
.attachments_fields input.is_public_checkbox {width:20px;}
.attachments_fields span.ispublic-label {display: inline-block;width: 30px;margin-left: 10px;}
-a.remove-upload {background: url(/images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
-a.remove-upload:hover {text-decoration:none !important;}
.attachments_fields input.filename {border: 0;height: 1.8em;color: #555;background-color: inherit;background: url(/images/attachment.png) no-repeat 1px ;padding-left: 18px;padding-top: 2px;}
.attachments_fields span {display: block;white-space: nowrap;}
.attachments_fields .ajax-waiting input.filename {background:url(/images/hourglass.png) no-repeat 0px 50%;}
diff --git a/public/stylesheets/css/public.css b/public/stylesheets/css/public.css
index f924ff46d..336213a08 100644
--- a/public/stylesheets/css/public.css
+++ b/public/stylesheets/css/public.css
@@ -220,11 +220,11 @@ span.at {color:#3b94d6;}
span.at a{color:#3b94d6;text-decoration: none;}
/*新课程、项目资源库*/
.reCon{ margin:5px; width:710px;}
-.reTop{width:710px; height:40px; background:#eaeaea; padding:5px;}
+.reTop{width:99%; height:40px; background:#eaeaea; padding:5px;}
.researchBox { width:240px; height:24px; border:1px solid #dddddd; color:#666666; outline:none;}
.blueBtn{ width:60px; height:26px; color:#FFF; border:none; background-color:#3b94d6; cursor:pointer; padding-left:0px; text-align:center;}
.blueBtn:hover {background-color:#2788d0;}
-a.blue-btn{ padding:4px 7px; color:#FFF; border:none; background-color:#3b94d6; cursor:pointer; text-align:center;}
+a.blue-btn{ padding:0px 7px; color:#FFF!important; border:none; background-color:#3b94d6; cursor:pointer; text-align:center;}
a.blue-btn:hover {background-color:#2788d0;}
/*151228个人名片*/
.menuSetting {background:url(/images/hwork_icon.png) -5px -132px no-repeat; display:inline-block; width:20px; height:20px;}
diff --git a/public/stylesheets/css/structure.css b/public/stylesheets/css/structure.css
index afd2ea71b..635a126e8 100644
--- a/public/stylesheets/css/structure.css
+++ b/public/stylesheets/css/structure.css
@@ -113,7 +113,6 @@ div#menu ul ul ul li a{ width:185px; overflow:hidden; white-space: nowrap; text-
.ajax-waiting input.upload_filename {background:url(/images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(/images/loading.gif) no-repeat 0px 50%;}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-.upload_filename{ background: url(/images/pic_file.png) 0 -22px no-repeat;color: #7f7f7f;width: 270px;border: none !important; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.message_title{border: 1px solid #9C9C9C;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #fff; max-width:400px;word-wrap:break-word; word-break:break-all;}
.message_title_red{border: 1px solid #484848;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #fff;background-image: -moz-linear-gradient(top, #fff, #E0E0E0);}
.description{display: none !important;}
@@ -323,7 +322,7 @@ a.homepageMenuText {color:#484848; font-size:16px; margin-left:20px;}
a.homepageMenuControl {float:left; width:180px;}
.homepageLeftLabelContainer {width:238px; border:1px solid #dddddd; background-color:#ffffff; margin-top:10px;}
.homepageLabelText {color:#484848; font-size:16px; margin-left:10px; margin-bottom:12px; display:block;}
-.homepageRightBanner {width:975px; margin:0px auto; float:right; background-color: #ffffff; padding:10px 15px; }
+.homepageRightBanner {width:975px; margin:0px auto; float:right; background-color: #ffffff; padding:10px 15px;border-bottom:1px solid #eee; }
.homepagetopBanner {width:750px; height: 100px; margin:0px auto; float:right; background-color: #90C5EC; border:1px solid #dddddd;}
.homepageRightBannerImg{width:1000px; margin:0px auto; height: 60px; margin-top: 10px; background:url(/images/TeachersDay.jpg)}
a.homepageWhite {color:#ffffff;}
diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css
index 600434ee9..51a9b5d24 100644
--- a/public/stylesheets/new_user.css
+++ b/public/stylesheets/new_user.css
@@ -1130,7 +1130,6 @@ a:hover.icon_remove{background:url(../images/course/icons.png) -20px -338px no-r
.SearchIcon:hover{background:url(../images/homepage_icon2.png) 676px -419px no-repeat; }
a.link_file{ background:url(../images/pic_file.png) 0 2px no-repeat; padding-left:20px; }
a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; color:#3ca5c6;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
a.FilesName{ max-width:540px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
a.FilesName02{ max-width:665px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis; display:block;}
.ProResultUl span { display:block; float:left;}
@@ -1199,7 +1198,6 @@ img.ui-datepicker-trigger {
.ajax-waiting input.upload_filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-.upload_filename{ background: url(../images/pic_file.png) 0 -25px no-repeat;color: #7f7f7f;width: 270px;border: none; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.message_title{border: 1px solid #9C9C9C;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #fff; max-width:400px;word-wrap:break-word; word-break:break-all;}
.message_title_red{border: 1px solid #484848;padding: 0.6em;margin-left: 1.4em;margin-right: 0.4em;border-radius: 4px;font-family: "Microsoft YaHei";background-size: 100% 100%;margin-bottom: 5px;background-color: #fff;background-image: -moz-linear-gradient(top, #fff, #E0E0E0);}
@@ -1468,7 +1466,7 @@ span.at a{color:#269ac9;text-decoration: none;}
.subject-list {width:685px;}
.subject-detail {width:285px;}
a.subject-choose {padding:8px 20px; background-color:#f1f1f1; color:#888888;}
-a.choose-active {background-color:#269ac9; color:#ffffff;}
+a.choose-active {background-color:#3498db; color:#ffffff !important;}
.subject-pop-banner {width:685px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;}
.subject-pop-banner li {height:40px; line-height:40px; vertical-align:middle;}
.subject-pop-name {width:260px; padding-left:10px; padding-right:10px;}
diff --git a/public/stylesheets/org2.css b/public/stylesheets/org2.css
index 8fb36d5df..2f5c67e4e 100644
--- a/public/stylesheets/org2.css
+++ b/public/stylesheets/org2.css
@@ -282,17 +282,6 @@ span.add_attachment {
.c_dark {
color: #2d2d2d;
}
-.upload_filename {
- background: url(../images/pic_file.png) 0 -20px no-repeat;
- color: #7f7f7f;
- width: 270px;
- border: none;
- padding-left: 20px;
- margin-right: 10px;
- margin-bottom: 5px;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
.profiler-results.profiler-left {
left: 0px;
}
@@ -305,7 +294,6 @@ span.add_attachment {
.ajax-waiting input.upload_filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-.upload_filename{ background: url(../images/pic_file.png) 0 -20px no-repeat;color: #7f7f7f;width: 270px;border: none; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.evaluation{position: relative;}
.evaluation_submit{position: absolute;right: 0px;bottom: 0px;}
.student_work_search{background-color: #64bdd9;color: white !important;padding: 2px 7px;margin-left: 10px;cursor: pointer; }
diff --git a/public/stylesheets/org_new_style.css b/public/stylesheets/org_new_style.css
index 5e73949a6..f62be83d6 100644
--- a/public/stylesheets/org_new_style.css
+++ b/public/stylesheets/org_new_style.css
@@ -283,17 +283,6 @@ span.add_attachment {
.c_dark {
color: #2d2d2d;
}
-.upload_filename {
- background: url(../images/pic_file.png) 0 -20px no-repeat;
- color: #7f7f7f;
- width: 270px;
- border: none;
- padding-left: 20px;
- margin-right: 10px;
- margin-bottom: 5px;
- white-space: nowrap;
- text-overflow: ellipsis;
-}
.profiler-results.profiler-left {
left: 0px;
}
@@ -307,7 +296,6 @@ span.add_attachment {
.ajax-waiting input.upload_filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-.upload_filename{ background: url(../images/pic_file.png) 0 -20px no-repeat;color: #7f7f7f;width: 270px;border: none; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.evaluation{position: relative;}
.evaluation_submit{position: absolute;right: 0px;bottom: 0px;}
.student_work_search{background-color: #64bdd9;color: white !important;padding: 2px 7px;margin-left: 10px;cursor: pointer; }
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index 20b1a3543..256447543 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -356,10 +356,8 @@ blockquote {background: #eeeeee;padding: 10px;margin-bottom: 10px;}
#attachments_fields input.description {margin-left:4px; width:100px; }
#attachments_fields span .boldSpan{display:block; white-space:nowrap; font-family:'微软雅黑';}
#attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-a.remove-upload:hover {text-decoration:none !important;}
#attachments_fields span.ispublic-label {display: inline-block;width: 30px;margin-left: 10px;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
#attachments_fields input.filename {border: 0;height: 1.8em;width: 150px;color: #555;background-color: inherit;background: url(../images/attachment.png) no-repeat 1px 50%;padding-left: 18px;padding-top: 2px; white-space: nowrap; text-overflow:ellipsis;}
span.add_attachment {font-size: 80%;line-height: 2.5em;}
#attachments_fields span {display: block;white-space: nowrap;}
@@ -370,16 +368,13 @@ span.add_attachment {font-size: 80%;line-height: 2.5em;}
.reply_btn:hover{ background:#999; color:#fff; }
.ajax-waiting input.upload_filename {background:url(../images/hourglass.png) no-repeat 0px 50%;}
.ajax-loading input.upload_filename {background:url(../images/loading.gif) no-repeat 0px 50%;}
-.upload_filename{ background: url(../images/pic_file.png) 0 -22px no-repeat;color: #7f7f7f;width: 270px;border: none; padding-left: 20px;margin-right: 10px;margin-bottom: 5px; white-space: nowrap; text-overflow:ellipsis;}
.attachments_fields input.description {margin-left:4px; width:100px; }
.attachments_fields span .boldSpan{display:block; white-space:nowrap; font-family:'微软雅黑';}
div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; }
-a.remove-upload:hover {text-decoration:none !important;}
.attachments_fields input.is_public_checkbox {width:20px;}
.attachments_fields span.ispublic-label {display: inline-block;width: 30px;margin-left: 10px;}
-a.remove-upload {background: url(../images/delete.png) no-repeat 1px 50%;width: 1px;display: inline-block;padding-left: 16px;margin-left: 5px;}
.attachments_fields input.filename {border: 0;height: 1.8em;width: 150px;color: #555;background-color: inherit;background: url(../images/attachment.png) no-repeat 1px 50%;padding-left: 18px;padding-top: 2px;}
span.add_attachment {font-size: 80%;line-height: 2.5em;}
.attachments_fields span {display: block;white-space: nowrap;}
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index c97001e95..99d0de4b0 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -1087,7 +1087,7 @@ a:hover.userCancel{border:1px solid #888888; }
.subject-list {width:685px;}
.subject-detail {width:285px;}
a.subject-choose {padding:8px 20px; background-color:#f1f1f1; color:#888888;}
-a.choose-active {background-color:#269ac9; color:#ffffff;}
+a.choose-active {background-color:#3498db; color:#ffffff !important;}
.subject-pop-banner {width:685px; height:40px; background-color:#f1f1f1; border-top:1px solid #eaeaea; color:#7a7a7a; font-size:14px;}
.subject-pop-banner li {height:40px; line-height:40px; vertical-align:middle;}
.subject-pop-name {width:260px; padding-left:10px; padding-right:10px;}
\
+ \
+ \
+ \
+ \
+ 知道了\
+ \
+ |
|---|