超级管理员页面修改
This commit is contained in:
parent
dce824cb1a
commit
0621ceb861
|
|
@ -8,109 +8,316 @@ class ManagementsController < ApplicationController
|
|||
include ApplicationHelper
|
||||
# 单位部门列表
|
||||
def departments
|
||||
@department =Department.all
|
||||
@menu_type = 6
|
||||
@sub_type = 2
|
||||
@department =Department.where("0=0")
|
||||
search=params[:search]
|
||||
if search.blank?
|
||||
@department = @department
|
||||
else
|
||||
@department = @department.where("name like '%#{search}%'")
|
||||
end
|
||||
@department_count =@department.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@department_pages = Paginator.new @department_count, limit, params['page'] || 1
|
||||
@offset ||=@department_pages.offset
|
||||
@department = paginateHelper @department, limit
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
|
||||
end
|
||||
# 单位列表
|
||||
def departments_part
|
||||
@schools = School.all
|
||||
@schools_count = @schools.count
|
||||
@menu_type = 6
|
||||
@sub_type = 1
|
||||
@schools = School.where("0=0")
|
||||
search=params[:search]
|
||||
if search.blank?
|
||||
@schools = @schools
|
||||
else
|
||||
@schools = @schools.where("name like '%#{search}%'")
|
||||
end
|
||||
@schools_count = @schools.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@schools_pages = Paginator.new @schools_count, limit, params['page'] || 1
|
||||
@offset ||= @schools_pages.offset
|
||||
@schools = paginateHelper @schools, limit
|
||||
@schools= paginateHelper @schools, limit
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# 部门审核
|
||||
def depart
|
||||
@apply_status = ApplyAddSchools.all
|
||||
@menu_type = 10
|
||||
@sub_type = 3
|
||||
search = params[:search]
|
||||
@apply_status = ApplyAddDepartment.where("0=0")
|
||||
if search.blank?
|
||||
@apply_status = @apply_status.where("0=0")
|
||||
else
|
||||
@apply_status= @apply_status.where("name like '%#{search}%'")
|
||||
end
|
||||
@apply_status_count = @apply_status.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@apply_status_pages = Paginator.new @apply_status_count, limit, params['page'] || 1
|
||||
@offset ||=@apply_status_pages.offset
|
||||
@apply_status = paginateHelper @apply_status, limit
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# 单位审批
|
||||
def unit
|
||||
@apply_status= ApplyAddSchools.all
|
||||
@menu_type = 10
|
||||
@sub_type = 4
|
||||
search = params[:search]
|
||||
@apply_status = ApplyAddSchools.where("0=0")
|
||||
if search.blank?
|
||||
@apply_status = @apply_status.where("0=0")
|
||||
else
|
||||
@apply_status= @apply_status.where("name like '%#{search}%'")
|
||||
end
|
||||
@apply_status_count = @apply_status.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@apply_status_pages = Paginator.new @apply_status_count, limit, params['page'] || 1
|
||||
@offset ||=@apply_status_pages.offset
|
||||
@offset ||= @apply_status_pages.offset
|
||||
@apply_status = paginateHelper @apply_status, limit
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# 课堂列表
|
||||
def classroom
|
||||
@syllabus = Syllabus.all
|
||||
@menu_type = 2
|
||||
@sub_type = 1
|
||||
@syllabus = Syllabus.where("0=0")
|
||||
unless params[:school_id] || params[:search] || params[:keyword] || params[:status]
|
||||
user_exs=UserExtensions.where(:user_id=> @syllabus.map(&:user_id))
|
||||
@schools = School.where(:id =>user_exs.map(&:school_id))
|
||||
end
|
||||
major_level_option=params[:major_level_option]
|
||||
discipline_category_option=params[:discipline_category_option]
|
||||
first_level_discipline_option=params[:first_level_discipline_option]
|
||||
syllabus_major_option=params[:syllabus_major_option]
|
||||
keyword=params[:keyword]
|
||||
search=params[:search]
|
||||
if major_level_option!='0'
|
||||
@syllabus=@syllabus.where(:major_level=>major_level_option)
|
||||
else
|
||||
@syllabus=@syllabus
|
||||
end
|
||||
if discipline_category_option !=nil
|
||||
@syllabus=@syllabus.where(:discipline_category_id=>discipline_category_option)
|
||||
end
|
||||
if first_level_discipline_option!=nil
|
||||
@syllabus=@syllabus.where(:first_level_discipline_id=>first_level_discipline_option)
|
||||
end
|
||||
if syllabus_major_option!=nil
|
||||
@syllabus=@syllabus.where(:major_id=>syllabus_major_option)
|
||||
end
|
||||
if params[:school_id] && params[:school_id] != '0'
|
||||
@syllabus = Syllabus.includes(:user => {:user_extensions => []}).where("user_extensions.school_id = #{params[:school_id]}")
|
||||
else
|
||||
@syllabus = @syllabus.where("0=0")
|
||||
end
|
||||
if "u_name" == keyword
|
||||
if search.blank?
|
||||
@syllabus = @syllabus
|
||||
else
|
||||
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
|
||||
@syllabus = @syllabus.includes(:user).where("concat(users.lastname, users.firstname) like '%#{search}%'")
|
||||
end
|
||||
else
|
||||
@syllabus= @syllabus.where("user_id like '%#{search}%'")
|
||||
end
|
||||
@syllabus_count = @syllabus.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@syllabus_pages = Paginator.new @syllabus_count, limit, params['page'] || 1
|
||||
@offset ||= @syllabus_pages.offset
|
||||
@syllabus = paginateHelper @syllabus, limit
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
||||
# 班级列表
|
||||
def classroom_classment
|
||||
@menu_type = 2
|
||||
@sub_type = 2
|
||||
@courses = Course.where("0=0")
|
||||
@courses = @courses.select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS updatetime").order("updatetime desc")
|
||||
@course_count = @courses.count
|
||||
# @courses = @courses.select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS updatetime").order("updatetime desc")
|
||||
@timing=Course.where(:is_end=>false).count
|
||||
@end=Course.where(:is_end=>true).count
|
||||
unless params[:school_id] || params[:search] || params[:keyword] || params[:status]
|
||||
user_exs=UserExtensions.where(:school_id=> @courses.map(&:school_id))
|
||||
@schools = School.where(:id =>user_exs.map(&:school_id))
|
||||
end
|
||||
search = params[:search] # 搜索字
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/课程名搜索
|
||||
status = params[:status].to_i
|
||||
if params[:school_id] && params[:school_id] != '0'
|
||||
@courses =Course.joins("join users u on courses.tea_id = u.id").joins("join user_extensions ue on u.id = ue.user_id").where("ue.school_id = #{params[:school_id]}")
|
||||
else
|
||||
@courses = Course.where("0=0")
|
||||
end
|
||||
if params[:status] && params[:status]!=''
|
||||
@courses =@courses.where(:is_end =>status)
|
||||
end
|
||||
if "u_name" == keyword
|
||||
if search.blank?
|
||||
@courses = @courses
|
||||
else
|
||||
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
|
||||
@courses = @courses.joins("join users u on courses.tea_id = u.id").where("concat(u.lastname, u.firstname) like '%#{search}%'")
|
||||
end
|
||||
else
|
||||
@courses= @courses.where("name like '%#{search}%'")
|
||||
end
|
||||
@courses = @courses.select("courses.*,(SELECT MAX(updated_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS updatetime").reorder("updatetime desc")
|
||||
@courses_count = @courses.count
|
||||
limit = 20
|
||||
@is_remote = true
|
||||
@course_pages = Paginator.new @course_count, limit, params['page'] || 1
|
||||
@offset ||= @course_pages.offset
|
||||
@courses_pages = Paginator.new @courses_count, limit, params['page'] || 1
|
||||
@offset ||= @courses_pages.offset
|
||||
@courses = paginateHelper @courses, limit
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# 课程实训
|
||||
def class_shixuns
|
||||
@c_shixuns = Subject.all
|
||||
@menu_type = 4
|
||||
@sub_type = 1
|
||||
@edit_class_sx_num=Subject.where(:status => 0).count
|
||||
@audit_class_sx_num=Subject.where(:status => 1).count
|
||||
@publish_class_sx_num=Subject.where(:status => 2).count
|
||||
search = params[:search] # 搜索字
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/课程名搜索
|
||||
status = params[:status].to_i
|
||||
if params[:school_id] && params[:school_id] != '0'
|
||||
@c_shixuns = Subject.includes(:user => {:user_extensions => []}).where("user_extensions.school_id = #{params[:school_id]}")
|
||||
else
|
||||
@c_shixuns = Subject.where("0=0")
|
||||
end
|
||||
if params[:status] && params[:status]!=''
|
||||
@c_shixuns= @c_shixuns.where(:status =>status)
|
||||
end
|
||||
if search.blank?
|
||||
@c_shixuns = @c_shixuns
|
||||
else
|
||||
if "u_name" == keyword
|
||||
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
|
||||
@c_shixuns = @c_shixuns.includes(:user).where("concat(users.lastname, users.firstname) like '%#{search}%'")
|
||||
else
|
||||
@c_shixuns= @c_shixuns.where("name like '%#{search}%'")
|
||||
end
|
||||
end
|
||||
unless params[:school_id] || params[:search] || params[:keyword] || params[:status]
|
||||
user_exs = UserExtensions.where(:user_id => @c_shixuns.map(&:user_id))
|
||||
@schools = School.where(:id => user_exs.map(&:school_id))
|
||||
end
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
# 已发布课程实训
|
||||
def class_publish_shixuns
|
||||
@c_shixuns = Subject.where(:status => 1)
|
||||
@menu_type = 4
|
||||
@sub_type = 2
|
||||
search = params[:search] # 搜索字
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/课程名搜索
|
||||
if params[:school_id] && params[:school_id] != '0'
|
||||
@c_shixuns = Subject.includes(:user => {:user_extensions => []}).where("subjects.status = 2 and user_extensions.school_id = #{params[:school_id]}")
|
||||
else
|
||||
@c_shixuns = Subject.where(:status => 2)
|
||||
end
|
||||
if search.blank?
|
||||
@c_shixuns = @c_shixuns
|
||||
else
|
||||
if "u_name" == keyword
|
||||
# 如果用户搜索为空,不用遍历user表,直接查找所有实训, 有搜索时才查找user
|
||||
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
|
||||
@c_shixuns = @c_shixuns.includes(:user).where("concat(users.lastname, users.firstname) like '%#{search}%'")
|
||||
else
|
||||
@c_shixuns= @c_shixuns.where("name like '%#{search}%'")
|
||||
end
|
||||
end
|
||||
unless params[:school_id] || params[:search] || params[:keyword]
|
||||
user_exs = UserExtensions.where(:user_id => @c_shixuns.map(&:user_id))
|
||||
@schools = School.where(:id => user_exs.map(&:school_id))
|
||||
end
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
def delete_subject
|
||||
@subject = Subject.find params[:subject_id]
|
||||
if @subject
|
||||
@subject.destroy
|
||||
respond_to do |format|
|
||||
format.js
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# 0 全部;1 活动的; 2 已注册; 3 锁定
|
||||
def users
|
||||
status = params[:user_status].nil? ? 0 : params[:user_status].to_i
|
||||
@us_order = params[:us_order].blank? ? "desc" : params[:us_order] # 排序
|
||||
@order_key = params[:order_key].blank? ? "created_on" : params[:order_key] # 排序关键字
|
||||
@menu_type =7
|
||||
@sub_type = 1
|
||||
status = params[:user_status].nil? ? 0 : params[:user_status].to_i
|
||||
@us_order = params[:us_order].blank? ? "desc" : params[:us_order] # 排序
|
||||
@order_key = params[:order_key].blank? ? "created_on" : params[:order_key] # 排序关键字
|
||||
condition = (params[:research_condition].nil? || params[:research_condition] == "name") ? "concat(lastname, firstname)" : params[:research_condition]
|
||||
if 0 == status
|
||||
if params[:research_condition] == "phone" && params[:research_contents].blank?
|
||||
@users = User.order("#{@order_key} #{@us_order}").all
|
||||
@users = User.order("#{@order_key} #{@us_order}").all
|
||||
else
|
||||
@users = User.where("#{condition} like '%#{params[:research_contents]}%'").order("#{@order_key} #{@us_order}").all
|
||||
@users = User.where("#{condition} like '%#{params[:research_contents]}%'").order("#{@order_key} #{@us_order}").all
|
||||
end
|
||||
else
|
||||
if params[:research_condition] == "phone" && params[:research_contents].blank?
|
||||
@users = User.where(:status => status).order("#{@order_key} #{@us_order}").all
|
||||
@users = User.where(:status => status).order("#{@order_key} #{@us_order}").all
|
||||
else
|
||||
@users = User.where("status = #{status} and #{condition} like '%#{params[:research_contents]}%'").order("#{@order_key} #{@us_order}").all
|
||||
@users = User.where("status = #{status} and #{condition} like '%#{params[:research_contents]}%'").order("#{@order_key} #{@us_order}").all
|
||||
end
|
||||
end
|
||||
|
||||
@users_count = @users.count
|
||||
@limit = 20
|
||||
@is_remote = true
|
||||
@users_pages = Paginator.new @users_count, @limit, params['page'] || 1
|
||||
@offset ||= @users_pages.offset
|
||||
@users = paginateHelper @users, @limit
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.js
|
||||
format.html
|
||||
end
|
||||
end
|
||||
|
||||
def shixuns
|
||||
@menu_type = 3
|
||||
@sub_type = 1
|
||||
sx_status = params[:status].blank? ? [0, 1, 2, 3] : params[:status].to_i # 搜索实训的状态
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
|
||||
search = params[:search] # 搜索的字
|
||||
|
|
@ -130,7 +337,6 @@ class ManagementsController < ApplicationController
|
|||
@audit_sx_num = Shixun.where(:status => 1).count
|
||||
@publish_sx_num =Shixun.where(:status => 2).count
|
||||
@close_sx_num = Shixun.where(:status => 3).count
|
||||
|
||||
@shixuns_count = @shixuns.count
|
||||
limit = 20
|
||||
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
|
||||
|
|
@ -145,6 +351,7 @@ class ManagementsController < ApplicationController
|
|||
# 已发布的实训
|
||||
def publish_shixuns
|
||||
@menu_type = 3
|
||||
@sub_type = 2
|
||||
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
|
||||
search = params[:search] # 搜索字
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
|
||||
|
|
@ -168,7 +375,6 @@ class ManagementsController < ApplicationController
|
|||
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
|
||||
@offset ||= @shixuns_pages.offset
|
||||
@shixuns = paginateHelper @shixuns, limit
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
|
|
@ -178,11 +384,11 @@ class ManagementsController < ApplicationController
|
|||
# 已关闭的实训
|
||||
def close_shixuns
|
||||
@menu_type = 3
|
||||
@sub_type = 3
|
||||
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
|
||||
search = params[:search] # 搜索字
|
||||
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
|
||||
reopen = params[:reopen] # 从新开启实训,参数是实训的Id
|
||||
|
||||
unless reopen.blank?
|
||||
Shixun.find(reopen).update_attribute(:status, 2)
|
||||
end
|
||||
|
|
@ -202,7 +408,6 @@ class ManagementsController < ApplicationController
|
|||
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
|
||||
@offset ||= @shixuns_pages.offset
|
||||
@shixuns = paginateHelper @shixuns, limit
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
|
|
@ -210,7 +415,8 @@ class ManagementsController < ApplicationController
|
|||
end
|
||||
|
||||
def users_trial
|
||||
@menu_type = 6
|
||||
@menu_type = 7
|
||||
@sub_type = 2
|
||||
@users = User.where(:status => 1).order("created_on desc").all
|
||||
@users_count = @users.count
|
||||
@limit = 20
|
||||
|
|
@ -218,7 +424,6 @@ class ManagementsController < ApplicationController
|
|||
@users_pages = Paginator.new @users_count, @limit, params['page'] || 1
|
||||
@offset ||= @users_pages.offset
|
||||
@users = paginateHelper @users, @limit
|
||||
|
||||
end
|
||||
|
||||
def search_user
|
||||
|
|
@ -322,7 +527,8 @@ class ManagementsController < ApplicationController
|
|||
|
||||
|
||||
def trial_authorization
|
||||
@menu_type = 9
|
||||
@menu_type =10
|
||||
@sub_type = 2
|
||||
search = params[:search]
|
||||
@status = trial_authorization_status(params[:status])
|
||||
# @status = (params[:status].blank? || params[:status] == "0") ? 0 : [1,2]
|
||||
|
|
@ -380,7 +586,8 @@ class ManagementsController < ApplicationController
|
|||
|
||||
# copy from admin
|
||||
def identity_authentication
|
||||
@menu_type = 9
|
||||
@menu_type = 10
|
||||
@sub_type = 1
|
||||
@type = trial_authorization_status(params[:type])
|
||||
type = params[:type] || 0 # 存在type 就用type 没有就为 0
|
||||
user_id = User.find_by_sql("select id from users where concat(lastname,firstname) like '%#{params[:name]}%'")
|
||||
|
|
@ -413,10 +620,18 @@ class ManagementsController < ApplicationController
|
|||
end
|
||||
|
||||
def subject_authorization
|
||||
@menu_type = 10
|
||||
@sub_type == 6
|
||||
@type = trial_authorization_status params[:type]
|
||||
@subject = ApplyAction.where(:container_type => "ApplySubject", :status => @type).order("created_at desc")
|
||||
@authorizations = ApplyAction.where(:container_type => "ApplySubject", :status => @type).order("created_at desc")
|
||||
# @subject=Subject.all
|
||||
|
||||
@authorizations_count = @authorizations.count
|
||||
@limit = 15
|
||||
@is_remote = true
|
||||
@authorizations_pages = Paginator.new @authorizations_count, @limit, params['page'] || 1
|
||||
@offset ||= @authorizations_pages.offset
|
||||
@authorizations = paginateHelper @authorizations, @limit
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html
|
||||
|
|
@ -424,6 +639,8 @@ class ManagementsController < ApplicationController
|
|||
end
|
||||
|
||||
def shixun_authorization
|
||||
@menu_type = 10
|
||||
@sub_type == 5
|
||||
@type = trial_authorization_status params[:type]
|
||||
@authorizations = ApplyAction.where(:container_type => "ApplyShixun", :status => @type).order("created_at desc")
|
||||
search = params[:search]
|
||||
|
|
@ -446,27 +663,26 @@ class ManagementsController < ApplicationController
|
|||
def deal_subject_authorization
|
||||
apply_action = ApplyAction.find(params[:apply_id])
|
||||
type = params[:type].to_i
|
||||
subject = subject.find apply_action.container_id
|
||||
subject = Subject.find apply_action.container_id
|
||||
if type == 0 #拒绝
|
||||
subject.update_column('status', 0)
|
||||
apply_action.update_attributes(:status => 2, :reason => params[:reject_reason], :dealer_id => User.current.id)
|
||||
notes = "您所在团队提交的项目实训发布申请:<a href='#{subject_path(subject)}'>#{subject.name}</a>,审核未通过。<br/>原因:#{params[:reject_reason]}"
|
||||
notes = "您所在团队提交的课程实训发布申请:<a href='#{subject_path(subject)}'>#{subject.name}</a>,审核未通过。<br/>原因:#{params[:reject_reason]}"
|
||||
JournalsForMessage.create(:jour_id => subject.user_id, :jour_type => 'Principal', :user_id => User.current.id, :notes => notes, :private => 1, :reply_id => 0)
|
||||
else #同意
|
||||
subject.update_column('status', 2)
|
||||
apply_action.update_attributes(:status => 1, :dealer_id => User.current.id)
|
||||
subject_modify_status_without_publish subject, 1
|
||||
end
|
||||
# @authorizations = ApplyAction.where(:container_type => "ApplyShixun", :status => 0)
|
||||
# @authorizations_count = @authorizations.count
|
||||
# @limit = 15
|
||||
# @is_remote = true
|
||||
# @authorizations_pages = Paginator.new @authorizations_count, @limit, params['page'] || 1
|
||||
# @offset ||= @authorizations_pages.offset
|
||||
# @authorizations = paginateHelper @authorizations, @limit
|
||||
# respond_to do |format|
|
||||
# format.js
|
||||
# end
|
||||
@authorizations = ApplyAction.where(:container_type => "ApplySubject", :status => 0)
|
||||
@authorizations_count = @authorizations.count
|
||||
@limit = 15
|
||||
@is_remote = true
|
||||
@authorizations_pages = Paginator.new @authorizations_count, @limit, params['page'] || 1
|
||||
@offset ||= @authorizations_pages.offset
|
||||
@authorizations = paginateHelper @authorizations, @limit
|
||||
respond_to do |format|
|
||||
format.js
|
||||
end
|
||||
end
|
||||
# 项目实训发布审批
|
||||
def deal_shixun_authorization
|
||||
|
|
|
|||
|
|
@ -5179,3 +5179,69 @@ def quote_homework_bank homework, course
|
|||
end
|
||||
end
|
||||
|
||||
def major_level_option
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属专业层级"
|
||||
option0 << 0
|
||||
option1 = []
|
||||
option1 << "专科"
|
||||
option1 << 3
|
||||
option2 = []
|
||||
option2 << "本科"
|
||||
option2 << 2
|
||||
option3 = []
|
||||
option3 << "研究生"
|
||||
option3 << 1
|
||||
content << option0
|
||||
content << option1
|
||||
content << option2
|
||||
content << option3
|
||||
content
|
||||
end
|
||||
|
||||
def discipline_category_option major_level = 3
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属学科门类"
|
||||
option0 << 0
|
||||
content << option0
|
||||
DisciplineCategory.where(:major_level => major_level).each do |dis|
|
||||
option = []
|
||||
option << dis.name.to_s
|
||||
option << dis.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
def first_level_discipline_option disc_ca = 27
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属一级学科"
|
||||
option0 << 0
|
||||
content << option0
|
||||
FirstLevelDiscipline.where(:discipline_category_id => disc_ca).each do |fir_dis|
|
||||
option = []
|
||||
option << fir_dis.name.to_s
|
||||
option << fir_dis.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
def syllabus_major_option fir_dis = 213
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属专业"
|
||||
option0 << 0
|
||||
content << option0
|
||||
Major.where(:first_level_discipline_id => fir_dis).each do |major|
|
||||
option = []
|
||||
option << major.name.to_s
|
||||
option << major.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -51,72 +51,6 @@ module SyllabusesHelper
|
|||
count
|
||||
end
|
||||
|
||||
def major_level_option
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属专业层级"
|
||||
option0 << 0
|
||||
option1 = []
|
||||
option1 << "专科"
|
||||
option1 << 3
|
||||
option2 = []
|
||||
option2 << "本科"
|
||||
option2 << 2
|
||||
option3 = []
|
||||
option3 << "研究生"
|
||||
option3 << 1
|
||||
content << option0
|
||||
content << option1
|
||||
content << option2
|
||||
content << option3
|
||||
content
|
||||
end
|
||||
|
||||
def discipline_category_option major_level = 3
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属学科门类"
|
||||
option0 << 0
|
||||
content << option0
|
||||
DisciplineCategory.where(:major_level => major_level).each do |dis|
|
||||
option = []
|
||||
option << dis.name.to_s
|
||||
option << dis.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
def first_level_discipline_option disc_ca = 27
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属一级学科"
|
||||
option0 << 0
|
||||
content << option0
|
||||
FirstLevelDiscipline.where(:discipline_category_id => disc_ca).each do |fir_dis|
|
||||
option = []
|
||||
option << fir_dis.name.to_s
|
||||
option << fir_dis.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
def syllabus_major_option fir_dis = 213
|
||||
content = []
|
||||
option0 = []
|
||||
option0 << "选择课程所属专业"
|
||||
option0 << 0
|
||||
content << option0
|
||||
Major.where(:first_level_discipline_id => fir_dis).each do |major|
|
||||
option = []
|
||||
option << major.name.to_s
|
||||
option << major.id
|
||||
content << option
|
||||
end
|
||||
content
|
||||
end
|
||||
|
||||
def syllabus_type_option
|
||||
content = []
|
||||
option0 = []
|
||||
|
|
|
|||
1104
app/models/course.rb
1104
app/models/course.rb
File diff suppressed because it is too large
Load Diff
|
|
@ -22,15 +22,41 @@
|
|||
<div class="newMain clearfix"> <!-- 主题部分 -->
|
||||
<div class="edu-class-container" >
|
||||
<p class="mb10 ml25"><i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<a href="">胡莎莎</a> > <a href="">班级列表</a>
|
||||
<%= link_to User.current.show_real_name, user_path(User.current) %> >
|
||||
<span class="color-dark-grey">
|
||||
<% case @menu_type %>
|
||||
<% when 2 %>
|
||||
<%= @sub_type == 1 ? "课程列表" : "班级列表" %>
|
||||
<% when 3 %>
|
||||
<%= @sub_type == 1 ? "实训列表" :(@sub_type == 2? "已发布的实训":"已关闭的实训") %>
|
||||
<% when 4 %>
|
||||
<%= @sub_type == 1 ? "实训套件" : "已发布实训套件" %>
|
||||
<% when 5 %>
|
||||
竞赛
|
||||
<% when 6 %>
|
||||
<%= @sub_type == 1 ? "单位列表" :"单位部门列表" %>
|
||||
<% when 7 %>
|
||||
<%= @sub_type == 1 ? "用户列表" :"适用授权列表" %>
|
||||
<% when 8 %>
|
||||
消息
|
||||
<% when 9 %>
|
||||
留言
|
||||
<% when 10 %>
|
||||
<%= @sub_type == 1 ? "身份认证":(@sub_type == 2? "适用授权":(@sub_type == 3?"部门审批":(@sub_type == 4?"单位审批":(@sub_type == 5?"项目实训发布":"课程实训发布"))))%>
|
||||
<% when 11 %>
|
||||
工程认证+
|
||||
<% when 12 %>
|
||||
其他
|
||||
<% end %>
|
||||
</span>
|
||||
</p>
|
||||
<ul class="edu-admin-nav clearfix ">
|
||||
<li class="fl edu-admin-nav-li"><a href="javascript:void(0);" class="edu-admin-nav-a">主页</a></li>
|
||||
<li class="fl edu-admin-nav-li edu-position"><a href="javascript:void(0);" class="edu-admin-nav-a">课堂+</a>
|
||||
<ul class="edu-admin-nav-inner edu-absolute">
|
||||
<li><%= link_to "课程列表", classroom_managements_path %></li>
|
||||
<li><%= link_to "班级列表", classroom_classment_managements_path %></li>
|
||||
</ul>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 2 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">课堂+</a>
|
||||
<!--<ul class="edu-admin-nav-inner edu-absolute">-->
|
||||
<!--<li><%#= link_to "课程列表", classroom_managements_path %></li>-->
|
||||
<!--<li><%#= link_to "班级列表", classroom_classment_managements_path %></li>-->
|
||||
<!--</ul>-->
|
||||
</li>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 3 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">项目实训+</a>
|
||||
<%#= link_to "实训+", shixuns_managements_path, :class => "edu-admin-nav-a" %>
|
||||
|
|
@ -40,21 +66,21 @@
|
|||
<li><%= link_to "已关闭的实训", close_shixuns_managements_path %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 3 %>" style="width: 100px"><a href="javascript:void(0);" class="edu-admin-nav-a" >课程实训+</a>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 4 %>" style="width: 100px"><a href="javascript:void(0);" class="edu-admin-nav-a" >实训套件+</a>
|
||||
<%#= link_to "实训+", shixuns_managements_path, :class => "edu-admin-nav-a" %>
|
||||
<ul class="edu-admin-nav-inner edu-absolute">
|
||||
<li style="width: 100px"><%= link_to "课程实训列表", class_shixuns_managements_path %></li>
|
||||
<li style="width: 100px"><%= link_to "已发布课程实训", class_publish_shixuns_managements_path %></li>
|
||||
<li style="width: 100px"><%= link_to "实训套件列表", class_shixuns_managements_path %></li>
|
||||
<li style="width: 100px"><%= link_to "已发布实训套件", class_publish_shixuns_managements_path %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="fl edu-admin-nav-li"><a href="javascript:void(0);" class="edu-admin-nav-a">竞赛+</a></li>
|
||||
<li class="fl edu-admin-nav-li edu-position"><a href="javascript:void(0);" class="edu-admin-nav-a">单位</a>
|
||||
<ul class="edu-admin-nav-inner edu-absolute">
|
||||
<li><%= link_to "单位列表", departments_part_managements_path, :class => "edu-admin-nav-a" %></li>
|
||||
<li><%= link_to "单位部门列表", departments_managements_path%></li>
|
||||
</ul>
|
||||
<!--<ul class="edu-admin-nav-inner edu-absolute">-->
|
||||
<!--<li><%#= link_to "单位列表", departments_part_managements_path, :class => "edu-admin-nav-a" %></li>-->
|
||||
<!--<li><%#= link_to "单位部门列表", departments_managements_path%></li>-->
|
||||
<!--</ul>-->
|
||||
</li>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 6 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">用户</a>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 7 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">用户</a>
|
||||
<ul class="edu-admin-nav-inner edu-absolute">
|
||||
<li><%= link_to "用户列表", users_managements_path %></li>
|
||||
<li><%= link_to "试用授权列表", users_trial_managements_path %></li>
|
||||
|
|
@ -62,12 +88,12 @@
|
|||
</li>
|
||||
<li class="fl edu-admin-nav-li"><a href="javascript:void(0);" class="edu-admin-nav-a">消息</a></li>
|
||||
<li class="fl edu-admin-nav-li"><a href="javascript:void(0);" class="edu-admin-nav-a">留言</a></li>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 9 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">审批</a>
|
||||
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 10 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">审批</a>
|
||||
<ul class="edu-admin-nav-inner">
|
||||
<li><%= link_to "身份认证", :controller => "managements", :action => "identity_authentication" %></li>
|
||||
<li><%= link_to "试用授权", :controller => "managements", :action => "trial_authorization" %></li>
|
||||
<li><%= link_to "部门审批", depart_managements_path %></li>
|
||||
<li><%= link_to '单位审批', unit_managements_path %></li>
|
||||
<!--<li><%#= link_to "部门审批", depart_managements_path %></li>-->
|
||||
<!--<li><%#= link_to '单位审批', unit_managements_path %></li>-->
|
||||
<li><%= link_to '项目实训发布', shixun_authorization_managements_path %></li>
|
||||
<li><%= link_to '课程实训发布', subject_authorization_managements_path %></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="8%">ID</th>
|
||||
<th width="40%" class="edu-txt-left">实训套件名称</th>
|
||||
<th width="20%" class="edu-txt-left">单位</th>
|
||||
<th width="15%">创建者</th>
|
||||
<th >发布时间<i class="fa <%= @sx_order == "desc" ? "fa-long-arrow-down" : "fa-long-arrow-up" %> color-light-green ml5" title="功能完善中,敬请期待"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @c_shixuns.each_with_index do |c_shixun, index| %>
|
||||
<tr>
|
||||
<td><%= index + 1 %></td>
|
||||
<td class="edu-txt-left"><%= link_to c_shixun.name, subject_path(c_shixun) %></td>
|
||||
<td class="edu-txt-left"><%= c_shixun.user.try(:user_extensions).try(:school).try(:name).blank? ? "--" : c_shixun.user.try(:user_extensions).try(:school) %></td>
|
||||
<td><%= c_shixun.user.show_real_name %></td>
|
||||
<td><%= format_time c_shixun.created_at %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="20%" class="edu-txt-left">实训套件名称</th>
|
||||
<th width="6%">阶段</th>
|
||||
<th width="6%">实训</th>
|
||||
<th width="8%">状态</th>
|
||||
<th width="20%" class="edu-txt-left">单位</th>
|
||||
<th width="8%">创建者</th>
|
||||
<th width="11%">创建时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @c_shixuns.each_with_index do |c_shixun, index| %>
|
||||
<tr id="subject_shixun_<%= c_shixun.id %>">
|
||||
<td><%= index + 1 %></td>
|
||||
<td class="edu-txt-left"><%= link_to c_shixun.name, subject_path(c_shixun) %></td>
|
||||
<td><%= c_shixun.stages.count %></td>
|
||||
<td><%= c_shixun.stage_shixuns.count %></td>
|
||||
<td><%= c_shixun.status == 0 ? "编辑中" : (c_shixun.status == 1 ? "审核中" : "发布") %></td>
|
||||
<td class="edu-txt-left"><%= c_shixun.user.try(:user_extensions).try(:school).try(:name).blank? ? "--" : c_shixun.user.try(:user_extensions).try(:school) %></td>
|
||||
<td><%= c_shixun.user.show_real_name %></td>
|
||||
<td><%= format_time c_shixun.created_at %></td>
|
||||
<td class="class_shixun_delete">
|
||||
<a href="javascript:void(0);" onclick="delete_confirm_box('<%= delete_subject_managements_path(:subject_id => c_shixun.id) %>', '确定要删除该实训套件吗?')">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="20%" class="edu-txt-left">班级名称</th>
|
||||
<th width="4%">成员</th>
|
||||
<th width="4%">资源</th>
|
||||
<th width="4%">作业</th>
|
||||
<th width="4%">试卷</th>
|
||||
<th width="4%">私有</th>
|
||||
<th width="4%">模版</th>
|
||||
<th width="8%">状态</th>
|
||||
<th width="13%" class="edu-txt-left">创建者单位</th>
|
||||
<th width="11%">创建者</th>
|
||||
<th width="11%">动态时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>首页显示</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @courses.each do |course| %>
|
||||
<tr>
|
||||
<td><%= course.id %></td>
|
||||
<td class="edu-txt-left"><a href=""><%= link_to(course.name, course_path(course.id)) %></a></td>
|
||||
<td><%= course.members.count %></td>
|
||||
<td><%= course.attachments.count %></td>
|
||||
<td><%= course.homework_commons.count%></td>
|
||||
<td><%= course.exercises.count %></td>
|
||||
<td><%= course.is_public.to_i == 1 ? '--' : '√' %></td>
|
||||
<td></td>
|
||||
<td><%= course.is_end ? "已结束" : "正在进行" %></td>
|
||||
<td class="edu-txt-left"><%= course.teacher.try(:user_extensions).try(:school).try(:name).blank? ? "--" : course.teacher.try(:user_extensions).try(:school) %></td>
|
||||
<td> <%= link_to course.teacher.show_name, user_path(course.teacher) %></td>
|
||||
<td> <%= format_time(course.updatetime) %></td>
|
||||
<td class="operate"><span class="fr shixun_webssh">
|
||||
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_24">
|
||||
<label style="top:-14px;padding-left: 35px;" for="join_course_role_24"></label></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @courses_pages, @courses_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="10%">层级</th>
|
||||
<th width="12%" class="edu-txt-left">学科门类</th>
|
||||
<th width="12%">一级学科</th>
|
||||
<th width="12%">专业名称</th>
|
||||
<th width="15%" class="edu-txt-left">课程名称</th>
|
||||
<th width="12%">创建者</th>
|
||||
<th width="10%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>课堂模版</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @syllabus.each do |syllabus| %>
|
||||
<tr>
|
||||
<td><%= syllabus.id %></td>
|
||||
<td><%= syllabus.syllabus_major_level == '' ? "--" : syllabus.syllabus_major_level %></td>
|
||||
<td class="edu-txt-left"><%= syllabus.syllabus_discipline_category == '' ? "--" : syllabus.syllabus_discipline_category %></td>
|
||||
<td><%= syllabus.syllabus_first_level_discipline == "" ? "--" : syllabus.syllabus_first_level_discipline %></td>
|
||||
<td><%= syllabus.syllabus_major == "" ? "--" : syllabus.syllabus_major %></td>
|
||||
<td class="edu-txt-left"> <%= render :partial => 'admin/rename_syllabus_title', :locals => {:syllabus => syllabus} %></td>
|
||||
<td> <%= link_to syllabus.user.show_name, user_path(syllabus.user) %></td>
|
||||
<td> <%= format_time(syllabus.created_at) %></td>
|
||||
<td class="operate"><span class="fr shixun_webssh">
|
||||
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_24">
|
||||
<label style="top:-14px;padding-left: 45px;" for="join_course_role_24"></label>
|
||||
</span></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @syllabus_pages, @syllabus_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="25%" class="edu-txt-left">部门名称</th>
|
||||
<th width="30%" class="edu-txt-left">单位名称</th>
|
||||
<th width="15%"class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th width=""></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @apply_status.each do |apply| %>
|
||||
<tr>
|
||||
<td><%= apply.id %></td>
|
||||
<td class="edu-txt-left"> <%= apply.name %></td>
|
||||
<td class="edu-txt-left"> <%= apply.school.name %></td>
|
||||
<td > <%= format_date(apply.created_at) %></td>
|
||||
<td class="center">
|
||||
<%= link_to( l(:label_approve), { :controller => 'admin', :action => 'approve_applied_departments', :id => apply.id }, :class => "application-default-link" ) %>
|
||||
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_departments', :id => apply.id, :tip => 'unapplied' },:method => :delete, :confirm => l(:text_are_you_sure), :class => "application-default-link") %>
|
||||
<%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true, :class => "application-default-link" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @apply_status_pages, @apply_status_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="30%" class="edu-txt-left">部门名称</th>
|
||||
<th width="15%">用户数</th>
|
||||
<th width="15%">已认证职业</th>
|
||||
<th width="20%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @department.each do |department| %>
|
||||
<tr>
|
||||
<td><%=department.id %></td>
|
||||
<td class="edu-txt-left"><%=department.name %></td>
|
||||
<td><%= UserExtensions.where(:department_id => department.id).count %></td>
|
||||
<td>3</td>
|
||||
<td><%= format_time department.created_at %></td>
|
||||
<td><a href="javascript:void(0);"><i class="fa fa-edit font-16"></i> 修改</a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @department_pages, @department_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="6%">LOGO</th>
|
||||
<th width="18%" class="edu-txt-left">单位名称</th>
|
||||
<th width="10%">地区</th>
|
||||
<th width="19%" class="edu-txt-left">详细地址</th>
|
||||
<th style="width: 6%;" >用户数</th>
|
||||
<th width="6%">部门数</th>
|
||||
<th width="15%"class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @schools.each do |schools| %>
|
||||
<tr>
|
||||
<td><%= schools.id %></td>
|
||||
<td>
|
||||
<%= image_tag(schools.logo_link,width:40,height:40) %>
|
||||
|
||||
</td>
|
||||
<td class="edu-txt-left">
|
||||
<span>
|
||||
<%= link_to schools.name,"http://#{Setting.host_name}/?schools_id=#{schools.id}" %>
|
||||
</span>
|
||||
</td>
|
||||
<td><%= schools.province %></td>
|
||||
<td class="edu-txt-left"><%= schools.address == nil ? "--" :schools.address %></td>
|
||||
<td><%= UserExtensions.where(:school_id => schools.id).count %></td>
|
||||
<td><%= schools.departments.count %></td>
|
||||
<td><%= format_time schools.created_at %></td>
|
||||
<td>
|
||||
<i class="fa fa-edit font-16"></i>
|
||||
<%= link_to("修改", upload_logo_school_path(schools.id,:schools_name => @schools_name), :class => 'icon icon-copy') %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @schools_pages, @schools_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<% @authorizations.each do |authorization| %>
|
||||
<div class="admin-con-box clearfix">
|
||||
<% user = authorization.user %>
|
||||
<% subject = Subject.find authorization.container_id %>
|
||||
|
||||
<a href="<%= user_path(user) %>" target="_blank" class="fl with10 edu-ad-user">
|
||||
<%= image_tag(url_to_avatar(user), :class => "fl with10 edu-ad-user", :alt => "头像", :width => "50", :height => "50" ) %>
|
||||
</a>
|
||||
|
||||
<div class="fl with90">
|
||||
<ul>
|
||||
<li class="clearfix mb5">
|
||||
<%= link_to user.show_real_name, user_path(user), :class => "fl" %>
|
||||
<a href="javascript:void(0);" class="fr color-orange" onclick="reject_subject_authentication_reason(this);">拒绝</a>
|
||||
<a href="javascript:void(0);" class="fr mr15 color-orange" data-remote="true" onclick="subject_agree_authorization('<%= authorization.id %>');">同意</a>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<b><%=link_to subject.name, subject_path(subject), :target => "_blank" %></b>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<span><%= subject.stages.count %> 阶段</span><span class="ml30"><%= subject.stage_shixuns.count %> 实训</span><span class="ml30"><%= subject.subject_challenges %> 关卡</span>
|
||||
</li>
|
||||
<div class="undis">
|
||||
<li class="clearfix edu-form-border mb10">
|
||||
<label class="edu-form-label fl">原因:</label>
|
||||
<input type="text" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="我得说点儿什么,最多200个字符">
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<a href="javascript:void(0);" class="task-btn task-btn-blue fr" onclick="subject_submit_reject_reason('<%= authorization.id %>', this);" >确定</a>
|
||||
<a href="javascript:void(0);" class="task-btn fr mr10" onclick="subject_hide_reject_reason(this);" >取消</a>
|
||||
</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<script type="text/javascript">
|
||||
function subject_agree_authorization(id){
|
||||
$.ajax({
|
||||
url: '<%= deal_subject_authorization_managements_path %>',
|
||||
data: {apply_id:id, type:1},
|
||||
success: function(){
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<% unless @authorizations.blank? %>
|
||||
<% @authorizations.each do |authorization| %>
|
||||
<% user = authorization.user %>
|
||||
<% subject = Subject.find authorization.container_id %>
|
||||
<div class="admin-con-box clearfix">
|
||||
<a href="<%= user_path(user) %>" target="_blank" class="fl with10 edu-ad-user">
|
||||
<%= image_tag(url_to_avatar(user), :class => "fl with10 edu-ad-user", :alt => "头像", :width => "50", :height => "50" ) %>
|
||||
</a>
|
||||
<div class="fl with90">
|
||||
<ul>
|
||||
<li class="clearfix mb5">
|
||||
<a href="<%= user_path(user) %>" class="fl"><%= user.try(:show_name) %></a>
|
||||
<span class="fl ml30 font-12 color-grey"><%= time_from_now(authorization.created_at) %></span>
|
||||
<a class=" task-btn <%= authorization.status == 1 ? 'task-btn-green' : '' %> fr "><%= authorization.status == 1 ? "已同意" : "已拒绝" %></a>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
课程实训名称:<%= link_to subject.name, subject_path(subject), :target => "_blank" %>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<span><%= subject.stages.count %> 阶段</span><span class="ml30"><%= subject.stage_shixuns.count %> 实训</span><span class="ml30"><%= subject.subject_challenges %> 关卡</span>
|
||||
</li>
|
||||
<% if authorization.status == 2 %>
|
||||
<li>原因:<span class="color-orange"><%= authorization.reason.blank? ? "空" : authorization.reason %></span></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<!--<div style="text-align:center;">-->
|
||||
<!--<div class="pages_right_min" style="width:auto; display:inline-block;">-->
|
||||
<!--<ul id="homework_pository_ref_pages">-->
|
||||
<!--<%#= pagination_links_full @authorizations_pages, @authorizations_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>-->
|
||||
<!--</ul>-->
|
||||
<!--<div class="cl"></div>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<% else %>
|
||||
<%= render :partial => "welcome/no_data" %>
|
||||
<% end %>
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="20%" class="edu-txt-left">单位名称</th>
|
||||
<th width="15%">地区</th>
|
||||
<th width="20%" class="edu-txt-left">详细地址</th>
|
||||
<th width="10%">申请者</th>
|
||||
<th width="10%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th width="10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @apply_status.each do |apply| %>
|
||||
<tr>
|
||||
<td> <%= apply.id %></td>
|
||||
<td class="edu-txt-left"><%= apply.name %></span></td>
|
||||
<td>
|
||||
<span ondblclick = "show_edit_school_province('<%= apply.id %>');" id="apply_province_<%= apply.id %>">
|
||||
<%= (apply.province.nil? ? "" : apply.province) + (apply.city.nil? ? "" : apply.city) %>
|
||||
</span>
|
||||
<select onchange="showcity(this.value, document.getElementById('schoolCity_<%=apply.id%>'));edit_school_province('<%= edit_apply_province_school_path(apply.id)%>','<%= apply.id %>');" name="province" id="school_province_edit_<%=apply.id%>" class="fl" style="width:55px; height:20px; display: none">
|
||||
<option value="北京">北京</option>
|
||||
<option value="上海">上海</option>
|
||||
<option value="广东">广东</option>
|
||||
<option value="江苏">江苏</option>
|
||||
<option value="浙江">浙江</option>
|
||||
<option value="重庆">重庆</option>
|
||||
<option value="安徽">安徽</option>
|
||||
<option value="福建">福建</option>
|
||||
<option value="甘肃">甘肃</option>
|
||||
<option value="广西">广西</option>
|
||||
<option value="贵州">贵州</option>
|
||||
<option value="海南">海南</option>
|
||||
<option value="河北">河北</option>
|
||||
<option value="黑龙江">黑龙江</option>
|
||||
<option value="河南">河南</option>
|
||||
<option value="湖北">湖北</option>
|
||||
<option value="湖南">湖南</option>
|
||||
<option value="江西">江西</option>
|
||||
<option value="吉林">吉林</option>
|
||||
<option value="辽宁">辽宁</option>
|
||||
<option value="内蒙古">内蒙古</option>
|
||||
<option value="宁夏">宁夏</option>
|
||||
<option value="青海">青海</option>
|
||||
<option value="山东">山东</option>
|
||||
<option value="山西">山西</option>
|
||||
<option value="陕西">陕西</option>
|
||||
<option value="四川">四川</option>
|
||||
<option value="天津">天津</option>
|
||||
<option value="新疆">新疆</option>
|
||||
<option value="西藏">西藏</option>
|
||||
<option value="云南">云南</option>
|
||||
<option value="香港">香港特别行政区</option>
|
||||
<option value="澳门">澳门特别行政区</option>
|
||||
<option value="台湾">台湾</option>
|
||||
<option value="海外">海外</option>
|
||||
</select>
|
||||
<select onchange="edit_school_province('<%= edit_apply_province_school_path(apply.id)%>','<%= apply.id %>');" name="city" id="schoolCity_<%=apply.id%>" class="fl ml5" style="width:55px; height:20px; display: none"></select>
|
||||
|
||||
</td>
|
||||
<td class="edu-txt-left">
|
||||
<span title="双击可编辑" ondblclick = "show_edit_school_address('<%= apply.id %>');" id="apply_address_<%= apply.id %>"><%= apply.address %></span>
|
||||
<textarea style="display: none; width:100px; height:16px; border:1px solid #ddd; outline:none; padding:0 0 0 5px; resize:none; overflow:hidden;" placeholder="请编辑单位地址" id="school_address_edit_<%=apply.id%>" onblur="edit_school_address('<%= edit_apply_address_school_path(apply.id)%>','<%= apply.id %>');"><%= apply.address %></textarea>
|
||||
</td>
|
||||
<td>
|
||||
<% user = User.where("id=?", apply.user_id).first %>
|
||||
<% unless user.nil? %>
|
||||
<%=link_to user.show_name, user_path(user),:target => '_blank', :class => "application-default-link" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= format_date(apply.created_at) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to( l(:label_approve), { :controller => 'admin', :action => 'approve_applied_schools', :id => apply.id }, :class => "application-default-link" ) %>
|
||||
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'unapplied' },:method => :delete, :confirm => l(:text_are_you_sure), :class => "application-default-link") %>
|
||||
<%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true, :class => "application-default-link" %>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @apply_status_pages, @apply_status_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
// function myFunction(){
|
||||
// if($("#shixun_Look_name").val()==""){
|
||||
// $(".d-none").css("display","none");
|
||||
// }else{
|
||||
// $(".d-none").css("display","block");
|
||||
// }
|
||||
// }
|
||||
|
||||
</script>
|
||||
|
|
@ -1,43 +1,29 @@
|
|||
<%= form_tag(url_for(class_publish_shixuns_managements_path), :id => "class_publish_shixuns_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix xmt10">
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
|
||||
<option value="" selected="selected">选择单位</option>
|
||||
<option value="0"></option>
|
||||
<option value="1"></option>
|
||||
<option value="2"></option>
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" id="cla_sx_part" name="school_id" >
|
||||
<option value="0" selected="selected">选择单位</option>
|
||||
<% @schools.each do |school| %>
|
||||
<option value="<%= school.id %>"><%= school.name %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
|
||||
<option value="0">创建者姓名搜索</option>
|
||||
<option value="1">班级名称搜索</option>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%" id="cla_sx_condition_status" form="class_publish_shixuns_search" name="keyword">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="cla_name">实训套件名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" id="cla_sx_Look_name">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#class_publish_shixuns_search').submit();">搜索</a>
|
||||
<a href="javascript:clearSearchCondition();" class="fl task-btn ml5 mt2 ">清除</a>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="edu-con-bg01 mt15" id="management_class_shixun_list">
|
||||
<%= render :partial => "managements/class_publish_shixuns_list" %>
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="8%">ID</th>
|
||||
<th width="40%" class="edu-txt-left">课程实训名称</th>
|
||||
<th width="20%" class="edu-txt-left">单位</th>
|
||||
<th width="15%">创建者</th>
|
||||
<th >发布时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @c_shixuns.each do |c_shixun| %>
|
||||
<tr>
|
||||
<td><%= c_shixun.id %></td>
|
||||
<td class="edu-txt-left"><a href=""><%= c_shixun.name %></a></td>
|
||||
<td class="edu-txt-left"><%= c_shixun.user.try(:my_workplace) %></td>
|
||||
<td><%= c_shixun.user.try(:show_name) %></td>
|
||||
<td><%= format_time c_shixun.created_at %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<script>
|
||||
$(".class_shixun_delete").click(function(){
|
||||
$(this).parent().remove();
|
||||
});
|
||||
//清除查询条件
|
||||
function clearSearchCondition(){
|
||||
$("#cla_sx_part").val("");
|
||||
$("#cla_sx_condition_status").val("u_name");
|
||||
$("#cla_sx_Look_name").val("");
|
||||
$.get('<%= class_publish_shixuns_managements_path() %>');
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#management_class_shixun_list").html("<%= j(render :partial => "managements/class_publish_shixuns_list") %>");
|
||||
|
|
@ -1,58 +1,36 @@
|
|||
<%= form_tag(url_for(class_shixuns_managements_path), :id => "class_shixuns_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix xmt10">
|
||||
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
|
||||
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" form="class_shixuns_search" name="status" id="status" >
|
||||
<option value="" selected="selected">全部状态</option>
|
||||
<option value="0">编辑中</option>
|
||||
<option value="1">待审核</option>
|
||||
<option value="2">已发布</option>
|
||||
|
||||
<option value="0">编辑中(<%= @edit_class_sx_num %>)</option>
|
||||
<option value="1">审核中(<%= @audit_class_sx_num %>)</option>
|
||||
<option value="2">已发布(<%= @publish_class_sx_num %>)</option>
|
||||
</select>
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
|
||||
<option value="" selected="selected">选择单位</option>
|
||||
<option value="0"></option>
|
||||
<option value="1"></option>
|
||||
<option value="2"></option>
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" name="school_id" id="cla_sx_part">
|
||||
<option value="0" selected="selected">选择单位</option>
|
||||
<% @schools.each do |school| %>
|
||||
<option value="<%= school.id %>"><%= school.name %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
|
||||
<option value="0">创建者姓名搜索</option>
|
||||
<option value="1">班级名称搜索</option>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%" name="keyword" id="cla_sx_condition_status">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="cla_name">实训套件名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" id="cla_sx_Look_name" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#class_shixuns_search').submit();">搜索</a>
|
||||
<a href="javascript:clearSearchCondition()" class="fl task-btn ml5 mt2 ">清除</a>
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="20%" class="edu-txt-left">课程实训名称</th>
|
||||
<th width="6%">阶段</th>
|
||||
<th width="6%">实训</th>
|
||||
<th width="8%">状态</th>
|
||||
<th width="20%" class="edu-txt-left">单位</th>
|
||||
<th width="8%">创建者</th>
|
||||
<th width="11%">创建时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @c_shixuns.each do |c_shixun| %>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td class="edu-txt-left"><a href=""><%= c_shixun.name %></a></td>
|
||||
<td><%= c_shixun.stages.count %></td>
|
||||
<td><%= c_shixun.stage_shixuns.count %></td>
|
||||
<td><%= c_shixun.status == 0 ? "编辑中" : (c_shixun.status == 1 ? "审核中" : "发布") %></td>
|
||||
<td class="edu-txt-left"><%= c_shixun.user.try(:my_workplace) %></td>
|
||||
<td><%= c_shixun.user.try(:show_name) %></td>
|
||||
<td><%= format_time c_shixun.created_at %></td>
|
||||
<td class="class_shixun_delete" title="该功能正在完善中"><a href="#">删除</a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<div class="edu-con-bg01 mt15" id="managements_class_shixuns_list">
|
||||
<%= render :partial => "managements/class_shixuns_list" %>
|
||||
</div>
|
||||
<% end%>
|
||||
<script>
|
||||
$(".class_shixun_delete").click(function(){
|
||||
$(this).parent().remove();
|
||||
});
|
||||
//清除查询条件
|
||||
function clearSearchCondition(){
|
||||
$("#cla_sx_part").val("");
|
||||
$("#cla_sx_condition_status").val("u_name");
|
||||
$("#cla_sx_Look_name").val("");
|
||||
$("#status").val("")
|
||||
$.get('<%= class_shixuns_managements_path() %>');
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_class_shixuns_list").html("<%= j(render :partial => "managements/class_shixuns_list") %>");
|
||||
|
|
@ -1,88 +1,28 @@
|
|||
<%= form_tag(url_for(classroom_managements_path),:id=>"classroom",:method => "post",:remote=>true) do %>
|
||||
<div class="edu-con-top clearfix xmt10">
|
||||
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
|
||||
<option value="" selected="selected">专业层级</option>
|
||||
<option value="0">专科</option>
|
||||
<option value="1">本科</option>
|
||||
<option value="2">研究生</option>
|
||||
<%= select_tag :major_level,options_for_select(major_level_option, 0), {:id=>"major_level", :class=>"fl task-form-15 task-height-30", :style => "margin:0px 10px 0px 25px;"} %>
|
||||
<%= select_tag :discipline_category_id,options_for_select(discipline_category_option, nil), {:id=>"discipline_category_id", :class=>"fl task-form-15 task-height-30", :style => "margin:0px 30px 0px 50px;"} %>
|
||||
<%= select_tag :first_level_discipline_id,options_for_select(first_level_discipline_option, nil), {:id=>"first_level_discipline_id", :class=>"fl task-form-20 task-height-30", :style => "margin:0px 30px 0px 25px;"} %>
|
||||
<%= select_tag :major_id,options_for_select(syllabus_major_option, nil), {:id=>"major_id", :class=>"fl task-form-20 task-height-30", :style => "margin:0px 30px 0px 25px;"} %>
|
||||
<select class="fl task-form-30 task-height-30" style="margin:20px 30px 10px 25px;" name="school_id">
|
||||
<option value="0" selected="selected">选择创建单位</option>
|
||||
<%= @schools.each do |school|%>
|
||||
<option value="<%= school.id %>"><%= school.name%></option>
|
||||
<% end%>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 30px 0px 50px;">
|
||||
<option value="" selected="selected">学科门类</option>
|
||||
<option value="0">工学</option>
|
||||
<option value="1">理学</option>
|
||||
<option value="2">装备制造类</option>
|
||||
<option value="3">公共管理与服务类</option>
|
||||
</select>
|
||||
<select class="fl task-form-20 task-height-30" style="margin:0px 30px 0px 25px;" >
|
||||
<option value="" selected="selected">一级学科</option>
|
||||
<option value="0">公共事业类</option>
|
||||
<option value="1">计算机类</option>
|
||||
<option value="2">船舶与海洋工程装备类</option>
|
||||
</select>
|
||||
<select class="fl task-form-20 task-height-30" style="margin:0px 30px 0px 25px;">
|
||||
<option value="" selected="selected">专业名称</option>
|
||||
<option value="0">软件工程</option>
|
||||
<option value="1">公共管理</option>
|
||||
<option value="2">计算机科学与应用</option>
|
||||
<option value="3">船舶与海洋工程专业</option>
|
||||
</select>
|
||||
<select class="fl task-form-30 task-height-30" style="margin:20px 30px 10px 25px;">
|
||||
<option value="" selected="selected">选择创建单位</option>
|
||||
<option value="0"></option>
|
||||
<option value="1"></option>
|
||||
<option value="2"></option>
|
||||
<option value="3"></option>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:20px 0px 10px 25px;width: 11%">
|
||||
<option value="0">创建者姓名搜索</option>
|
||||
<option value="1">课程名称搜索</option>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:20px 0px 10px 25px;width: 11%" name="keyword">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="cla_name">课程名称搜索</option>
|
||||
</select>
|
||||
<span class="fr shixun_webssh">
|
||||
<input type="checkbox"class="mr5 magic-checkbox" id="join_course_role_1">
|
||||
<label style="top:-30px;padding-left:23px;" for="join_course_role_1"><span class="only_view">只看模板</span></label>
|
||||
</span>
|
||||
<input class="fl task-form-20 task-height-30 mt20" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt20" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt20" onclick="$('#classroom').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 mt20" id="clear_contents">清除</a>
|
||||
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="10%">层级</th>
|
||||
<th width="12%" class="edu-txt-left">学科门类</th>
|
||||
<th width="12%">一级学科</th>
|
||||
<th width="12%">专业名称</th>
|
||||
<th width="15%" class="edu-txt-left">课程名称</th>
|
||||
<th width="12%">创建者</th>
|
||||
<th width="10%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>课堂模版</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @syllabus.each do |syllabus| %>
|
||||
<tr>
|
||||
<td><%= syllabus.id %></td>
|
||||
<td><%= syllabus.syllabus_major_level == '' ? "--" : syllabus.syllabus_major_level %></td>
|
||||
<td class="edu-txt-left"><%= syllabus.syllabus_discipline_category == '' ? "--" : syllabus.syllabus_discipline_category %></td>
|
||||
<td><%= syllabus.syllabus_first_level_discipline == "" ? "--" : syllabus.syllabus_first_level_discipline %></td>
|
||||
<td><%= syllabus.syllabus_major == "" ? "--" : syllabus.syllabus_major %></td>
|
||||
<td class="edu-txt-left"> <%= render :partial => 'admin/rename_syllabus_title', :locals => {:syllabus => syllabus} %></td>
|
||||
<td> <%= link_to syllabus.user.show_name, user_path(syllabus.user) %></td>
|
||||
<td> <%= format_time(syllabus.created_at) %></td>
|
||||
<td class="operate"><span class="fr shixun_webssh">
|
||||
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_24">
|
||||
<label style="top:-14px;padding-left: 45px;" for="join_course_role_24"></label>
|
||||
</span></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @syllabus_pages, @syllabus_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="edu-con-bg01 mt15" id="classroom_list">
|
||||
<%= render :partial => "managements/classroom_list" %>
|
||||
</div>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#classroom_list").html("<%= j(render :partial => "managements/classroom_list") %>")
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
<div class="edu-con-top clearfix xmt10">
|
||||
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
|
||||
<option value="" selected="selected">全部状态</option>
|
||||
<option value="0">正在进行</option>
|
||||
<option value="1">已结束</option>
|
||||
</select>
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
|
||||
<option value="" selected="selected">选择创建者单位</option>
|
||||
<option value="0"></option>
|
||||
<option value="1"></option>
|
||||
<option value="2"></option>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
|
||||
<option value="0">创建者姓名搜索</option>
|
||||
<option value="1">班级名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
|
||||
<span class="fr shixun_webssh">
|
||||
<input type="checkbox"class="mr5 magic-checkbox" id="join_course_role_1">
|
||||
<label style="top:2px;padding-left:23px;" for="join_course_role_1"><span class="only_view">只看首页显示</span></label>
|
||||
</span>
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="20%" class="edu-txt-left">班级名称</th>
|
||||
<th width="4%">成员</th>
|
||||
<th width="4%">资源</th>
|
||||
<th width="4%">作业</th>
|
||||
<th width="4%">试卷</th>
|
||||
<th width="4%">私有</th>
|
||||
<th width="4%">模版</th>
|
||||
<th width="8%">状态</th>
|
||||
<th width="13%" class="edu-txt-left">创建者单位</th>
|
||||
<th width="11%">创建者</th>
|
||||
<th width="11%">动态时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th>首页显示</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @courses.each do |syllabus| %>
|
||||
<tr>
|
||||
<td><%= syllabus.id %></td>
|
||||
<td class="edu-txt-left"><a href=""><%= link_to(syllabus.name, course_path(syllabus.id)) %></a></td>
|
||||
<td><%= studentCount(syllabus) %></td>
|
||||
<td><%= syllabus.boards.first.topics.count + Message.where("board_id =? and parent_id is not ?", syllabus.boards.first.id, nil).count %></td>
|
||||
<td><%= syllabus.homework_commons.count%></td>
|
||||
<td><%= @obj_count%></td>
|
||||
<td>√</td>
|
||||
<td></td>
|
||||
<td>正在进行</td>
|
||||
<td class="edu-txt-left">国防科技大学</td>
|
||||
<td> <%= link_to syllabus.teacher.show_name, user_path(syllabus.teacher) %></td>
|
||||
<td> <%= format_time(syllabus.created_at) %></td>
|
||||
<td class="operate"><span class="fr shixun_webssh">
|
||||
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_24">
|
||||
<label style="top:-14px;padding-left: 35px;" for="join_course_role_24"></label></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @course_pages, @course_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<%= form_tag(url_for(classroom_classment_managements_path), :id => "class_publish_shixuns_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix xmt10">
|
||||
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" id="status" name="status">
|
||||
<option value="" selected="selected">全部状态</option>
|
||||
<option value="0">正在进行(<%= @timing %>)</option>
|
||||
<option value="1">已结束(<%= @end %>)</option>
|
||||
</select>
|
||||
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" name="school_id" id="part">
|
||||
<option value="0" selected="selected">选择创建者单位</option>
|
||||
<% @schools.each do |school|%>
|
||||
<option value="<%= school.id %>"><%= school.name%></option>
|
||||
<% end %>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%" name="keyword" id="condition_status">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="cla_name">班级名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" id="Look_name" >
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#class_publish_shixuns_search').submit();">搜索</a>
|
||||
<a href="javascript:clearSearchCondition();" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
|
||||
<span class="fr shixun_webssh">
|
||||
<input type="checkbox"class="mr5 magic-checkbox" id="join_course_role_1">
|
||||
<label style="top:2px;padding-left:23px;" for="join_course_role_1"><span class="only_view">只看首页显示</span></label>
|
||||
</span>
|
||||
</div>
|
||||
<% end%>
|
||||
<div class="edu-con-bg01 mt15" id="managements_classroom_classment">
|
||||
<%= render :partial => "managements/classroom_classment_list" %>
|
||||
</div>
|
||||
<script>
|
||||
function clearSearchCondition(){
|
||||
$("#status").val("");
|
||||
$("#part").val("");
|
||||
$("#condition_status").val("uname")
|
||||
$("#Look_name").val("");
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_classroom_classment").html("<%= j(render :partial => "managements/classroom_classment_list") %>");
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#subject_authentication_list").html("<%= j( render :partial => "managements/subject_authorization_list" ) %>");
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#subject_shixun_<%= @subject.id %>").remove();
|
||||
|
|
@ -1,77 +1,37 @@
|
|||
<div class="edu-con-top clearfix mb20 xmt10">
|
||||
<%= form_tag(url_for(depart_managements_path), :id => "depart_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix mb20 xmt10">
|
||||
<input class="fl task-form-20 task-height-30 ml35" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" onkeyup="myFunction()">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt2" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt2" onclick="$('#depart_search').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2" id="clear_contents">清除</a>
|
||||
<div class="clearfix mb15 d-none" style="display: none;" >
|
||||
<ul class="fl task-form-20 task-height-30 ml30 w230" style="overflow-y:auto;" id="search_not_teachers_list">
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<a href="javascript:void(0);" class="pop_close task-btn mb10" style="margin-top: 20px;" onclick="reset_input();">取消</a>
|
||||
<a href="javascript:void(0);" class="task-btn task-btn-blue" style="margin-top: 20px;" onclick="submit_add_collaborators_form()">确定</a>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--<div class="clearfix mb15 d-none" style="display: none;" >-->
|
||||
<!--<ul class="fl task-form-20 task-height-30 ml30 w230" style="overflow-y:auto;" id="search_not_teachers_list">-->
|
||||
<!--<li class="clearfix">-->
|
||||
<!--<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >-->
|
||||
<!--<label for="choose_course_teacher_4">-->
|
||||
<!--<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>-->
|
||||
<!--<span class="fl color-grey span2 ml10">教授</span>-->
|
||||
<!--</label>-->
|
||||
<!--</li>-->
|
||||
<!--<li class="clearfix">-->
|
||||
<!--<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >-->
|
||||
<!--<label for="choose_course_teacher_4">-->
|
||||
<!--<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>-->
|
||||
<!--<span class="fl color-grey span2 ml10">教授</span>-->
|
||||
<!--</label>-->
|
||||
<!--</li>-->
|
||||
<!--<li class="clearfix">-->
|
||||
<!--<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >-->
|
||||
<!--<label for="choose_course_teacher_4">-->
|
||||
<!--<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>-->
|
||||
<!--<span class="fl color-grey span2 ml10">教授</span>-->
|
||||
<!--</label>-->
|
||||
<!--</li>-->
|
||||
<!--<a href="javascript:clearSearchCondition();" class="pop_close task-btn mb10" style="margin-top: 20px;">取消</a>-->
|
||||
<!--<a href="javascript:void(0);" class="task-btn task-btn-blue" style="margin-top: 20px;" onclick="submit_add_collaborators_form()">确定</a>-->
|
||||
<!--</ul>-->
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="25%" class="edu-txt-left">部门名称</th>
|
||||
<th width="30%" class="edu-txt-left">单位名称</th>
|
||||
<th width="15%"class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th width=""></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @apply_status.each do |apply| %>
|
||||
<tr>
|
||||
<td><%= apply.id %></td>
|
||||
<td class="edu-txt-left"> <%= apply.name %></td>
|
||||
<td class="edu-txt-left"> <%= apply.school.name %></td>
|
||||
<td > <%= format_date(apply.created_at) %></td>
|
||||
<td class="center">
|
||||
<%= link_to( l(:label_approve), { :controller => 'admin', :action => 'approve_applied_departments', :id => apply.id }, :class => "application-default-link" ) %>
|
||||
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_departments', :id => apply.id, :tip => 'unapplied' },:method => :delete, :confirm => l(:text_are_you_sure), :class => "application-default-link") %>
|
||||
<%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true, :class => "application-default-link" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @apply_status_pages, @apply_status_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% end%>
|
||||
<div class="edu-con-bg01 mt15" id="managements_user_list">
|
||||
<%= render :partial => "managements/depart_list" %>
|
||||
</div>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_user_list").html("<%= j( render :partial => "managements/depart_list" ) %>");
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
<%= form_tag(url_for(departments_managements_path),:id=>"department_search",:method => "post",:remote=>true) do %>
|
||||
<div class="edu-con-top clearfix mb20 xmt10">
|
||||
<input class="fl task-form-20 task-height-30 ml35" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" onkeyup="myFunction()">
|
||||
<a href="#" class="task-btn task-btn-green fr mt6 r6" >创建</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt2" onclick="$('#department_search').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2" id="clear_contents">清除</a>
|
||||
<a href="#" class="task-btn task-btn-green fr mt6 mr30" >创建</a>
|
||||
<div class="clearfix mb15 d-none" style="display: none;" >
|
||||
<ul class="fl task-form-20 task-height-30 ml30 w230" style="overflow-y:auto;" id="search_not_teachers_list">
|
||||
<li class="clearfix">
|
||||
|
|
@ -30,37 +33,7 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="30%" class="edu-txt-left">部门名称</th>
|
||||
<th width="15%">用户数</th>
|
||||
<th width="15%">已认证职业</th>
|
||||
<th width="20%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @department.each do |department| %>
|
||||
<tr>
|
||||
<td><%=department.id %></td>
|
||||
<td class="edu-txt-left"><%=department.name %></td>
|
||||
<td><%= UserExtensions.where(:school_id => department.id).count %></td>
|
||||
<td>3</td>
|
||||
<td><%= format_time department.created_at %></td>
|
||||
<td><a href="javascript:void(0);"><i class="fa fa-edit font-16"></i> 修改</a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<% end %>
|
||||
<div class="edu-con-bg01 mt15" id="managements_departments_list">
|
||||
<%= render :partial => "managements/departments_list" %>
|
||||
</div>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_departments_list").html("<%= j( render :partial => "managements/departments_list" ) %>")
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
<%= form_tag(url_for(departments_part_managements_path),:id=>"department_part_search",:method => "post",:remote=>true) do %>
|
||||
<div class="edu-con-top clearfix mb20 xmt10">
|
||||
<input class="fl task-form-20 task-height-30 ml35" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" onkeyup="myFunction()">
|
||||
<a href="#" class="task-btn task-btn-green fr mt6 r6" >新建单位</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt2" onclick="$('#department_part_search').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2" id="clear_contents">清除</a>
|
||||
<a href="#" class="task-btn task-btn-green fr mt6 mr30" >新建单位</a>
|
||||
<div class="clearfix mb15 d-none" style="display: none;" >
|
||||
<ul class="fl task-form-20 task-height-30 ml30 w230" style="overflow-y:auto;" id="search_not_teachers_list">
|
||||
<li class="clearfix">
|
||||
|
|
@ -30,63 +33,7 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">ID</th>
|
||||
<th width="6%">LOGO</th>
|
||||
<th width="18%" class="edu-txt-left">单位名称</th>
|
||||
<th width="10%">地区</th>
|
||||
<th width="19%" class="edu-txt-left">详细地址</th>
|
||||
<th style="width: 6%;" >用户数</th>
|
||||
<th width="6%">部门数</th>
|
||||
<th width="15%"class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @schools.each do |schools| %>
|
||||
<!td style="text-align:center;vertical-align: middle;">
|
||||
<!%= schools.id %>
|
||||
<td><%= schools.id %></td>
|
||||
<td>
|
||||
<%= image_tag(schools.logo_link,width:40,height:40) %>
|
||||
<!%= schools.name %>
|
||||
</td>
|
||||
<td class="edu-txt-left">
|
||||
<span>
|
||||
<%= link_to schools.name,"http://#{Setting.host_name}/?schools_id=#{schools.id}" %>
|
||||
</span>
|
||||
</td>
|
||||
<td><%= schools.province %></td>
|
||||
<td class="edu-txt-left"><%= schools.address == nil ? "--" :schools.address %></td>
|
||||
<td><%= UserExtensions.where(:school_id => schools.id).count %></td>
|
||||
<td><%= schools.departments.count %></td>
|
||||
<td><%= format_time schools.created_at %></td>
|
||||
<td>
|
||||
<i class="fa fa-edit font-16"></i>
|
||||
<%= link_to("修改", upload_logo_school_path(schools.id,:schools_name => @schools_name), :class => 'icon icon-copy') %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @schools_pages, @schools_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<% end %>
|
||||
<div class="edu-con-bg01 mt15" id="managements_department_part_list">
|
||||
<%= render :partial => "managements/departments_part_list" %>
|
||||
</div>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_department_part_list").html("<%= j( render :partial => "managements/departments_part_list" ) %>")
|
||||
|
|
@ -1,8 +1,20 @@
|
|||
<div class="edu-class-container mb15">
|
||||
<div class="edu-con-top clearfix">
|
||||
<p class="ml15 fl color-grey">身份认证</p>
|
||||
</div>
|
||||
<div class="edu-con-bg01 mt15">
|
||||
<!--<div class="edu-con-top clearfix">-->
|
||||
<!--<!–<p class="ml15 fl color-grey"><span><a href="">身份认证</a></span><span style="margin: 0 40px">|</span><span><a href="">职业认证</a></span></p>–>-->
|
||||
<!--<ul id="edu-tab-nav-auth">-->
|
||||
<!--<li class="edu-new-tab-hover new-tab-nav">-->
|
||||
<!--<%#= link_to "身份认证", {:controller => "managements", :action => "", :type => 0}, :class => "tab_type", :remote => true %>-->
|
||||
<!--</li>-->
|
||||
<!--<!–<li class="new-tab-nav">–>-->
|
||||
<!--<!–<%#= link_to "职业认证", {:controller => "managements", :action => "", :type => 0}, :class => "tab_type", :remote => true %>–>-->
|
||||
<!--<!–</li>–>-->
|
||||
<!--</ul>-->
|
||||
<!--<div class="cl"></div>-->
|
||||
|
||||
<!--</div>-->
|
||||
<div>
|
||||
<!--身份认证-->
|
||||
<div class="edu-con-bg01 mt15 authentization">
|
||||
<div class="edu-tab clearfix mb20">
|
||||
<ul id="edu-tab-nav">
|
||||
<li id="edu-tab-nav-1" class="edu-new-tab-hover new-tab-nav" onclick="HoverLi(1);">
|
||||
|
|
@ -45,6 +57,51 @@
|
|||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--职业认证-->
|
||||
<div class="edu-con-bg01 mt15 undis authentization">
|
||||
<div class="edu-tab clearfix mb20">
|
||||
<ul id="edu-tab-nav">
|
||||
<li id="edu-tab-nav-1" class="edu-new-tab-hover new-tab-nav" onclick="HoverLi(1);">
|
||||
<%= link_to "待审批" %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2);">
|
||||
<%= link_to "已审批" %>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<div id="edu-tab-con-1">
|
||||
<div class="mt10">
|
||||
<div class="edu-position fr task-form-30 mb10 mr15">
|
||||
<input class="task-form-100 panel-box-sizing" placeholder="输入真实姓名进行检索" type="text">
|
||||
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt10" id="search"><i class="fa fa-search"></i></a>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<div id="authentication_list">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edu-tab-con-2" class="undis">
|
||||
<div class="mt10">
|
||||
<p class="fl task-form-60 mt8 ml15">
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5 active">全部</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5">同意</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5">拒绝</a>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<input class="task-form-100 panel-box-sizing" placeholder="输入真实姓名进行检索" type="text">
|
||||
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt15"><i class="fa fa-search"></i></a>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<!--<div id="audit_authentication_list">-->
|
||||
<!--</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -132,5 +189,10 @@
|
|||
data: { name: iName, type: type}
|
||||
});
|
||||
});
|
||||
|
||||
// 身份认证和职业认证
|
||||
$("#edu-tab-nav-auth li").click(function(){
|
||||
var index=$(this).index();
|
||||
$("#edu-tab-nav-auth li").eq(index).addClass("edu-new-tab-hover").siblings().removeClass("edu-new-tab-hover");
|
||||
$(".authentization").eq(index).removeClass("undis").siblings().addClass("undis");
|
||||
})
|
||||
</script>
|
||||
|
|
@ -17,40 +17,8 @@
|
|||
<div id="edu-tab-con-1">
|
||||
<div class="mt10">
|
||||
<div class="cl"></div>
|
||||
<div id="authentication_list" class="auth_table">
|
||||
<% @subject.each do |subject| %>
|
||||
<div class="admin-con-box clearfix">
|
||||
<% user = subject.user %>
|
||||
<%= image_tag(url_to_avatar(user),:class => "fl with10 edu-ad-user", :alt => "头像", :width => "50", :height => "50" ) %>
|
||||
|
||||
<div class="fl with90">
|
||||
<ul>
|
||||
<li class="clearfix mb5">
|
||||
<%= link_to user.show_real_nam, user_path(user), :class => "fl" %>
|
||||
<a href="javascript:void(0);" class="fr color-orange">拒绝</a>
|
||||
<a href="javascript:void(0);" class="fr mr15 color-orange" data-remote="true">同意</a>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<b>:<%=link_to subject.name, subject_path(subject), :target => "_blank" %></b>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<span><%= subject.stages.count %> 阶段</span><span class="ml30"><%= subject.stage_shixuns.count %> 实训</span><span class="ml30"><%= subject.subject_challenges %> 关卡</span>
|
||||
</li>
|
||||
<div class="undis">
|
||||
<li class="clearfix edu-form-border mb10">
|
||||
<label class="edu-form-label fl">原因:</label>
|
||||
<input type="text" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="我得说点儿什么,最多200个字符">
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<a href="javascript:void(0);" class="task-btn task-btn-blue fr">确定</a>
|
||||
<a href="javascript:void(0);" class="task-btn fr mr10">取消</a>
|
||||
</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
<div id="subject_authentication_list" class="auth_table">
|
||||
<%= render :partial => "managements/subject_authorization_list" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -65,28 +33,8 @@
|
|||
<input class="task-form-100 panel-box-sizing" placeholder="输入实训名称进行检索" type="text" id="shixun_search_name">
|
||||
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt10" id="shixun_search"><i class="fa fa-search"></i></a>
|
||||
</div>
|
||||
<div class="admin-con-box clearfix">
|
||||
<a href="#" target="_blank" class="fl with10 edu-ad-user">
|
||||
<img alt="头像" class="fl with10 edu-ad-user" height="50" src="/images/avatars/User/0" width="50">
|
||||
</a>
|
||||
|
||||
<div class="fl with90">
|
||||
<ul>
|
||||
<li class="clearfix mb5">
|
||||
<a href="#" class="fl">国防科技大学—瑶瑶</a>
|
||||
<a class=" task-btn task-btn-green fr ">已同意</a>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<a href="#" target="_blank"><b>C++程序设计</b></a>
|
||||
</li>
|
||||
<li class="clearfix mb10">
|
||||
<span>5 阶段</span><span class="ml30">8 实训</span><span class="ml30">15 关卡</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<div class="auth_table" id="subject_authorization_list"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
|
|
@ -94,9 +42,26 @@
|
|||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function reject_shixun_authentication_reason(nThis){
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
function reject_subject_authentication_reason(nThis){
|
||||
var reason = $(nThis).parent().parent().find('div');
|
||||
reason.find("input").val("");
|
||||
reason.toggle();
|
||||
}
|
||||
/* -------------------------- 取消 ------------------------------------ */
|
||||
function subject_hide_reject_reason(nThis){
|
||||
var reason = $(nThis).parent().parent();
|
||||
reason.find("input").val("");
|
||||
reason.hide();
|
||||
}
|
||||
|
||||
/* ------------------------- 提交拒绝原因 --------------------------------- */
|
||||
function subject_submit_reject_reason(id, nThis){
|
||||
var nReason = $(nThis).parent().parent();
|
||||
var reason = nReason.find("input").val();
|
||||
$.ajax({
|
||||
url: '<%= deal_subject_authorization_managements_path %>',
|
||||
data: {apply_id: id, reject_reason: reason, type: 0}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
@ -5,13 +5,13 @@ var nTabNav_2 = $("#edu-tab-nav-2");
|
|||
var nAudit = $("#subject_all_authentication").parent();
|
||||
|
||||
<% if @type == 0 %>
|
||||
$("#authentication_list").html("<%= j( render :partial => "managements/shixun_authorization_list" ) %>");
|
||||
$("#subject_authentication_list").html("<%= j( render :partial => "managements/subject_authorization_list" ) %>");
|
||||
nTabNav_1.addClass("edu-new-tab-hover");
|
||||
nTabNav_2.removeClass("edu-new-tab-hover");
|
||||
nTabIcon_1.show();
|
||||
nTabIcon_2.hide();
|
||||
<% else %>
|
||||
$("#shixun_authentication_list").html("<%= j( render :partial => "managements/shixun_authorization_passed_list" ) %>");
|
||||
$("#subject_authorization_list").html("<%= j( render :partial => "managements/subject_authorization_passed_list" ) %>");
|
||||
nTabNav_1.removeClass("edu-new-tab-hover");
|
||||
nTabNav_2.addClass("edu-new-tab-hover");
|
||||
nTabIcon_1.hide();
|
||||
|
|
|
|||
|
|
@ -1,137 +1,11 @@
|
|||
<%= form_tag(url_for(unit_managements_path), :id => "unit", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix mb20 xmt10">
|
||||
<input class="fl task-form-20 task-height-30 ml35" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" onkeyup="myFunction()">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt-2" onclick="$('#management_search_user').submit();">搜索</a>
|
||||
<input class="fl task-form-20 task-height-30 ml35" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt-2" onclick="$('#unit').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2" id="clear_contents">清除</a>
|
||||
<div class="clearfix mb15 d-none" style="display: none;" >
|
||||
<ul class="fl task-form-20 task-height-30 ml30 w230" style="overflow-y:auto;" id="search_not_teachers_list">
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
<input id="choose_course_teacher_4" type="checkbox" class="fl mt7 mr5 magic-checkbox" name="membership[user_ids][]" >
|
||||
<label for="choose_course_teacher_4">
|
||||
<a href="#" target="_blank" class="task-hide fl span1 edu-txt-w140">wangyujun</a>
|
||||
<span class="fl color-grey span2 ml10">教授</span>
|
||||
</label>
|
||||
</li>
|
||||
<a href="javascript:void(0);" class="pop_close task-btn mb10" style="margin-top: 20px;" >取消</a>
|
||||
<a href="javascript:void(0);" class="task-btn task-btn-blue" style="margin-top: 20px;" >确定</a>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<% end%>
|
||||
<div class="edu-con-bg01 mt15" id="managements_unit_list">
|
||||
<%= render :partial => "managements/unit_list" %>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="9%">序号</th>
|
||||
<th width="20%" class="edu-txt-left">单位名称</th>
|
||||
<th width="15%">地区</th>
|
||||
<th width="20%" class="edu-txt-left">详细地址</th>
|
||||
<th width="10%">申请者</th>
|
||||
<th width="10%">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
|
||||
<th width="10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @apply_status.each do |apply| %>
|
||||
<tr>
|
||||
<td> <%= apply.id %></td>
|
||||
<td class="edu-txt-left"><%= apply.name %></span></td>
|
||||
<td>
|
||||
<span ondblclick = "show_edit_school_province('<%= apply.id %>');" id="apply_province_<%= apply.id %>">
|
||||
<%= (apply.province.nil? ? "" : apply.province) + (apply.city.nil? ? "" : apply.city) %>
|
||||
</span>
|
||||
<select onchange="showcity(this.value, document.getElementById('schoolCity_<%=apply.id%>'));edit_school_province('<%= edit_apply_province_school_path(apply.id)%>','<%= apply.id %>');" name="province" id="school_province_edit_<%=apply.id%>" class="fl" style="width:55px; height:20px; display: none">
|
||||
<option value="北京">北京</option>
|
||||
<option value="上海">上海</option>
|
||||
<option value="广东">广东</option>
|
||||
<option value="江苏">江苏</option>
|
||||
<option value="浙江">浙江</option>
|
||||
<option value="重庆">重庆</option>
|
||||
<option value="安徽">安徽</option>
|
||||
<option value="福建">福建</option>
|
||||
<option value="甘肃">甘肃</option>
|
||||
<option value="广西">广西</option>
|
||||
<option value="贵州">贵州</option>
|
||||
<option value="海南">海南</option>
|
||||
<option value="河北">河北</option>
|
||||
<option value="黑龙江">黑龙江</option>
|
||||
<option value="河南">河南</option>
|
||||
<option value="湖北">湖北</option>
|
||||
<option value="湖南">湖南</option>
|
||||
<option value="江西">江西</option>
|
||||
<option value="吉林">吉林</option>
|
||||
<option value="辽宁">辽宁</option>
|
||||
<option value="内蒙古">内蒙古</option>
|
||||
<option value="宁夏">宁夏</option>
|
||||
<option value="青海">青海</option>
|
||||
<option value="山东">山东</option>
|
||||
<option value="山西">山西</option>
|
||||
<option value="陕西">陕西</option>
|
||||
<option value="四川">四川</option>
|
||||
<option value="天津">天津</option>
|
||||
<option value="新疆">新疆</option>
|
||||
<option value="西藏">西藏</option>
|
||||
<option value="云南">云南</option>
|
||||
<option value="香港">香港特别行政区</option>
|
||||
<option value="澳门">澳门特别行政区</option>
|
||||
<option value="台湾">台湾</option>
|
||||
<option value="海外">海外</option>
|
||||
</select>
|
||||
<select onchange="edit_school_province('<%= edit_apply_province_school_path(apply.id)%>','<%= apply.id %>');" name="city" id="schoolCity_<%=apply.id%>" class="fl ml5" style="width:55px; height:20px; display: none"></select>
|
||||
|
||||
</td>
|
||||
<td class="edu-txt-left">
|
||||
<span title="双击可编辑" ondblclick = "show_edit_school_address('<%= apply.id %>');" id="apply_address_<%= apply.id %>"><%= apply.address %></span>
|
||||
<textarea style="display: none; width:100px; height:16px; border:1px solid #ddd; outline:none; padding:0 0 0 5px; resize:none; overflow:hidden;" placeholder="请编辑单位地址" id="school_address_edit_<%=apply.id%>" onblur="edit_school_address('<%= edit_apply_address_school_path(apply.id)%>','<%= apply.id %>');"><%= apply.address %></textarea>
|
||||
</td>
|
||||
<td>
|
||||
<% user = User.where("id=?", apply.user_id).first %>
|
||||
<% unless user.nil? %>
|
||||
<%=link_to user.show_name, user_path(user),:target => '_blank', :class => "application-default-link" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= format_date(apply.created_at) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to( l(:label_approve), { :controller => 'admin', :action => 'approve_applied_schools', :id => apply.id }, :class => "application-default-link" ) %>
|
||||
<%= link_to( l(:button_delete), { :controller => 'admin', :action => 'delete_applied_schools', :id => apply.id, :tip => 'unapplied' },:method => :delete, :confirm => l(:text_are_you_sure), :class => "application-default-link") %>
|
||||
<%=link_to '更改', admin_all_schools_path(:school_id =>apply.id), :remote => true, :class => "application-default-link" %>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center;" class="new_expand">
|
||||
<div class="pages_user_show" style="width:auto; display:inline-block;margin: 18px 0;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @apply_status_pages, @apply_status_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// var find=$("#shixun_Look_name").val();
|
||||
function myFunction(){
|
||||
if($("#shixun_Look_name").val()==""){
|
||||
$(".d-none").css("display","none");
|
||||
}else{
|
||||
$(".d-none").css("display","block");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_unit_list").html("<%= j(render :partial => "managements/unit_list") %>");
|
||||
|
|
@ -1,32 +1,32 @@
|
|||
<div class="edu-class-top mt15 clearfix">
|
||||
<%= form_tag(url_for(users_managements_path), :id => "managements_users_search", :method => "post", :remote => true) do %>
|
||||
<div class=" edu-position edu-admin-select fl mr10" style="width:140px;" >
|
||||
<p>全部状态<i class="fa fa-caret-down ml10" ></i></p>
|
||||
<input type="hidden" name="user_status" value="0">
|
||||
<ul class="edu-admin-option">
|
||||
<li data-val="0">全部状态</li>
|
||||
<li data-val="1">活动的(<%= query_user_status_num 1 %>)</li>
|
||||
<li data-val="2">未激活(<%= query_user_status_num 2 %>)</li>
|
||||
<li data-val="3">已锁定(<%= query_user_status_num 3 %>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="edu-position edu-admin-select fl mr10" style="width:150px;">
|
||||
<p>真实姓名搜索<i class="fa fa-caret-down ml10"></i></p>
|
||||
<input type="hidden" name="research_condition" value="name">
|
||||
<ul class="edu-admin-option">
|
||||
<li data-val="name">真实姓名搜索</li>
|
||||
<li data-val="mail">邮箱地址搜索</li>
|
||||
<li data-val="phone">手机号码搜索</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fl with30">
|
||||
<input type="text" class="fl task-form-60 task-height-40 panel-box-sizing" name="research_contents" placeholder="输入关键字进行搜索">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt5" onclick="$('#managements_users_search').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt5" id="clear_contents">清除</a>
|
||||
</div>
|
||||
<!-- <a href="javascript:void(0);" class="fr task-btn task-btn-green mt5">新建用户</a>-->
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="edu-con-bg01 mt15" id="managements_user_list">
|
||||
<%= render :partial => "managements/user_list" %>
|
||||
<div class="edu-class-top mt15 clearfix">
|
||||
<%= form_tag(url_for(users_managements_path), :id => "managements_users_search", :method => "post", :remote => true) do %>
|
||||
<div class=" edu-position edu-admin-select fl mr10" style="width:140px;" >
|
||||
<p>全部状态<i class="fa fa-caret-down ml10" ></i></p>
|
||||
<input type="hidden" name="user_status" value="0">
|
||||
<ul class="edu-admin-option">
|
||||
<li data-val="0">全部状态</li>
|
||||
<li data-val="1">活动的(<%= query_user_status_num 1 %>)</li>
|
||||
<li data-val="2">未激活(<%= query_user_status_num 2 %>)</li>
|
||||
<li data-val="3">已锁定(<%= query_user_status_num 3 %>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="edu-position edu-admin-select fl mr10" style="width:150px;">
|
||||
<p>真实姓名搜索<i class="fa fa-caret-down ml10"></i></p>
|
||||
<input type="hidden" name="research_condition" value="name">
|
||||
<ul class="edu-admin-option">
|
||||
<li data-val="name">真实姓名搜索</li>
|
||||
<li data-val="mail">邮箱地址搜索</li>
|
||||
<li data-val="phone">手机号码搜索</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fl with30">
|
||||
<input type="text" class="fl task-form-60 task-height-40 panel-box-sizing" name="research_contents" placeholder="输入关键字进行搜索">
|
||||
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt5" onclick="$('#managements_users_search').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt5" id="clear_contents">清除</a>
|
||||
</div>
|
||||
<!-- <a href="javascript:void(0);" class="fr task-btn task-btn-green mt5">新建用户</a>-->
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="edu-con-bg01 mt15" id="managements_user_list">
|
||||
<%= render :partial => "managements/user_list" %>
|
||||
</div>
|
||||
|
|
@ -154,7 +154,17 @@ RedmineApp::Application.routes.draw do
|
|||
get 'approve'
|
||||
get 'trial_authorization', :as => 'trial_authorization'
|
||||
get 'shixun_authorization'
|
||||
get 'subject_authorization'
|
||||
match 'classroom', :via => [:get, :post]
|
||||
match 'departments', :via => [:get, :post]
|
||||
match 'departments_part', :via => [:get, :post]
|
||||
match 'depart', :via => [:get, :post]
|
||||
match 'unit', :via => [:get, :post]
|
||||
match 'classroom_classment', :via => [:get, :post]
|
||||
match 'class_shixuns', :via => [:get, :post]
|
||||
match 'class_publish_shixuns', :via => [:get, :post]
|
||||
get 'deal_shixun_authorization'
|
||||
get 'deal_subject_authorization'
|
||||
get 'batch_authorization', :as => 'batch_authorization'
|
||||
match 'search_user', :via => [:get, :post]
|
||||
match 'affirm_cancel_auth', :via => [:get, :post]
|
||||
|
|
@ -167,6 +177,7 @@ RedmineApp::Application.routes.draw do
|
|||
match 'users_authorization_agree'
|
||||
match 'users_authorization_cancel'
|
||||
get 'update_webssh'
|
||||
get 'delete_subject'
|
||||
end
|
||||
end
|
||||
# Enable Grack support
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ $(function(){
|
|||
success: function(data){
|
||||
if (data.result == 1){
|
||||
$("#discipline_category_id").html("<option value='0'>选择课程所属学科门类</option>");
|
||||
$("#first_level_discipline_id").html("<option value='0'>选择课程所属一级学科</option>");
|
||||
$("#major_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>");
|
||||
}
|
||||
|
|
@ -27,6 +29,7 @@ $(function(){
|
|||
success: function(data){
|
||||
if (data.result == 1){
|
||||
$("#first_level_discipline_id").html("<option value='0'>选择课程所属一级学科</option>");
|
||||
$("#major_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>");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ select.header-search-select{ border:none; font-size:14px; padding:5px; backgroun
|
|||
.task-user-dropdown-nav li:hover{ background:#eee;}
|
||||
.task-line{ display: block; height: 1px!important; line-height: 1px!important; border-bottom:1px solid #eee; margin:0;}
|
||||
.inner-nav-user:hover .task-user-dropdown{ display:block;}
|
||||
dropdown{display: inline-block; height:30px; line-height:1.9; font-size:12px; }
|
||||
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 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; height:22px;}
|
||||
|
|
@ -260,8 +260,8 @@ img.edu-nodata-img{ width:200px; margin:50px auto 20px; display: block;}
|
|||
|
||||
/* new tab */
|
||||
.edu-tab{ width: 100%; background:#fff;}
|
||||
#edu-tab-nav{height:47px;background: #fff; border-bottom:2px solid #5faee3;}
|
||||
#edu-tab-nav li.new-tab-nav {float:left; width: 150px; text-align:center;height:48px;line-height:48px; }
|
||||
#edu-tab-nav,#edu-tab-nav-auth{height:47px;background: #fff; border-bottom:2px solid #5faee3;}
|
||||
#edu-tab-nav li.new-tab-nav,#edu-tab-nav-auth li.new-tab-nav {float:left; width: 150px; text-align:center;height:48px;line-height:48px; }
|
||||
#edu-tab-nav li a{font-size:14px; }
|
||||
#edu-user-tab-nav{height:47px;background: #f5f5f5; border-bottom:2px solid #FF6610;}
|
||||
#edu-user-tab-nav li.new-tab-nav {float:left; width: 150px; text-align:center;height:48px;line-height:48px; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue