课程首页(除课程资源库和课程题库)

This commit is contained in:
cxt 2017-04-28 22:53:34 +08:00
parent e079bfaa6c
commit 60d33cf661
63 changed files with 1702 additions and 681 deletions

View File

@ -1,7 +1,9 @@
class SyllabusMemberController < ApplicationController
before_filter :find_syllabus, :only => [:syl_member_autocomplete, :create, :change_manager, :change_manager_alert]
before_filter :find_syllabus_member, :only => [:destroy, :update_rank]
def syl_member_autocomplete
@syllabus = Syllabus.find(params[:syllabus])
@flag = params[:flag] || false
respond_to do |format|
format.js
@ -9,11 +11,10 @@ class SyllabusMemberController < ApplicationController
end
def create
@syllabus = Syllabus.find(params[:syllabus])
if params[:membership].nil?
if params[:member_id].nil?
@fail_hint = l(:label_blank_user_lists_for_org)
else
member_ids = params[:membership][:user_ids]
member_ids = params[:member_id]
last_rank = @syllabus.syllabus_members.order("rank asc").last.rank
user_ids = @syllabus.syllabus_members.map{|sy| sy.user_id}
member_ids.each_with_index do |user_id, i|
@ -22,15 +23,19 @@ class SyllabusMemberController < ApplicationController
@syllabus.syllabus_members << member
end
end
@members = @syllabus.syllabus_members.order("rank asc")
@members = @syllabus.syllabus_members.includes(:user => {:user_extensions => []}).order("rank asc")
@is_syllabus_member = User.current.admin? || @syllabus.syllabus_members.map{|sm| sm.user_id}.include?(User.current.id)
end
respond_to do |format|
format.js
end
end
def change_manager_alert
@members = @syllabus.syllabus_members.where("id != #{@syllabus.user_id}")
end
def change_manager
@syllabus = Syllabus.find(params[:syllabus])
if params[:chooseteacher]
man_member = SyllabusMember.where(:syllabus_id => @syllabus.id, :user_id => @syllabus.user_id).first
cha_member = @syllabus.syllabus_members.where(:id => params[:chooseteacher].to_i).first
@ -40,32 +45,31 @@ class SyllabusMemberController < ApplicationController
@syllabus.update_attributes(:user_id => cha_member.user_id)
end
end
@members = @syllabus.syllabus_members.includes(:user => {:user_extensions => []}).order("rank asc")
@is_syllabus_member = User.current.admin? || @syllabus.syllabus_members.map{|sm| sm.user_id}.include?(User.current.id)
end
def destroy
member = SyllabusMember.find(params[:id])
@syllabus = member.syllabus
after_syl_members = @syllabus.syllabus_members.where("rank > #{member.rank}")
after_syl_members = @syllabus.syllabus_members.where("rank > #{@member.rank}")
after_syl_members.update_all("rank = rank - 1")
member.destroy
@members = @syllabus.syllabus_members.order("rank asc")
@member.destroy
@members = @syllabus.syllabus_members.includes(:user => {:user_extensions => []}).order("rank asc")
@is_syllabus_member = User.current.admin? || @syllabus.syllabus_members.map{|sm| sm.user_id}.include?(User.current.id)
respond_to do |format|
format.js
end
end
def update_rank
member = SyllabusMember.find(params[:id])
@syllabus = member.syllabus
members = @syllabus.syllabus_members
if params[:opr] == 'up' && member.rank > 1
before_mem = members.where("rank = #{member.rank - 1}").first
if before_mem && member.update_attribute('rank', member.rank - 1)
if params[:opr] == 'up' && @member.rank > 1
before_mem = members.where("rank = #{@member.rank - 1}").first
if before_mem && @member.update_attribute('rank', @member.rank - 1)
before_mem.update_attribute('rank', before_mem.rank + 1)
end
elsif params[:opr] == 'down' && member.rank < members.count
after_mem = members.where("rank = #{member.rank + 1}").first
if after_mem && member.update_attribute('rank', member.rank + 1)
elsif params[:opr] == 'down' && @member.rank < members.count
after_mem = members.where("rank = #{@member.rank + 1}").first
if after_mem && @member.update_attribute('rank', @member.rank + 1)
after_mem.update_attribute('rank', after_mem.rank - 1)
end
end
@ -74,4 +78,14 @@ class SyllabusMemberController < ApplicationController
format.js
end
end
private
def find_syllabus
@syllabus = Syllabus.find params[:syllabus]
end
def find_syllabus_member
@member = SyllabusMember.find(params[:id])
@syllabus = @member.syllabus
end
end

View File

@ -6,23 +6,30 @@ class SyllabusesController < ApplicationController
include CoursesHelper
before_filter :is_logged, :only => [:index, :show, :edit, :new, :update, :destroy, :delete_syllabus]
before_filter :find_syllabus, :only => [:show, :edit, :update, :destroy, :syllabus_courselist, :edit_syllabus_eng_name, :edit_syllabus_title, :update_base_info, :delete_syllabus, :delete_des, :members]
before_filter :find_syllabus, :only => [:show, :edit, :update, :destroy, :syllabus_courselist, :edit_syllabus_eng_name, :edit_syllabus_title, :update_base_info, :delete_syllabus,
:delete_des, :members, :update_des, :edit_ref, :update_ref, :add_sy_member_alert, :search_not_sy_member]
def index
user = User.current
@syllabuses = user.syllabuses
end
def show
@is_syllabus_member = User.current.admin? || @syllabus.syllabus_members.map{|sm| sm.user_id}.include?(User.current.id)
@reference_materials = @syllabus.reference_materials
@members = @syllabus.syllabus_members.includes(:user => {:user_extensions => []}).order("rank asc")
datetime = (Time.now + 6*30*24*60*60).strftime('%Y-%m-%d %H:%M:%S')
@courses = @syllabus.courses.where("is_delete = 0 and created_at >= '#{datetime}'").select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS ca_update").order("ca_update desc")
@end_courses = @syllabus.courses.where("is_delete = 0 and created_at < '#{datetime}'").select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS ca_update").order("ca_update desc")
respond_to do |format|
format.js
format.html{render :layout => 'base_syllabus'}
format.html{render :layout => 'base_edu_syllabus'}
format.api
end
end
def new
@syllabus = Syllabus.new
render :layout => 'new_base'
render :layout => 'base_edu'
end
def create
@ -56,15 +63,21 @@ class SyllabusesController < ApplicationController
def regex_syllabus_name
data = {result:1}
if Syllabus.where(:user_id => User.current.id, :name => params[:name]).count > 0
data[:result] = 0
if params[:syllabus_id]
if User.current.syllabuses.where("id != #{params[:syllabus_id]} and title = '#{params[:name]}'").count > 0
data[:result] = 0
end
else
if Syllabus.where(:user_id => User.current.id, :title => params[:name]).count > 0
data[:result] = 0
end
end
render :json => data
end
def edit
respond_to do |format|
format.html{render :layout => 'base_syllabus'}
format.html{render :layout => 'base_edu'}
end
end
@ -87,24 +100,60 @@ class SyllabusesController < ApplicationController
redirect_to syllabus_path(@syllabus)
end
def edit_des
def edit_ref
@reference_materials = @syllabus.reference_materials
respond_to do |format|
format.html{render :layout => 'base_syllabus'}
format.js
end
end
def update_ref
@syllabus.reference_materials.destroy_all
refer_inputs = params[:syllabus][:book] if params[:syllabus]
if Array === refer_inputs
refer_inputs.each_with_index do |val, i|
@syllabus.reference_materials << ReferenceMaterial.new(
book: val,
editor: params[:syllabus][:editor][i],
press: params[:syllabus][:press][i]
)
end
end
sy_update_record = SyllabusUpdateRecord.new(:property => 2, :user_id => User.current.id)
@syllabus.syllabus_update_records << sy_update_record
@reference_materials = @syllabus.reference_materials
@is_syllabus_member = User.current.admin? || @syllabus.syllabus_members.map{|sm| sm.user_id}.include?(User.current.id)
respond_to do |format|
format.js
end
end
def update_des
@syllabus.description = params[:syllabus][:description]
@syllabus.des_status = 1
@syllabus.save_attachments(params[:attachments])
#@syllabus.save_attachments(params[:attachments])
if @syllabus.save
sy_update_record = SyllabusUpdateRecord.new(:property => 1, :user_id => User.current.id)
@syllabus.syllabus_update_records << sy_update_record
if params[:asset_id]
ids = params[:asset_id].split(',')
update_kindeditor_assets_owner ids,@syllabus.id,OwnerTypeHelper::SYLLABUS
end
redirect_to syllabus_path(@syllabus)
end
redirect_to syllabus_path(@syllabus)
end
def add_sy_member_alert
respond_to do |format|
format.js
end
end
def search_not_sy_member
if params[:q] && params[:q].lstrip.rstrip != ""
@users = Principal.active.sorted.not_member_of_syllabus(@syllabus).like(params[:q])
else
redirect_to syllabus_path(@syllabus)
@users = []
end
end

View File

@ -4343,6 +4343,35 @@ def first_level_discipline_option disc_ca = 27
content
end
def syllabus_type_option
content = []
option0 = []
option0 << "请选择课程性质"
option0 << 0
option1 = []
option1 << "专业选修课"
option1 << 3
option2 = []
option2 << "学科必修课"
option2 << 2
option3 = []
option3 << "公共必修课"
option3 << 1
option4 = []
option4 << "实践选修课"
option4 << 5
option5 = []
option5 << "实践必修课"
option5 << 4
content << option0
content << option1
content << option2
content << option3
content << option4
content << option5
content
end
def course_syllabus_option user = User.current
syllabus_members = SyllabusMember.where("user_id = #{user.id}")
syllabus_ids = syllabus_members.empty? ? "(-1)" : "(" + syllabus_members.map{|mem| mem.syllabus_id}.join(',') + ")"

View File

@ -26,6 +26,7 @@ class Syllabus < ActiveRecord::Base
has_many :syllabus_members, :dependent => :destroy
has_many :praise_tread, as: :praise_tread_object, dependent: :destroy
has_one :praise_tread_cache, as: :object, dependent: :destroy
belongs_to :discipline_category
belongs_to :first_level_discipline
attr_accessible :description, :user_id, :title, :eng_name, :syllabus_type, :credit, :hours, :theory_hours, :practice_hours, :applicable_major, :pre_course, :major_level, :discipline_category_id, :first_level_discipline_id
safe_attributes 'title','user', 'description', 'eng_name', 'syllabus_type', 'credit', 'hours', 'theory_hours', 'practice_hours', 'credit', 'applicable_major', 'pre_course', 'major_level', 'discipline_category_id', "first_level_discipline_id"
@ -55,7 +56,7 @@ class Syllabus < ActiveRecord::Base
type = ""
case self.major_level
when 1
type = "研究生/博士"
type = "研究生"
when 2
type = "本科"
when 3
@ -81,6 +82,14 @@ class Syllabus < ActiveRecord::Base
type
end
def syllabus_discipline_category
self.discipline_category ? self.discipline_category.name : ''
end
def syllabus_first_level_discipline
self.first_level_discipline ? self.first_level_discipline.name : ''
end
###添加回复
def self.add_syllabus_jour(user, notes, id, root_id, options = {})
syllabus = Syllabus.find(id)

View File

@ -3,8 +3,8 @@
identity字段含义
0
1
2
3
2
#3 开发
=end
class UserExtensions < ActiveRecord::Base
validate :school, presence: true
@ -84,6 +84,23 @@ class UserExtensions < ActiveRecord::Base
end
end
def user_technical_title
if self.technical_title
title = self.technical_title
else
case self.identity
when 0
title = l(:label_account_identity_teacher)
when 1
title = l(:label_account_identity_student)
when 2
title = l(:label_account_identity_professional)
when 3
title = l(:label_account_identity_professional)
else
title = ''
end
end
end
end

View File

@ -1,4 +1,4 @@
<%= stylesheet_link_tag 'css/bigdata-common', 'css/bigdata-popup' %>
<%= stylesheet_link_tag 'css/edu-common', 'css/edu-popup' %>
<div class="task-popup-warp" style="background-color: rgba(0,0,0,0.7);">
<div class="task-popup-box <%= had_done == 0 ? "task-box1" : "task-box2" %>">

View File

@ -7,7 +7,7 @@
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user', 'css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user', 'css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify'%>

View File

@ -19,7 +19,7 @@
<%= javascript_heads %>
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common','css/public', 'css/structure','prettify', 'css/courses','css/popup','sy_public','css/syllabus', 'css/moduel', 'css/font-awesome','css/contest' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common','css/public', 'css/structure','prettify', 'css/courses','css/popup','sy_public','css/syllabus', 'css/moduel', 'css/font-awesome','css/contest' %>
<%= javascript_include_tag "course","avatars","header","attachments",'prettify' %>
<!-- page specific tags -->
<%= yield :header_tags -%>

View File

@ -9,7 +9,8 @@
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-common','css/bigdata-public', 'css/taskstyle', 'css/font-awesome' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-common','css/edu-public', 'css/font-awesome', 'css/edu-class', 'css/edu-popup' %>
<%= javascript_include_tag "edu/application",'edu/syllabus' %>
<%= call_hook :view_layouts_base_html_head %>
<%= yield :header_tags -%>
</head>
@ -21,7 +22,6 @@
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
</div>
<div class="cl"></div>
<%= render :partial => 'layouts/footer' %>
@ -32,8 +32,4 @@
</div>
<div id="ajax-modal" style="display:none;"></div>
</body>
<!-- MathJax的配置 -->
<script type="text/javascript" src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<%= javascript_include_tag 'application', 'cookie','project',"avatars", 'header','prettify','select_list_move','attachments' %>
</html>

View File

@ -3,12 +3,14 @@
<head>
<meta charset="utf-8" />
<title><%= h html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<meta name="description" content="高校智能课堂与综合实训平台" />
<meta name="keywords" content="智能课堂,实训项目" />
<%= csrf_meta_tag %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/font-awesome', 'css/bigdata-common', "css/bigdata-public", "css/bigdata-user", 'css/bigdata-popup', 'css/magic-check', :media => 'all' %>
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/font-awesome', 'css/edu-common', "css/edu-public", "css/edu-user", 'css/edu-popup', 'css/magic-check', :media => 'all' %>
<%= javascript_heads %>
<%= javascript_include_tag "bigdata/application","bigdata/account"%>
<%= heads_for_theme %>
<%= javascript_include_tag "edu/application","edu/account"%>
<%= yield :header_tags -%>
<!-- MathJax的配置 -->
<script type="text/javascript"

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%= h html_title %></title>
<meta name="description" content="高校智能课堂与综合实训平台" />
<meta name="keywords" content="智能课堂,实训项目" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-common','css/edu-public', 'css/font-awesome', 'css/edu-class', 'css/magic-check', 'css/edu-popup' %>
<%= javascript_include_tag "edu/application",'edu/syllabus' %>
<%= call_hook :view_layouts_base_html_head %>
<%= yield :header_tags -%>
</head>
<body onload="prettyPrint();" style="display: flex;flex-direction: column;height: 100%;">
<div class="header"><%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %></div>
<%= render_flash_messages %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<div class="cl"></div>
<%= render :partial => 'layouts/footer' %>
<div class="cl"></div>
<div id="ajax-indicator" style="display:none;">
<span><%= l(:label_loading) %></span>
</div>
<div id="ajax-modal" style="display:none;"></div>
</body>
</html>

View File

@ -6,9 +6,9 @@
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/font-awesome', 'css/bigdata-common', "css/bigdata-public", "css/bigdata-user", 'css/bigdata-popup', :media => 'all' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/font-awesome', 'css/edu-common', "css/edu-public", "css/edu-user", 'css/edu-popup', :media => 'all' %>
<%= javascript_heads %>
<%= javascript_include_tag "bigdata/application","bigdata/user"%>
<%= javascript_include_tag "edu/application","edu/user"%>
<%= yield :header_tags -%>
<!-- MathJax的配置 -->
<script type="text/javascript"

View File

@ -9,7 +9,7 @@
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common', 'css/font-awesome','css/taskstyle','css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/cssPlus-v.0.2-build', 'css/bigdata-common','css/bigdata-public', 'css/bigdata-popup', 'css/bigdata-tooltipster' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common', 'css/font-awesome','css/taskstyle','css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/cssPlus-v.0.2-build', 'css/edu-common','css/edu-public', 'css/edu-popup', 'css/edu-tooltipster' %>
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>

View File

@ -11,7 +11,7 @@
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','application','prettify', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= stylesheet_link_tag 'css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common','css/structure','css/public','css/forum','css/popup', 'css/font-awesome','css/moduel', 'css/font-awesome', :media => 'all'%>
<%= stylesheet_link_tag 'css/edu-popup','css/edu-common', "css/edu-public",'css/common','css/structure','css/public','css/forum','css/popup', 'css/font-awesome','css/moduel', 'css/font-awesome', :media => 'all'%>
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>

