Merge branch 'develop' into dev_daiao
This commit is contained in:
commit
2064dfb502
|
|
@ -1,39 +1,39 @@
|
|||
*.swp
|
||||
/.project
|
||||
/.idea
|
||||
/.bundle
|
||||
*.swp
|
||||
/config/database.yml
|
||||
/config/configuration.yml
|
||||
/config/additional_environment.rb
|
||||
/config/oneapm.yml
|
||||
/config/environments/production.rb
|
||||
|
||||
|
||||
/files/*
|
||||
/log/*
|
||||
/public/tmp/*
|
||||
/tmp/*
|
||||
/public/cache/*
|
||||
/config/newrelic.yml
|
||||
/public/images/avatars/*
|
||||
/db/schema.rb
|
||||
/Gemfile.lock
|
||||
/lib/plugins/acts_as_versioned/test/debug.log
|
||||
.rbenv-gemsets
|
||||
.DS_Store
|
||||
public/api_doc/
|
||||
/.metadata
|
||||
vendor/cache
|
||||
/files
|
||||
/public/images/avatars
|
||||
/public/files
|
||||
/tags
|
||||
/config/initializers/gitlab_config.rb
|
||||
1234567
|
||||
public/javascripts/wechat/node_modules/
|
||||
.ruby-version
|
||||
.access_token
|
||||
tmux*.log
|
||||
config/wechat.yml
|
||||
config/oneapm.yml
|
||||
*.swp
|
||||
/.project
|
||||
/.idea/*
|
||||
/.bundle
|
||||
*.swp
|
||||
/config/database.yml
|
||||
/config/configuration.yml
|
||||
/config/additional_environment.rb
|
||||
/config/oneapm.yml
|
||||
/config/environments/production.rb
|
||||
|
||||
|
||||
/files/*
|
||||
/log/*
|
||||
/public/tmp/*
|
||||
/tmp/*
|
||||
/public/cache/*
|
||||
/config/newrelic.yml
|
||||
/public/images/avatars/*
|
||||
/db/schema.rb
|
||||
/Gemfile.lock
|
||||
/lib/plugins/acts_as_versioned/test/debug.log
|
||||
.rbenv-gemsets
|
||||
.DS_Store
|
||||
public/api_doc/
|
||||
/.metadata
|
||||
vendor/cache
|
||||
/files
|
||||
/public/images/avatars
|
||||
/public/files
|
||||
/tags
|
||||
/config/initializers/gitlab_config.rb
|
||||
1234567
|
||||
public/javascripts/wechat/node_modules/
|
||||
.ruby-version
|
||||
.access_token
|
||||
tmux*.log
|
||||
config/wechat.yml
|
||||
config/oneapm.yml
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -42,6 +42,17 @@ class SubjectsController < ApplicationController
|
|||
redirect_to subject_path(subject)
|
||||
end
|
||||
|
||||
def edit
|
||||
render :layout => "base_edu"
|
||||
end
|
||||
|
||||
def update
|
||||
if params[:subject]
|
||||
subject = @subject.update_attributes(:name => params[:subject][:name], :description => params[:subject][:description])
|
||||
end
|
||||
redirect_to subject_path(@subject)
|
||||
end
|
||||
|
||||
def update_attr
|
||||
if params[:name]
|
||||
@subject.update_attributes(:name => params[:name])
|
||||
|
|
@ -88,7 +99,6 @@ class SubjectsController < ApplicationController
|
|||
end
|
||||
|
||||
def publish
|
||||
@subject.update_attributes(:status => 1)
|
||||
apply = ApplyAction.where(:container_type => "ApplySubject", :container_id => @subject.id).order("created_at desc").first
|
||||
if apply && apply.status == 0
|
||||
@status = 0
|
||||
|
|
@ -96,6 +106,7 @@ class SubjectsController < ApplicationController
|
|||
if Shixun.where(:id => @subject.stage_shixuns.map(&:shixun_id), :status => [0, 1]).count > 0
|
||||
@status = 2
|
||||
else
|
||||
@subject.update_attributes(:status => 1)
|
||||
ApplyAction.create(:container_type => "ApplySubject", :container_id => @subject.id, :user_id => User.current.id, :status => 0)
|
||||
notes = User.current.show_name.to_s + " 申请发布课程实训:<a href='#{subject_path(@subject)}'>#{@subject.name}</a>"
|
||||
JournalsForMessage.create(:jour_id => 1, :jour_type => 'Principal', :user_id => User.current.id, :notes => notes, :private => 1, :reply_id => 0)
|
||||
|
|
|
|||
|
|
@ -225,6 +225,10 @@ module ApplicationHelper
|
|||
myshixun = Myshixun.where(:shixun_id => shixun.id, :user_id => user.id).first
|
||||
if myshixun.nil?
|
||||
0
|
||||
elsif !myshixun.nil? && myshixun.games.select{|game| game.status == 2}.count == 0
|
||||
-1
|
||||
elsif myshixun.games.select{|game| game.status == 0}.count > 0
|
||||
[myshixun.games.select{|game| game.status == 0}.count + 1]
|
||||
else
|
||||
myshixun.games.select{|game| game.status == 2}.count
|
||||
end
|
||||
|
|
@ -1972,8 +1976,7 @@ module ApplicationHelper
|
|||
title << @user.show_name
|
||||
end
|
||||
elsif @syllabus
|
||||
title << (@syllabus.title.nil? ? "在线课堂" : @syllabus.title)
|
||||
else
|
||||
title << (@syllabus.title.nil? ? "在线课堂" : @syllabus.title) else
|
||||
title << (User.current.id == 2 ? "未登录" : User.current.try(:realname))
|
||||
end
|
||||
# if first_page.nil? || first_page.web_title.nil?
|
||||
|
|
@ -5191,3 +5194,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
|
|
@ -1,10 +1,10 @@
|
|||
class School < ActiveRecord::Base
|
||||
attr_accessible :name, :province,:pinyin
|
||||
has_many :courses
|
||||
has_many :departments, :dependent => :destroy
|
||||
|
||||
def to_s
|
||||
self.name.to_s
|
||||
end
|
||||
|
||||
end
|
||||
class School < ActiveRecord::Base
|
||||
default_scope :order => 'created_at desc'
|
||||
attr_accessible :name, :province,:pinyin
|
||||
has_many :courses
|
||||
has_many :departments, :dependent => :destroy
|
||||
|
||||
def to_s
|
||||
self.name.to_s
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,161 +1,165 @@
|
|||
# encoding: utf-8
|
||||
class Syllabus < ActiveRecord::Base
|
||||
include Redmine::SafeAttributes
|
||||
include ApplicationHelper
|
||||
#elasticsearch
|
||||
include Elasticsearch::Model
|
||||
#elasticsearch kaminari init
|
||||
Kaminari::Hooks.init
|
||||
Elasticsearch::Model::Response::Response.__send__ :include, Elasticsearch::Model::Response::Pagination::Kaminari
|
||||
settings index: { number_of_shards: 5 } do
|
||||
mappings dynamic: 'false' do
|
||||
indexes :title, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :description, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :updated_at, index:"not_analyzed", type:'date'
|
||||
end
|
||||
end
|
||||
acts_as_taggable
|
||||
acts_as_attachable
|
||||
has_many_kindeditor_assets :assets, :dependent => :destroy
|
||||
|
||||
belongs_to :user
|
||||
has_many :courses
|
||||
has_many :homework_banks
|
||||
has_many :reference_materials, :dependent => :destroy
|
||||
has_many :syllabus_update_records, :dependent => :destroy
|
||||
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
||||
has_many :syllabus_members, :dependent => :destroy
|
||||
has_many :praise_tread, as: :praise_tread_object, dependent: :destroy
|
||||
has_one :praise_tread_cache, as: :object, dependent: :destroy
|
||||
belongs_to :discipline_category
|
||||
belongs_to :first_level_discipline
|
||||
belongs_to :major
|
||||
attr_accessible :description, :user_id, :title, :eng_name, :syllabus_type, :credit, :hours, :theory_hours, :practice_hours, :applicable_major, :pre_course, :major_level, :discipline_category_id, :first_level_discipline_id, :major_id
|
||||
safe_attributes 'title','user', 'description', 'eng_name', 'syllabus_type', 'credit', 'hours', 'theory_hours', 'practice_hours', 'credit', 'applicable_major', 'pre_course', 'major_level', 'discipline_category_id', "first_level_discipline_id"
|
||||
|
||||
validates :title, :user_id, presence: true
|
||||
|
||||
after_update :update_syllabus_ealasticsearch_index
|
||||
after_create :create_syllabus_ealasticsearch_index
|
||||
before_destroy :delete_syllabus_ealasticsearch_index
|
||||
|
||||
scope :indexable,lambda { where(nil) }#用于elastic建索引的scope
|
||||
|
||||
scope :like, lambda {|arg|
|
||||
if arg.blank?
|
||||
where(nil)
|
||||
else
|
||||
pattern = "%#{arg.to_s.strip.downcase}%"
|
||||
where(" LOWER(title) LIKE :p ", :p => pattern)
|
||||
end
|
||||
}
|
||||
|
||||
def delete_kindeditor_assets
|
||||
delete_kindeditor_assets_from_disk self.id,OwnerTypeHelper::SYLLABUS
|
||||
end
|
||||
|
||||
def syllabus_major_level
|
||||
type = ""
|
||||
case self.major_level
|
||||
when 1
|
||||
type = "研究生"
|
||||
when 2
|
||||
type = "本科"
|
||||
when 3
|
||||
type = "专科"
|
||||
end
|
||||
type
|
||||
end
|
||||
|
||||
def syllabus_type_str
|
||||
type = ""
|
||||
case self.syllabus_type
|
||||
when 1
|
||||
type = "公共必修课"
|
||||
when 2
|
||||
type = "学科必修课"
|
||||
when 3
|
||||
type = "专业选修课"
|
||||
when 4
|
||||
type = "实践必修课"
|
||||
when 5
|
||||
type = "实践选修课"
|
||||
end
|
||||
type
|
||||
end
|
||||
|
||||
def syllabus_discipline_category
|
||||
self.discipline_category ? self.discipline_category.name : ''
|
||||
end
|
||||
|
||||
def syllabus_first_level_discipline
|
||||
self.first_level_discipline ? self.first_level_discipline.name : ''
|
||||
end
|
||||
|
||||
def syllabus_major
|
||||
self.major ? self.major.name : ''
|
||||
end
|
||||
|
||||
###添加回复
|
||||
def self.add_syllabus_jour(user, notes, id, root_id, options = {})
|
||||
syllabus = Syllabus.find(id)
|
||||
if options.count == 0
|
||||
jfm = syllabus.journals_for_messages.build(:user_id => user.id, :notes => notes, :reply_id => 0, :root_id => root_id)
|
||||
else
|
||||
jfm = syllabus.journals_for_messages.build(options)
|
||||
end
|
||||
jfm.save
|
||||
jfm
|
||||
end
|
||||
|
||||
def create_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
self.__elasticsearch__.index_document
|
||||
end
|
||||
|
||||
def update_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
begin
|
||||
self.__elasticsearch__.update_document
|
||||
rescue => e
|
||||
self.__elasticsearch__.index_document
|
||||
end
|
||||
end
|
||||
|
||||
def delete_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
begin
|
||||
self.__elasticsearch__.delete_document
|
||||
rescue => e
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
def self.search(query)
|
||||
__elasticsearch__.search(
|
||||
{
|
||||
query: {
|
||||
multi_match: {
|
||||
query: query,
|
||||
type:"most_fields",
|
||||
operator: "or",
|
||||
fields: ['title']
|
||||
}
|
||||
},
|
||||
sort: {
|
||||
_score:{order: "desc" },
|
||||
updated_at:{order:"desc"}
|
||||
|
||||
},
|
||||
highlight: {
|
||||
pre_tags: ['<span class="c_red">'],
|
||||
post_tags: ['</span>'],
|
||||
fields: {
|
||||
title: {},
|
||||
description: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
# encoding: utf-8
|
||||
class Syllabus < ActiveRecord::Base
|
||||
include Redmine::SafeAttributes
|
||||
include ApplicationHelper
|
||||
#elasticsearch
|
||||
include Elasticsearch::Model
|
||||
#elasticsearch kaminari init
|
||||
Kaminari::Hooks.init
|
||||
Elasticsearch::Model::Response::Response.__send__ :include, Elasticsearch::Model::Response::Pagination::Kaminari
|
||||
settings index: { number_of_shards: 5 } do
|
||||
mappings dynamic: 'false' do
|
||||
indexes :title, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :description, analyzer: 'smartcn',index_options: 'offsets'
|
||||
indexes :updated_at, index:"not_analyzed", type:'date'
|
||||
end
|
||||
end
|
||||
acts_as_taggable
|
||||
acts_as_attachable
|
||||
has_many_kindeditor_assets :assets, :dependent => :destroy
|
||||
|
||||
belongs_to :user
|
||||
has_many :courses
|
||||
has_many :homework_banks
|
||||
has_many :reference_materials, :dependent => :destroy
|
||||
has_many :syllabus_update_records, :dependent => :destroy
|
||||
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
||||
has_many :syllabus_members, :dependent => :destroy
|
||||
has_many :praise_tread, as: :praise_tread_object, dependent: :destroy
|
||||
has_one :praise_tread_cache, as: :object, dependent: :destroy
|
||||
belongs_to :discipline_category
|
||||
belongs_to :first_level_discipline
|
||||
belongs_to :major
|
||||
attr_accessible :description, :user_id, :title, :eng_name, :syllabus_type, :credit, :hours, :theory_hours, :practice_hours, :applicable_major, :pre_course, :major_level, :discipline_category_id, :first_level_discipline_id, :major_id
|
||||
safe_attributes 'title','user', 'description', 'eng_name', 'syllabus_type', 'credit', 'hours', 'theory_hours', 'practice_hours', 'credit', 'applicable_major', 'pre_course', 'major_level', 'discipline_category_id', "first_level_discipline_id"
|
||||
|
||||
validates :title, :user_id, presence: true
|
||||
|
||||
after_update :update_syllabus_ealasticsearch_index
|
||||
after_create :create_syllabus_ealasticsearch_index
|
||||
before_destroy :delete_syllabus_ealasticsearch_index
|
||||
|
||||
scope :indexable,lambda { where(nil) }#用于elastic建索引的scope
|
||||
|
||||
scope :like, lambda {|arg|
|
||||
if arg.blank?
|
||||
where(nil)
|
||||
else
|
||||
pattern = "%#{arg.to_s.strip.downcase}%"
|
||||
where(" LOWER(title) LIKE :p ", :p => pattern)
|
||||
end
|
||||
}
|
||||
|
||||
def delete_kindeditor_assets
|
||||
delete_kindeditor_assets_from_disk self.id,OwnerTypeHelper::SYLLABUS
|
||||
end
|
||||
|
||||
# 课程层级
|
||||
def syllabus_major_level
|
||||
type = ""
|
||||
case self.major_level
|
||||
when 1
|
||||
type = "研究生"
|
||||
when 2
|
||||
type = "本科"
|
||||
when 3
|
||||
type = "专科"
|
||||
end
|
||||
type
|
||||
end
|
||||
|
||||
def syllabus_type_str
|
||||
type = ""
|
||||
case self.syllabus_type
|
||||
when 1
|
||||
type = "公共必修课"
|
||||
when 2
|
||||
type = "学科必修课"
|
||||
when 3
|
||||
type = "专业选修课"
|
||||
when 4
|
||||
type = "实践必修课"
|
||||
when 5
|
||||
type = "实践选修课"
|
||||
end
|
||||
type
|
||||
end
|
||||
|
||||
# 课程的学科门类
|
||||
def syllabus_discipline_category
|
||||
self.discipline_category ? self.discipline_category.name : ''
|
||||
end
|
||||
|
||||
# 课程的一级学科
|
||||
def syllabus_first_level_discipline
|
||||
self.first_level_discipline ? self.first_level_discipline.name : ''
|
||||
end
|
||||
|
||||
# 课程的专业
|
||||
def syllabus_major
|
||||
self.major ? self.major.name : ''
|
||||
end
|
||||
|
||||
###添加回复
|
||||
def self.add_syllabus_jour(user, notes, id, root_id, options = {})
|
||||
syllabus = Syllabus.find(id)
|
||||
if options.count == 0
|
||||
jfm = syllabus.journals_for_messages.build(:user_id => user.id, :notes => notes, :reply_id => 0, :root_id => root_id)
|
||||
else
|
||||
jfm = syllabus.journals_for_messages.build(options)
|
||||
end
|
||||
jfm.save
|
||||
jfm
|
||||
end
|
||||
|
||||
def create_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
self.__elasticsearch__.index_document
|
||||
end
|
||||
|
||||
def update_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
begin
|
||||
self.__elasticsearch__.update_document
|
||||
rescue => e
|
||||
self.__elasticsearch__.index_document
|
||||
end
|
||||
end
|
||||
|
||||
def delete_syllabus_ealasticsearch_index
|
||||
return if Rails.env.development?
|
||||
begin
|
||||
self.__elasticsearch__.delete_document
|
||||
rescue => e
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
def self.search(query)
|
||||
__elasticsearch__.search(
|
||||
{
|
||||
query: {
|
||||
multi_match: {
|
||||
query: query,
|
||||
type:"most_fields",
|
||||
operator: "or",
|
||||
fields: ['title']
|
||||
}
|
||||
},
|
||||
sort: {
|
||||
_score:{order: "desc" },
|
||||
updated_at:{order:"desc"}
|
||||
|
||||
},
|
||||
highlight: {
|
||||
pre_tags: ['<span class="c_red">'],
|
||||
post_tags: ['</span>'],
|
||||
fields: {
|
||||
title: {},
|
||||
description: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,92 +1,92 @@
|
|||
<div class="contextual">
|
||||
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
<%=l(:label_project_plural)%>
|
||||
</h3>
|
||||
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= l(:label_filter_plural) %>
|
||||
</legend>
|
||||
<label for='status'>
|
||||
<%= l(:field_status) %> :
|
||||
</label>
|
||||
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
|
||||
<label for='name'>
|
||||
<%= l(:label_project) %>:
|
||||
</label>
|
||||
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入项目名称进行搜索' %>
|
||||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
|
||||
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="autoscroll">
|
||||
<table class="list" style="width: 100%;table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 30px;">
|
||||
序号
|
||||
</th>
|
||||
<th style="width: 120px;">
|
||||
<%=l(:label_project)%>
|
||||
</th>
|
||||
<th style="width: 20px;">
|
||||
<%=l(:field_is_public)%>
|
||||
</th>
|
||||
<th style="width: 30px;">
|
||||
<%=l(:field_created_on)%>
|
||||
</th>
|
||||
<th style="width: 70px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @projects.each do |project| %>
|
||||
<tr class="<%= cycle("odd", "even") %>">
|
||||
<td style="text-align: center;">
|
||||
<%= project.id %>
|
||||
</td>
|
||||
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=project.name%>'>
|
||||
<span>
|
||||
<%= link_to_project_settings(project, {}) %>
|
||||
</span>
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= checked_image project.is_public? %>
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= format_date(project.created_on) %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %>
|
||||
<%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %>
|
||||
<%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del', :onClick=>"delcfm()" ) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_project_plural)) -%>
|
||||
<div class="fr">项目代码/提交数统计:
|
||||
<%= link_to "最近一周", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_week" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %> <a style="color: #7f7f7f;">|</a>
|
||||
<%= link_to "最近一月", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_month" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %><a style="color: #7f7f7f;">|</a>
|
||||
<%= link_to "所有", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_all" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function delcfm() {
|
||||
if (!confirm("删除项目会一并删除项目的关联信息,确认要删除吗?")) {
|
||||
window.event.returnValue = false;
|
||||
}
|
||||
}
|
||||
<div class="contextual">
|
||||
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
<%=l(:label_project_plural)%>
|
||||
</h3>
|
||||
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= l(:label_filter_plural) %>
|
||||
</legend>
|
||||
<label for='status'>
|
||||
<%= l(:field_status) %> :
|
||||
</label>
|
||||
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
|
||||
<label for='name'>
|
||||
<%= l(:label_project) %>:
|
||||
</label>
|
||||
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '输入项目名称进行搜索' %>
|
||||
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
|
||||
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="autoscroll">
|
||||
<table class="list" style="width: 100%;table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 30px;">
|
||||
序号
|
||||
</th>
|
||||
<th style="width: 120px;">
|
||||
<%=l(:label_project)%>
|
||||
</th>
|
||||
<th style="width: 20px;">
|
||||
<%=l(:field_is_public)%>
|
||||
</th>
|
||||
<th style="width: 30px;">
|
||||
<%=l(:field_created_on)%>
|
||||
</th>
|
||||
<th style="width: 70px;"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @projects.each do |project| %>
|
||||
<tr class="<%= cycle("odd", "even") %>">
|
||||
<td style="text-align: center;">
|
||||
<%= project.id %>
|
||||
</td>
|
||||
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=project.name%>'>
|
||||
<span>
|
||||
<%= link_to_project_settings(project, {}) %>
|
||||
</span>
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= checked_image project.is_public? %>
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= format_date(project.created_on) %>
|
||||
</td>
|
||||
<td class="buttons">
|
||||
<%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %>
|
||||
<%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %>
|
||||
<%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del', :onClick=>"delcfm()" ) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_project_plural)) -%>
|
||||
<div class="fr">项目代码/提交数统计:
|
||||
<%= link_to "最近一周", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_week" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %> <a style="color: #7f7f7f;">|</a>
|
||||
<%= link_to "最近一月", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_month" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %><a style="color: #7f7f7f;">|</a>
|
||||
<%= link_to "所有", {:controller => 'admin', :action => 'export_rep_static_users', :format => 'xls', :cycle => "admin_all" }, :confirm => l(:label_rep_admin_export_tip), :class => "linkBlue2" %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function delcfm() {
|
||||
if (!confirm("删除项目会一并删除项目的关联信息,确认要删除吗?")) {
|
||||
window.event.returnValue = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="task-index-head mt20 mb20">
|
||||
<div class="task-index-head-top-course">
|
||||
<h2 class="fl task-inde-head-title">在线课堂</h2>
|
||||
<%= link_to "<span class='font-22'>+</span> 创建课堂".html_safe, new_course_path, :class => "fr color_white font-20" %>
|
||||
<%= link_to "+ 新建".html_safe, new_course_path, :class => "task-btn task-btn-green fr mt6" %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<ul class="task-index-head-info clearfix">
|
||||
|
|
|
|||
|
|
@ -86,11 +86,13 @@
|
|||
<div class="-flex -relative">
|
||||
<div class="split-panel -fit -vertical">
|
||||
<div class="-layout -stretch -fit -vertical centerH">
|
||||
<div class="-layout -vertical -flex -relative -bg-black -flex-basic60" id="games_repository_contents" style="overflow:hidden;">
|
||||
<div class="-layout -vertical -flex -relative -bg-black -flex-basic70" id="games_repository_contents" style="overflow:hidden;">
|
||||
<%= render :partial => 'games/repository' %>
|
||||
</div>
|
||||
<!--拖拽增加结构---------------------------------------->
|
||||
<div class="h-center"></div>
|
||||
<div class="h-center">
|
||||
<div class="-changebg -bg-black" id="-bg-change-color"></div>
|
||||
</div>
|
||||
<!------------------------------------------------------>
|
||||
<div class="split-panel--second -layout -vertical -flex -relative -bg-black -flex-basic40" id="games_valuation_contents">
|
||||
<%= render :partial => 'games/game_results' %>
|
||||
|
|
|
|||
|
|
@ -71,8 +71,13 @@
|
|||
g_l('codotab_con_'+i).className='undis';
|
||||
|
||||
}
|
||||
n == 2 ? $("#games_repository_contents").removeClass("-bg-black").addClass("-bg-weightblack")
|
||||
: $("#games_repository_contents").removeClass("-bg-weightblack").addClass("-bg-black");
|
||||
if(n==2){
|
||||
$("#games_repository_contents").removeClass("-bg-black -flex-basic70").addClass("-bg-weightblack -flex-basic60");
|
||||
$("#-bg-change-color").removeClass("-bg-black").addClass("-bg-weightblack");
|
||||
}else{
|
||||
$("#games_repository_contents").removeClass("-bg-weightblack -flex-basic60").addClass("-bg-black -flex-basic70");
|
||||
$("#-bg-change-color").removeClass("-bg-weightblack").addClass("-bg-black");
|
||||
}
|
||||
g_l('codotab_con_'+n).className='dis -relative';
|
||||
g_l('codetab_nav_'+n).className='blacktab_hover';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
<div class="sidebar-con">
|
||||
<div class="list">
|
||||
<i class="fa fa-plus-circle color-light-green font-20 pl20 pr10 pt5" aria-hidden="true"></i><span>教学</span>
|
||||
<i class="fa fa-plus-circle color-light-green font-20 pl15 pr10 pt5" aria-hidden="true"></i><span>教学</span>
|
||||
<ul class="color-grey">
|
||||
<li><a href="<%= syllabuses_path() %>" target="_blank" >我的课堂</a></li>
|
||||
<li><a href="<%= new_course_path(:host=> Setting.host_course) %>" target="_blank" >新建班级</a></li>
|
||||
|
|
@ -20,14 +20,14 @@
|
|||
</ul>
|
||||
</div>-->
|
||||
<div class="list">
|
||||
<i class="fa fa-map color-light-green font-20 pl20 pr10 pt5" aria-hidden="true"></i><span>题库</span>
|
||||
<i class="fa fa-map color-light-green font-20 pl15 pr10 pt5" aria-hidden="true"></i><span>题库</span>
|
||||
<ul class="color-grey">
|
||||
<li><%= link_to "我的题库", homework_bank_index_path(), :target => "_blank" %></li>
|
||||
<li><%= link_to "公共题库", homework_bank_index_path(:type => 2), :target => "_blank" %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list">
|
||||
<i class="fa fa-gamepad color-light-green font-20 pl20 pr10 pt5" aria-hidden="true"></i><span>实训</span>
|
||||
<i class="fa fa-gamepad color-light-green font-20 pl15 pr10 pt5" aria-hidden="true"></i><span>实训</span>
|
||||
<ul class="color-grey">
|
||||
<li><%= link_to "我的实训", shixuns_user_path(User.current), :target => "_blank" %></li>
|
||||
<li><%= link_to "新建实训", new_shixun_path, :target => "_blank" %></li>
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
$(function() {
|
||||
$(".sidebar").hover(function() {
|
||||
$(this).css({
|
||||
width:'60px'
|
||||
width:'50px'
|
||||
}).stop().animate({
|
||||
width:'120px'
|
||||
}, 400);
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
$(this).css({
|
||||
width:'120px'
|
||||
}).stop().animate({
|
||||
width:'60px'
|
||||
width:'50px'
|
||||
}, 400);
|
||||
$(".sidebar-con .list ul li").css({
|
||||
paddingTop:'15px'
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
//页面缩放时调整整个页面和左侧导航栏的距离
|
||||
$(window).resize(function() {
|
||||
if($(window).width()<1300){
|
||||
$(".newContainer").css("padding-left","60px");
|
||||
$(".newContainer").css("padding-left","50px");
|
||||
}else{
|
||||
$(".newContainer").css("padding-left","0px");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,70 +1,119 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><%= h html_title %></title>
|
||||
<meta name="description" content="高校智能课堂与综合实训平台" />
|
||||
<meta name="keywords" content="智能课堂,实训项目" />
|
||||
<%= csrf_meta_tag %>
|
||||
<%= favicon %>
|
||||
<%= javascript_heads %>
|
||||
<%= heads_for_theme %>
|
||||
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'css/edu-common', 'css/edu-public', 'css/font-awesome', 'css/edu-popup', 'css/magic-check', "css/edu-admin" %>
|
||||
<%= javascript_include_tag "edu/application",'edu/base_edu', 'baiduTemplate', 'jquery.datetimepicker.js', "edu/management" %>
|
||||
<%= call_hook :view_layouts_base_html_head %>
|
||||
<%= yield :header_tags -%>
|
||||
</head>
|
||||
<body onload="prettyPrint();">
|
||||
<div class="newContainer"> <!-- 页面全部内容 -->
|
||||
<div class="newHeader"> <!-- 头部 -->
|
||||
<%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %>
|
||||
</div>
|
||||
<div class="newMain clearfix"> <!-- 主题部分 -->
|
||||
<div class="edu-class-container" >
|
||||
<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"><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 == 3 %>"><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><%= link_to "实训列表", shixuns_managements_path %></li>
|
||||
<li><%= link_to "已发布的实训", publish_shixuns_managements_path %></li>
|
||||
<li><%= link_to "已关闭的实训", close_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"><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 == 6 %>"><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>
|
||||
</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"><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>
|
||||
<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 '实训发布', shixun_authorization_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"><a href="javascript:void(0);" class="edu-admin-nav-a" style="border-right:none;">其它</a></li>
|
||||
</ul>
|
||||
<%= render_flash_messages %>
|
||||
<%= yield %>
|
||||
<%= call_hook :view_layouts_base_content %>
|
||||
<div style="clear:both;"></div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<%= render :partial => 'layouts/footer' %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div id="ajax-indicator" style="display:none;">
|
||||
<span>载入中...</span>
|
||||
</div>
|
||||
<div id="ajax-modal" style="display:none;"></div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><%= h html_title %></title>
|
||||
<meta name="description" content="高校智能课堂与综合实训平台" />
|
||||
<meta name="keywords" content="智能课堂,实训项目" />
|
||||
<%= csrf_meta_tag %>
|
||||
<%= favicon %>
|
||||
<%= javascript_heads %>
|
||||
<%= heads_for_theme %>
|
||||
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'css/edu-common', 'css/edu-public', 'css/font-awesome', 'css/edu-popup', 'css/magic-check', "css/edu-admin" %>
|
||||
<%= javascript_include_tag "edu/application",'edu/base_edu', 'baiduTemplate', 'jquery.datetimepicker.js', "edu/management" %>
|
||||
<%= call_hook :view_layouts_base_html_head %>
|
||||
<%= yield :header_tags -%>
|
||||
</head>
|
||||
<body onload="prettyPrint();">
|
||||
<div class="newContainer"> <!-- 页面全部内容 -->
|
||||
<div class="newHeader"> <!-- 头部 -->
|
||||
<%= render :partial => User.current.logged? ? 'layouts/logined_header' : 'layouts/unlogin_header' %>
|
||||
</div>
|
||||
<div class="newMain clearfix"> <!-- 主题部分 -->
|
||||
<div class="edu-class-container" >
|
||||
<p class="mb10 ml25"><i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= 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 <%= '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" %>
|
||||
<ul class="edu-admin-nav-inner edu-absolute">
|
||||
<li><%= link_to "实训列表", shixuns_managements_path %></li>
|
||||
<li><%= link_to "已发布的实训", publish_shixuns_managements_path %></li>
|
||||
<li><%= link_to "已关闭的实训", close_shixuns_managements_path %></li>
|
||||
</ul>
|
||||
</li>
|
||||
<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>
|
||||
</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>-->
|
||||
</li>
|
||||
<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>
|
||||
</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"><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 == 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 '项目实训发布', shixun_authorization_managements_path %></li>
|
||||
<li><%= link_to '课程实训发布', subject_authorization_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"><a href="javascript:void(0);" class="edu-admin-nav-a" style="border-right:none;">其它</a></li>
|
||||
</ul>
|
||||
<%= render_flash_messages %>
|
||||
<%= yield %>
|
||||
<%= call_hook :view_layouts_base_content %>
|
||||
<div style="clear:both;"></div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<%= render :partial => 'layouts/footer' %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<div id="ajax-indicator" style="display:none;">
|
||||
<span>载入中...</span>
|
||||
</div>
|
||||
<div id="ajax-modal" style="display:none;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -0,0 +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%" 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%" 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;" 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>
|
||||
<script>
|
||||
//清除查询条件
|
||||
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") %>");
|
||||
|
|
@ -0,0 +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;" form="class_shixuns_search" name="status" id="status" >
|
||||
<option value="" selected="selected">全部状态</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%" 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%" 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;" 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>
|
||||
<div class="edu-con-bg01 mt15" id="managements_class_shixuns_list">
|
||||
<%= render :partial => "managements/class_shixuns_list" %>
|
||||
</div>
|
||||
<% end%>
|
||||
<script>
|
||||
//清除查询条件
|
||||
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") %>");
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<%= form_tag(url_for(classroom_managements_path),:id=>"classroom",:method => "post",:remote=>true) do %>
|
||||
<div class="edu-con-top clearfix xmt10">
|
||||
<%= 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: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="$('#classroom').submit();">搜索</a>
|
||||
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 mt20" id="clear_contents">清除</a>
|
||||
</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") %>")
|
||||
|
|
@ -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();
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<%= 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="$('#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: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>
|
||||
<% end%>
|
||||
<div class="edu-con-bg01 mt15" id="managements_user_list">
|
||||
<%= render :partial => "managements/depart_list" %>
|
||||
</div>
|
||||
|
|
@ -0,0 +1 @@
|
|||
$("#managements_user_list").html("<%= j( render :partial => "managements/depart_list" ) %>");
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<%= 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="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">
|
||||
<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>
|
||||
<% 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" ) %>")
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<%= 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="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">
|
||||
<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_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,133 +1,198 @@
|
|||
<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-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 "待审批", {:controller => "managements", :action => "identity_authentication", :type => 0}, :class => "tab_type", :remote => true %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2);">
|
||||
<%= link_to "已审批", {:controller => "managements", :action => "identity_authentication", :type => [1,2]}, :class => "tab_type", :remote => true %>
|
||||
</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" id="search_name">
|
||||
<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">
|
||||
<%= render :partial => "admin/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" id="audit_all_authentication">全部</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5" id="audit_agree_authentication">同意</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5" id="audit_reject_authentication" >拒绝</a>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<input class="task-form-100 panel-box-sizing" placeholder="输入真实姓名进行检索" type="text" id="audit_search_name">
|
||||
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt15" id="audit_search"><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>
|
||||
<script>
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
function reject_authentication_reason(nThis){
|
||||
var reason = $(nThis).parent().parent().find('div');
|
||||
reason.find("input").val("");
|
||||
reason.toggle();
|
||||
}
|
||||
|
||||
/* -------------------------- 取消 ------------------------------------ */
|
||||
function hide_reject_reason(nThis){
|
||||
var reason = $(nThis).parent().parent();
|
||||
reason.find("input").val("");
|
||||
reason.hide();
|
||||
}
|
||||
|
||||
/* ------------------------- 提交拒绝原因 --------------------------------- */
|
||||
function submit_reject_reason(id, nThis){
|
||||
var nReason = $(nThis).parent().parent();
|
||||
var reason = nReason.find("input").val();
|
||||
$.ajax({
|
||||
url: '<%= admin_reject_authentication_path %>',
|
||||
data: {apply_id: id, reject_reason: reason },
|
||||
success: function(data){
|
||||
if(data.success){
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------- 按名字进行收缩(未审批) ----------------------------- */
|
||||
$("#search").live("click", function(){
|
||||
var iName = $("#search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path %>" +".js",
|
||||
data: { name: iName }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(全部) ------------------------- */
|
||||
$("#audit_all_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" + ".js",
|
||||
data: { name: iName, type: [1, 2] }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(同意) ------------------------- */
|
||||
$("#audit_agree_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" +".js",
|
||||
data: { name: iName, type: 1 }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(拒绝) ------------------------- */
|
||||
$("#audit_reject_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" +".js",
|
||||
data: { name: iName, type: 2 }
|
||||
});
|
||||
});
|
||||
|
||||
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
||||
$("#audit_search").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
var id = $("#audit_all_authentication").parent().find(".active").attr("id");
|
||||
var type = 0;
|
||||
if(id = "audit_all_authentication"){
|
||||
type = [1, 2];
|
||||
}else if(id="audit_agree_authentication"){
|
||||
type = 1;
|
||||
}else{
|
||||
type = 2;
|
||||
}
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path %>" +".js",
|
||||
data: { name: iName, type: type}
|
||||
});
|
||||
});
|
||||
|
||||
<div class="edu-class-container mb15">
|
||||
<!--<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);">
|
||||
<%= link_to "待审批", {:controller => "managements", :action => "identity_authentication", :type => 0}, :class => "tab_type", :remote => true %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2);">
|
||||
<%= link_to "已审批", {:controller => "managements", :action => "identity_authentication", :type => [1,2]}, :class => "tab_type", :remote => true %>
|
||||
</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" id="search_name">
|
||||
<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">
|
||||
<%= render :partial => "admin/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" id="audit_all_authentication">全部</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5" id="audit_agree_authentication">同意</a>
|
||||
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5" id="audit_reject_authentication" >拒绝</a>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<input class="task-form-100 panel-box-sizing" placeholder="输入真实姓名进行检索" type="text" id="audit_search_name">
|
||||
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt15" id="audit_search"><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 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>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
function reject_authentication_reason(nThis){
|
||||
var reason = $(nThis).parent().parent().find('div');
|
||||
reason.find("input").val("");
|
||||
reason.toggle();
|
||||
}
|
||||
|
||||
/* -------------------------- 取消 ------------------------------------ */
|
||||
function hide_reject_reason(nThis){
|
||||
var reason = $(nThis).parent().parent();
|
||||
reason.find("input").val("");
|
||||
reason.hide();
|
||||
}
|
||||
|
||||
/* ------------------------- 提交拒绝原因 --------------------------------- */
|
||||
function submit_reject_reason(id, nThis){
|
||||
var nReason = $(nThis).parent().parent();
|
||||
var reason = nReason.find("input").val();
|
||||
$.ajax({
|
||||
url: '<%= admin_reject_authentication_path %>',
|
||||
data: {apply_id: id, reject_reason: reason },
|
||||
success: function(data){
|
||||
if(data.success){
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------- 按名字进行收缩(未审批) ----------------------------- */
|
||||
$("#search").live("click", function(){
|
||||
var iName = $("#search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path %>" +".js",
|
||||
data: { name: iName }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(全部) ------------------------- */
|
||||
$("#audit_all_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" + ".js",
|
||||
data: { name: iName, type: [1, 2] }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(同意) ------------------------- */
|
||||
$("#audit_agree_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" +".js",
|
||||
data: { name: iName, type: 1 }
|
||||
});
|
||||
});
|
||||
|
||||
/* ----------------------- 已审批(拒绝) ------------------------- */
|
||||
$("#audit_reject_authentication").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path() %>" +".js",
|
||||
data: { name: iName, type: 2 }
|
||||
});
|
||||
});
|
||||
|
||||
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
||||
$("#audit_search").live("click", function(){
|
||||
var iName = $("#audit_search_name").val();
|
||||
var id = $("#audit_all_authentication").parent().find(".active").attr("id");
|
||||
var type = 0;
|
||||
if(id = "audit_all_authentication"){
|
||||
type = [1, 2];
|
||||
}else if(id="audit_agree_authentication"){
|
||||
type = 1;
|
||||
}else{
|
||||
type = 2;
|
||||
}
|
||||
$.ajax({
|
||||
url: "<%= admin_identity_authentication_path %>" +".js",
|
||||
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>
|
||||
|
|
@ -1,104 +1,104 @@
|
|||
<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-tab clearfix mb20">
|
||||
<ul id="edu-tab-nav">
|
||||
<li id="edu-tab-nav-1" class="edu-new-tab-hover" onclick="HoverLi(1);">
|
||||
<%= link_to "待审批", {:controller => "managements", :action => "shixun_authorization", :type => 0}, :class => "tab_type", :remote => true %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2);">
|
||||
<%= link_to "已审批", {:controller => "managements", :action => "shixun_authorization", :type => [1, 2]}, :class => "tab_type", :remote => true %>
|
||||
<span class="edu-tab-fa"><i class="fa fa-caret-down"></i></span>
|
||||
</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" id="search_name">
|
||||
<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" class="auth_table">
|
||||
<%= render :partial => "managements/shixun_authorization_list"%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edu-tab-con-2" class="undis">
|
||||
<div class="mt10">
|
||||
<p class="fl task-form-60 mt8 ml15">
|
||||
<%= link_to "全部", shixun_authorization_managements_path(:type => [1, 2]), :class => "edu-filter-cir-grey mr5 active", :id => "shixun_all_authentication", :remote => true %>
|
||||
<%= link_to "同意", shixun_authorization_managements_path(:type => 1), :class => "edu-filter-cir-grey mr5", :id => "shixun_agree_authentication", :remote => true %>
|
||||
<%= link_to "拒绝", shixun_authorization_managements_path(:type => 2), :class => "edu-filter-cir-grey mr5", :id => "shixun_reject_authentication", :remote => true %>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<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="cl"></div>
|
||||
<div id="shixun_authentication_list" class="auth_table">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
function reject_shixun_authentication_reason(nThis){
|
||||
var reason = $(nThis).parent().parent().find('div');
|
||||
reason.find("input").val("");
|
||||
reason.toggle();
|
||||
}
|
||||
|
||||
/* -------------------------- 取消 ------------------------------------ */
|
||||
function shixun_hide_reject_reason(nThis){
|
||||
var reason = $(nThis).parent().parent();
|
||||
reason.find("input").val("");
|
||||
reason.hide();
|
||||
}
|
||||
|
||||
/* ------------------------- 提交拒绝原因 --------------------------------- */
|
||||
function shixun_submit_reject_reason(id, nThis){
|
||||
var nReason = $(nThis).parent().parent();
|
||||
var reason = nReason.find("input").val();
|
||||
$.ajax({
|
||||
url: '<%= deal_shixun_authorization_managements_path %>',
|
||||
data: {apply_id: id, reject_reason: reason, type: 0}
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------- 按名字进行搜索(未审批) ----------------------------- */
|
||||
$("#search").live("click", function(){
|
||||
var iName = $("#search_name").val();
|
||||
$.ajax({
|
||||
url: "/managements/shixun_authorization",
|
||||
data: { search: iName }
|
||||
});
|
||||
});
|
||||
|
||||
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
||||
$("#shixun_search").live("click", function(){
|
||||
var iName = $("#shixun_search_name").val();
|
||||
var id = $("#shixun_all_authentication").parent().find(".active").attr("id");
|
||||
var type = 0;
|
||||
|
||||
if(id == "shixun_all_authentication"){
|
||||
type = [1, 2];
|
||||
}else if(id=="shixun_agree_authentication"){
|
||||
type = 1;
|
||||
}else{
|
||||
type = 2;
|
||||
}
|
||||
alert(type);
|
||||
$.ajax({
|
||||
url: "/managements/shixun_authorization",
|
||||
data: { search: iName, type: type}
|
||||
});
|
||||
});
|
||||
|
||||
<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-tab clearfix mb20">
|
||||
<ul id="edu-tab-nav">
|
||||
<li id="edu-tab-nav-1" class="edu-new-tab-hover" onclick="HoverLi(1);">
|
||||
<%= link_to "待审批", {:controller => "managements", :action => "shixun_authorization", :type => 0}, :class => "tab_type", :remote => true %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2);">
|
||||
<%= link_to "已审批", {:controller => "managements", :action => "shixun_authorization", :type => [1, 2]}, :class => "tab_type", :remote => true %>
|
||||
<span class="edu-tab-fa"><i class="fa fa-caret-down"></i></span>
|
||||
</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" id="search_name">
|
||||
<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" class="auth_table">
|
||||
<%= render :partial => "managements/shixun_authorization_list"%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="edu-tab-con-2" class="undis">
|
||||
<div class="mt10">
|
||||
<p class="fl task-form-60 mt8 ml15">
|
||||
<%= link_to "全部", shixun_authorization_managements_path(:type => [1, 2]), :class => "edu-filter-cir-grey mr5 active", :id => "shixun_all_authentication", :remote => true %>
|
||||
<%= link_to "同意", shixun_authorization_managements_path(:type => 1), :class => "edu-filter-cir-grey mr5", :id => "shixun_agree_authentication", :remote => true %>
|
||||
<%= link_to "拒绝", shixun_authorization_managements_path(:type => 2), :class => "edu-filter-cir-grey mr5", :id => "shixun_reject_authentication", :remote => true %>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<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="cl"></div>
|
||||
<div id="shixun_authentication_list" class="auth_table">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
function reject_shixun_authentication_reason(nThis){
|
||||
var reason = $(nThis).parent().parent().find('div');
|
||||
reason.find("input").val("");
|
||||
reason.toggle();
|
||||
}
|
||||
|
||||
/* -------------------------- 取消 ------------------------------------ */
|
||||
function shixun_hide_reject_reason(nThis){
|
||||
var reason = $(nThis).parent().parent();
|
||||
reason.find("input").val("");
|
||||
reason.hide();
|
||||
}
|
||||
|
||||
/* ------------------------- 提交拒绝原因 --------------------------------- */
|
||||
function shixun_submit_reject_reason(id, nThis){
|
||||
var nReason = $(nThis).parent().parent();
|
||||
var reason = nReason.find("input").val();
|
||||
$.ajax({
|
||||
url: '<%= deal_shixun_authorization_managements_path %>',
|
||||
data: {apply_id: id, reject_reason: reason, type: 0}
|
||||
});
|
||||
}
|
||||
|
||||
/* -------------------------- 按名字进行搜索(未审批) ----------------------------- */
|
||||
$("#search").live("click", function(){
|
||||
var iName = $("#search_name").val();
|
||||
$.ajax({
|
||||
url: "/managements/shixun_authorization",
|
||||
data: { search: iName }
|
||||
});
|
||||
});
|
||||
|
||||
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
||||
$("#shixun_search").live("click", function(){
|
||||
var iName = $("#shixun_search_name").val();
|
||||
var id = $("#shixun_all_authentication").parent().find(".active").attr("id");
|
||||
var type = 0;
|
||||
|
||||
if(id == "shixun_all_authentication"){
|
||||
type = [1, 2];
|
||||
}else if(id=="shixun_agree_authentication"){
|
||||
type = 1;
|
||||
}else{
|
||||
type = 2;
|
||||
}
|
||||
alert(type);
|
||||
$.ajax({
|
||||
url: "/managements/shixun_authorization",
|
||||
data: { search: iName, type: type}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
@ -1,52 +1,52 @@
|
|||
|
||||
<div class="edu-class-container">
|
||||
<%= form_tag(url_for(shixuns_managements_path), :id => "managements_shixuns_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix mb20">
|
||||
<select class="fl task-form-10 task-height-30" id="sx_status" style="margin:0px 10px 0px 25px;" form="managements_shixuns_search" name="status">
|
||||
<option value="" selected="selected">全部状态</option>
|
||||
<option value="0">编辑中(<%= @edit_sx_num %>)</option>
|
||||
<option value="1">待审核(<%= @audit_sx_num %>)</option>
|
||||
<option value="2">已发布(<%= @publish_sx_num %>)</option>
|
||||
<option value="3">已关闭(<%= @close_sx_num %>)</option>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" id="sx_condition_status" style="width: auto;margin-right: 10px;" form="managements_shixuns_search" name="keyword">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="sx_name">实训名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;">
|
||||
<li class="fl ml10">
|
||||
<a href="javascript:void(0)" class="task-btn task-btn-blue" onclick="$('#managements_shixuns_search').submit();">搜索</a>
|
||||
<a href="javascript:clearSearchCondition();" class="task-btn mr10">清除</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="ex_container" id="management_shixun_list">
|
||||
<%= render :partial => "managements/shixun_list" %>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//导航条的点击事件
|
||||
$(".all_shixun_Item li").on("click",function(){
|
||||
$(".all_shixun_Item li").removeClass("all_shixun_Item_on");
|
||||
$(this).addClass("all_shixun_Item_on");
|
||||
})
|
||||
//显示实训
|
||||
$("#shixun_status").hover(function(){
|
||||
$(this).find(".edu-dropdown-menu").show();
|
||||
},function(){
|
||||
$(this).find(".edu-dropdown-menu").hide();
|
||||
})
|
||||
|
||||
//选择实训
|
||||
// $(".edu-dropdown-menu p a").on("click",function(){
|
||||
// $(".edu-dropdown-menu").siblings("span").html($(this).html());
|
||||
// $(".edu-dropdown-menu").hide();
|
||||
// $(".edu-dropdown-menu").css("width",$("#shixun_status").width()+50);
|
||||
// })
|
||||
//清除查询条件
|
||||
function clearSearchCondition(){
|
||||
$("#shixun_Look_name").val("");
|
||||
$("#sx_condition_status").val("u_name");
|
||||
$("#sx_status").val("");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="edu-class-container">
|
||||
<%= form_tag(url_for(shixuns_managements_path), :id => "managements_shixuns_search", :method => "post", :remote => true ) do %>
|
||||
<div class="edu-con-top clearfix mb20">
|
||||
<select class="fl task-form-10 task-height-30" id="sx_status" style="margin:0px 10px 0px 25px;" form="managements_shixuns_search" name="status">
|
||||
<option value="" selected="selected">全部状态</option>
|
||||
<option value="0">编辑中(<%= @edit_sx_num %>)</option>
|
||||
<option value="1">待审核(<%= @audit_sx_num %>)</option>
|
||||
<option value="2">已发布(<%= @publish_sx_num %>)</option>
|
||||
<option value="3">已关闭(<%= @close_sx_num %>)</option>
|
||||
</select>
|
||||
<select class="fl task-form-15 task-height-30" id="sx_condition_status" style="width: auto;margin-right: 10px;" form="managements_shixuns_search" name="keyword">
|
||||
<option value="u_name">创建者姓名搜索</option>
|
||||
<option value="sx_name">实训名称搜索</option>
|
||||
</select>
|
||||
<input class="fl task-form-20 task-height-30" id="shixun_Look_name" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;">
|
||||
<li class="fl ml10">
|
||||
<a href="javascript:void(0)" class="task-btn task-btn-blue" onclick="$('#managements_shixuns_search').submit();">搜索</a>
|
||||
<a href="javascript:clearSearchCondition();" class="task-btn mr10">清除</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="ex_container" id="management_shixun_list">
|
||||
<%= render :partial => "managements/shixun_list" %>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//导航条的点击事件
|
||||
$(".all_shixun_Item li").on("click",function(){
|
||||
$(".all_shixun_Item li").removeClass("all_shixun_Item_on");
|
||||
$(this).addClass("all_shixun_Item_on");
|
||||
})
|
||||
//显示实训
|
||||
$("#shixun_status").hover(function(){
|
||||
$(this).find(".edu-dropdown-menu").show();
|
||||
},function(){
|
||||
$(this).find(".edu-dropdown-menu").hide();
|
||||
})
|
||||
|
||||
//选择实训
|
||||
// $(".edu-dropdown-menu p a").on("click",function(){
|
||||
// $(".edu-dropdown-menu").siblings("span").html($(this).html());
|
||||
// $(".edu-dropdown-menu").hide();
|
||||
// $(".edu-dropdown-menu").css("width",$("#shixun_status").width()+50);
|
||||
// })
|
||||
//清除查询条件
|
||||
function clearSearchCondition(){
|
||||
$("#shixun_Look_name").val("");
|
||||
$("#sx_condition_status").val("u_name");
|
||||
$("#sx_status").val("");
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,67 @@
|
|||
<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-tab clearfix mb20">
|
||||
<ul id="edu-tab-nav">
|
||||
<li id="edu-tab-nav-1" class="edu-new-tab-hover" onclick="HoverLi(1)">
|
||||
<%= link_to "待审批", {:controller => "managements", :action => "subject_authorization", :type => 0}, :class => "tab_type", :remote => true %>
|
||||
</li>
|
||||
<li id="edu-tab-nav-2" onclick="HoverLi(2)">
|
||||
<%= link_to "已审批", {:controller => "managements", :action => "subject_authorization", :type => [1, 2]}, :class => "tab_type", :remote => true %>
|
||||
<span class="edu-tab-fa"><i class="fa fa-caret-down"></i></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<div id="edu-tab-con-1">
|
||||
<div class="mt10">
|
||||
<div class="cl"></div>
|
||||
<div id="subject_authentication_list" class="auth_table">
|
||||
<%= render :partial => "managements/subject_authorization_list" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="edu-tab-con-2" class="undis">
|
||||
<div class="mt10">
|
||||
<p class="fl task-form-60 mt8 ml15">
|
||||
<%= link_to "全部", shixun_authorization_managements_path(:type => [1, 2]), :class => "edu-filter-cir-grey mr5 active", :id => "subject_all_authentication", :remote => true %>
|
||||
<%= link_to "同意", shixun_authorization_managements_path(:type => 1), :class => "edu-filter-cir-grey mr5", :id => "subject_agree_authentication", :remote => true %>
|
||||
<%= link_to "拒绝", shixun_authorization_managements_path(:type => 2), :class => "edu-filter-cir-grey mr5", :id => "subject_reject_authentication", :remote => true %>
|
||||
</p>
|
||||
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
||||
<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="cl"></div>
|
||||
<div class="auth_table" id="subject_authorization_list"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* -------------------------- 拒绝 ------------------------------------ */
|
||||
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>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
var nTabIcon_1 = $("#edu-tab-con-1");
|
||||
var nTabIcon_2 = $("#edu-tab-con-2");
|
||||
var nTabNav_1 = $("#edu-tab-nav-1");
|
||||
var nTabNav_2 = $("#edu-tab-nav-2");
|
||||
var nAudit = $("#subject_all_authentication").parent();
|
||||
|
||||
<% if @type == 0 %>
|
||||
$("#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 %>
|
||||
$("#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();
|
||||
nTabIcon_2.show();
|
||||
/* -------------------------- 未审批(全部、同意、拒绝点击时动态样式) ------------------------------ */
|
||||
if(<%= @type == 1 %>){
|
||||
nAudit.find(".active").removeClass("active");
|
||||
$("#subject_agree_authentication").addClass("active");
|
||||
}else if(<%= @type == 2 %>){
|
||||
nAudit.find(".active").removeClass("active");
|
||||
$("#subject_reject_authentication").addClass("active");
|
||||
}else{
|
||||
nAudit.find(".active").removeClass("active");
|
||||
$("#subject_all_authentication").addClass("active");
|
||||
}
|
||||
<% end %>
|
||||
|
|
@ -0,0 +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;">
|
||||
<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>
|
||||
<% end%>
|
||||
<div class="edu-con-bg01 mt15" id="managements_unit_list">
|
||||
<%= render :partial => "managements/unit_list" %>
|
||||
</div>
|
||||
|
||||
|
|
@ -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>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="task-index-head mt20 mb20 user_bg_shadow">
|
||||
<div class="task-index-head-top">
|
||||
<h2 class="fl task-inde-head-title">全部实训</h2>
|
||||
<%= link_to "<span class='font-22'>+</span> 创建实训".html_safe, new_shixun_path, :class => "fr color_white font-20" %>
|
||||
<%= link_to "+ 新建".html_safe, new_shixun_path, :class => "task-btn task-btn-green fr mt6" %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<ul class="task-index-head-info clearfix">
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
<span class="fl color-grey check_item">筛选条件</span>
|
||||
<div class="fl" style="margin-top:7px">
|
||||
<li class="edu-dropdown fl ml15 mr5" id="first_select" style="width: 70px">
|
||||
<a href="javascript:void(0);" class="edu-dropdown-toggle" id="all_status">所有状态<i class="fa fa-caret-down ml5"></i></a>
|
||||
<a href="javascript:void(0);" class="edu-dropdown-toggle color-grey3" id="all_status">所有状态<i class="fa fa-caret-down ml5"></i></a>
|
||||
<ul class="edu-dropdown-menu" id="all_status_list" style="display: none;">
|
||||
<li>
|
||||
<input type="radio" class="undis" name="shixun_status" id="status_0" value="0">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
</p>
|
||||
<div class="clearfix">
|
||||
<p class="fl font-24 color_white subject-main-name"><%= @subject.name %></p>
|
||||
<% if User.current.manager_of_subject?(@subject) && @subject.status == 0 %>
|
||||
<i class="fa fa-pencil mt15 ml10 color_white edit_subject_name fl font-18"></i>
|
||||
<% end %>
|
||||
<%# if User.current.manager_of_subject?(@subject) && @subject.status == 0 %>
|
||||
<!--<i class="fa fa-pencil mt15 ml10 color_white edit_subject_name fl font-18"></i>-->
|
||||
<%# end %>
|
||||
<% if !User.current.manager_of_subject?(@subject) || @subject.status > 1 %>
|
||||
<ul class="last-all-count fr">
|
||||
<li class="fl mr30"><i class="fa fa-gamepad color_white" title="实训"></i><span class="ml5 color_white"><%= @subject.stage_shixuns.count %></span></li>
|
||||
|
|
@ -27,39 +27,39 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
//编辑套件名称
|
||||
$(".edit_subject_name").on("click",function(){
|
||||
$(".subject-main-name").attr("contenteditable","true");
|
||||
$(".subject-main-name").focus();
|
||||
getC($(".subject-main-name"));
|
||||
});
|
||||
$(".subject-main-name").on("keydown",function(ev){
|
||||
if(ev.keyCode==13 || ev.keyCode==108){
|
||||
$(".subject-main-name").attr("contenteditable","false");
|
||||
}
|
||||
});
|
||||
$(".subject-main-name").on("blur",function(){
|
||||
$(".subject-main-name").attr("contenteditable","false");
|
||||
if($(".subject-main-name").html().trim() == ""){
|
||||
$(".subject-main-name").html("<%= @subject.name %>");
|
||||
} else{
|
||||
$.post(
|
||||
'<%= update_attr_subject_path(@subject) %>',
|
||||
{ name: $(".subject-main-name").html().trim() },
|
||||
function (data) {
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
function getC(that){
|
||||
if(document.all){
|
||||
that.range=document.selection.createRange();
|
||||
that.range.select();
|
||||
that.range.moveStart("character",-1);
|
||||
}else{
|
||||
that.range=window.getSelection().getRangeAt(0);
|
||||
that.range.setStart(that.range.startContainer,that.html().length);
|
||||
}
|
||||
}
|
||||
// //编辑套件名称
|
||||
// $(".edit_subject_name").on("click",function(){
|
||||
// $(".subject-main-name").attr("contenteditable","true");
|
||||
// $(".subject-main-name").focus();
|
||||
// getC($(".subject-main-name"));
|
||||
// });
|
||||
// $(".subject-main-name").on("keydown",function(ev){
|
||||
// if(ev.keyCode==13 || ev.keyCode==108){
|
||||
// $(".subject-main-name").attr("contenteditable","false");
|
||||
// }
|
||||
// });
|
||||
// $(".subject-main-name").on("blur",function(){
|
||||
// $(".subject-main-name").attr("contenteditable","false");
|
||||
// if($(".subject-main-name").html().trim() == ""){
|
||||
// $(".subject-main-name").html("<%= @subject.name %>");
|
||||
// } else{
|
||||
// $.post(
|
||||
// '<%= update_attr_subject_path(@subject) %>',
|
||||
// { name: $(".subject-main-name").html().trim() },
|
||||
// function (data) {
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// function getC(that){
|
||||
// if(document.all){
|
||||
// that.range=document.selection.createRange();
|
||||
// that.range.select();
|
||||
// that.range.moveStart("character",-1);
|
||||
// }else{
|
||||
// that.range=window.getSelection().getRangeAt(0);
|
||||
// that.range.setStart(that.range.startContainer,that.html().length);
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<div class="active-class ">
|
||||
<p style="line-height: 42px;">
|
||||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= link_to User.current.show_name, user_path(User.current) %> > <%= link_to "实训套件", subjects_path() %>
|
||||
> <span>编辑</span>
|
||||
</p>
|
||||
<div class="edu-con-top user_bg_shadow">
|
||||
<span class="ml15 color-grey font-16">编辑实训套件</span>
|
||||
</div>
|
||||
<div class="edu-bg createmain mb20 pt30 user_bg_shadow">
|
||||
<%= labelled_form_for @subject do |f| %>
|
||||
<li class="clearfix pt20">
|
||||
<label class="panel-form-label label fl"><span class="color-orange">*</span> 名称</label>
|
||||
<input type="text" name="subject[name]" value="<%= @subject.name %>" id="new_subject_name" class="task task-height-40 panel-box-sizing task-form-70 fl color-grey ml20" maxlength="100" placeholder="例如:Python程序设计-从入门到精通">
|
||||
<div class="cl"></div>
|
||||
<span class="color-orange ml20 fl none" style="margin-left: 12%;" id="new_subject_name_notice"><i class="fa fa-exclamation-circle mr5" ></i>请输入名称</span>
|
||||
</li>
|
||||
<li class="clearfix pt20">
|
||||
<label class="panel-form-label label fl">简介</label>
|
||||
<textarea name="subject[description]" class="task task-height-220 panel-box-sizing task-form-70 fl color-grey ml20"><%= @subject.description %></textarea>
|
||||
</li>
|
||||
<li class="clearfix pt20 pb20">
|
||||
<label class="panel-form-label label fl"> </label>
|
||||
<%= link_to "取消", subject_path(@subject), :class => "task-btn fl mr10 ml20" %>
|
||||
<a href="javascript:void(0);" onclick="submit_edit_subject(<%= @subject.id %>);" class="task-btn task-btn-blue fl">保存</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<div class="task-index-head mt20 mb20">
|
||||
<div class="header-color">
|
||||
<h2 class="fl task-inde-head-title">实训套件</h2>
|
||||
<%= link_to "<span class='font-22'>+</span> 创建套件".html_safe, new_subject_path(), :class => "fr color_white font-20" %>
|
||||
<%= link_to "+ 新建".html_safe, new_subject_path(), :class => "task-btn task-btn-green fr mt6" %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<ul class="task-index-head-info clearfix">
|
||||
|
|
|
|||
|
|
@ -4,43 +4,44 @@
|
|||
<p class="clearfix">
|
||||
<span class="fl font-bd font-18">简介</span>
|
||||
<% if User.current.manager_of_subject?(@subject) && @subject.status == 0 %>
|
||||
<i class="fa fa-pencil fr mt10 mr5 color-grey edit-produce"></i>
|
||||
<a href="<%= edit_subject_path(@subject) %>"><i class="fa fa-pencil fr mt10 mr5 color-grey edit-produce"></i></a>
|
||||
<% end %>
|
||||
</p>
|
||||
<textarea readonly class="mt15 color-grey subject-produce <%= @subject.description.blank? ? 'color-light-grey' : '' %>" id="subject-produce" placeholder="暂未填写"><%= @subject.description %></textarea>
|
||||
<div class="mt15 color-grey <%= @subject.description.blank? ? 'color-light-grey' : '' %>">
|
||||
<%= @subject.description.blank? ? "暂未填写" : @subject.description %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<script>
|
||||
//编辑套件简介
|
||||
$(".edit-produce").on("click",function(){
|
||||
$(".subject-produce").removeAttr("readonly");
|
||||
$("#subject-produce").focus();
|
||||
autoTextarea(document.getElementById("subject-produce"),0,150);
|
||||
});
|
||||
$(".subject-produce").on("blur",function(){
|
||||
$(".subject-produce").removeAttr("readonly");
|
||||
$.post(
|
||||
'<%= update_attr_subject_path(@subject) %>',
|
||||
{ description: $("#subject-produce").val().trim() },
|
||||
function (data) {
|
||||
}
|
||||
);
|
||||
if($("#subject-produce").html().trim() == ""){
|
||||
$("#subject-produce").addClass("color-light-grey");
|
||||
} else{
|
||||
$("#subject-produce").removeClass("color-light-grey");
|
||||
}
|
||||
})
|
||||
function getC(that){
|
||||
if(document.all){
|
||||
that.range=document.selection.createRange();
|
||||
that.range.select();
|
||||
that.range.moveStart("character",-1);
|
||||
}else{
|
||||
that.range=window.getSelection().getRangeAt(0);
|
||||
that.range.setStart(that.range.startContainer,that.html().length);
|
||||
}
|
||||
}
|
||||
// //编辑套件简介
|
||||
// $(".edit-produce").on("click",function(){
|
||||
// $(".subject-produce").removeAttr("disabled");
|
||||
// $("#subject-produce").focus();
|
||||
// });
|
||||
// $(".subject-produce").on("blur",function(){
|
||||
// $(".subject-produce").removeAttr("disabled");
|
||||
// $.post(
|
||||
// '<%#= update_attr_subject_path(@subject) %>',
|
||||
// { description: $("#subject-produce").val().trim() },
|
||||
// function (data) {
|
||||
// }
|
||||
// );
|
||||
// if($("#subject-produce").html().trim() == ""){
|
||||
// $("#subject-produce").addClass("color-light-grey");
|
||||
// } else{
|
||||
// $("#subject-produce").removeClass("color-light-grey");
|
||||
// }
|
||||
// })
|
||||
// function getC(that){
|
||||
// if(document.all){
|
||||
// that.range=document.selection.createRange();
|
||||
// that.range.select();
|
||||
// that.range.moveStart("character",-1);
|
||||
// }else{
|
||||
// that.range=window.getSelection().getRangeAt(0);
|
||||
// that.range.setStart(that.range.startContainer,that.html().length);
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
<!--新版阶段列表-->
|
||||
<div class="lesson-saved-list mb20">
|
||||
|
|
@ -57,21 +58,21 @@
|
|||
<p class="ml20 color-grey pr20 mt10 mb10"><%= stage.description %></p>
|
||||
<% stage.stage_shixuns.each_with_index do |stage_shixun, index| %>
|
||||
<% shixun = stage_shixun.shixun %>
|
||||
<div class="clearfix pt10 pb10 pl20 stage-info-line" id="stage_shixun_<%= shixun.id %>" style="cursor: pointer;" onclick="shixun_link('<%= shixun.identifier %>')">
|
||||
<li class="fl li-width50">
|
||||
<div class="clearfix pt10 pb10 pl20 stage-info-line pr20" id="stage_shixun_<%= shixun.id %>" style="cursor: pointer;" onclick="shixun_link('<%= shixun.identifier %>')">
|
||||
<li class="fl li-width63">
|
||||
<i class="fa fa-gamepad color-light-green font-20"></i>
|
||||
<span class="font-bd color-dark-grey"><%= shixun.name %></span>
|
||||
</li>
|
||||
<li class="fl li-width10">
|
||||
<li class="fl li-width15">
|
||||
<i class="fa fa-tasks color-light-green font-16 mr5"></i>
|
||||
<span class="color-dark-grey"><%= shixun.challenges.count %></span>
|
||||
</li>
|
||||
<li class="fl li-width20">
|
||||
<li class="fl li-width15">
|
||||
<i class="fa fa-viacoin color-light-green mr5"></i><span class="mr5"><%= shixun.shixun_score %></span></li>
|
||||
<li class="fl li-width20">
|
||||
<li class="fl li-width7">
|
||||
<% if @subject.status == 0 && User.current.manager_of_subject?(@subject) %>
|
||||
<span class="fl <%= shixun.shixun_status == '编辑中' ? 'color-grey' : (shixun.shixun_status == '审核中' ? 'color-orange' : (shixun.shixun_status == '已发布' ? 'color-light-green' : 'color-light-grey')) %>"><%= shixun.shixun_status %></span>
|
||||
<span class="fl none ml10"><i class="fa fa-exclamation-circle color-red ml5 mr5"></i></span>
|
||||
<span class="<%= shixun.shixun_status == '编辑中' ? 'color-grey' : (shixun.shixun_status == '审核中' ? 'color-orange' : (shixun.shixun_status == '已发布' ? 'color-light-green' : 'color-light-grey')) %>"><%= shixun.shixun_status %></span>
|
||||
<span class="none ml10"><i class="fa fa-exclamation-circle color-red ml5 mr5"></i></span>
|
||||
<% else %>
|
||||
<% case my_shixun_status(shixun, User.current) %>
|
||||
<% when '已通关' %>
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@
|
|||
<div style="min-height: 350px">
|
||||
<% @courses.each do |course| %>
|
||||
<p class="clearfix pl10">
|
||||
<a href="<%= course_path(course) %>" target="_blank" class="font-16 first link-color-grey03"><i class="fa fa-circle-o color-orange02 font-12 ml5 mr5" aria-hidden="true"></i><%= course.name %></a>
|
||||
<span class="font-14 hasmargin"><a href="<%= syllabus_path(course.syllabus) %>" target="_blank" class="link-color-grey03"><%= course.syllabus.title %></a></span>
|
||||
<span class="font-14 hasmargin"><a href="<%= user_path(course.syllabus.user_id) %>" class="link-color-grey03" target="_blank"><%= User.where(:id => course.tea_id).first.show_name %></a></span>
|
||||
<span class="font-14 mr25 color-grey fr"><%= format_time course.updated_at %></span>
|
||||
<a href="<%= course_path(course) %>" target="_blank" class="font-16 first"><i class="fa fa-circle-o color-orange02 font-12 ml5 mr5" aria-hidden="true"></i><%= course.name %></a>
|
||||
<span class="font-14 hasmargin"><a href="<%= syllabus_path(course.syllabus) %>" class="color-grey" target="_blank"><%= course.syllabus.title %></a></span>
|
||||
<span class="font-14 hasmargin"><a href="<%= user_path(course.syllabus.user_id) %>" class="color-grey" target="_blank"><%= User.where(:id => course.tea_id).first.show_name %></a></span>
|
||||
<span class="font-14 mr25 color-grey fr"><%= time_from_now course.updated_at %>更新</span>
|
||||
<span class="font-14 last cl" style="display: none;">分享 <i class="fa fa-weixin font-14 blue" aria-hidden="true"></i></span>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -10,9 +10,22 @@
|
|||
<% @shixuns.each do |shixun| %>
|
||||
<p class="clearfix pl10">
|
||||
<a href="<%= shixun_path(shixun) %>" target="_blank" class="font-16 first"><i class="fa fa-circle-o color-orange02 font-12 ml5 mr5" aria-hidden="true"></i><%= shixun.name.strip %></a>
|
||||
<span class="font-14 hasmargin"><a href="javascript:void(0);" style="cursor: default;">已解锁第<i><%= had_passed_changllenge_count(shixun, @user) %></i>关/共<i><%= shixun.challenges.count %></i>关</a></span>
|
||||
<span class="font-14 hasmargin"><a href="<%= user_path(shixun.user_id) %>" class="link-color-grey03" target="_blank"><%= User.where(:id => shixun.user_id).first.show_name %></a></span>
|
||||
<span class="font-14 fr mr25 color-grey"><%= format_time shixun.created_at %></span>
|
||||
|
||||
<span class="font-14 hasmargin">
|
||||
<a href="javascript:void(0);" class="color-grey" style="cursor: default;">
|
||||
<% if had_passed_changllenge_count(shixun, @user) == 0 %>
|
||||
尚未挑战
|
||||
<% elsif had_passed_changllenge_count(shixun, @user) == -1 %>
|
||||
已挑战至 第1关 / 共<i><%= shixun.challenges.count %></i>关
|
||||
<% elsif (had_passed_changllenge_count(shixun, @user).class == Array) %>
|
||||
已挑战至 第<%= had_passed_changllenge_count(shixun, @user)[0].to_i %>关 / 共<i><%= shixun.challenges.count %></i>关
|
||||
<% else %>
|
||||
已完成至 第<i><%= had_passed_changllenge_count(shixun, @user) %></i>关 / 共<i><%= shixun.challenges.count %></i>关
|
||||
<% end %>
|
||||
</a>
|
||||
</span>
|
||||
<span class="font-14 hasmargin"><a href="<%= user_path(shixun.user_id) %>" class="color-grey" target="_blank"><%= User.where(:id => shixun.user_id).first.show_name %></a></span>
|
||||
<span class="font-14 fr mr25 color-grey"><%= time_from_now shixun.updated_at %>更新</span>
|
||||
<span class="font-14 last cl" style="display: none;">分享 <i class="fa fa-weixin font-14 blue" aria-hidden="true"></i></span>
|
||||
</p>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -1,102 +1,102 @@
|
|||
require File.expand_path('../boot', __FILE__)
|
||||
|
||||
require 'rails/all'
|
||||
require 'sprockets/railtie'
|
||||
require 'elasticsearch/model'
|
||||
|
||||
if defined?(Bundler)
|
||||
# If you precompile assets before deploying to production, use this line
|
||||
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
||||
# If you want your assets lazily compiled in production, use this line
|
||||
# Bundler.require(:default, :assets, Rails.env)
|
||||
end
|
||||
|
||||
module RedmineApp
|
||||
class Application < Rails::Application
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration should go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
#verifier if email is real
|
||||
|
||||
|
||||
config.generators do |g|
|
||||
g.test_framework :rspec,
|
||||
fixtures: true,
|
||||
view_specs: false,
|
||||
helper_specs: false,
|
||||
routing_specs: false,
|
||||
controller_specs: true,
|
||||
request_specs: false
|
||||
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
||||
end
|
||||
# Custom directories with classes and modules you want to be autoloadable.
|
||||
config.autoload_paths += %W(#{config.root}/lib)
|
||||
config.autoload_paths += %w(#{RAILS_ROOT}/app/sweepers)
|
||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
||||
# :all can be used as a placeholder for all plugins not explicitly named.
|
||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
||||
|
||||
# Activate observers that should always be running.
|
||||
config.active_record.observers = :journals_for_message_observer, :issue_observer, :journal_observer, :wiki_content_observer
|
||||
|
||||
config.active_record.store_full_sti_class = true
|
||||
config.active_record.default_timezone = :local
|
||||
config.time_zone = 'Beijing'
|
||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
# config.time_zone = 'Central Time (US & Canada)'
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :zh
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
#disable [deprecated] I18n.enforce_available_locales will default to true in the future.
|
||||
# If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false
|
||||
# to avoid this message.
|
||||
I18n.config.enforce_available_locales = false
|
||||
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
config.filter_parameters += [:password]
|
||||
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = false
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
config.assets.digest = true
|
||||
|
||||
config.action_mailer.perform_deliveries = false
|
||||
|
||||
# Do not include all helpers
|
||||
config.action_controller.include_all_helpers = false
|
||||
|
||||
config.action_view.sanitized_allowed_tags = 'div', 'p', 'span', 'img', 'embed'
|
||||
|
||||
config.middleware.use Rack::Cors do
|
||||
allow do
|
||||
origins '*'
|
||||
# location of your API
|
||||
resource '/api/*', :headers => :any, :methods => [:get, :post, :options, :put]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
config.wechat_srcs = ['app.js','others/factory.js','others/filter.js', 'controllers/*.js', 'directives/*.js', 'others/routes.js']
|
||||
|
||||
config.before_initialize do
|
||||
config.middleware.use ::ResponseIp
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
end
|
||||
|
||||
if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
|
||||
instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
require File.expand_path('../boot', __FILE__)
|
||||
|
||||
require 'rails/all'
|
||||
require 'sprockets/railtie'
|
||||
require 'elasticsearch/model'
|
||||
|
||||
if defined?(Bundler)
|
||||
# If you precompile assets before deploying to production, use this line
|
||||
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
||||
# If you want your assets lazily compiled in production, use this line
|
||||
# Bundler.require(:default, :assets, Rails.env)
|
||||
end
|
||||
|
||||
module RedmineApp
|
||||
class Application < Rails::Application
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration should go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
#verifier if email is real
|
||||
|
||||
|
||||
config.generators do |g|
|
||||
g.test_framework :rspec,
|
||||
fixtures: true,
|
||||
view_specs: false,
|
||||
helper_specs: false,
|
||||
routing_specs: false,
|
||||
controller_specs: true,
|
||||
request_specs: false
|
||||
g.fixture_replacement :factory_girl, dir: "spec/factories"
|
||||
end
|
||||
# Custom directories with classes and modules you want to be autoloadable.
|
||||
config.autoload_paths += %W(#{config.root}/lib)
|
||||
config.autoload_paths += %w(#{RAILS_ROOT}/app/sweepers)
|
||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
||||
# :all can be used as a placeholder for all plugins not explicitly named.
|
||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
||||
|
||||
# Activate observers that should always be running.
|
||||
config.active_record.observers = :journals_for_message_observer, :issue_observer, :journal_observer, :wiki_content_observer
|
||||
|
||||
config.active_record.store_full_sti_class = true
|
||||
config.active_record.default_timezone = :local
|
||||
config.time_zone = 'Beijing'
|
||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
# config.time_zone = 'Central Time (US & Canada)'
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :zh
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
#disable [deprecated] I18n.enforce_available_locales will default to true in the future.
|
||||
# If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false
|
||||
# to avoid this message.
|
||||
# I18n.config.enforce_available_locales = false
|
||||
|
||||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
config.filter_parameters += [:password]
|
||||
|
||||
# Enable the asset pipeline
|
||||
config.assets.enabled = false
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
config.assets.digest = true
|
||||
|
||||
config.action_mailer.perform_deliveries = false
|
||||
|
||||
# Do not include all helpers
|
||||
config.action_controller.include_all_helpers = false
|
||||
|
||||
config.action_view.sanitized_allowed_tags = 'div', 'p', 'span', 'img', 'embed'
|
||||
|
||||
config.middleware.use Rack::Cors do
|
||||
allow do
|
||||
origins '*'
|
||||
# location of your API
|
||||
resource '/api/*', :headers => :any, :methods => [:get, :post, :options, :put]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
config.wechat_srcs = ['app.js','others/factory.js','others/filter.js', 'controllers/*.js', 'directives/*.js', 'others/routes.js']
|
||||
|
||||
config.before_initialize do
|
||||
config.middleware.use ::ResponseIp
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
end
|
||||
|
||||
if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
|
||||
instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -155,7 +155,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]
|
||||
|
|
@ -168,6 +178,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>");
|
||||
}
|
||||
|
|
@ -1000,4 +1003,13 @@ function submit_new_subject(){
|
|||
$("#new_subject_name_notice").hide();
|
||||
$("#new_subject").submit();
|
||||
}
|
||||
}
|
||||
|
||||
function submit_edit_subject(id){
|
||||
if($("#new_subject_name").val().trim() == ""){
|
||||
$("#new_subject_name_notice").show();
|
||||
} else{
|
||||
$("#new_subject_name_notice").hide();
|
||||
$("#edit_subject_"+id).submit();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,333 +1,333 @@
|
|||
/* Focused windows */
|
||||
.overlay_mac_os_x {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.mac_os_x_nw {
|
||||
background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
|
||||
width:24px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_n {
|
||||
background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_ne {
|
||||
background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_w {
|
||||
background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_e {
|
||||
background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_sw {
|
||||
background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_s {
|
||||
background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_se, .mac_os_x_sizer {
|
||||
background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.mac_os_x_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:8px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.mac_os_x_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#FFF;
|
||||
}
|
||||
.mac_os_x_s .status_bar {
|
||||
padding-bottom:24px;
|
||||
}
|
||||
|
||||
/* FOR IE */
|
||||
* html .mac_os_x_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
|
||||
/* Focused windows */
|
||||
.overlay_blur_os_x {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.blur_os_x_nw {
|
||||
background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
|
||||
width:24px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_n {
|
||||
background: transparent url(mac_os_x/T.png) repeat-x 0 0;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_ne {
|
||||
background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_w {
|
||||
background: transparent url(mac_os_x/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.blur_os_x_e {
|
||||
background: transparent url(mac_os_x/R.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.blur_os_x_sw {
|
||||
background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_s {
|
||||
background: transparent url(mac_os_x/B.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_se, .blur_os_x_sizer {
|
||||
background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.blur_os_x_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:8px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.blur_os_x_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#FFF;
|
||||
}
|
||||
.blur_os_x_s .status_bar {
|
||||
padding-bottom:24px;
|
||||
}
|
||||
|
||||
/* FOR IE */
|
||||
* html .blur_os_x_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
/* Focused windows */
|
||||
.overlay_mac_os_x {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.mac_os_x_nw {
|
||||
background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
|
||||
width:24px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_n {
|
||||
background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_ne {
|
||||
background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.mac_os_x_w {
|
||||
background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_e {
|
||||
background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_sw {
|
||||
background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_s {
|
||||
background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_se, .mac_os_x_sizer {
|
||||
background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.mac_os_x_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:8px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.mac_os_x_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#FFF;
|
||||
}
|
||||
.mac_os_x_s .status_bar {
|
||||
padding-bottom:24px;
|
||||
}
|
||||
|
||||
/* FOR IE */
|
||||
* html .mac_os_x_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
|
||||
/* Focused windows */
|
||||
.overlay_blur_os_x {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.blur_os_x_nw {
|
||||
background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
|
||||
width:24px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_n {
|
||||
background: transparent url(mac_os_x/T.png) repeat-x 0 0;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_ne {
|
||||
background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:30px;
|
||||
}
|
||||
|
||||
.blur_os_x_w {
|
||||
background: transparent url(mac_os_x/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.blur_os_x_e {
|
||||
background: transparent url(mac_os_x/R.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.blur_os_x_sw {
|
||||
background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_s {
|
||||
background: transparent url(mac_os_x/B.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_se, .blur_os_x_sizer {
|
||||
background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.blur_os_x_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.blur_os_x_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.blur_os_x_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:8px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.blur_os_x_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#FFF;
|
||||
}
|
||||
.blur_os_x_s .status_bar {
|
||||
padding-bottom:24px;
|
||||
}
|
||||
|
||||
/* FOR IE */
|
||||
* html .blur_os_x_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .blur_os_x_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .blur_os_x_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,160 +1,160 @@
|
|||
.overlay_mac_os_x_dialog {
|
||||
background-color: #FF7224;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_nw {
|
||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
height:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_n {
|
||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||
height:18px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_ne {
|
||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
||||
width:16px;
|
||||
height:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_w {
|
||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_e {
|
||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_sw {
|
||||
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_s {
|
||||
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
||||
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:6px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_buttons {
|
||||
text-align: center;
|
||||
}
|
||||
/* FOR IE */
|
||||
* html .mac_os_x_dialog_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
|
||||
* html .mac_os_x_dialog_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
.overlay_mac_os_x_dialog {
|
||||
background-color: #FF7224;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_nw {
|
||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
height:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_n {
|
||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||
height:18px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_ne {
|
||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
||||
width:16px;
|
||||
height:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_w {
|
||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_e {
|
||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_sw {
|
||||
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_s {
|
||||
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
||||
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
||||
width:31px;
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_close {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:25px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_minimize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:45px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_maximize {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:12px;
|
||||
left:65px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
margin-top:6px;
|
||||
width:100%;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||
}
|
||||
|
||||
.mac_os_x_dialog_buttons {
|
||||
text-align: center;
|
||||
}
|
||||
/* FOR IE */
|
||||
* html .mac_os_x_dialog_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
|
||||
* html .mac_os_x_dialog_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .mac_os_x_dialog_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,164 +1,164 @@
|
|||
.overlay_nuncio img { border: none; }
|
||||
|
||||
.overlay_nuncio {
|
||||
background-color: #666666;
|
||||
}
|
||||
|
||||
.nuncio_nw {
|
||||
width: 12px;
|
||||
height: 28px;
|
||||
background: url(nuncio/top_left.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_n {
|
||||
background: url(nuncio/top_mid.png) repeat-x;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.nuncio_ne {
|
||||
width: 21px;
|
||||
height: 28px;
|
||||
background: url(nuncio/top_right.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_e {
|
||||
width: 21px;
|
||||
background: url(nuncio/center_right.png) repeat-y top right;
|
||||
}
|
||||
|
||||
.nuncio_w {
|
||||
width: 12px;
|
||||
background: url(nuncio/center_left.png) repeat-y top left;
|
||||
}
|
||||
|
||||
.nuncio_sw {
|
||||
width: 12px;
|
||||
height: 18px;
|
||||
background: url(nuncio/bottom_left.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_s {
|
||||
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.nuncio_se, .nuncio_sizer {
|
||||
width: 21px;
|
||||
height: 18px;
|
||||
background: url(nuncio/bottom_right.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_close {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: url(nuncio/close.png) no-repeat;
|
||||
position:absolute;
|
||||
top:10px;
|
||||
right:22px;
|
||||
cursor:pointer;
|
||||
z-index:2000;
|
||||
}
|
||||
|
||||
.nuncio_minimize {
|
||||
width: 14px;
|
||||
height: 15px;
|
||||
background: url(nuncio/minimize.png) no-repeat;
|
||||
position:absolute;
|
||||
top:10px;
|
||||
right:40px;
|
||||
cursor:pointer;
|
||||
z-index:2000;
|
||||
}
|
||||
|
||||
.nuncio_title {
|
||||
float:left;
|
||||
font-size:11px;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
color: #fff;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.nuncio_content {
|
||||
background: url(nuncio/overlay.png) repeat;
|
||||
overflow:auto;
|
||||
color: #ddd;
|
||||
font-family: Tahoma, Arial, "sans-serif";
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.nuncio_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
|
||||
.top_draggable, .bottom_draggable {
|
||||
cursor:move
|
||||
}
|
||||
/* FOR IE */
|
||||
* html .nuncio_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_close {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_minimize {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
.overlay_nuncio img { border: none; }
|
||||
|
||||
.overlay_nuncio {
|
||||
background-color: #666666;
|
||||
}
|
||||
|
||||
.nuncio_nw {
|
||||
width: 12px;
|
||||
height: 28px;
|
||||
background: url(nuncio/top_left.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_n {
|
||||
background: url(nuncio/top_mid.png) repeat-x;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.nuncio_ne {
|
||||
width: 21px;
|
||||
height: 28px;
|
||||
background: url(nuncio/top_right.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_e {
|
||||
width: 21px;
|
||||
background: url(nuncio/center_right.png) repeat-y top right;
|
||||
}
|
||||
|
||||
.nuncio_w {
|
||||
width: 12px;
|
||||
background: url(nuncio/center_left.png) repeat-y top left;
|
||||
}
|
||||
|
||||
.nuncio_sw {
|
||||
width: 12px;
|
||||
height: 18px;
|
||||
background: url(nuncio/bottom_left.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_s {
|
||||
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.nuncio_se, .nuncio_sizer {
|
||||
width: 21px;
|
||||
height: 18px;
|
||||
background: url(nuncio/bottom_right.png) no-repeat;
|
||||
}
|
||||
|
||||
.nuncio_close {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: url(nuncio/close.png) no-repeat;
|
||||
position:absolute;
|
||||
top:10px;
|
||||
right:22px;
|
||||
cursor:pointer;
|
||||
z-index:2000;
|
||||
}
|
||||
|
||||
.nuncio_minimize {
|
||||
width: 14px;
|
||||
height: 15px;
|
||||
background: url(nuncio/minimize.png) no-repeat;
|
||||
position:absolute;
|
||||
top:10px;
|
||||
right:40px;
|
||||
cursor:pointer;
|
||||
z-index:2000;
|
||||
}
|
||||
|
||||
.nuncio_title {
|
||||
float:left;
|
||||
font-size:11px;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
color: #fff;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.nuncio_content {
|
||||
background: url(nuncio/overlay.png) repeat;
|
||||
overflow:auto;
|
||||
color: #ddd;
|
||||
font-family: Tahoma, Arial, "sans-serif";
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.nuncio_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
|
||||
.top_draggable, .bottom_draggable {
|
||||
cursor:move
|
||||
}
|
||||
/* FOR IE */
|
||||
* html .nuncio_nw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_n {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_ne {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_w {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_e {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_sw {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_s {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
|
||||
}
|
||||
|
||||
* html .nuncio_se {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_sizer {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_close {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
* html .nuncio_minimize {
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,108 +1,108 @@
|
|||
.overlay_spread {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.spread_nw {
|
||||
background: transparent url(spread/left-top.gif) no-repeat 0 0;
|
||||
width:10px;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_n {
|
||||
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_ne {
|
||||
background: transparent url(spread/right-top.gif) no-repeat 0 0;
|
||||
width:10px;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_w {
|
||||
background: transparent url(spread/frame-left.gif) repeat-y top left;
|
||||
width:7px;
|
||||
}
|
||||
|
||||
.spread_e {
|
||||
background: transparent url(spread/frame-right.gif) repeat-y top right;
|
||||
width:7px;
|
||||
}
|
||||
|
||||
.spread_sw {
|
||||
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
|
||||
width:7px;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_s {
|
||||
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_se, .spread_sizer {
|
||||
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
|
||||
width:7px;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.spread_close {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:11px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_minimize {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:55px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_maximize {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:33px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:14px;
|
||||
font-weight:bold;
|
||||
text-align:left;
|
||||
margin-top:2px;
|
||||
width:100%;
|
||||
color:#E47211;
|
||||
}
|
||||
|
||||
.spread_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#A9EA00;
|
||||
}
|
||||
|
||||
.overlay_spread {
|
||||
background-color: #85BBEF;
|
||||
filter:alpha(opacity=60);
|
||||
-moz-opacity: 0.6;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.spread_nw {
|
||||
background: transparent url(spread/left-top.gif) no-repeat 0 0;
|
||||
width:10px;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_n {
|
||||
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_ne {
|
||||
background: transparent url(spread/right-top.gif) no-repeat 0 0;
|
||||
width:10px;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.spread_w {
|
||||
background: transparent url(spread/frame-left.gif) repeat-y top left;
|
||||
width:7px;
|
||||
}
|
||||
|
||||
.spread_e {
|
||||
background: transparent url(spread/frame-right.gif) repeat-y top right;
|
||||
width:7px;
|
||||
}
|
||||
|
||||
.spread_sw {
|
||||
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
|
||||
width:7px;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_s {
|
||||
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_se, .spread_sizer {
|
||||
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
|
||||
width:7px;
|
||||
height:7px;
|
||||
}
|
||||
|
||||
.spread_sizer {
|
||||
cursor:se-resize;
|
||||
}
|
||||
|
||||
.spread_close {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:11px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_minimize {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:55px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_maximize {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:33px;
|
||||
cursor:pointer;
|
||||
z-index:1000;
|
||||
}
|
||||
|
||||
.spread_title {
|
||||
float:left;
|
||||
height:14px;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size:14px;
|
||||
font-weight:bold;
|
||||
text-align:left;
|
||||
margin-top:2px;
|
||||
width:100%;
|
||||
color:#E47211;
|
||||
}
|
||||
|
||||
.spread_content {
|
||||
overflow:auto;
|
||||
color: #222;
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
font-size: 10px;
|
||||
background:#A9EA00;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,12 +91,12 @@ a.edu-ad-user{ }
|
|||
|
||||
/* 试用授权用户列表 17/06/05 bylinda*/
|
||||
.edu-admin-nav{ width:100%; background:#fff; height: 50px; }
|
||||
.edu-admin-nav-li{ width:9%; text-align: center; border-bottom:3px solid #fff; height:47px; line-height:47px;}
|
||||
.edu-admin-nav-li{ width:8.3%; text-align: center; border-bottom:3px solid #fff; height:47px; line-height:47px;}
|
||||
.edu-admin-nav-li:hover,.edu-admin-nav-li.active{border-bottom:3px solid #5faee3;}
|
||||
a.edu-admin-nav-a{ display: block; height: 24px; border-right:1px solid #ddd; line-height:24px; margin-top:13px; color:#333;}
|
||||
a:hover.edu-admin-nav-a,.active a.edu-admin-nav-a{color: #5faee3;}
|
||||
.edu-admin-nav-inner{ border:1px solid #ccc; border-top:none;top:50px; position:absolute; background:#fff; z-index:999; display: none;}
|
||||
.edu-admin-nav-inner li{ width:105px; height: 40px; line-height: 40px; border-bottom:none;}
|
||||
.edu-admin-nav-inner li{ width:97px; height: 40px; line-height: 40px; border-bottom:none;}
|
||||
.edu-admin-nav-inner li:hover{ background:#eee;}
|
||||
.edu-admin-nav-inner li a{ height: 40px; line-height:40px; }
|
||||
.edu-admin-nav-li:hover .edu-admin-nav-inner{ display: block;}
|
||||
|
|
@ -123,4 +123,8 @@ a:hover.edu-admin-nav-a,.active a.edu-admin-nav-a{color: #5faee3;}
|
|||
.edu-dropdown-menu p{height: 35px;line-height: 35px;}
|
||||
|
||||
.ex_container{margin-bottom: 20px;}
|
||||
.table_Name_text{padding-left: 5px;text-align: left;display: block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height: 39px;width: 370px;line-height: 39px;-webkit-box-orient: vertical;}
|
||||
.table_Name_text{padding-left: 5px;text-align: left;display: block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height: 39px;width: 370px;line-height: 39px;-webkit-box-orient: vertical;}
|
||||
/*管理员单位列表页面*/
|
||||
.edu-txt-left{ text-align: left;}
|
||||
/*课程列表*/
|
||||
.only_view{font-size: 14px;margin-right: 30px;vertical-align:top;}
|
||||
|
|
@ -3,7 +3,7 @@ html,body{ font-size:14px; line-height:2.0; height:100%;}
|
|||
.newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;}
|
||||
.newMain{ margin: 0 auto; padding-bottom: 155px; }
|
||||
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px}
|
||||
.newHeader{background: #46484c;width:100%; height: 50px; min-width: 1200px}
|
||||
.newHeader{background: #303133;width:100%; height: 50px; min-width: 1200px}
|
||||
/* 重置样式 */
|
||||
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;}
|
||||
body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5;; color:#333;}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ input.header-search-input{ width:150px; height:30px; padding:0 5px; border-style
|
|||
.new-container-inner02{width:1200px; margin:0px auto; padding:50px 0;}
|
||||
.inner-nav-mes{ font-size:16px; color:#fff; margin-right:35px; margin-top:18px; }
|
||||
.inner-nav-cir{ background:#ff6530; color:#fff; border-radius:15px;padding:0 5px; display: inline-block; font-size:10px; height:17px; line-height:17px;}
|
||||
.inner-nav-user{ width: 75px; height: 45px; margin-top:5px; position: relative; padding-left: 20px;}
|
||||
.inner-nav-user{ width: 75px; height: 45px; margin-top:5px; position: relative; padding-left: 0px;}
|
||||
.inner-nav-user-img{ width: 40px; height: 40px; border-radius:50px;}
|
||||
select.header-search-select{ border:none; font-size:14px; padding:5px; background: none;}
|
||||
.edu-unlogin-nav a{ color:#fff!important; font-size:14px; line-height:50px;}
|
||||
|
|
@ -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;}
|
||||
|
|
@ -261,8 +261,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:40px;background: #f5f5f5; border-bottom:2px solid #FF6610;}
|
||||
#edu-user-tab-nav li.new-tab-nav {float:left; width: 120px; text-align:center;height:42px;line-height:42px; }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*------课程实训首页---------*/
|
||||
.header-color{background: linear-gradient(304.95deg, rgb(0, 158, 138) 0%, rgb(22, 212, 190) 100%) rgb(22, 212, 190);padding: 30px}
|
||||
.header-color{background: linear-gradient(to right, rgb(68, 190, 164) 0%, rgb(62, 158, 207) 100%);padding: 30px}
|
||||
.active-class .content .sub-con{width:23.7%;border:1px solid #eee;background:#fff;margin: 0 1.5% 1.5% 0px;box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);}
|
||||
.active-class .content .sub-con:nth-child(4n+0){margin:0 0 1.5% 0;}
|
||||
.active-class .content .sub-con:hover{box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);cursor: pointer;-webkit-animation: bounce-down 1s linear 1;animation: bounce-down 1s linear 1;}
|
||||
|
|
@ -30,9 +30,10 @@
|
|||
.lesson-saved-list-item{border:1px solid #EEEEEE}
|
||||
.lesson-saved-list-item:hover .edit{color:#29bd8b!important;}
|
||||
.lesson-saved-list-item:hover .delete{color:#29bd8b!important;}
|
||||
li.li-width50{width: 50%;text-align: left}
|
||||
li.li-width63{width: 63%;text-align: left}
|
||||
li.li-width20{width: 20%;text-align: left}
|
||||
li.li-width10{width: 10%;text-align: left}
|
||||
li.li-width15{width: 15%;text-align: left}
|
||||
li.li-width7{width: 7%;text-align: left}
|
||||
.lesson-saved-list-item{background-color: #FFFFFF}
|
||||
/*------课程实训首页---------*/
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ input.new_loggin_input_test{ -webkit-box-shadow: 0 0 0px 1000px white inset; ou
|
|||
|
||||
|
||||
/*头部排版更改*/
|
||||
.lector{display: block;width: auto;padding: 0px 8px;background: cornflowerblue;color: #ffffff;font-size: 14px;margin-right: 15px;border-radius: 4px;margin-top: 3px;}
|
||||
.lector{display: block;width: auto;padding: 0px 8px;background: #5ECFBA;color: #ffffff;font-size: 14px;margin-right: 15px;border-radius: 4px;margin-top: 3px;}
|
||||
.u-color-light-red{color: #FF6666}
|
||||
.u-color-light-grey{color: #CCCCCC}
|
||||
.user-info-span{border-radius: 50%;float:left;background: #F3F5F7;text-align: center;width: 23px;height: 23px;line-height: 23px;margin-top: 3px;margin-right: 5px}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
25% {margin-top:-10px;}
|
||||
50%, 100% {margin-top: 0;}
|
||||
}
|
||||
.sidebar{width:60px;height:100%;box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.15);position:fixed;left:0;top:0;background:#fff;}
|
||||
.sidebar-top{height:50px;line-height:50px;background:#46484c;text-align:center;}
|
||||
.sidebar{width:50px;height:100%;box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.15);position:fixed;left:0;top:0;background:#fff;}
|
||||
.sidebar-top{height:50px;line-height:50px;background:#35373a;text-align:center;}
|
||||
.sidebar-top span{color:#fff;display:none;}
|
||||
.sidebar-con{padding-top:20px;white-space: nowrap;}
|
||||
.sidebar-con .list{min-height:45px;margin-top:15px;}
|
||||
|
|
|
|||
|
|
@ -150,11 +150,13 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
|
|||
.-flex-basic40{flex-basis:auto;}
|
||||
.-flex-basic50{flex-basis:auto;}
|
||||
.b-label{width:4px;cursor:ew-resize;background:#2b2b2b;}
|
||||
.h-center{height:4px;cursor:ns-resize;background:#33485F;z-index:9999;}
|
||||
.h-center{height:4px;cursor:ns-resize;background:#33485F;}
|
||||
.-changebg{height:3px;}
|
||||
.-brother{width:100%;height:100%;position:absolute;left:0;top:0;z-index:999;}
|
||||
.-bg-weightblack{background:#000;}
|
||||
.-flex-basic70{flex:4 9 auto;}
|
||||
/*---------------------------------------------*/
|
||||
.-flex-basic60{flex:4 9 auto;}
|
||||
.-flex-basic60{flex:none;}
|
||||
.-flex-basic100{flex-basis: 100%!important;}
|
||||
.-header-title{ max-width:500px; font-weight: normal;}
|
||||
.-header-right{ background:#333;border-radius:25px; padding:5px 15px; height: 30px; position: absolute; right:10px;line-height: 30px;}
|
||||
|
|
@ -218,8 +220,8 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
|
|||
.task-index{ width: 1200px; margin:0 auto;}
|
||||
.task-index-head{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15); }
|
||||
/*.task-index-head-top{background-image: linear-gradient(to right, rgb(106, 177, 216) 0%, rgb(1, 74, 78) 100%);background-color: rgb(1, 70, 74); padding:30px;}*/
|
||||
.task-index-head-top{background: #1ECDCE linear-gradient(to top left, #48A7D1 0%, #1ECDCE 100%);background-color: rgb(1, 70, 74); padding:30px;}
|
||||
.task-index-head-top-course{background: linear-gradient(to right, rgb(162, 171, 234) 0%, rgb(114, 123, 177) 100%);background-color:rgb(160, 175, 247); padding:30px;}
|
||||
.task-index-head-top{background: linear-gradient(to right, rgb(104, 177, 215) 0%, rgb(1,75,79) 100%);background-color: rgb(1, 70, 74); padding:30px;}
|
||||
.task-index-head-top-course{background: linear-gradient(to right, rgb(69, 191, 165) 0%, rgb(164, 175, 247) 100%);background-color:rgb(160, 175, 247); padding:30px;}
|
||||
.task-inde-head-title{ color:#fff; }
|
||||
.task-index-head-info{ background:#fff; padding:10px 30px;}
|
||||
.task-index-head-info li{ width:100px; float: left; text-align: center; color:#666;}
|
||||
|
|
|
|||
Loading…
Reference in New Issue