View File

@ -7,7 +7,7 @@
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user', 'css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user', 'css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify'%>

View File

@ -9,7 +9,7 @@
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common','css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common','css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome' %>
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>

View File

@ -9,7 +9,7 @@
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/bigdata-tooltipster' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/edu-tooltipster' %>
<%= call_hook :view_layouts_base_html_head %>
<!-- page specific tags -->
<%= yield :header_tags -%>

View File

@ -7,7 +7,7 @@
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common','css/public','css/structure','css/courses','css/popup','prettify','css/syllabus','css/sy_public','css/moduel', 'css/font-awesome',:media => 'all'%>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common','css/public','css/structure','css/courses','css/popup','prettify','css/syllabus','css/sy_public','css/moduel', 'css/font-awesome',:media => 'all'%>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= javascript_include_tag "bootstrap","avatars","course",'attachments','prettify','syllabus','cookie'%>

View File

@ -3,14 +3,14 @@
<head>
<meta charset="utf-8" />
<title><%= h html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
<meta name="description" content="高校智能课堂与综合实训平台" />
<meta name="keywords" content="智能课堂,实训项目" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= stylesheet_link_tag 'css/bigdata-showpage', 'css/font-awesome', 'css/bigdata-common', 'css/bigdata-login', 'css/bigdata-public', 'css/bigdata-popup' %>
<%= stylesheet_link_tag 'css/edu-showpage', 'css/font-awesome', 'css/edu-common', 'css/edu-login', 'css/edu-public', 'css/edu-popup' %>
<%#= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= javascript_include_tag "bootstrap", "bigdata", 'bigdata/application' %>
<%= javascript_include_tag "bootstrap", "edu", 'edu/application' %>
</head>
<body>
<% if @welcome %>

View File

@ -14,7 +14,7 @@
<%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %>
<%= stylesheet_link_tag 'css/common','css/structure', 'css/public', 'css/courses','prettify', 'css/org', 'css/syllabus', 'css/font-awesome' %>
<%= javascript_include_tag "course","header",'prettify','contest','bigdata/syllabus' %>
<%= javascript_include_tag "course","header",'prettify','contest','edu/syllabus' %>
<!-- page specific tags -->
<%= yield :header_tags -%>
<!-- MathJax的配置 -->

View File

@ -7,7 +7,7 @@
<meta name="keywords" content="issue,bug,tracker" />
<%= csrf_meta_tag %>
<%= favicon %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/bigdata-popup','css/bigdata-common', "css/bigdata-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user','css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common', "css/edu-public",'css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','css/syllabus','css/moduel', 'css/user','css/font-awesome', :media => 'all' %>
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
<%= javascript_heads %>
<%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify'%>

View File

@ -21,7 +21,7 @@
<ul>
<li class="clearfix mb10">
<label class="panel-form-label fl"><span class="color-red mr5">*</span>真实姓名:</label>
<input type="text" id="lastname" name="lastname" maxlength="30" nh_required="1" required="required" class="input-height select-width panel-box-sizing fl" placeholder="填写您的真实姓名" value="<%= @user.lastname+@user.firstname %>">
<input type="text" id="lastname" name="lastname" maxlength="20" nh_required="1" required="required" class="input-height select-width panel-box-sizing fl" placeholder="填写您的真实姓名" value="<%= @user.lastname+@user.firstname %>">
<div class="cl"></div>
<span class="color-orange fl hint none" id="lastname_hint" style="margin-left:90px;"><i class="fa fa-exclamation-circle mr5"></i>请填写您的真实姓名</span>
@ -198,7 +198,7 @@
<p class="fl task-bg-grey02 panel-box-sizing"><span class="mr15"><%= @user.user_extensions.try(:location) %></span><span><%= @user.user_extensions.try(:location_city) %></span></p>
</li>
<li class="clearfix mb10">
<label class="panel-form-label fl"><span class="color-red mr5">*</span>单位名称:</label>
<label class="panel-form-label fl"><span class="color-red mr5">*</span>单位名称:</label>
<p class="fl task-bg-grey02 panel-box-sizing">
<span class="mr15"><%= @user.user_extensions.school ? @user.user_extensions.school.try(:name) : '' %></span>

View File

@ -0,0 +1,33 @@
<div class="task-popup" style="width:450px;">
<div class="task-popup-title clearfix task-popup-bggrey">
<h3 class="fl">更换管理员</h3>
<a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a>
</div>
<div class="task_popup_con" >
<div class="newupload_conbox" >
<div class="alert alert-orange mb15 font-12">
选择的成员将会成为新的管理员<br/>
您将不再拥有管理员的权限,但您仍是教师团队的一员
</div>
<div class="clearfix mb15 edu-bg-light-blue edu-max-h200">
<%= form_tag url_for(:controller => 'syllabus_member', :action => 'change_manager', :syllabus => @syllabus),:id => 'change_syllabus_manager_form', :remote => true do |f|%>
<ul class="">
<% @members.each do |member| %>
<% user = member.user %>
<li class="clearfix">
<input type="radio" name="chooseteacher" id="chooseteacher_<%= member.id %>" value="<%= member.id %>" class="fl mt12">
<label class="fl mt5 ml5 edu-class-pop-label edu-color-grey" for="chooseteacher_<%= member.id %>">
<span class="edu-info-dark task-hide fl"><%= user.show_name %></span><span class="fl mr15">(<%= user.login %>)</span>
</label>
</li>
<% end %>
</ul>
<% end %>
</div>
<span class="color-orange fl none" id="sy_change_manager_notice"><i class="fa fa-exclamation-circle mr5"></i>请先选择成员</span>
<a href="javascript:void(0);" onclick="sy_change_manager_submit();" class="task-btn task-btn-blue fr ">确定</a>
<a href="javascript:void(0);" class="pop_close task-btn fr mr10">取消</a>
<div class="cl"></div>
</div>
</div>
</div>

View File

@ -0,0 +1,2 @@
hideModal();
$("#syllabus_members_box").html("<%= escape_javascript(render :partial => 'syllabuses/syllabus_members') %>");

View File

@ -0,0 +1,2 @@
var htmlvalue = "<%= escape_javascript(render :partial => 'syllabus_member/sy_change_manager') %>";
pop_box_new(htmlvalue, 450, 435);

View File

@ -1,4 +1,2 @@
$("#syllabus_member_list").replaceWith("<%= escape_javascript(render :partial => 'syllabuses/syllabus_member_list') %>");
$("#syllabus_teacher_list").html("<%= escape_javascript(render :partial => 'layouts/syllabus_teacher_list', :locals => {:syllabus => @syllabus, :members => @members}) %>");
$("#principal_search").val("");
$("#principals_for_new_member").html("");
hideModal();
$("#syllabus_members_box").html("<%= escape_javascript(render :partial => 'syllabuses/syllabus_members') %>");

View File

@ -1,2 +1,2 @@
$("#syllabus_member_list").replaceWith("<%= escape_javascript(render :partial => 'syllabuses/syllabus_member_list') %>");
$("#syllabus_teacher_list").html("<%= escape_javascript(render :partial => 'layouts/syllabus_teacher_list', :locals => {:syllabus => @syllabus, :members => @members}) %>");
hideModal();
$("#syllabus_members_box").html("<%= escape_javascript(render :partial => 'syllabuses/syllabus_members') %>");

View File

@ -0,0 +1,29 @@
<div class="task-popup" style="width:610px;">
<div class="task-popup-title clearfix task-popup-bggrey">
<h3 class="fl">教师团队-添加</h3>
<a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a>
</div>
<div class="task_popup_con">
<div class="newupload_conbox">
<div class="mb10 edu-position">
<input id="add_sy_member_syid" type="hidden" value="<%= @syllabus.id %>">
<input class="task-form-100 task-height-40 panel-box-sizing" id="add_member_search_input" placeholder="输入用户的真实姓名进行搜索" type="text">
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt5"><i class="fa fa-search"></i></a>
</div>
<div class="clearfix mb15">
<ul class="upload_select_box fl" id="add_member_search_ul">
</ul>
<%= form_tag url_for(:controller => 'syllabus_member', :action => 'create', :syllabus => @syllabus),:id => 'syllabus_member_add_form', :remote => true do |f|%>
<ul class="upload_select_box fl ml10" id="add_member_choose_ul">
</ul>
<% end %>
</div>
<span class="color-orange fl none" id="sy_add_member_notice"><i class="fa fa-exclamation-circle mr5"></i>该用户已添加至右侧列表</span>
<a href="javascript:void(0);" onclick="submit_add_sy_member()" class="task-btn task-btn-blue fr">确定</a>
<a href="javascript:void(0);" class="pop_close task-btn fr mr10">取消</a>
<div class="cl"></div>
</div>
</div>
</div>

View File

@ -0,0 +1,54 @@
<div class="edu-con-top clearfix">
<h2 class="fl ml15 ">参考资料</h2>
<a href="javascript:void(0)" id="save_sy_ref" class="link-color-grey fr" title="保存"><i class="fa fa-save fr mr15 mt8" aria-hidden="true"></i></a>
<a href="javascript:void(0)" id="cancel_edit_sy_ref" class="link-color-grey fr" title="取消"><i class="fa fa-undo mr15"></i></a>
</div>
<ul class="edu-class-txt-con">
<%= labelled_form_for @syllabus, :url =>update_ref_syllabus_path(@syllabus),
:html => {:nhname=>'form',:multipart => true, :method => 'post', :remote => true, :id => 'syllabus-ref-form'} do |f| %>
<ul class="">
<% if @reference_materials.count > 0 %>
<% @reference_materials.each_with_index do |ref_ma, index| %>
<li class="clearfix">
<span class="font-bd fl">参考资料</span>
<a href="javascript:void(0);" title="增加" class="link-color-grey add_refer"><i class="fa fa-plus-circle font-16 ml10 fl mt5"></i></a>
<% if index != 0 %>
<a href="javascript:void(0);" title="删除" class="link-color-grey delete_refer"><i class="fa fa-times-circle font-16 ml10 fl mt5"></i></a>
<% end %>
<div class="cl"></div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">书名:</label>
<input type="text" name="syllabus[book][]" maxlength="100" value="<%= ref_ma.book %>" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料名称大学计算机第6版">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">编辑:</label>
<input type="text" name="syllabus[editor][]" maxlength="100" value="<%= ref_ma.editor %>" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的主编等信息">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">出版社:</label>
<input type="text" name="syllabus[press][]" maxlength="100" value="<%= ref_ma.press %>" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的出版社和版本等信息">
</div>
</li>
<% end %>
<% else %>
<li class="clearfix">
<span class="font-bd fl">参考资料</span>
<a href="javascript:void(0);" title="增加" class="link-color-grey add_refer"><i class="fa fa-plus-circle font-16 ml10 fl mt5"></i></a>
<div class="cl"></div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">书名:</label>
<input type="text" name="syllabus[book][]" maxlength="100" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料名称大学计算机第6版">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">编辑:</label>
<input type="text" name="syllabus[editor][]" maxlength="100" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的主编等信息">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">出版社:</label>
<input type="text" name="syllabus[press][]" maxlength="100" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的出版社和版本等信息">
</div>
</li>
<% end %>
</ul>
<% end %>
</ul>

View File

@ -0,0 +1,17 @@
<div class="edu-con-top clearfix" style="border-top:1px solid #eee;">
<h2 class="fl ml15">参考资料</h2>
<% if @is_syllabus_member %>
<a href="<%= edit_ref_syllabus_path(@syllabus) %>" id="edit_sy_reference" data-remote="true" class="link-color-grey"><i class="fa fa-edit fr mr15 mt8" aria-hidden="true"></i></a>
<% end %>
</div>
<% if @reference_materials.count > 0 %>
<ul class="edu-class-txt-con">
<% @reference_materials.each do |ref_ma| %>
<li><span class="mr15"><%= ref_ma.book %></span><span class="mr15"><%= ref_ma.editor %></span><span class="mr15"><%= ref_ma.press %></span></li>
<% end %>
</ul>
<% else %>
<div class="edu-reference-ma-block">
<p>还没有添加~</p>
</div>
<% end %>

View File

@ -0,0 +1,41 @@
<div class="edu-tab-con-box" id="sy_des_show_div">
<% if @syllabus.des_status == 1 %>
<% if @is_syllabus_member %>
<a href="javascript:void(0);" id="edit_sy_des" class="link-color-grey fr font-16" title="编辑"><i class="fa fa-edit mr15"></i></a>
<div class="cl"></div>
<% end %>
<div class="">
<%= @syllabus.description.html_safe %>
</div>
<% else %>
<img src="../images/bigdata/edu-class/edu-nodata.png" width="200" height="" class="edu-nodata-img">
<p class="edu-nodata-p mb30">
还没有<% if @is_syllabus_member %><a href="javascript:void(0)" id="edit_sy_des_add" class="link-color-blue">添加</a><% else %>添加<% end %>授课大纲 ~ </p>
<% end %>
</div>
<div class="edu-tab-con-box undis" id="sy_des_edit_div">
<a href="javascript:void(0)" id="save_sy_des" class="link-color-grey fr font-16" title="保存"><i class="fa fa-floppy-o mr15"></i></a>
<a href="javascript:void(0)" id="cancel_edit_sy_des" class="link-color-grey fr font-16" title="取消"><i class="fa fa-undo mr15"></i></a>
<%= labelled_form_for @syllabus, :url =>update_des_syllabus_path(@syllabus),
:html => {:nhname=>'form',:multipart => true, :method => 'post', :id => 'syllabus-des-form'} do |f| %>
<div>
<div id="syllabus_quote" class="wiki" style="width: 92%;word-break: break-all;word-wrap: break-word;margin-left: 40px;"></div>
<%= text_area :quote,:quote,:style => 'display:none' %>
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
<%= f.kindeditor :description, :editor_id => 'syllabus_description_editor',
:owner_id => @syllabus.nil? ? 0: @syllabus.id,
:owner_type => OwnerTypeHelper::SYLLABUS,
:width => '100%',
:height => 400,
:minHeight=>400,
:class => 'talk_text fl',
:input_html => { :id => 'syllabus_content',
:class => 'talk_text fl',
:maxlength => 5000 }
%>
<div class="cl"></div>
<p id="description_notice_span"></p>
</div>
<% end %>
</div>

View File

@ -0,0 +1,42 @@
<div class="edu-tab-con-box">
<div class="panel-bg-grey clearfix color-grey">
<p class="fl ml15">共有题:<span class="mr5">6</span>个</p>
<p class="fl ml15">公共题:<span class="mr5">6</span>个</p>
<p class="fl ml15">私有题:<span class="mr5">6</span>个</p>
<a href="#" class=" fr mr15 ">热度排序 </a>
<span class="mr5 ml5 fr">|</span>
<a href="#" class="fr color-blue">时间排序</a>
</div>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">编写一个简单的加法计算器</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">胡莎莎胡莎莎胡莎莎胡</a>
<span class=" ml30">创建于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">类别: </span><span class="hw_cgrey">编程</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout"checked >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">编写一个简单的加法计算器</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">胡莎莎胡莎莎胡莎莎胡</a>
<span class=" ml30">创建于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">类别: </span><span class="hw_cgrey">编程</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
</div>

View File

@ -0,0 +1,23 @@
<% @members.each do |member| %>
<div class="clearfix mb20">
<% user = member.user %>
<%= link_to image_tag(url_to_avatar(user), :width => "100", :height => "100", :alt => "头像"), user_path(user), :target => '_blank', :class => "fl edu-class-user-img ml15 mr15" %>
<ul class="fl mr15">
<li><%= link_to user.show_name, user_path(user), :class => "font-16 mt5 link-name-dark task-hide" %></li>
<li>
<span class="color-grey"><%= user.user_extensions.user_technical_title %></span>
<% if user == @syllabus.user && (User.current == @syllabus.user || User.current.admin?) %>
<% if @members.count == 1 %>
<a href="javascript:void(0)" onclick="notice_box('无可更换成员,请先添加教师成员')" class="font-12 ml15 link-color-grey">更换管理员</a>
<% else %>
<%= link_to '更换管理员', change_manager_alert_syllabus_member_index_path(:syllabus => @syllabus), :class => 'font-12 ml15 link-color-grey', :remote => true %>
<% end %>
<% elsif user == @syllabus.user %>
<a href="javascript:void(0)" class="ml15 link-color-grey" title="管理员"><i class="fa fa-user"></i></a>
<% elsif user != @syllabus.user && @is_syllabus_member %>
<a href="javascript:void(0)" onclick="delete_confirm_box_2('<%=syllabus_member_path(member.id) %>', '确定要删除该教师吗?');" class="font-12 ml15 link-color-grey">删除</a>
<% end %>
</li>
</ul>
</div>
<% end %>

View File

@ -0,0 +1,198 @@
<div class="edu-tab-con-box">
<div class="panel-bg-grey clearfix color-grey">
<p class="fl ml15">共有资源:<span class="mr5">6</span>个</p>
<p class="fl ml15">公共资源:<span class="mr5">6</span>个</p>
<p class="fl ml15">私有资源:<span class="mr5">6</span>个</p>
<a href="#" class="fr mr15">热度排序 </a>
<span class="mr5 ml5 fr">|</span>
<a href="#" class="fr color-blue">时间排序</a>
</div>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习.doc</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习.doc</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class="ml30">上传于</span>
<span class="ml5">2016-05-05 12:00</span>
<span class="ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class="ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class="ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习.doc</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习计算机基础第二章课件练习.doc</a></h3><i class="fa fa-lock fl color-grey font-16 mt8 ml5" ></i>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix">
<input class="magic-checkbox fl mt5" type="checkbox" name="layout" >
<label for="c1" class="fl"></label>
<div class="fl ml25">
<h3 class="resource_classlist_title fl"><a href="javascript:void(0);">计算机基础第二章课件练习..doc</a></h3>
<div class="cl"></div>
<p class="color-grey font-12">
<a href="javascript:void(0);" class="link-name-dark fl">hushushushushushushu</a>
<span class=" ml30">上传于</span>
<span class=" ml5">2016-05-05 12:00</span>
<span class=" ml30">大小:</span><span class="hw_cgrey">123KB</span>
<span class=" ml30">下载数:</span><span class="hw_cgrey">123</span>
<span class=" ml30">引用数:</span><span class="hw_cgrey">123</span>
</p>
</div>
<div class="cl"></div>
</ul>
<ul class="sy_classlist clearfix ">
<input class="magic-checkbox" type="checkbox" name="layout" class="fl " checked="">
<label for="c2" class="fl mr15">全选</label>
<div class="fl resource_btns_bottom">
<a href="javascript:void(0);" class="fl mr10">发送</a>
<a href="javascript:void(0);" class="fl">下载</a>
</div>
<div class="fr pages_right_min ">
<a href="javascript:void(0);" class="pages-big">上一页</a>
<a href="javascript:void(0);" class="active ">1</a>
<a href="javascript:void(0);">2</a>
<a href="javascript:void(0);">3</a>
<a href="javascript:void(0);">...</a>
<a href="javascript:void(0);">31</a>
<a href="javascript:void(0);" class="pages-big pages-border-right">下一页</a>
<div class="cl"></div>
</div>
</ul>
</div>

View File

@ -0,0 +1,2 @@
var htmlvalue = "<%= escape_javascript(render :partial => 'syllabuses/add_sy_member_box') %>";
pop_box_new(htmlvalue, 610, 454);

View File

@ -1,42 +1,62 @@
<%= content_for(:header_tags) do %>
<%= import_ke(enable_at: false, prettify: false) %>
<% end %>
<div class="sy_tab_con mb20">
<p class="f16 mb10" style="font-size:16px;">课程信息</p>
<%= labelled_form_for @syllabus, :url =>syllabus_path(@syllabus),
:html => {:nhname=>'form',:multipart => true, :id => 'syllabus-form'} do |f| %>
<div>
<div id="syllabus_quote" class="wiki" style="width: 92%;word-break: break-all;word-wrap: break-word;margin-left: 40px;"></div>
<%= text_area :quote,:quote,:style => 'display:none' %>
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
<%= f.kindeditor :description, :editor_id => 'syllabus_description_editor',
:owner_id => @syllabus.nil? ? 0: @syllabus.id,
:owner_type => OwnerTypeHelper::SYLLABUS,
:width => '100%',
:height => 300,
:minHeight=>300,
:class => 'talk_text fl',
:input_html => { :id => 'syllabus_content',
:class => 'talk_text fl',
:maxlength => 5000 }
%>
<div class="cl"></div>
<p id="description_notice_span"></p>
</div>
<div class="mt5">
<div class="fl" id="syllabus_attachments">
<%= render :partial => 'attachments/form_course', :locals => {:container => @syllabus, :isReply => false} %>
</div>
</div>
<div class="mt5">
<a href="javascript:void(0);" class="BlueCirBtnMini fr" onclick="submit_syllabus();">保存</a>
<span class="fr mr10 mt3">或</span>
<a href="javascript:void(0);" class="fr mr10 mt3" onclick="window.location.href = '<%=syllabus_path(@syllabus)%>';">取消</a>
</div>
<div class="cl"></div>
<% end %>
</div><!--HomeWork end-->
<div class="edu-class-container" style="flex: 1 0 auto;">
<p class="mb10">
<i class="fa fa-map-marker mr5 color-grey"></i>
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %>
</p>
<div class="edu-con-top ">
<p class="ml15 color-grey">编辑课程</p>
</div>
<div class="edu-con-bg01">
<div class="edu-class-con ">
<div class="alert alert-orange mb30 ">
<button data-dismiss="alert" class="task-close fr" type="button">×</button>
课程的核心是授课大纲,您可以为一门课程创建多个不同的班级
</div>
<div class="panel-form clearfix">
<%= labelled_form_for @syllabus, :html => {:id => 'edit_syllabus'} do |f| %>
<ul>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>专业层级&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :major_level,options_for_select(major_level_option,@syllabus.major_level), {:id=>"major_level", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="major_level_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属专业层级</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>学科门类&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :discipline_category_id,options_for_select(discipline_category_option(@syllabus.major_level),@syllabus.discipline_category_id), {:id=>"discipline_category_id", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="discipline_category_id_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属学科门类</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>一级学科&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :first_level_discipline_id,options_for_select(first_level_discipline_option(@syllabus.discipline_category_id),@syllabus.first_level_discipline_id), {:id=>"first_level_discipline_id", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="first_level_discipline_id_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属一级学科</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>课程名称&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="text" name="title" maxlength="50" value="<%= @syllabus.title %>" id="new_syllabus_name" class="task-form-80 task-height-40 panel-box-sizing fl" placeholder=" 例如&nbsp;&nbsp;计算机基础">
<div class="cl"></div>
<span class="color-orange fl none" id="new_syllabus_name_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>课程名称不能为空且至少有两个字符</span>
<span class="color-orange fl none" id="new_syllabus_name_repeat_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>同一个用户不能创建同名课程</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" >英文名称&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="text" name="eng_name" value="<%= @syllabus.eng_name %>" maxlength="100" id="new_syllabus_eng_name" class="task-form-80 task-height-40 panel-box-sizing fl" placeholder=" 例如&nbsp;&nbsp;Basis of Computer Engineering">
<div class="cl"></div>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" >课程性质&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :syllabus_type,options_for_select(syllabus_type_option,@syllabus.syllabus_type), {:id=>"syllabus_type", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
</li>
<li class="clearfix" >
<a href="javascript:void(0);" class="task-btn task-btn-blue fr" onclick="submit_edit_syllabus('<%= @syllabus.id %>');">保存</a>
<%= link_to "取消",syllabus_path(@syllabus),:class => "task-btn fr mr10"%>
</li>
</ul>
<% end %>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,2 @@
$("#sy_reference_show_box").hide();
$("#sy_reference_edit_box").html("<%= escape_javascript(render :partial => 'edit_ref') %>").show();

View File

@ -1,55 +1,62 @@
<div class="project_r_h02" style="width: 980px;">
<h2 class="project_h2">新建课程</h2>
</div>
<div class="hwork_new pr">
<ul>
<%= labelled_form_for @syllabus do |f| %>
<li class="ml45">
<label><span class="c_red">*</span>&nbsp;专业层级&nbsp;&nbsp;</label>
<%= select_tag :major_level,options_for_select(major_level_option,@syllabus.major_level), {:id=>"major_level", :class=>"syllabus_input w300 h28"} %>
</li>
<li class="ml45">
<label><span class="c_red">*</span>&nbsp;学科门类&nbsp;&nbsp;</label>
<%= select_tag :discipline_category_id,options_for_select(discipline_category_option,@syllabus.discipline_category_id), {:id=>"discipline_category_id", :class=>"syllabus_input w300 h28"} %>
</li>
<li class="ml45">
<label><span class="c_red">*</span>&nbsp;一级学科&nbsp;&nbsp;</label>
<%= select_tag :first_level_discipline_id,options_for_select(first_level_discipline_option,@syllabus.first_level_discipline_id), {:id=>"first_level_discipline_id", :class=>"syllabus_input w300 h28"} %>
</li>
<li class="ml45">
<label><span class="c_red">*</span>&nbsp;课程名称&nbsp;&nbsp;</label>
<input type="text" name="title" id="new_syllabus_name" class="name_input" placeholder="例如:软件工程" maxlength="100" onkeyup="regex_syllabus_name();">
<div class="cl"></div>
<span class="c_red ml80" id="new_syllabus_name_notice" style="display: none;">课程名称不能为空且至少有两个字符</span>
</li>
<div class="cl"></div>
<li class="ml125 fontGrey3"><span class="success-icon mr70">正确示例:</span><span class="error-icon">错误示例:</span></li>
<li class="ml125 mt5 fontGrey3"><span class="ml25 mr70">软件工程</span><span style="margin-left: 37px;">2016软件工程</span></li>
<li class="ml125 mt5 fontGrey3"><span class="ml25 mr70">统计学原理</span><span style="margin-left: 25px;">统计学原理计算机系</span></li>
<li class="ml125 mt5 fontGrey3"><span class="ml25 mr70">并行处理</span><span style="margin-left: 36px;">并行处理2016秋季A班</span></li>
<li class="mt10 ml45">
<label><span class="c_white">*</span>&nbsp;<%= l(:label_tags_course_eng_name)%>&nbsp;&nbsp;</label>
<input type="text" name="eng_name" id="new_syllabus_eng_name" placeholder="例如Software Engineering" class="name_input" maxlength="100">
<!--<span class="c_red" id="new_course_class_period_notice" style="display: none;"></span>-->
</li>
<div class="cl"></div>
<li class="mt10 ml55" >
<a href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_new_syllabus();" >提交</a>
<%= link_to "取消",user_activities_path(User.current.id),:class => "grey_btn fl c_white ml10"%>
<div class="cl"></div>
</li>
<% end%>
</ul>
<div class="ye_tips_box_inner" style="left: 570px; top: -5px; text-align: left;">
<em style="top: 9px;"></em>
<span style="top: 9px;"></span>
<p>
课程是针对一个具体的学科方向开展的教学内容与进程安排<br/>本质上,一门课程就是一个教学计划<br/><br/>班级是实行教学任务的群体,创建班级后才能开展在线教学
</p>
<div class="edu-class-container" style="flex: 1 0 auto;">
<p class="mb10">
<i class="fa fa-map-marker mr5 color-grey"></i>
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %>
</p>
<div class="edu-con-top ">
<p class="ml15 color-grey">新建课程</p>
</div>
</div><!--talknew end-->
<div class="cl"></div>
<script>
</script>
<div class="edu-con-bg01">
<div class="edu-class-con ">
<div class="alert alert-orange mb30 ">
<button data-dismiss="alert" class="task-close fr" type="button">×</button>
课程的核心是授课大纲,您可以为一门课程创建多个不同的班级
</div>
<div class="panel-form clearfix">
<%= labelled_form_for @syllabus do |f| %>
<ul>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>专业层级&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :major_level,options_for_select(major_level_option,@syllabus.major_level), {:id=>"major_level", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="major_level_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属专业层级</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>学科门类&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :discipline_category_id,options_for_select(discipline_category_option,@syllabus.discipline_category_id), {:id=>"discipline_category_id", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="discipline_category_id_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属学科门类</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>一级学科&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :first_level_discipline_id,options_for_select(first_level_discipline_option,@syllabus.first_level_discipline_id), {:id=>"first_level_discipline_id", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
<span class="color-orange fl none" id="first_level_discipline_id_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>请选择课程所属一级学科</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" ><span class="color-orange mr5">*</span>课程名称&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="text" name="title" maxlength="50" id="new_syllabus_name" class="task-form-80 task-height-40 panel-box-sizing fl" placeholder=" 例如&nbsp;&nbsp;计算机基础">
<div class="cl"></div>
<span class="color-orange fl none" id="new_syllabus_name_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>课程名称不能为空且至少有两个字符</span>
<span class="color-orange fl none" id="new_syllabus_name_repeat_notice" style="margin-left:20%;"><i class="fa fa-exclamation-circle mr5" ></i>同一个用户不能创建同名课程</span>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" >英文名称&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="text" name="eng_name" maxlength="100" id="new_syllabus_eng_name" class="task-form-80 task-height-40 panel-box-sizing fl" placeholder=" 例如&nbsp;&nbsp;Basis of Computer Engineering">
<div class="cl"></div>
</li>
<li class="clearfix mb20">
<label class="panel-form-label label-w20 fl" >课程性质&nbsp;&nbsp;&nbsp;&nbsp;</label>
<%= select_tag :syllabus_type,options_for_select(syllabus_type_option,@syllabus.syllabus_type), {:id=>"syllabus_type", :class=>"fl task-height-40 task-form-80"} %>
<div class="cl"></div>
</li>
<li class="clearfix" >
<a href="javascript:void(0);" class="task-btn task-btn-blue fr" onclick="submit_new_syllabus();">保存</a>
<%= link_to "取消",user_path(User.current),:class => "task-btn fr mr10"%>
</li>
</ul>
<% end %>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,22 @@
$("#add_member_search_ul").empty();
<% if @users.count > 0 %>
<% @users.each do |user|%>
var link = "<li id='sy_mem_<%=user.id %>' class='clearfix'><label class='fl mt5 ml5 edu-class-pop-label edu-color-grey'>" +
"<span class='edu-name-dark task-hide fl'><%=user.show_name %></span><span class='fl mr5'>(<%= user.login %>)</span>" +
"<span class='fl color-grey'><%= user.user_extensions.user_technical_title %></span></li>";
$("#add_member_search_ul").append(link);
$("#sy_mem_<%=user.id %>").on("click",function choose_student() {
if($("#choose_sy_mem_<%=user.id %>").length > 0){
$("#sy_add_member_notice").show();
} else{
$("#sy_add_member_notice").hide();
var li = "<li id='choose_sy_mem_<%=user.id %>' onclick='delete_sy_member(<%=user.id %>);' class='clearfix'><label class='fl mt5 ml5 edu-class-pop-label edu-color-grey'>" +
"<input name='member_id[]' value='<%=user.id %>' type='hidden'/>" +
"<span class='edu-name-dark task-hide fl'><%=user.show_name %></span><span class='fl mr5'>(<%= user.login %>)</span>" +
"<span class='fl color-grey'><%= user.user_extensions.user_technical_title %></span></li>";
$("#add_member_choose_ul").append(li);
}
});
<% end %>
<% end %>

View File

@ -1,6 +1,178 @@
<%= content_for(:header_tags) do %>
<%= import_ke(enable_at: false, prettify: false, init_activity: true) %>
<% end %>
<%= javascript_include_tag 'baiduTemplate' %>
<div class="edu-class-container" style="flex: 1 0 auto;">
<p class="mb10">
<i class="fa fa-map-marker mr5 color-grey" ></i>
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to '智能课堂', user_course_community_path(User.current) %> > <%= @syllabus.title %></p>
<div class="edu-class-box">
<div class="edu-class-top clearfix mb20">
<ul class="fl edu-class-top-info">
<li class="color-grey mb5"><%= @syllabus.user.user_extensions.school.blank? ? '' : @syllabus.user.user_extensions.school.name %></li>
<li class="font-24 font-bold mb10">
<%= @syllabus.title %>
<% if @is_syllabus_member %>
<a href="<%= edit_syllabus_path(@syllabus) %>" title="编辑" class="link-color-grey">
<i class="fa fa-edit ml15" aria-hidden="true"></i>
</a>
<% end %>
</li>
<li class="color-grey" style="height: 26px;"><%= @syllabus.eng_name %></li>
<li class="color-grey font-12">
<% if @syllabus.major_level %>
<span class="mr15"><%= @syllabus.syllabus_major_level %></span>
<span class="mr15"><%= @syllabus.syllabus_discipline_category %></span>
<span class="mr15"><%= @syllabus.syllabus_first_level_discipline %></span>
<% end %>
<span class="mr15"><%= @syllabus.syllabus_type_str %></span></li>
</ul>
<div class="edu-class-top-img fr edu-position" >
<img src="../images/bigdata/edu-class/edu-class-img.jpg" width="260" height="140">
<% if @is_syllabus_member %>
<a href="javascript:void(0)" class="edu-class-right-add">
<span>更换图片</span>
</a>
<% end %>
</div>
<%# if @is_syllabus_member %>
<!--<a href="javascript:void(0)" class="task-btn task-btn-blue fr mr20 ml20" style="margin-top:105px;">选用</a>-->
<%# end %>
</div>
<div class="edu-class-inner mb20">
<div class="with75 fl">
<div class="edu-tab clearfix mb20">
<ul id="edu-tab-nav">
<li id="edu-tab-nav-1" class="edu-tab-hover" onclick="HoverLi(1);">
<a href="javascript:void(0);" class="tab_type">授课大纲</a>
<span class="edu-tab-fa"><i class="fa fa-caret-down" ></i></span>
</li>
<%# if @is_syllabus_member %>
<!--<li id="edu-tab-nav-2" onclick="HoverLi(2);">-->
<!--<a href="javascript:void(0);" class="tab_type">课程资源库</a>-->
<!--<span class="edu-tab-fa"><i class="fa fa-caret-down"></i></span>-->
<!--</li>-->
<!--<li id="edu-tab-nav-3" onclick="HoverLi(3);">-->
<!--<a href="javascript:void(0);" class="tab_type">课程题库</a>-->
<!--<span class="edu-tab-fa"><i class="fa fa-caret-down" ></i></span>-->
<!--</li>-->
<%# end %>
</ul>
<div class="cl"></div>
<div id="edu-tab-con-1">
<div id="syllabus_des_box">
<%= render :partial => 'syllabus_des' %>
</div>
<div class="edu-bg" id="sy_reference_show_box">
<%= render :partial => 'show_ref' %>
</div>
<div class="edu-bg undis" id="sy_reference_edit_box">
</div>
</div>
<div id="edu-tab-con-2" class="undis">
<%= render :partial => 'syllabus_resources', :locals => {:resources => nil} %>
</div>
<div id="edu-tab-con-3" class="undis">
<%= render :partial => 'syllabus_homeworks', :locals => {:homeworks => nil} %>
</div>
<div class="cl"></div>
</div>
</div>
<div class="with25 fr ">
<div class="edu-class-right-box ml15 mb20 ">
<div class="edu-con-top clearfix mb20">
<h2 class="fl ml15 ">教师团队</h2>
<div class="edu-weixin-share fr">
<a href="javascript:void(0)" class="link-color-grey fr font-12 mr15 mt3">分享<i class="fa fa-weixin fr mt5 ml5" aria-hidden="true"></i></a>
<div class="cl"></div>
<div class="edu-weixin-hide">
<font></font>
<img src="../images/bigdata/trustie_QR.jpg" width="100" height="100" alt="微信分享" >
<p class="edu-weixin-p">用微信扫描二维码分享给你的小伙伴</p>
</div>
</div>
</div>
<div class="edu-h300-auto mb20" id="syllabus_members_box">
<%= render :partial => "syllabus_members" %>
</div>
<% if @is_syllabus_member %>
<a href="<%= add_sy_member_alert_syllabus_path(@syllabus) %>" data-remote="true" class="edu-class-right-add">
<i class="fa fa-plus"></i>
<span>添加</span>
</a>
<% end %>
</div>
<div class="edu-class-right-box ml15 mb20">
<div class="edu-con-top clearfix mb20">
<h2 class="fl ml15 ">班级列表</h2>
<span class="fr mr15 color-green font-12 mt3">正在进行</span>
</div>
<ul class="edu-class-list-style ml15 mr15 edu-h350-auto mb30">
<% if @courses.count == 0 %>
<p class="edu-nodata-p">暂无</p>
<% else %>
<% @courses.each do |course| %>
<li>
<i class="fa fa-caret-right mr5 color-grey"></i>
<%= link_to course.name, course_path(course), :target => '_blank' %>
</li>
<% end %>
<% end %>
</ul>
<% if @is_syllabus_member %>
<a href="<%= new_course_path() %>" class="edu-class-right-add">
<i class="fa fa-plus"></i>
<span>新建</span>
</a>
<% end %>
</div>
<div class="edu-class-right-box ml15 mb20">
<div class="edu-con-top clearfix mb20">
<h2 class="fl ml15 ">班级列表</h2>
<span class="fr mr15 color-grey font-12 mt3">已结束</span>
</div>
<ul class="edu-class-list-style ml15 mr15 edu-h350-auto">
<% if @end_courses.count == 0 %>
<p class="edu-nodata-p">暂无</p>
<% else %>
<% @end_courses.each do |course| %>
<li>
<i class="fa fa-caret-right mr5 color-grey"></i>
<%= link_to course.name, course_path(course), :target => '_blank' %>
</li>
<% end %>
<% end %>
</ul>
</div>
</div>
</div>
</div>
</div>
<script id="t:sy-refer-list" type="text/html">
<li class="clearfix">
<span class="font-bd fl">参考资料</span>
<a href="javascript:void(0);" title="增加" class="link-color-grey add_refer"><i class="fa fa-plus-circle font-16 ml10 fl mt5"></i></a>
<a href="javascript:void(0);" title="删除" class="link-color-grey delete_refer"><i class="fa fa-times-circle font-16 ml10 fl mt5"></i></a>
<div class="cl"></div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">书名:</label>
<input type="text" name="syllabus[book][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料名称大学计算机第6版">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">编辑:</label>
<input type="text" name="syllabus[editor][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的主编等信息">
</div>
<div class="mb10 edu-form-border clearfix">
<label class="edu-form-label fl">出版社:</label>
<input type="text" name="syllabus[press][]" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="请输入参考资料的出版社和版本等信息">
</div>
</li>
</script>
<script type="text/javascript">
$(function() {
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
@ -16,59 +188,4 @@
autoUrl('syllabus_description_<%= @syllabus.id %>');
});
</script>
<ul id="sy_tab_nav">
<li id="sy_tab_nav_1" class="sy_tab_hover" onclick="HoverLi(1);">
<a href="javascript:void(0);" class="sy_tab_type" >课程大纲</a>
</li>
<li id="sy_tab_nav_2" onclick="HoverLi(2);">
<a href="javascript:void(0);" class="sy_tab_type" >班级列表</a>
</li>
<li id="sy_tab_nav_3" onclick="HoverLi(3);">
<a href="javascript:void(0);" class="sy_tab_type" >教师团队</a>
</li>
</ul>
<div id="sy_tab_con_1">
<% if User.current == @syllabus.user && @syllabus.courses.empty? %>
<p class="nodata c_red">您还没有创建班级,只有 <%= link_to "创建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "linkBlue2", :target => '_blank'%> 后才可以开展在线教学哦~</p>
<% end %>
<% if @syllabus.des_status == 0 && User.current == @syllabus.user %>
<div class="icons_tishi"><img src="../images/sy/icons_tan.png" width="110" height="110" alt="" ></div>
<p class="sy_tab_con_p">您建立的课程尚未填写课程大纲,请完善您的 <%=link_to '课程大纲', edit_syllabus_path(@syllabus), :class => 'sy_corange' %>,谢谢啦!</p>
<% elsif @syllabus.des_status == 0 %>
<div class="icons_tishi"><img src="../images/sy/icons_tan.png" width="110" height="110" alt="" ></div>
<p class="sy_tab_con_p">该课程尚未填写课程大纲,敬请期待!</p>
<% else %>
<div class="sy_tab_con">
<div class="syllabuscon upload_img ke-block" id="syllabus_description_<%= @syllabus.id %>">
<%=@syllabus.description.html_safe %>
</div>
<div class="mt10" style="font-weight:normal; font-size: 12px;">
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @syllabus} %>
</div>
<% if User.current.logged? && User.current == @syllabus.user%>
<div class="homepagePostSetting" style="margin:10px;">
<ul>
<li class="homepagePostSettingIcon">
<ul class="homepagePostSettiongText">
<li><%=link_to '编辑', edit_syllabus_path(@syllabus), :class => 'postOptionLink'%></li>
<li><%=link_to '删除', delete_des_syllabus_path(@syllabus), :class => 'postOptionLink', :confirm => l(:text_are_you_sure)%></li>
</ul>
</li>
</ul>
</div>
<div class="cl"></div>
<% end %>
<div class="fr fontGrey2">更新时间:<%=format_time @syllabus.updated_at %><div></div></div>
<div class="cl"></div>
</div><!--HomeWork end-->
<% end %>
<div class="homepagePostReply" style="margin-bottom: 20px;">
<div id="activity_post_reply_<%=@syllabus.id %>">
<%=render :partial => 'syllabuses/syllabus_post_reply', :locals => {:activity => @syllabus, :user_activity_id => @syllabus.id} %>
</div>
<div class="cl"></div>
</div><!--回复框 用正式版样式-->
</div><!--课程大纲 end-->

View File

@ -0,0 +1,2 @@
$("#sy_reference_show_box").html("<%= escape_javascript(render :partial => 'show_ref') %>").show();
$("#sy_reference_edit_box").hide();

View File

@ -7,7 +7,7 @@
<% applied_user = User.find(ma.applied_user_id) %>
<%= link_to image_tag(url_to_avatar(applied_user), :width => "30", :height => "30"), user_path(applied_user), :target => '_blank' %>
<% else %>
<%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %>
<%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %>
<% end %>
</li>
<li class="homepageNewsPubType fl">

View File

@ -69,7 +69,7 @@
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl"><%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
</li>
<li class="homepageNewsPubType fl">
<span class="newsBlue homepageNewsPublisher">系统提示</span>

View File

@ -649,7 +649,7 @@
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl"><%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
</li>
<li class="homepageNewsPubType fl">
<span class="newsBlue homepageNewsPublisher">系统提示</span>
@ -763,7 +763,7 @@
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl"><%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
</li>
<li class="homepageNewsPubType fl">
<span class="newsBlue homepageNewsPublisher">系统提示</span>

View File

@ -29,7 +29,7 @@
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl"><%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
</li>
<li class="homepageNewsPubType fl">
<span class='homepageNewsType fl'>管理员同意了您的子域名申请:</span>

View File

@ -2,7 +2,7 @@
<ul class="homepageNewsList fl">
<div class="longMessageWidth">
<li class="homepageNewsPortrait fl">
<div class="navHomepageLogo fl"><%= image_tag("/images/bigdata-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
<div class="navHomepageLogo fl"><%= image_tag("/images/edu-logo.png", width: "30px", height: "30px", class: "mt3") %></div>
</li>
<li class="homepageNewsPubType fl">
<span style="color: red;float: left">系统消息:</span>

View File

@ -4,7 +4,7 @@
<div class="resources mt10" id="position_<%= system_message.id %>">
<div class="homepagePostBrief break_word">
<div class="homepagePostPortrait">
<%= image_tag("/images/bigdata-logo.png", :width => "50", :height => "50") %>
<%= image_tag("/images/edu-logo.png", :width => "50", :height => "50") %>
</div>
<div class="homepagePostDes">
<div class="homepagePostTo break_word">

View File

@ -1459,12 +1459,17 @@ RedmineApp::Application.routes.draw do
get 'delete_syllabus'
get 'delete_des'
get 'members'
post 'update_des'
get 'edit_ref'
post 'update_ref'
get 'add_sy_member_alert'
post 'search_not_sy_member'
end
collection do
get 'get_discipline_categories'
get 'get_first_level_disciplines'
get 'regex_syllabus_name'
post 'regex_syllabus_name'
end
end
@ -1476,6 +1481,7 @@ RedmineApp::Application.routes.draw do
collection do
get 'syl_member_autocomplete'
post 'change_manager'
get 'change_manager_alert'
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,76 +0,0 @@
$(function(){
$("#major_level").on("change", function(){
$.ajax({
url: '/syllabuses/get_discipline_categories',
type: 'get',
data: {major_level:$("#major_level").val()},
success: function(data){
if (data.result == 1){
$("#discipline_category_id").html("<option value='0'>选择课程所属学科门类</option>");
for(var i=0; i<data.options.length; i++){
$("#discipline_category_id").append("<option value='" + data.options[i][1] + "'>" + data.options[i][0] + "</option>");
}
}
else{
}
}
});
});
$("#discipline_category_id").on("change", function(){
$.ajax({
url: '/syllabuses/get_first_level_disciplines',
type: 'get',
data: {discipline_category_id:$("#discipline_category_id").val()},
success: function(data){
if (data.result == 1){
$("#first_level_discipline_id").html("<option value='0'>选择课程所属一级学科</option>");
for(var i=0; i<data.options.length; i++){
$("#first_level_discipline_id").append("<option value='" + data.options[i][1] + "'>" + data.options[i][0] + "</option>");
}
}
else{
}
}
});
});
});
function regex_syllabus_name() {
var name = $.trim($("#new_syllabus_name").val());
if(name.length < 2)
{
$("#new_syllabus_name_notice").html("课程名称不能为空且至少有两个字符");
$("#new_syllabus_name_notice").show();
return false;
}
else
{
$("#new_syllabus_name_notice").hide();
return true;
}
}
//新建课程大纲
function submit_new_syllabus()
{
if(regex_syllabus_name())
{
$.ajax({
url: '/syllabuses/regex_syllabus_name',
type: 'get',
data: {name:$.trim($("#new_syllabus_name").val())},
success: function(data){
if (data.result == 0){
$("#new_syllabus_name_notice").html("同一个用户不能创建同名课程");
$("#new_syllabus_name_notice").show();
}
else{
$("#new_syllabus").submit();
}
}
});
}
}

View File

@ -67,7 +67,7 @@ function pop_box_new(value, Width, Height){
$("#popupWrap").html(value);
$("#popupWrap").show();
$('#popupWrap').css({"top": h+"px","left": w+"px","padding":"0","border":"none","position":"fixed","z-index":"99999","background-color":"#fff"});
$('#popupWrap').find("a[class*='close']").click(function(){
$('#popupWrap').find("a[class*='pop_close']").click(function(){
$("#popupWrap").hide();
});
// w = ($(window).width() - Width)/2;
@ -139,42 +139,42 @@ function pop_box_new(value, Width, Height){
//点击删除时的确认弹框: 不走destroy方法
function delete_confirm_box(url, str){
var htmlvalue = '<div class="task-popup" style="width:300px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:400px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-submit clearfix"><a href="javascript:void(0);" onclick="hideModal();" class="task-btn fl">取消</a>'+
'<a href="'+ url +'" class="task-btn task-btn-blue fr" data-remote="true">确定</a></div></div>';
pop_box_new(htmlvalue, 300, 140);
pop_box_new(htmlvalue, 400, 140);
}
//点击删除时的确认弹框: 走destroy方法,remote为true
function delete_confirm_box_2(url, str){
var htmlvalue = '<div class="task-popup" style="width:300px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:400px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-submit clearfix"><a href="javascript:void(0);" onclick="hideModal();" class="task-btn fl">取消</a>'+
'<a href="'+ url +'" class="task-btn task-btn-blue fr" data-method="delete" data-remote="true">确定</a></div></div>';
pop_box_new(htmlvalue, 300, 140);
pop_box_new(htmlvalue, 400, 140);
}
//点击删除时的确认弹框: 走destroy方法
function delete_confirm_box_3(url, str){
var htmlvalue = '<div class="task-popup" style="width:300px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:400px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-submit clearfix"><a href="javascript:void(0);" onclick="hideModal();" class="task-btn fl">取消</a>'+
'<a href="'+ url +'" class="task-btn task-btn-blue fr" data-method="delete">确定</a></div></div>';
pop_box_new(htmlvalue, 300, 140);
pop_box_new(htmlvalue, 400, 140);
}
//提示框:只有一个按钮,点击关闭弹框
function notice_sure_box(str){
var htmlvalue = '<div class="task-popup" style="width:350px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:450px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-sure clearfix">'+
'<a href="javascript:void(0);" class="task-btn task-btn-blue" onclick="hideModal();">确定</a></div></div>';
pop_box_new(htmlvalue, 350, 140);
pop_box_new(htmlvalue, 450, 140);
}
//提示框:只有一个确定按钮,点击关闭弹框
function notice_box(str){
var htmlvalue = '<div class="task-popup" style="width:300px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:400px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-sure clearfix">'+
'<a href="javascript:void(0);" class="task-btn task-btn-blue" onclick="hideModal();">确定</a></div></div>';
pop_box_new(htmlvalue, 300, 140);
pop_box_new(htmlvalue, 400, 140);
}
@ -183,15 +183,15 @@ function long_notice_box(str){
var htmlvalue = '<div class="task-popup" style="width:480px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-sure clearfix">'+
'<a href="javascript:void(0);" class="task-btn task-btn-blue" onclick="hideModal();">确定</a></div></div>';
pop_box_new(htmlvalue, 380, 140);
pop_box_new(htmlvalue, 480, 140);
}
//提示框:只有一个确定按钮,点击跳转
function notice_box_redirect(url, str){
var htmlvalue = '<div class="task-popup" style="width:300px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="'+ url +'" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
var htmlvalue = '<div class="task-popup" style="width:400px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey">提示</h3><a href="'+ url +'" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-sure clearfix">'+
'<a href="'+ url +'" class="task-btn task-btn-blue">确定</a></div></div>';
pop_box_new(htmlvalue, 300, 140);
pop_box_new(htmlvalue, 400, 140);
}
// 警告/提示弹框点击“x”关闭
@ -443,3 +443,10 @@ function showcity(province, cityField) {
}*/
}
}
function throttle(method, context, e) {
clearTimeout(method.tId);
method.tId = setTimeout(function () {
method.call(context, e);
}, 500);
}

View File

@ -0,0 +1,230 @@
var syMemberLastSearchCondition = '';
$(function(){
$("#major_level").on("change", function(){
$.ajax({
url: '/syllabuses/get_discipline_categories',
type: 'get',
data: {major_level:$("#major_level").val()},
success: function(data){
if (data.result == 1){
$("#discipline_category_id").html("<option value='0'>选择课程所属学科门类</option>");
for(var i=0; i<data.options.length; i++){
$("#discipline_category_id").append("<option value='" + data.options[i][1] + "'>" + data.options[i][0] + "</option>");
}
$("#major_level_notice").hide();
}
else{
}
}
});
});
$("#discipline_category_id").on("change", function(){
$.ajax({
url: '/syllabuses/get_first_level_disciplines',
type: 'get',
data: {discipline_category_id:$("#discipline_category_id").val()},
success: function(data){
if (data.result == 1){
$("#first_level_discipline_id").html("<option value='0'>选择课程所属一级学科</option>");
for(var i=0; i<data.options.length; i++){
$("#first_level_discipline_id").append("<option value='" + data.options[i][1] + "'>" + data.options[i][0] + "</option>");
}
$("#discipline_category_id_notice").hide();
}
else{
}
}
});
});
$("#first_level_discipline_id").on("change", function(){
if($("#first_level_discipline_id").val() != "0"){
$("#first_level_discipline_id_notice").hide();
}
});
});
function regex_syllabus_name() {
var name = $.trim($("#new_syllabus_name").val());
if(name.length < 2)
{
$("#new_syllabus_name_notice").show();
return false;
}
else
{
$("#new_syllabus_name_notice").hide();
return true;
}
}
//新建课程
function submit_new_syllabus()
{
if($("#major_level").val() == "0"){
$("#major_level_notice").show();
} else if($("#discipline_category_id").val() == "0"){
$("#discipline_category_id_notice").show();
} else if($("#first_level_discipline_id").val() == "0"){
$("#first_level_discipline_id_notice").show();
} else {
if(regex_syllabus_name())
{
$.ajax({
url: '/syllabuses/regex_syllabus_name',
type: 'post',
data: {name:$.trim($("#new_syllabus_name").val())},
success: function(data){
if (data.result == 0){
$("#new_syllabus_name_repeat_notice").show();
$("#new_syllabus_name_notice").hide();
}
else{
$("#new_syllabus").submit();
}
}
});
}
}
}
//编辑课程
function submit_edit_syllabus(id)
{
if($("#major_level").val() == "0"){
$("#major_level_notice").show();
} else if($("#discipline_category_id").val() == "0"){
$("#discipline_category_id_notice").show();
} else if($("#first_level_discipline_id").val() == "0"){
$("#first_level_discipline_id_notice").show();
} else {
if(regex_syllabus_name())
{
$.ajax({
url: '/syllabuses/regex_syllabus_name',
type: 'post',
data: {name:$.trim($("#new_syllabus_name").val()), syllabus_id:id},
success: function(data){
if (data.result == 0){
$("#new_syllabus_name_repeat_notice").show();
$("#new_syllabus_name_notice").hide();
}
else{
$("#edit_syllabus").submit();
}
}
});
}
}
}
function g(o){return document.getElementById(o);}
function HoverLi(n){
for(var i=1;i<=3;i++){
g('edu-tab-nav-'+i).className='edu-tab-nomal';
g('edu-tab-con-'+i).className='undis';
}
g('edu-tab-con-'+n).className='dis';
g('edu-tab-nav-'+n).className='edu-tab-hover';
}
// 课程首页
$(function(){
$("#edit_sy_des").live('click', function(){
$("#sy_des_show_div").hide();
$("#sy_des_edit_div").show();
});
$("#edit_sy_des_add").live('click', function(){
$("#sy_des_show_div").hide();
$("#sy_des_edit_div").show();
});
$("#cancel_edit_sy_des").live('click', function(){
$("#sy_des_show_div").show();
$("#sy_des_edit_div").hide();
});
$("#save_sy_des").live('click', function(){
syllabus_description_editor.sync();
$("#syllabus-des-form").submit();
});
$("#cancel_edit_sy_ref").live('click', function(){
$("#sy_reference_show_box").show();
$("#sy_reference_edit_box").hide();
});
$("#save_sy_ref").live('click', function(){
var result = true;
$.each($("#sy_reference_edit_box input"), function(i, val){
if ($(val).val().length<=0) {
$(val)[0].focus();
result = false;
return result;
}
});
if(result){
$("#syllabus-ref-form").submit();
}
});
$("#add_member_search_input").live('input', function(e){
throttle(sy_member_add_search, window, e);
});
});
function delete_sy_member(id) {
$("#choose_sy_mem_"+id).remove();
}
function submit_add_sy_member(){
if($("#add_member_choose_ul input[name='member_id[]']").length > 0){
$("#syllabus_member_add_form").submit()
}else{
hideModal();
}
}
function sy_change_manager_submit(){
var list= $('input:radio[name="chooseteacher"]:checked').val();
if(list==null){
$("#sy_change_manager_notice").show();
}
else{
$("#change_syllabus_manager_form").submit();
}
}
function sy_member_add_search(e){
if ($(e.target).val().trim() == syMemberLastSearchCondition && $(e.target).val().trim() != '') {//如果输入框没有改变或者输入框为空就返回
return;
}
syMemberLastSearchCondition = $(e.target).val().trim();
$.ajax({
url: '/syllabuses/'+ $("#add_sy_member_syid").val() + '/search_not_sy_member?q=' + e.target.value,
type: 'post',
success: function (data) {
}
});
}
$(function(){
var bt = baidu.template;
bt.LEFT_DELIMITER = '<!';
bt.RIGHT_DELIMITER = '!>';
$("#sy_reference_edit_box").on('click', 'a.add_refer', function(){
var html = bt('t:sy-refer-list', null);
$(this).parent('li').after(html);
});
$("#sy_reference_edit_box").on('click', 'a.delete_refer', function(){
$(this).parent('li').remove();
});
});

View File

@ -0,0 +1,74 @@
/* 共用 后期再添加至公共样式 */
a:link,a:visited{text-decoration:none;color:#666; }
a:hover {color:#5faee3;}
a:hover.fa{color:#5faee3;}
a.link-color-grey{color:#aaa!important;}
a:hover.link-color-grey{color:#5faee3!important;}
a.link-name-dark{ color:#333; max-width:140px; display: block; }
a:hover.link-name-dark{ color:#5faee3;}
input{ border:1px solid #eee; background: #fff;}
.edu-name-dark{ max-width:100px; display: block; }
.edu-info-dark{ max-width:300px; display: block; }
.edu-color-grey{ color:#666;}
.edu-color-grey:hover{color:#5faee3;}
.edu-btn-search{ position: absolute; top:0; right:15px;}
.edu-bg-light-blue{ background:#f7f9fd; padding:5px;}
.edu-max-h200{ height:200px; overflow: auto;}
.edu-position{ position: relative;}
.edu-h200-auto{ max-height:200px; overflow:auto;}
.edu-h300-auto{ max-height:300px; overflow:auto;}
.edu-h350-auto{ max-height:350px; overflow:auto;}
.edu-txt-w240{ width:240px; display: block;}
.edu-txt-w280{ width:280px; display: block;}
.edu-txt-w200{ width:200px; display: block;}
a.edu-txt-w140{ width:141px; display: block;}
.edu-txt-w50{ width:50px;}
.edu-con-top{ padding:10px 0; background:#fff; border-bottom:1px solid #eee;font-size:16px; }
.edu-con-top h2{ font-size:16px;}
.edu-form-label{display: inline-block; width:60px;text-align: right; line-height: 40px; font-weight: normal;}
.edu-form-border{ border:1px solid #ddd;}
.edu-form-noborder,input.edu-form-noborder{ border:none; outline:none;}
/* 智能课堂 */
.edu-class-con{ width:50%; margin:0px auto; font-size:14px; padding:50px 0;}
.edu-con-bg01{ width: 100%; background:#fff;}
.edu-class-box{ width:100%;}
.edu-class-container{ width: 1200px; margin:10px auto 20px;}
.edu-class-top{ background:#fff; padding:20px;}
.edu-class-top-info{ }
.edu-class-top-img{ width:260px; height: 140px;}
/* tab */
.edu-tab{ width: 100%; background:#fff; }
#edu-tab-nav{height:47px;background: #fff; }
#edu-tab-nav li {float:left; width: 170px; text-align:center;height: 47px;line-height: 47px; position: relative; }
.edu-tab-fa{ position: absolute; top:28px!important; left:85px!important; color: #fff;}
#edu-tab-nav li a{font-size:14px; }
.edu-tab-hover {border-bottom:3px solid #5faee3; background: #fff; }
.edu-tab-hover .edu-tab-fa{ color: #5faee3;}
.edu-tab-hover a{ color:#5faee3; font-weight:bold;}
.undis {display:none;}
.dis {display:block;}
.edu-tab-con-box{ padding:15px; max-height:1200px; overflow: auto; color:#666; line-height: 2.0; background:#fff;}
.edu-class-right-box{ background:#fff; position:relative; padding-bottom:20px;}
a.edu-class-user-img{ height: 80px;}
.edu-class-user-img img{ width: 80px; height: 80px; border-radius:100px;}
a.edu-class-right-add{ display: block; position:absolute; bottom: 0; width: 100%; height: 40px; background-color: rgba(0, 0, 0, 0.3);color:#fff; text-align: center; line-height: 40px;}
a:hover.edu-class-right-add{ background-color: rgba(0, 0, 0, 0.4);}
.edu-class-txt-con{ padding:15px; color:#888; line-height: 2.0;}
.edu-weixin-share{ position: relative;}
.edu-weixin-hide{ position:absolute; left:80px; top:0px;width: 100px; padding:5px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); background:#fff; z-index:999; border-radius:3px; display: none;}
.edu-weixin-hide img{ width: 100px; height: 100px;}
.edu-weixin-hide font{border: 1px solid #ddd; display: block; border-width: 8px; position: absolute; top:15px;left: -16px; border-style:solid; border-color: transparent #fff transparent transparent;font-size: 0;line-height: 0; }
.edu-weixin-p{ line-height: 1.5; color:#666; font-size:12px;}
.edu-weixin-share:hover .edu-weixin-hide{ display: block;}
.edu-class-list-style li{ line-height: 1.5; margin-bottom:10px;}
.sy_tab_con_p{ font-size: 16px;text-align: center; margin-bottom:100px; color:#888;}
.sy_classlist{padding: 20px 15px;border-bottom: 1px dashed #e6e6e6;}
.sy_classlist:last-child{ border-bottom: none;}
.resource_btns_bottom a{ height: 28px; line-height: 28px; padding:0px 15px; border:1px solid #d5d5d5; border-radius:3px; color: #666;}
.resource_btns_bottom a:hover{background-color: #3498db; color: #fff; }
.resource_classlist_title{color:#333; font-size: 16px; font-weight: normal;margin-bottom: 5px; max-width:98%; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
img.edu-nodata-img{ width:200px; margin:50px auto 20px; display: block;}
.edu-nodata-p{ font-size: 16px; text-align: center; color:#888;}
.edu-reference-ma-block{height: 40px; margin: 30px auto; text-align: center; font-size: 16px; color: #9a9a9a;}

View File

@ -1,155 +1,168 @@
/* 重置样式 */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;}
body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:12px;line-height:1.9; background:#f5f9fc; color:#333;}
div,img,tr,td,table{ border:0;}
table,tr,td{border:0;}
ol,ul,li{ list-style-type:none}
a:link,a:visited{text-decoration:none;color:#898989; }
a:hover {color:#29bd8b;}
input,textarea,select{ background: #fff; border:1px solid #ccc; color:#666;}
/*侧滚动条*/
::-webkit-scrollbar { width:10px; height:10px; background-color: #F5F5F5; }
::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); background-color: #F5F5F5; }
::-webkit-scrollbar-thumb { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: #ccc; }
/*万能清除浮动*/
.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden;}
.clearfix{clear:both;zoom:1}
.cl{ clear: both; overflow: hidden;}
/*通用浮动*/
.fl{ float: left;}
.fr{ float: right;}
/*pre标签换行*/
.break-word{word-break: break-all;word-wrap: break-word;}
.break-word-firefox{white-space: pre-wrap !important;word-break: break-all;}
/*超过隐藏*/
.task-hide{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.hide{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.hide-text {overflow:hidden; white-space:nowrap;}
/*隐藏*/
.none{display: none;}
/*通用文字功能样式*/
.font-bd{ font-weight: bold;}
.color-red{ color:#d2322d;}
.color-green{color:#51a74f !important;}
.color-light-green{color:#29bd8b;}
.color-blue{color:#3498db;}
.color-orange{color:#FF9900;}
.color-yellow{color:#f0ad4e;}
.color-grey{color:#888 !important;}
.color_white{ color:#fff !important;}
.-text-danger{ color:#FF6545 }
a.link-color-grey{color:#888;}
a:hover.link-color-grey{color:#29bd8b;}
a.link-color-green{color:#29bd8b;}
a.link-color-blue{color:#6a8abe !important;}
a.link-color-grey02{color:#888;}
a:hover.link-color-grey02{ color:red;}
/*通用文字大小样式*/
.font-12{ font-size: 12px!important;}
.font-14{ font-size: 14px!important;}
.font-16{ font-size: 16px!important;}
.font-18{ font-size: 18px!important;}
.font-20{ font-size: 20px!important;}
.font-24{ font-size: 24px!important;}
.font-28{ font-size: 28px!important;}
.font-30{ font-size: 30px!important;}
/*通用内外边距*/
.mt3{ margin-top:3px;}.mt5{ margin-top:5px;}.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;}
.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml50{ margin-left: 50px;}.ml230{ margin-left: 230px;}
.mr5{ margin-right: 5px;}.mr10{ margin-right: 10px;}.mr15{ margin-right: 15px;}.mr20{ margin-right: 20px;}.mr25{ margin-right: 25px;}.mr30{ margin-right:30px;}.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;}
.pl5{ padding-left:5px;}.pl10{ padding-left:10px;}.pl15{ padding-left:15px;}.pl20{ padding-left:20px;}
.pr5{ padding-right:5px;}.pr10{ padding-right:10px;}.pr15{ padding-right:15px;}.pr20{ padding-right:20px;}
/*块*/
.col-width{ background: #fff; border:1px solid #e8e8e8;}
.col-width-10{ max-width: 100%; background: #fff; border:1px solid #e8e8e8;}
.col-width-9{ max-width: 90%; background: #fff; border:1px solid #e8e8e8;}
.col-width-8{ max-width: 80%; background: #fff; border:1px solid #e8e8e8;}
.col-width-7{ max-width: 70%; background: #fff; border:1px solid #e8e8e8;}
.col-width-6{ max-width: 60%; background: #fff; border:1px solid #e8e8e8;}
.col-width-5{ max-width: 50%; background: #fff; border:1px solid #e8e8e8;}
.col-width-4{ max-width: 40%; background: #fff; border:1px solid #e8e8e8;}
.col-width-3{ width: 500px; background: #fff; border:1px solid #e8e8e8;
position:absolute;left:-420px;top:0;}
.col-width-2{ max-width: 20%; background: #fff; border:1px solid #e8e8e8;}
.col-width-1{ max-width: 10%; background: #fff; border:1px solid #e8e8e8;}
/*按钮*/
a.task-btn{display: inline-block;border:none; padding:0 35px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 35px;line-height: 35px; border-radius:3px;}
a:hover.task-btn {background: #c3c3c3; }
a.task-btn-green{background: #29bd8b; color: #fff!important;}
a:hover.task-btn-green{background: #19b17e;}
a.task-btn-orange{ background:#fc8675; color:#fff !important;}
a:hover.task-btn-orange{ background:#e27869;}
a.task-btn-blue{background: #3498db; color:#fff!important;}
a:hover.task-btn-blue{background: #5faee3;color:#fff;}
a.new-btn{display: inline-block;border:none; padding:0 10px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 30px;border-radius: 3px; line-height: 30px;}
a.new-btn:hover{background: #c3c3c3; color: #333;}
a.new-btn-green{background: #29bd8b; color: #fff;}
a.new-btn-green:hover{background:#19b17e; }
a.new-btn-blue{background: #6a8abe; color: #fff!important;}
a.new-btn-blue:hover{background:#5f7cab; }
a.new-bigbtn{display: inline-block;border:none; padding:2px 30px;color: #666;background: #e1e1e1; text-align:center;font-size: 14px; height: 30px;line-height: 30px; border-radius: 3px;}
a:hover.new-bigbtn{background: #c3c3c3; color: #333;}
a.new-bigbtn-green{background: #3b94d6; color: #fff;}
a.new-bigbtn-green:hover{background: #2384cd; color: #fff;}
a.task-btn-ver{ height:45px; line-height: 45px; background: #6a8abe; color: #fff !important; border-radius:5px; font-size:12px; padding:0 10px;}
a.task-btn-ver-line{height:43px; line-height: 43px; border-radius:5px; font-size:12px; padding:0 10px; border:1px solid #ccc;}
a:hover.task-btn-ver-line{ border:1px solid #29bd8b;}
a:hover.task-btn-ver{background:#5f7cab;}
.new_login_submit_disable{ width:265px; height:40px; line-height: 40px; background:#ccc; color:#fff; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;}
.new_login_submit,a.new_login_submit{ display: block; text-decoration: none !important; width:100%; height:45px; line-height: 45px; background:#29bd8b; color:#fff !important; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;}
.new_login_submit a{ color:#fff !important; text-decoration: none;}
.new_login_submit:hover{background: #19b17e;}
/*提示条*/
.alert{ padding:10px;border: 1px solid transparent; text-align: center;}
.alert-blue{ background-color: #d9edf7;border-color: #bce8f1; color: #3a87ad;}
.alert-orange{ background-color: #fff9e9;border-color: #f6d0b1; color:#ee4a20;}
.alert-green{ background-color: #dff0d8;border-color: #d6e9c6; color:#3c763d;}
.task-close{padding: 0;cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; font-size: 21px; font-weight: bold;line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.3;}
.taskclose:hover{opacity: 0.5;}
/*tag*/
.task-tag{ padding:0 10px; text-align: center; display:inline-block; height:30px; line-height: 30px;}
.tag-blue{ background-color: #d9edf7; color: #3a87ad;}
.tag-grey{ background-color: #f3f5f7; color: #4d555d;}
.tag-border-grey{ background-color: #fff;border-color: #e2e2e2; color: #888;}
.cir-orange{background: #ff6530;color: #fff; border-radius: 15px; padding: 0 5px; display: inline-block; font-size: 12px; height: 16px;line-height: 16px; }
.cir-red{background: red;color: #fff; border-radius: 15px; padding: 0 5px; display: inline-block; font-size: 12px; height: 16px;line-height: 16px; }
.red-cir-btn{ background:#e74c3c; padding:1px 5px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal;font-size:12px;}
/****************************/
/* 页面结构*/
.task-pm-content{ width: 1000px; margin: 0 auto; }
.task-pm-box{ width: 100%; background: #fff; border: 1px solid #e8e8e8;}
.task-paner-con{ padding:15px; color:#666; line-height:2.0;}
.task-text-center{ text-align: center;}
.flow_hidden{ width:300px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
/*pre标签换行*/
.break_word{word-break: break-all;word-wrap: break-word;}
.break_word_firefox{white-space: pre-wrap !important;word-break: break-all;}
.pr {position:relative;}
/***** Ajax indicator ******/
#ajax-indicator {
position: absolute; /* fixed not supported by IE */
background-color:#eee;
border: 1px solid #bbb;
top:35%;
left:40%;
width:20%;
font-weight:bold;
text-align:center;
padding:0.6em;
z-index:100;
opacity: 0.5;
}
html>body #ajax-indicator { position: fixed; }
#ajax-indicator span {
background-position: 0% 40%;
background-repeat: no-repeat;
background-image: url(/images/loading.gif);
padding-left: 26px;
vertical-align: bottom;
}
/* 重置样式 */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;}
body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f9fc; color:#333;}
div,img,tr,td,table{ border:0;}
table,tr,td{border:0;}
ol,ul,li{ list-style-type:none}
a:link,a:visited{text-decoration:none;color:#898989; }
a:hover {color:#29bd8b;}
input,textarea,select{ background: #fff; border:1px solid #ccc; color:#666;}
/*侧滚动条*/
::-webkit-scrollbar { width:10px; height:10px; background-color: #F5F5F5; }
::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); background-color: #F5F5F5; }
::-webkit-scrollbar-thumb { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: #ccc; }
/*万能清除浮动*/
.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden;}
.clearfix{clear:both;zoom:1}
.cl{ clear: both; overflow: hidden;}
/*通用浮动*/
.fl{ float: left;}
.fr{ float: right;}
/*pre标签换行*/
.break-word{word-break: break-all;word-wrap: break-word;}
.break-word-firefox{white-space: pre-wrap !important;word-break: break-all;}
/*超过隐藏*/
.task-hide{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.hide{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.hide-text {overflow:hidden; white-space:nowrap;}
/*隐藏*/
.none{display: none;}
/*通用文字功能样式*/
.font-bd{ font-weight: bold;}
.color-red{ color:#d2322d;}
.color-green{color:#51a74f !important;}
.color-light-green{color:#29bd8b;}
.color-blue{color:#3498db;}
.color-orange{color:#FF9900;}
.color-yellow{color:#f0ad4e;}
.color-grey{color:#888 !important;}
.color_white{ color:#fff !important;}
.-text-danger{ color:#FF6545 }
a.link-color-grey{color:#888;}
a:hover.link-color-grey{color:#29bd8b;}
a.link-color-green{color:#29bd8b;}
a.link-color-blue{color:#6a8abe !important;}
a.link-color-grey02{color:#888;}
a:hover.link-color-grey02{ color:red;}
/*通用文字大小样式*/
.font-12{ font-size: 12px!important;}
.font-14{ font-size: 14px!important;}
.font-16{ font-size: 16px!important;}
.font-18{ font-size: 18px!important;}
.font-20{ font-size: 20px!important;}
.font-24{ font-size: 24px!important;}
.font-28{ font-size: 28px!important;}
.font-30{ font-size: 30px!important;}
/*通用内外边距*/
.mt3{ margin-top:3px;}.mt5{ margin-top:5px;}.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;}
.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml50{ margin-left: 50px;}.ml230{ margin-left: 230px;}
.mr5{ margin-right: 5px;}.mr10{ margin-right: 10px;}.mr15{ margin-right: 15px;}.mr20{ margin-right: 20px;}.mr25{ margin-right: 25px;}.mr30{ margin-right:30px;}.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;}
.pl5{ padding-left:5px;}.pl10{ padding-left:10px;}.pl15{ padding-left:15px;}.pl20{ padding-left:20px;}
.pr5{ padding-right:5px;}.pr10{ padding-right:10px;}.pr15{ padding-right:15px;}.pr20{ padding-right:20px;}
/*块*/
.col-width{ background: #fff; border:1px solid #e8e8e8;}
.col-width-10{ max-width: 100%; background: #fff; border:1px solid #e8e8e8;}
.col-width-9{ max-width: 90%; background: #fff; border:1px solid #e8e8e8;}
.col-width-8{ max-width: 80%; background: #fff; border:1px solid #e8e8e8;}
.col-width-7{ max-width: 70%; background: #fff; border:1px solid #e8e8e8;}
.col-width-6{ max-width: 60%; background: #fff; border:1px solid #e8e8e8;}
.col-width-5{ max-width: 50%; background: #fff; border:1px solid #e8e8e8;}
.col-width-4{ max-width: 40%; background: #fff; border:1px solid #e8e8e8;}
.col-width-3{ width: 500px; background: #fff; border:1px solid #e8e8e8;
position:absolute;left:-420px;top:0;}
.col-width-2{ max-width: 20%; background: #fff; border:1px solid #e8e8e8;}
.col-width-1{ max-width: 10%; background: #fff; border:1px solid #e8e8e8;}
/*按钮*/
a.task-btn{display: inline-block;border:none; padding:0 35px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 35px;line-height: 35px; border-radius:3px;}
a:hover.task-btn {background: #c3c3c3; }
a.task-btn-green{background: #29bd8b; color: #fff!important;}
a:hover.task-btn-green{background: #19b17e;}
a.task-btn-orange{ background:#fc8675; color:#fff !important;}
a:hover.task-btn-orange{ background:#e27869;}
a.task-btn-blue{background: #3498db; color:#fff!important;}
a:hover.task-btn-blue{background: #5faee3;color:#fff;}
a.new-btn{display: inline-block;border:none; padding:0 10px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 30px;border-radius: 3px; line-height: 30px;}
a.new-btn:hover{background: #c3c3c3; color: #333;}
a.new-btn-green{background: #29bd8b; color: #fff;}
a.new-btn-green:hover{background:#19b17e; }
a.new-btn-blue{background: #6a8abe; color: #fff!important;}
a.new-btn-blue:hover{background:#5f7cab; }
a.new-bigbtn{display: inline-block;border:none; padding:2px 30px;color: #666;background: #e1e1e1; text-align:center;font-size: 14px; height: 30px;line-height: 30px; border-radius: 3px;}
a:hover.new-bigbtn{background: #c3c3c3; color: #333;}
a.new-bigbtn-green{background: #3b94d6; color: #fff;}
a.new-bigbtn-green:hover{background: #2384cd; color: #fff;}
a.task-btn-ver{ height:45px; line-height: 45px; background: #6a8abe; color: #fff !important; border-radius:5px; font-size:12px; padding:0 10px;}
a.task-btn-ver-line{height:43px; line-height: 43px; border-radius:5px; font-size:12px; padding:0 10px; border:1px solid #ccc;}
a:hover.task-btn-ver-line{ border:1px solid #29bd8b;}
a:hover.task-btn-ver{background:#5f7cab;}
.new_login_submit_disable{ width:265px; height:40px; line-height: 40px; background:#ccc; color:#fff; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;}
.new_login_submit,a.new_login_submit{ display: block; text-decoration: none !important; width:100%; height:45px; line-height: 45px; background:#29bd8b; color:#fff !important; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;}
.new_login_submit a{ color:#fff !important; text-decoration: none;}
.new_login_submit:hover{background: #19b17e;}
/*提示条*/
.alert{ padding:10px;border: 1px solid transparent; text-align: center;}
.alert-blue{ background-color: #d9edf7;border-color: #bce8f1; color: #3a87ad;}
.alert-orange{ background-color: #fff9e9;border-color: #f6d0b1; color:#ee4a20;}
.alert-green{ background-color: #dff0d8;border-color: #d6e9c6; color:#3c763d;}
.task-close{padding: 0;cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; font-size: 21px; font-weight: bold;line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.3;}
.taskclose:hover{opacity: 0.5;}
/*tag*/
.task-tag{ padding:0 10px; text-align: center; display:inline-block; height:30px; line-height: 30px;}
.tag-blue{ background-color: #d9edf7; color: #3a87ad;}
.tag-grey{ background-color: #f3f5f7; color: #4d555d;}
.tag-border-grey{ background-color: #fff;border-color: #e2e2e2; color: #888;}
.cir-orange{background: #ff6530;color: #fff; border-radius: 15px; padding: 0 5px; display: inline-block; font-size: 12px; height: 16px;line-height: 16px; }
.cir-red{background: red;color: #fff; border-radius: 15px; padding: 0 5px; display: inline-block; font-size: 12px; height: 16px;line-height: 16px; }
.red-cir-btn{ background:#e74c3c; padding:1px 5px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal;font-size:12px;}
/****************************/
/* 页面结构*/
.task-pm-content{ width: 1000px; margin: 0 auto; }
.task-pm-box{ width: 100%; background: #fff; border: 1px solid #e8e8e8;}
.task-paner-con{ padding:15px; color:#666; line-height:2.0;}
.task-text-center{ text-align: center;}
.flow_hidden{ width:300px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
/*pre标签换行*/
.break_word{word-break: break-all;word-wrap: break-word;}
.break_word_firefox{white-space: pre-wrap !important;word-break: break-all;}
.pr {position:relative;}
/***** Ajax indicator ******/
#ajax-indicator {
position: absolute; /* fixed not supported by IE */
background-color:#eee;
border: 1px solid #bbb;
top:35%;
left:40%;
width:20%;
font-weight:bold;
text-align:center;
padding:0.6em;
z-index:100;
opacity: 0.5;
}
html>body #ajax-indicator { position: fixed; }
#ajax-indicator span {
background-position: 0% 40%;
background-repeat: no-repeat;
background-image: url(/images/loading.gif);
padding-left: 26px;
vertical-align: bottom;
}
.with10{ width: 10%;}
.with20{ width: 20%;}.with25{ width: 25%;}
.with30{ width: 30%;}
.with40{ width: 40%;}
.with50{ width: 50%;}
.with60{ width: 60%;}
.with70{ width: 70%;}.with75{ width: 75%;}
.with80{ width: 80%;}.with85{ width: 85%;}
.with90{ width: 90%;}
.with100{ width: 100%;}
.edu-bg{ background:#fff;}

View File

@ -27,4 +27,8 @@ a:hover.task-su-btn-white{ color: #ee4a1f; border:1px solid #ee4a1f; }
.task_popup_top h3{ font-size:14px; color:#333; line-height:40px; padding-left:10px; }
a.task_icons_close{width:20px; height:20px;display:block;background: url(../images/popup/sy_icons_close.png) 0 0px no-repeat; margin:8px 10px 0 0;}
a:hover.task_icons_close{background: url(../images/popup/sy_icons_close.png) -40px 0px no-repeat;}
.task_popup_con{ padding:20px;}
.task_popup_con{ padding:20px;}
/*智能课堂弹框 20170421byLB*/
.upload_select_box{ width: 260px; height:240px; overflow-y:auto; padding: 10px; background:#f7f9fd; color: #333; }
.task-popup-submit02{ margin:15px auto; width:110px;}

View File

@ -1,207 +1,208 @@
/* 头部 */
.header{ width:100%; height:51px;background:#46484c; }
.header_con{ width:1200px; height:50px; margin:0 auto; }
.new-logo img{ width: 31px; height: 31px; margin-top:10px;}
.new-logo p{ font-size: 18px; color:#fff; line-height: 50px; }
a.new-nav-a{ display: block; font-size: 14px; line-height: 50px; color:#fff;}
a:hover.new-nav-a{ color:#3b94d6; text-decoration: none;}
.header-search{border-radius:3px; background:#fff;}
.header-search a:hover,a:link, a:visited{ text-decoration: none; color:#666;}
input.header-search-input{ width:135px; height:30px; padding:0 5px; border-style: none; border: none;outline:none;}
.innner-nav li{float:left;}
.innner-nav li a{ display: block; color:#fff; padding:0 10px; }
.inner-btnbox02{ width:270px; margin: 30px auto 0;}
.new-container-inner02{width:1200px; margin:0px auto; padding:50px 0;}
.inner-nav-mes{ font-size:16px; color:#fff; margin-right:50px; margin-top:18px; }
.inner-nav-cir{ background:#ff6530; color:#fff; border-radius:15px;padding:0 5px; display: inline-block; font-size:10px; height:16px; line-height:16px;}
.inner-nav-user{ width: 55px; height: 40px; margin-top:5px; position: relative;}
.inner-nav-user-img{ width: 40px; height: 40px; border-radius:50px;}
select.header-search-select{ border:none; font-size:14px; padding:5px; background: none;}
.edu-unlogin-nav a{ color:#fff!important; font-size:14px; line-height:50px;}
.edu-unlogin-nav a:hover{ color:#3b94d6;}
.edu-unlogin-nav{ font-size:12px; color:#fff; line-height:50px;}
.task-user-dropdown{font-size:12px; line-height: 1.9; width:120px; background-color:#fff; border-radius:3px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); position:relative; top:10px; right:45px; display: none; z-index:999;}
.task-user-dropdown font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top: -15px;left:60px; border-style:solid; border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.task-user-dropdown-nav { padding-top:5px; }
.task-user-dropdown-nav li { display: inline-block; text-align: center; width:100%; height: 30px; line-height: 30px;}
.task-user-dropdown-nav li:hover{ background:#eee;}
.task-line{ display: block; height: 1px!important; line-height: 1px; border-bottom:1px solid #eee;}
.inner-nav-user:hover .task-user-dropdown{ display:block;}
dropdown{display: inline-block; height:30px; line-height:1.9; font-size:12px; }
dropdown label, dropdown ul li{ display: block; width:42px; padding:4px 10px; text-align: center;border-radius:3px; color:#666;}
dropdown label:hover, dropdown ul li:hover{background: #eee; color:#666;cursor: pointer;}
dropdown label{color: #666;border-radius: 3px 0 0 3px; position: relative; z-index: 2; width:50px; text-align: center;}
dropdown input{display: none;}
dropdown input:checked + label{ background: #fff;color:#666;}
dropdown ul{ position: absolute; visibility: visible; opacity: 1; top: 38px; background: #fff; z-index: 99; border-radius:3px;}
$colors: #fff, #0072B5, #2C3E50;
@for $i from 1 through length($colors) {
dropdown ul li:nth-child(#{$i}) {
border-left: 4px solid nth($colors, $i);
.fa{
color: nth($colors, $i);
}
&:hover {
background: nth($colors, $i);
color: white;
.fa{
color: white;
}
}
}
}
.animate{ -webkit-transition: all .3s; -moz-transition: all .3s; -ms-transition: all .3s; -ms-transition: all .3s;
transition: all .3s; backface-visibility:hidden; -webkit-backface-visibility:hidden; /* Chrome and Safari */ -moz-backface-visibility:hidden; /* Firefox */ -ms-backface-visibility:hidden; /* Internet Explorer */}
/* 底部 */
.footer{width:100%; height:100px; background-color:#fff; }
.footer_con{ width:1200px; height:100px; margin:0 auto; text-align: center; padding:20px 0; }
.footer_con-inner{ width: 300px; margin:0px auto;}
.footer_con-inner li{ }
.footer_con-inner li a{ font-size: 16px; color: #888;display: block;padding:0 15px; border-right: solid 1px #888;}
.footer_con-inner li a:hover{text-decoration: underline;}
.footer_con-p{ color: #888; margin-top:10px;}
.inner-footer{ width: 100%; background:#323232; padding-bottom:30px;}
.inner-footer_con{ width: 1200px; margin: 0 auto;}
.inner-footer-nav{ height: 50px; border-bottom:1px solid #47494d;}
.inner-footer-nav li a{ float: left; margin-right:15px; font-size: 14px; color: #888; line-height: 50px;}
.saoma-box{ position: relative;}
.img-saoma{ }
.saoma-img-box{ position: absolute; top:-300px; left: -95px; border-radius:3px; background:#fff; padding:15px;box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); display: none;}
.saoma-box li:hover ul{display:block; }
.img-show{ width:50px; height:50px; border-radius:50px; }
.saoma-img-box font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top:289px;left: 110px; border-style:solid; border-color:#fff transparent transparent transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.inner-footer-p-big{ display: block; height: 50px; line-height: 50px; color:#888; font-size: 16px; border-left:2px solid #888; padding-left:15px;}
.inner-btnbox02{ width:270px; margin: 30px auto 0;}
.new-container-inner02{width:1200px; margin:0px auto; padding:50px 0;}
img.edu-footer-logo{ height: 50px;}
/************布局 byLB****************/
.panel-content{ width: 1200px; margin:20px auto; background:#fff;}
/************讨论区20170321 byLB****************/
.panel-inner-fourm{ padding:20px; border-bottom:1px solid #eee;}
.panel-inner-fourm:hover{ background:#EFF2F7;}
.nobg:hover{ background:#fff;}
a.panel-list-title,.panel-list-title { display:inline-block; font-size: 16px; color: #333; font-weight:normal; max-width:82%;}
a:hover.panel-list-title{color:#29bd8b;}
.panel-list-img{ width: 60px; height: 60px; border-radius:100px;}
a.panel-name-small{ display: inline-block; max-width:100px; color:#29bd8b; font-size:12px; }
.panel-list-infobox{ width: 92%; margin-left:8%; margin-top:-70px;}
.panel-lightgrey,.panel-lightgrey span{ font-size:12px; color:#888;}
.panel-inner-info{ width: 92%; margin-left:8%; color:#666;}
.panel-bg-grey{ padding:5px 0;background:#f6f6f6; width: 100%; color:#666;}
.panel-list-nodata{ width: 420px; margin:100px auto; text-align: center;}
/* 回复评论 */
.panel-comment_item{ width: 100%; }
.panel-comment_item .t_area{ color:#888;}
.panel-comment_item .comment_item_cont{ padding:15px; border-bottom:1px solid #e3e3e3;}
.panel-comment_item .J_Comment_Face img{ width:50px; height:50px; border-radius:100px; }
.panel-comment_item .t_content{ width:92%; margin-left:15px;}
.panel-comment_item a.content-username { color:#333;font-size:14px; margin-right:15px; display:inline-block; max-width:100px; font-weight: bold;}
.panel-comment_item a:hover.content-username{color:#29bd8b;}
.panel-comment_item .orig_user img{width:40px; height:40px;border-radius:100px; }
.panel-comment_item .reply-right{ float:right; position:relative;}
.panel-comment_item .reply_iconup02{ position:absolute; top:22px; left:14px; color:#d4d4d4; font-size:16px; background:#f1f1f1; line-height:13px;}
.panel-comment_item .comment_orig_content{margin:10px 0; color:#999;}
.panel-comment_item .comment_orig_content .comment_orig_content{margin-top:0; color:#666;}
.panel-comment_item .orig_cont{ border:solid 1px #F3DDB3; background:#FFFEF4; padding:4px;color:#999;margin-top:-1px; }
.panel-comment_item .orig_cont_sub{ border-top:0}
.panel-comment_item .comment_orig_content .orig_index{ float:right; color:#666; font-family:Arial; padding-right:5px;line-height:30px;}
.panel-comment_item .comment_orig_content .orig_user{ margin:10px 15px 10px 5px;}
.panel-comment_item .comment_orig_content .orig_user span{ color:#999; padding-right:5px;}
.panel-comment_item .comment_orig_content .orig_content{padding:5px 0px 5px 0px;line-height:24px; color:#666; }
.panel-comment_item .orig_right{ width:80%; margin-top:5px;}
.panel-comment_item a.comment_ding_link{ height:24px;line-height:24px;display:inline-block;padding-left:2px;vertical-align:middle; color:#333; }
.panel-comment_item a:hover.comment_ding_link{ color:#269ac9;}
.panel-comment_item .comment_ding_link span{display: inline-block;padding: 0 0px 0 8px;}
.panel-comment_item .comment_ding_link em{font-style: normal;font-family:arial;}
.panel-comment_item .comment_reply_link{ display:inline-block; width:50px; height:24px;line-height: 24px; vertical-align:middle;text-align: center;}
.panel-comment_item .comment_reply_link:link,.comment_reply_link:visited{color:#333;text-decoration: none;}
.panel-comment_item .comment_content{ color:#666;}
.panel-comment_item .t_txt{ margin-top:10px;}
.panel-comment_item .orig_reply_box{border-top:1px solid #e3e3e3; width:100%;}
.panel-comment_item .orig_textarea02{ border:1px solid #ccc; background-color:#fff; width:92%; margin-bottom:10px;}
.panel-comment_item .orig_sub{ float:right; background-color:#269ac9; color:#fff; height:25px; line-height:25px; text-align:center; width:80px; border:none;}
.panel-comment_item .orig_sub:hover{ background:#297fb8;}
.panel-comment_item .orig_cont_hide{ text-align:center; width:100%; display:block; font-size:14px; color:#666; border-bottom:1px solid #F3DDB3; padding:8px 0;}
.panel-comment_item .orig_icon{ color:#888; margin-right:10px; font-size:14px; font-weight:bold;}
.orig_reply{ font-size: 12px; }
.panel-mes-head{ padding:10px; border-bottom:1px solid #eee;}
/* 表格 */
.panel-new-table { width:100%; text-align: center; }
.panel-new-table tr th{ color:#333; height: 50px;line-height:50px; }
.panel-new-table tr th,.panel-new-table tr td{ border-bottom:1px solid #eee; }
.panel-new-table tr td{color:#666; height: 40px; line-height:40px;}
.panel-table-pd15 tr td{ padding:15px 0;}
.panel-new-table tbody tr:hover{ background:#f9f9f9;}
a.panel-table-name{display:block; max-width:100px;text-align:center;}
a.panel-table-title{display:block; max-width:240px;text-align:center;}
.table-num{ width:5%; text-align: center;}
/* 滑动条 */
.panel-slider-bg{ width:240px; height: 15px; border-radius:15px; background:#f1f2f7; }
.panel-slider-inner01{ display:block; width:10%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner02{ display:block; width:20%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner03{ display:block; width:30%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner04{ display:block; width:40%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner05{ display:block; width:50%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner06{ display:block; width:60%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner07{ display:block; width:70%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner08{ display:block; width:80%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner09{ display:block; width:90%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner10{ display:block; width:100%; height: 15px; border-radius:15px; background:#29bd8b;}
/* 翻页 */
.panel-pages a{ display: inline-block; border:1px solid #d1d1d1; color:#888; float:left;text-align:center; padding:0 10px; margin-right:5px; height: 30px; line-height: 30px; }
.panel-pages a:hover,.panel-pages .active{ background-color:#29bd8b; border:1px solid #29bd8b;color:#fff; }
.panel-pages{ width: 350px; margin:20px auto;}
/* 搜索*/
.panel-search{ position: relative;}
input.panel-search-input{ height: 30px; width:300px; color: #666;}
.panel-search-btn{ position: absolute; top:2px; right:10px;}
/* 表单*/
.panel-form-label{ display:inline-block; width:10%; min-width:90px; text-align:right; line-height:40px; font-weight: normal; }
.panel-form input,.panel-form textarea,.panel-form select{ border:1px solid #e2e2e2;color:#666;line-height: 1.9; background:#fff;}
.panel-box-sizing{-moz-box-sizing: border-box; /*Firefox3.5+*/-webkit-box-sizing: border-box; /*Safari3.2+*/-o-box-sizing: border-box; /*Opera9.6*/-ms-box-sizing: border-box; /*IE8*/box-sizing: border-box; }
input.panel-form-width-690{ padding:5px;width:90%; height:40px; }
input.panel-form-width-100{ padding:5px;width:100%; height:40px;}
input.panel-form-width-45{ padding:5px;width:44.5%; height:40px; }
textarea.panel-form-width-100{ padding:5px;width:100%; height:150px; }
textarea.panel-form-width-690{ padding:5px;width:90%; height:150px; }
.panel-form-width-670{ width: 670px; padding:5px;}
.panel-form-height-150{ height: 150px;}
.panel-form-height-30{height: 30px;}
.task-bg-grey{ background:#f3f3f3; width:90%; min-width:700px; padding:10px; border:1px solid #f3f3f3; color:#888;}
.task-bg-grey02{ background:#f3f3f3; width:80%; min-width:700px; padding:7px 10px; border:1px solid #f3f3f3; color:#888;}
.panel-form-p{}
input.task-form-10,textarea.task-form-10,select.task-form-10,.task-form-10{padding:5px;width:10%;}
input.task-form-20,textarea.task-form-20,select.task-form-20,.task-form-20{padding:5px;width:20%;}
input.task-form-30,textarea.task-form-30,select.task-form-30,.task-form-30{padding:5px;width:30%;}
input.task-form-35,textarea.task-form-35,select.task-form-35,.task-form-35{padding:5px;width:35%;}
input.task-form-40,textarea.task-form-40,select.task-form-40,.task-form-40{padding:5px;width:40%;}
input.task-form-45,textarea.task-form-45,select.task-form-45,.task-form-45{padding:5px;width:45%;}
input.task-form-50,textarea.task-form-50,select.task-form-50,.task-form-50{padding:5px;width:50%;}
input.task-form-60,textarea.task-form-60,select.task-form-60,.task-form-60{padding:5px;width:60%;}
input.task-form-70,textarea.task-form-70,select.task-form-70,.task-form-70{padding:5px;width:70%;}
input.task-form-80,textarea.task-form-80,select.task-form-80,.task-form-80{padding:5px;width:80%;}
input.task-form-90,textarea.task-form-90,select.task-form-90,.task-form-90{padding:5px;width:90%;}
input.task-form-100,textarea.task-form-100,select.task-form-100,.task-form-100{padding:5px;width:100%;}
input.task-height-40,textarea.task-height-40,.task-height-40,select.task-height-40{height:40px;}
input.task-height-150,textarea.task-height-150,.task-height-150{height:150px;}
input.task-height-150,textarea.task-height-150,.task-height-100{height:100px;}
/*头像下拉弹框*/
.my_account_info{ width:160px; background-color:#fff; border-radius: 3px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); position:absolute; font-size: 14px; top:46px; left:-97px;display: none; z-index:999;}
.my_account_info li a{ color: #888;}
.my_account_info font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top: -15px;left: 140px; border-style:solid; border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.my_account_info li{ padding-left: 5px; line-height: 1.5;}
.li_bottom_border{ border-bottom:1px solid #eee;}
a.task-index-name{ max-width:80px;}
.task-index-name{ display: inline-block; max-width:80px;}
/*滑块验证*/
.drag_slider{ position: relative; background-color: #e8e8e8; width: 350px; height: 45px; line-height: 45px; text-align: center;}
.drag_slider .handler{ position: absolute; top: 0px; left: 0px; width: 50px; height: 43px; border: 1px solid #ccc; cursor: move;}
.handler_bg{ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTEyNTVEMURGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTEyNTVEMUNGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MTc5NzNmZS02OTQxLTQyOTYtYTIwNi02NDI2YTNkOWU5YmUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+YiRG4AAAALFJREFUeNpi/P//PwMlgImBQkA9A+bOnfsIiBOxKcInh+yCaCDuByoswaIOpxwjciACFegBqZ1AvBSIS5OTk/8TkmNEjwWgQiUgtQuIjwAxUF3yX3xyGIEIFLwHpKyAWB+I1xGSwxULIGf9A7mQkBwTlhBXAFLHgPgqEAcTkmNCU6AL9d8WII4HOvk3ITkWJAXWUMlOoGQHmsE45ViQ2KuBuASoYC4Wf+OUYxz6mQkgwAAN9mIrUReCXgAAAABJRU5ErkJggg==") no-repeat center;}
.handler_ok_bg{ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDlBRDI3NjVGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDlBRDI3NjRGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDphNWEzMWNhMC1hYmViLTQxNWEtYTEwZS04Y2U5NzRlN2Q4YTEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+k+sHwwAAASZJREFUeNpi/P//PwMyKD8uZw+kUoDYEYgloMIvgHg/EM/ptHx0EFk9I8wAoEZ+IDUPiIMY8IN1QJwENOgj3ACo5gNAbMBAHLgAxA4gQ5igAnNJ0MwAVTsX7IKyY7L2UNuJAf+AmAmJ78AEDTBiwGYg5gbifCSxFCZoaBMCy4A4GOjnH0D6DpK4IxNSVIHAfSDOAeLraJrjgJp/AwPbHMhejiQnwYRmUzNQ4VQgDQqXK0ia/0I17wJiPmQNTNBEAgMlQIWiQA2vgWw7QppBekGxsAjIiEUSBNnsBDWEAY9mEFgMMgBk00E0iZtA7AHEctDQ58MRuA6wlLgGFMoMpIG1QFeGwAIxGZo8GUhIysmwQGSAZgwHaEZhICIzOaBkJkqyM0CAAQDGx279Jf50AAAAAABJRU5ErkJggg==") no-repeat center;}
.drag_slider .drag_bg{ background-color: #29bd8b; height: 45px; width: 0px;}
.drag_slider .drag_text{ position: absolute; top: 0px; width: 350px; -moz-user-select: none; -webkit-user-select: none; user-select: none; -o-user-select:none; -ms-user-select:none;}
/* 头部 */
.header{ width:100%; height:51px;background:#46484c; }
.header_con{ width:1200px; height:50px; margin:0 auto; }
.new-logo img{ width: 31px; height: 31px; margin-top:10px;}
.new-logo p{ font-size: 18px; color:#fff; line-height: 50px; }
a.new-nav-a{ display: block; font-size: 14px; line-height: 50px; color:#fff;}
a:hover.new-nav-a{ color:#3b94d6; text-decoration: none;}
.header-search{border-radius:3px; background:#fff;}
.header-search a:hover,a:link, a:visited{ text-decoration: none; color:#666;}
input.header-search-input{ width:135px; height:30px; padding:0 5px; border-style: none; border: none;outline:none;}
.innner-nav li{float:left;}
.innner-nav li a{ display: block; color:#fff; padding:0 10px; }
.inner-btnbox02{ width:270px; margin: 30px auto 0;}
.new-container-inner02{width:1200px; margin:0px auto; padding:50px 0;}
.inner-nav-mes{ font-size:16px; color:#fff; margin-right:50px; margin-top:18px; }
.inner-nav-cir{ background:#ff6530; color:#fff; border-radius:15px;padding:0 5px; display: inline-block; font-size:10px; height:16px; line-height:16px;}
.inner-nav-user{ width: 55px; height: 40px; margin-top:5px; position: relative;}
.inner-nav-user-img{ width: 40px; height: 40px; border-radius:50px;}
select.header-search-select{ border:none; font-size:14px; padding:5px; background: none;}
.edu-unlogin-nav a{ color:#fff!important; font-size:14px; line-height:50px;}
.edu-unlogin-nav a:hover{ color:#3b94d6;}
.edu-unlogin-nav{ font-size:12px; color:#fff; line-height:50px;}
.task-user-dropdown{font-size:12px; line-height: 1.9; width:120px; background-color:#fff; border-radius:3px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); position:relative; top:10px; right:45px; display: none; z-index:999;}
.task-user-dropdown font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top: -15px;left:60px; border-style:solid; border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.task-user-dropdown-nav { padding-top:5px; }
.task-user-dropdown-nav li { display: inline-block; text-align: center; width:100%; height: 30px; line-height: 30px;}
.task-user-dropdown-nav li:hover{ background:#eee;}
.task-line{ display: block; height: 1px!important; line-height: 1px; border-bottom:1px solid #eee;}
.inner-nav-user:hover .task-user-dropdown{ display:block;}
dropdown{display: inline-block; height:30px; line-height:1.9; font-size:12px; }
dropdown label, dropdown ul li{ display: block; width:42px; padding:4px 10px; text-align: center;border-radius:3px; color:#666;}
dropdown label:hover, dropdown ul li:hover{background: #eee; color:#666;cursor: pointer;}
dropdown label{color: #666;border-radius: 3px 0 0 3px; position: relative; z-index: 2; width:50px; text-align: center;}
dropdown input{display: none;}
dropdown input:checked + label{ background: #fff;color:#666;}
dropdown ul{ position: absolute; visibility: visible; opacity: 1; top: 38px; background: #fff; z-index: 99; border-radius:3px;}
$colors: #fff, #0072B5, #2C3E50;
@for $i from 1 through length($colors) {
dropdown ul li:nth-child(#{$i}) {
border-left: 4px solid nth($colors, $i);
.fa{
color: nth($colors, $i);
}
&:hover {
background: nth($colors, $i);
color: white;
.fa{
color: white;
}
}
}
}
.animate{ -webkit-transition: all .3s; -moz-transition: all .3s; -ms-transition: all .3s; -ms-transition: all .3s;
transition: all .3s; backface-visibility:hidden; -webkit-backface-visibility:hidden; /* Chrome and Safari */ -moz-backface-visibility:hidden; /* Firefox */ -ms-backface-visibility:hidden; /* Internet Explorer */}
/* 底部 */
.footer{width:100%; height:100px; background-color:#fff; }
.footer_con{ width:1200px; height:100px; margin:0 auto; text-align: center; padding:20px 0; }
.footer_con-inner{ width: 300px; margin:0px auto;}
.footer_con-inner li{ }
.footer_con-inner li a{ font-size: 16px; color: #888;display: block;padding:0 15px; border-right: solid 1px #888;}
.footer_con-inner li a:hover{text-decoration: underline;}
.footer_con-p{ color: #888; margin-top:10px;}
.inner-footer{ width: 100%; background:#323232; padding-bottom:30px;}
.inner-footer_con{ width: 1200px; margin: 0 auto;}
.inner-footer-nav{ height: 50px; border-bottom:1px solid #47494d;}
.inner-footer-nav li a{ float: left; margin-right:15px; font-size: 14px; color: #888; line-height: 50px;}
.saoma-box{ position: relative;}
.img-saoma{ }
.saoma-img-box{ position: absolute; top:-300px; left: -95px; border-radius:3px; background:#fff; padding:15px;box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); display: none;}
.saoma-box li:hover ul{display:block; }
.img-show{ width:50px; height:50px; border-radius:50px; }
.saoma-img-box font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top:289px;left: 110px; border-style:solid; border-color:#fff transparent transparent transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.inner-footer-p-big{ display: block; height: 50px; line-height: 50px; color:#888; font-size: 16px; border-left:2px solid #888; padding-left:15px;}
.inner-btnbox02{ width:270px; margin: 30px auto 0;}
.new-container-inner02{width:1200px; margin:0px auto; padding:50px 0;}
img.edu-footer-logo{ height: 50px;}
/************布局 byLB****************/
.panel-content{ width: 1200px; margin:20px auto; background:#fff;}
/************讨论区20170321 byLB****************/
.panel-inner-fourm{ padding:20px; border-bottom:1px solid #eee;}
.panel-inner-fourm:hover{ background:#EFF2F7;}
.nobg:hover{ background:#fff;}
a.panel-list-title,.panel-list-title { display:inline-block; font-size: 16px; color: #333; font-weight:normal; max-width:82%;}
a:hover.panel-list-title{color:#29bd8b;}
.panel-list-img{ width: 60px; height: 60px; border-radius:100px;}
a.panel-name-small{ display: inline-block; max-width:100px; color:#29bd8b; font-size:12px; }
.panel-list-infobox{ width: 92%; margin-left:8%; margin-top:-70px;}
.panel-lightgrey,.panel-lightgrey span{ font-size:12px; color:#888;}
.panel-inner-info{ width: 92%; margin-left:8%; color:#666;}
.panel-bg-grey{ padding:5px 0;background:#f6f6f6; width: 100%; color:#666;}
.panel-list-nodata{ width: 420px; margin:100px auto; text-align: center;}
/* 回复评论 */
.panel-comment_item{ width: 100%; }
.panel-comment_item .t_area{ color:#888;}
.panel-comment_item .comment_item_cont{ padding:15px; border-bottom:1px solid #e3e3e3;}
.panel-comment_item .J_Comment_Face img{ width:50px; height:50px; border-radius:100px; }
.panel-comment_item .t_content{ width:92%; margin-left:15px;}
.panel-comment_item a.content-username { color:#333;font-size:14px; margin-right:15px; display:inline-block; max-width:100px; font-weight: bold;}
.panel-comment_item a:hover.content-username{color:#29bd8b;}
.panel-comment_item .orig_user img{width:40px; height:40px;border-radius:100px; }
.panel-comment_item .reply-right{ float:right; position:relative;}
.panel-comment_item .reply_iconup02{ position:absolute; top:22px; left:14px; color:#d4d4d4; font-size:16px; background:#f1f1f1; line-height:13px;}
.panel-comment_item .comment_orig_content{margin:10px 0; color:#999;}
.panel-comment_item .comment_orig_content .comment_orig_content{margin-top:0; color:#666;}
.panel-comment_item .orig_cont{ border:solid 1px #F3DDB3; background:#FFFEF4; padding:4px;color:#999;margin-top:-1px; }
.panel-comment_item .orig_cont_sub{ border-top:0}
.panel-comment_item .comment_orig_content .orig_index{ float:right; color:#666; font-family:Arial; padding-right:5px;line-height:30px;}
.panel-comment_item .comment_orig_content .orig_user{ margin:10px 15px 10px 5px;}
.panel-comment_item .comment_orig_content .orig_user span{ color:#999; padding-right:5px;}
.panel-comment_item .comment_orig_content .orig_content{padding:5px 0px 5px 0px;line-height:24px; color:#666; }
.panel-comment_item .orig_right{ width:80%; margin-top:5px;}
.panel-comment_item a.comment_ding_link{ height:24px;line-height:24px;display:inline-block;padding-left:2px;vertical-align:middle; color:#333; }
.panel-comment_item a:hover.comment_ding_link{ color:#269ac9;}
.panel-comment_item .comment_ding_link span{display: inline-block;padding: 0 0px 0 8px;}
.panel-comment_item .comment_ding_link em{font-style: normal;font-family:arial;}
.panel-comment_item .comment_reply_link{ display:inline-block; width:50px; height:24px;line-height: 24px; vertical-align:middle;text-align: center;}
.panel-comment_item .comment_reply_link:link,.comment_reply_link:visited{color:#333;text-decoration: none;}
.panel-comment_item .comment_content{ color:#666;}
.panel-comment_item .t_txt{ margin-top:10px;}
.panel-comment_item .orig_reply_box{border-top:1px solid #e3e3e3; width:100%;}
.panel-comment_item .orig_textarea02{ border:1px solid #ccc; background-color:#fff; width:92%; margin-bottom:10px;}
.panel-comment_item .orig_sub{ float:right; background-color:#269ac9; color:#fff; height:25px; line-height:25px; text-align:center; width:80px; border:none;}
.panel-comment_item .orig_sub:hover{ background:#297fb8;}
.panel-comment_item .orig_cont_hide{ text-align:center; width:100%; display:block; font-size:14px; color:#666; border-bottom:1px solid #F3DDB3; padding:8px 0;}
.panel-comment_item .orig_icon{ color:#888; margin-right:10px; font-size:14px; font-weight:bold;}
.orig_reply{ font-size: 12px; }
.panel-mes-head{ padding:10px; border-bottom:1px solid #eee;}
/* 表格 */
.panel-new-table { width:100%; text-align: center; }
.panel-new-table tr th{ color:#333; height: 50px;line-height:50px; }
.panel-new-table tr th,.panel-new-table tr td{ border-bottom:1px solid #eee; }
.panel-new-table tr td{color:#666; height: 40px; line-height:40px;}
.panel-table-pd15 tr td{ padding:15px 0;}
.panel-new-table tbody tr:hover{ background:#f9f9f9;}
a.panel-table-name{display:block; max-width:100px;text-align:center;}
a.panel-table-title{display:block; max-width:240px;text-align:center;}
.table-num{ width:5%; text-align: center;}
/* 滑动条 */
.panel-slider-bg{ width:240px; height: 15px; border-radius:15px; background:#f1f2f7; }
.panel-slider-inner01{ display:block; width:10%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner02{ display:block; width:20%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner03{ display:block; width:30%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner04{ display:block; width:40%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner05{ display:block; width:50%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner06{ display:block; width:60%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner07{ display:block; width:70%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner08{ display:block; width:80%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner09{ display:block; width:90%; height: 15px; border-radius:15px; background:#29bd8b;}
.panel-slider-inner10{ display:block; width:100%; height: 15px; border-radius:15px; background:#29bd8b;}
/* 翻页 */
.panel-pages a{ display: inline-block; border:1px solid #d1d1d1; color:#888; float:left;text-align:center; padding:0 10px; margin-right:5px; height: 30px; line-height: 30px; }
.panel-pages a:hover,.panel-pages .active{ background-color:#29bd8b; border:1px solid #29bd8b;color:#fff; }
.panel-pages{ width: 350px; margin:20px auto;}
/* 搜索*/
.panel-search{ position: relative;}
input.panel-search-input{ height: 30px; width:300px; color: #666;}
.panel-search-btn{ position: absolute; top:2px; right:10px;}
/* 表单*/
.label-w20{ width:20%!important;}
.panel-form-label{ display:inline-block; width:10%; min-width:90px; text-align:right; line-height:40px; font-weight: normal; }
.panel-form input,.panel-form textarea,.panel-form select{ border:1px solid #e2e2e2;color:#666;line-height: 1.9; background:#fff;}
.panel-box-sizing{-moz-box-sizing: border-box; /*Firefox3.5+*/-webkit-box-sizing: border-box; /*Safari3.2+*/-o-box-sizing: border-box; /*Opera9.6*/-ms-box-sizing: border-box; /*IE8*/box-sizing: border-box; }
input.panel-form-width-690{ padding:5px;width:90%; height:40px; }
input.panel-form-width-100{ padding:5px;width:100%; height:40px;}
input.panel-form-width-45{ padding:5px;width:44.5%; height:40px; }
textarea.panel-form-width-100{ padding:5px;width:100%; height:150px; }
textarea.panel-form-width-690{ padding:5px;width:90%; height:150px; }
.panel-form-width-670{ width: 670px; padding:5px;}
.panel-form-height-150{ height: 150px;}
.panel-form-height-30{height: 30px;}
.task-bg-grey{ background:#f3f3f3; width:90%; min-width:700px; padding:10px; border:1px solid #f3f3f3; color:#888;}
.task-bg-grey02{ background:#f3f3f3; width:80%; min-width:700px; padding:7px 10px; border:1px solid #f3f3f3; color:#888;}
.panel-form-p{}
input.task-form-10,textarea.task-form-10,select.task-form-10,.task-form-10{padding:5px;width:10%;}
input.task-form-20,textarea.task-form-20,select.task-form-20,.task-form-20{padding:5px;width:20%;}
input.task-form-30,textarea.task-form-30,select.task-form-30,.task-form-30{padding:5px;width:30%;}
input.task-form-35,textarea.task-form-35,select.task-form-35,.task-form-35{padding:5px;width:35%;}
input.task-form-40,textarea.task-form-40,select.task-form-40,.task-form-40{padding:5px;width:40%;}
input.task-form-45,textarea.task-form-45,select.task-form-45,.task-form-45{padding:5px;width:45%;}
input.task-form-50,textarea.task-form-50,select.task-form-50,.task-form-50{padding:5px;width:50%;}
input.task-form-60,textarea.task-form-60,select.task-form-60,.task-form-60{padding:5px;width:60%;}
input.task-form-70,textarea.task-form-70,select.task-form-70,.task-form-70{padding:5px;width:70%;}
input.task-form-80,textarea.task-form-80,select.task-form-80,.task-form-80{padding:5px;width:80%;}
input.task-form-90,textarea.task-form-90,select.task-form-90,.task-form-90{padding:5px;width:90%;}
input.task-form-100,textarea.task-form-100,select.task-form-100,.task-form-100{padding:5px;width:100%;}
input.task-height-40,textarea.task-height-40,.task-height-40,select.task-height-40{height:40px;}
input.task-height-150,textarea.task-height-150,.task-height-150{height:150px;}
input.task-height-150,textarea.task-height-150,.task-height-100{height:100px;}
/*头像下拉弹框*/
.my_account_info{ width:160px; background-color:#fff; border-radius: 3px; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); position:absolute; font-size: 14px; top:46px; left:-97px;display: none; z-index:999;}
.my_account_info li a{ color: #888;}
.my_account_info font{ border: 1px solid #dddddd; display: block; border-width: 8px; position: absolute; top: -15px;left: 140px; border-style:solid; border-color: transparent transparent #fff transparent;font-size: 0;line-height: 0; box-shadow:2px rgba(146, 153, 169, 0.5); }
.my_account_info li{ padding-left: 5px; line-height: 1.5;}
.li_bottom_border{ border-bottom:1px solid #eee;}
a.task-index-name{ max-width:80px;}
.task-index-name{ display: inline-block; max-width:80px;}
/*滑块验证*/
.drag_slider{ position: relative; background-color: #e8e8e8; width: 350px; height: 45px; line-height: 45px; text-align: center;}
.drag_slider .handler{ position: absolute; top: 0px; left: 0px; width: 50px; height: 43px; border: 1px solid #ccc; cursor: move;}
.handler_bg{ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTEyNTVEMURGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTEyNTVEMUNGMkVFMTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2MTc5NzNmZS02OTQxLTQyOTYtYTIwNi02NDI2YTNkOWU5YmUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+YiRG4AAAALFJREFUeNpi/P//PwMlgImBQkA9A+bOnfsIiBOxKcInh+yCaCDuByoswaIOpxwjciACFegBqZ1AvBSIS5OTk/8TkmNEjwWgQiUgtQuIjwAxUF3yX3xyGIEIFLwHpKyAWB+I1xGSwxULIGf9A7mQkBwTlhBXAFLHgPgqEAcTkmNCU6AL9d8WII4HOvk3ITkWJAXWUMlOoGQHmsE45ViQ2KuBuASoYC4Wf+OUYxz6mQkgwAAN9mIrUReCXgAAAABJRU5ErkJggg==") no-repeat center;}
.handler_ok_bg{ background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0ZDhlNWY5My05NmI0LTRlNWQtOGFjYi03ZTY4OGYyMTU2ZTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDlBRDI3NjVGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDlBRDI3NjRGMkQ2MTFFNEI5NDBCMjQ2M0ExMDQ1OUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDphNWEzMWNhMC1hYmViLTQxNWEtYTEwZS04Y2U5NzRlN2Q4YTEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NGQ4ZTVmOTMtOTZiNC00ZTVkLThhY2ItN2U2ODhmMjE1NmU2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+k+sHwwAAASZJREFUeNpi/P//PwMyKD8uZw+kUoDYEYgloMIvgHg/EM/ptHx0EFk9I8wAoEZ+IDUPiIMY8IN1QJwENOgj3ACo5gNAbMBAHLgAxA4gQ5igAnNJ0MwAVTsX7IKyY7L2UNuJAf+AmAmJ78AEDTBiwGYg5gbifCSxFCZoaBMCy4A4GOjnH0D6DpK4IxNSVIHAfSDOAeLraJrjgJp/AwPbHMhejiQnwYRmUzNQ4VQgDQqXK0ia/0I17wJiPmQNTNBEAgMlQIWiQA2vgWw7QppBekGxsAjIiEUSBNnsBDWEAY9mEFgMMgBk00E0iZtA7AHEctDQ58MRuA6wlLgGFMoMpIG1QFeGwAIxGZo8GUhIysmwQGSAZgwHaEZhICIzOaBkJkqyM0CAAQDGx279Jf50AAAAAABJRU5ErkJggg==") no-repeat center;}
.drag_slider .drag_bg{ background-color: #29bd8b; height: 45px; width: 0px;}
.drag_slider .drag_text{ position: absolute; top: 0px; width: 350px; -moz-user-select: none; -webkit-user-select: none; user-select: none; -o-user-select:none; -ms-user-select:none;}