管理员界面实训课堂相关页面html

This commit is contained in:
XuCheng642 2017-07-18 14:45:23 +08:00
parent fd9dd1b3df
commit a8fc640b2e
15 changed files with 927 additions and 401 deletions

78
.gitignore vendored
View File

@ -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

View File

@ -18,6 +18,21 @@ class ManagementsController < ApplicationController
end
def unit
end
def classroom
end
def classroom_classment
end
def class_shixuns
end
def class_publish_shixuns
end
def class_shixun_authorization
end
# 0 全部1 活动的; 2 已注册; 3 锁定
def users
@ -51,7 +66,7 @@ class ManagementsController < ApplicationController
end
def shixuns
@menu_type = 3
@menu_type = 3
sx_status = params[:status].blank? ? [0, 1, 2, 3] : params[:status].to_i # 搜索实训的状态
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
search = params[:search] # 搜索的字
@ -83,73 +98,73 @@ class ManagementsController < ApplicationController
end
end
# 已发布的实训
def publish_shixuns
@menu_type = 3
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
search = params[:search] # 搜索字
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
close = params[:close] # 关闭实训,参数是实训的Id
unless close.blank?
Shixun.find(close).update_attribute(:status, 3)
end
if "u_name" == keyword
# 如果用户搜索为空不用遍历user表直接查找所有实训, 有搜索时才查找user
if search.blank?
@shixuns = Shixun.where(:status => 2).order("created_at #{@sx_order}")
else
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
@shixuns = Shixun.where(:user_id => user_id, :status => 2).order("created_at #{@sx_order}")
end
else
@shixuns = Shixun.where("name like '%#{search}%'").where(:status => 2).order("created_at #{@sx_order}")
end
@shixuns_count = @shixuns.count
limit = 20
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
@offset ||= @shixuns_pages.offset
@shixuns = paginateHelper @shixuns, limit
respond_to do |format|
format.js
format.html
end
end
# 已关闭的实训
def close_shixuns
@menu_type = 3
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
search = params[:search] # 搜索字
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
reopen = params[:reopen] # 从新开启实训,参数是实训的Id
unless reopen.blank?
Shixun.find(reopen).update_attribute(:status, 2)
end
if "u_name" == keyword
# 如果用户搜索为空不用遍历user表直接查找所有实训, 有搜索时才查找user
if search.blank?
@shixuns = Shixun.where(:status => 3).order("updated_at #{@sx_order}")
else
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
@shixuns = Shixun.where(:user_id => user_id, :status => 3).order("updated_at #{@sx_order}")
end
else
@shixuns = Shixun.where("name like '%#{search}%'").where(:status => 3).order("updated_at #{@sx_order}")
end
@shixuns_count = @shixuns.count
limit = 20
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
@offset ||= @shixuns_pages.offset
@shixuns = paginateHelper @shixuns, limit
respond_to do |format|
format.js
format.html
end
end
# 已发布的实训
def publish_shixuns
@menu_type = 3
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
search = params[:search] # 搜索字
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
close = params[:close] # 关闭实训,参数是实训的Id
unless close.blank?
Shixun.find(close).update_attribute(:status, 3)
end
if "u_name" == keyword
# 如果用户搜索为空不用遍历user表直接查找所有实训, 有搜索时才查找user
if search.blank?
@shixuns = Shixun.where(:status => 2).order("created_at #{@sx_order}")
else
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
@shixuns = Shixun.where(:user_id => user_id, :status => 2).order("created_at #{@sx_order}")
end
else
@shixuns = Shixun.where("name like '%#{search}%'").where(:status => 2).order("created_at #{@sx_order}")
end
@shixuns_count = @shixuns.count
limit = 20
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
@offset ||= @shixuns_pages.offset
@shixuns = paginateHelper @shixuns, limit
respond_to do |format|
format.js
format.html
end
end
# 已关闭的实训
def close_shixuns
@menu_type = 3
@sx_order = params[:sx_order].blank? ? "desc" : params[:sx_order] # 排序
search = params[:search] # 搜索字
keyword = params[:keyword].blank? ? "u_name" : params[:keyword] # 根据姓名/实训名搜索
reopen = params[:reopen] # 从新开启实训,参数是实训的Id
unless reopen.blank?
Shixun.find(reopen).update_attribute(:status, 2)
end
if "u_name" == keyword
# 如果用户搜索为空不用遍历user表直接查找所有实训, 有搜索时才查找user
if search.blank?
@shixuns = Shixun.where(:status => 3).order("updated_at #{@sx_order}")
else
user_id = User.where("concat(lastname, firstname) like '%#{search}%'")
@shixuns = Shixun.where(:user_id => user_id, :status => 3).order("updated_at #{@sx_order}")
end
else
@shixuns = Shixun.where("name like '%#{search}%'").where(:status => 3).order("updated_at #{@sx_order}")
end
@shixuns_count = @shixuns.count
limit = 20
@shixuns_pages = Paginator.new @shixuns_count, limit, params['page'] || 1
@offset ||= @shixuns_pages.offset
@shixuns = paginateHelper @shixuns, limit
respond_to do |format|
format.js
format.html
end
end
def users_trial
@menu_type = 6
@users = User.where(:status => 1).order("created_on desc").all

View File

@ -21,22 +21,37 @@
</div>
<div class="newMain clearfix"> <!-- 主题部分 -->
<div class="edu-class-container" >
<p class="mb10 ml25"><i class="fa fa-map-marker mr5 color-grey"></i>
<a href="">胡莎莎</a> &gt; <a href="">班级列表</a>
</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"><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 class="fl edu-admin-nav-li edu-position"><a href="javascript:void(0);" class="edu-admin-nav-a">课堂+</a>
<ul class="edu-admin-nav-inner edu-absolute">
<li><%= link_to "课程列表", classroom_managements_path %></li>
<li><%= link_to "班级列表", classroom_classment_managements_path %></li>
</ul>
</li>
<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 == 3 %>" 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_managements_path, :class => "edu-admin-nav-a" %></li>
<li><%= link_to "单位部门列表",departments_part_managements_path %></li>
<li><%= link_to "单位列表", departments_part_managements_path, :class => "edu-admin-nav-a" %></li>
<li><%= link_to "单位部门列表", departments_managements_path%></li>
</ul>
</li>
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 6 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">用户</a>
@ -51,9 +66,10 @@
<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>
<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 '课程实训发布', class_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>

View File

@ -0,0 +1,55 @@
<div class="edu-con-top clearfix xmt10">
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
<option value="" selected="selected">选择单位</option>
<option value="0"></option>
<option value="1"></option>
<option value="2"></option>
</select>
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
<option value="0">创建者姓名搜索</option>
<option value="1">班级名称搜索</option>
</select>
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th width="8%">ID</th>
<th width="40%" class="edu-txt-left">课程实训名称</th>
<th width="20%" class="edu-txt-left">单位</th>
<th width="15%">创建者</th>
<th >发布时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
</tr>
<tr>
<td>2</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
</tr>
<tr>
<td>2</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
</tr>
</tbody>
</table>
<script>
$(".class_shixun_delete").click(function(){
$(this).parent().remove();
});
</script>

View File

@ -0,0 +1,140 @@
<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="cl"></div>
<div id="authentication_list" class="auth_table">
<div class="admin-con-box clearfix">
<a href="#" target="_blank" class="fl with10 edu-ad-user">
<img alt="头像" class="fl with10 edu-ad-user" height="50" src="/images/avatars/User/0" width="50">
</a>
<div class="fl with90">
<ul>
<li class="clearfix mb5">
<a href="#" class="fl">国防科技大学—瑶瑶</a>
<a href="javascript:void(0);" class="fr color-orange">拒绝</a>
<a href="javascript:void(0);" class="fr mr15 color-orange" data-remote="true">同意</a>
</li>
<li class="clearfix mb10">
<a href="#" target="_blank"><b>C++程序设计</b></a>
</li>
<li class="clearfix mb10">
<span>5 阶段</span><span class="ml30">8 实训</span><span class="ml30">15 关卡</span>
</li>
<div class="undis">
<li class="clearfix edu-form-border mb10">
<label class="edu-form-label fl">原因:</label>
<input type="text" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="我得说点儿什么最多200个字符">
</li>
<li class="clearfix">
<a href="javascript:void(0);" class="task-btn task-btn-blue fr">确定</a>
<a href="javascript:void(0);" class="task-btn fr mr10">取消</a>
</li>
</div>
</ul>
</div>
</div>
<div class="admin-con-box clearfix">
<a href="#" target="_blank" class="fl with10 edu-ad-user">
<img alt="头像" class="fl with10 edu-ad-user" height="50" src="/images/avatars/User/0" width="50">
</a>
<div class="fl with90">
<ul>
<li class="clearfix mb5">
<a href="#" class="fl">国防科技大学—瑶瑶</a>
<a href="javascript:void(0);" class="fr color-orange">拒绝</a>
<a href="javascript:void(0);" class="fr mr15 color-orange" data-remote="true">同意</a>
</li>
<li class="clearfix mb10">
<a href="#" target="_blank"><b>C++程序设计</b></a>
</li>
<li class="clearfix mb10">
<span>5 阶段</span><span class="ml30">8 实训</span><span class="ml30">15 关卡</span>
</li>
<div class="undis">
<li class="clearfix edu-form-border mb10">
<label class="edu-form-label fl">原因:</label>
<input type="text" class="task-form-90 task-height-40 panel-box-sizing fl edu-form-noborder" placeholder="我得说点儿什么最多200个字符">
</li>
<li class="clearfix">
<a href="javascript:void(0);" class="task-btn task-btn-blue fr">确定</a>
<a href="javascript:void(0);" class="task-btn fr mr10">取消</a>
</li>
</div>
</ul>
</div>
</div>
<div style="text-align:center;">
<div class="pages_right_min" style="width:auto; display:inline-block;">
<ul id="homework_pository_ref_pages">
</ul>
<div class="cl"></div>
</div>
</div>
</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="admin-con-box clearfix">
<a href="#" target="_blank" class="fl with10 edu-ad-user">
<img alt="头像" class="fl with10 edu-ad-user" height="50" src="/images/avatars/User/0" width="50">
</a>
<div class="fl with90">
<ul>
<li class="clearfix mb5">
<a href="#" class="fl">国防科技大学—瑶瑶</a>
<a class=" task-btn task-btn-green fr ">已同意</a>
</li>
<li class="clearfix mb10">
<a href="#" target="_blank"><b>C++程序设计</b></a>
</li>
<li class="clearfix mb10">
<span>5 阶段</span><span class="ml30">8 实训</span><span class="ml30">15 关卡</span>
</li>
</ul>
</div>
</div>
<div class="cl"></div>
</div>
</div>
<div class="cl"></div>
</div>
</div>
</div>
<script type="text/javascript">
function reject_shixun_authentication_reason(nThis){
var reason = $(nThis).parent().parent().find('div');
reason.find("input").val("");
reason.toggle();
}
</script>

View File

@ -0,0 +1,79 @@
<div class="edu-con-top clearfix xmt10">
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
<option value="" selected="selected">全部状态</option>
<option value="0">编辑中</option>
<option value="1">待审核</option>
<option value="2">已发布</option>
</select>
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
<option value="" selected="selected">选择单位</option>
<option value="0"></option>
<option value="1"></option>
<option value="2"></option>
</select>
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
<option value="0">创建者姓名搜索</option>
<option value="1">班级名称搜索</option>
</select>
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th width="9%">ID</th>
<th width="20%" class="edu-txt-left">课程实训名称</th>
<th width="6%">阶段</th>
<th width="6%">实训</th>
<th width="8%">状态</th>
<th width="20%" class="edu-txt-left">单位</th>
<th width="8%">创建者</th>
<th width="11%">创建时间<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td>5</td>
<td>8</td>
<td>编辑中</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="class_shixun_delete"><a href="#">删除</a></td>
</tr>
<tr>
<td>2</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td>5</td>
<td>8</td>
<td>编辑中</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="class_shixun_delete"><a href="#">删除</a></td>
</tr>
<tr>
<td>3</td>
<td class="edu-txt-left"><a href="">C语言课程实训</a></td>
<td>5</td>
<td>8</td>
<td>编辑中</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="class_shixun_delete"><a href="#">删除</a></td>
</tr>
</tbody>
</table>
<script>
$(".class_shixun_delete").click(function(){
$(this).parent().remove();
});
</script>

View File

@ -0,0 +1,93 @@
<div class="edu-con-top clearfix xmt10">
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
<option value="" selected="selected">专业层级</option>
<option value="0">专科</option>
<option value="1">本科</option>
<option value="2">研究生</option>
</select>
<select class="fl task-form-15 task-height-30" style="margin:0px 30px 0px 50px;">
<option value="" selected="selected">学科门类</option>
<option value="0">工学</option>
<option value="1">理学</option>
<option value="2">装备制造类</option>
<option value="3">公共管理与服务类</option>
</select>
<select class="fl task-form-20 task-height-30" style="margin:0px 30px 0px 25px;" >
<option value="" selected="selected">一级学科</option>
<option value="0">公共事业类</option>
<option value="1">计算机类</option>
<option value="2">船舶与海洋工程装备类</option>
</select>
<select class="fl task-form-20 task-height-30" style="margin:0px 30px 0px 25px;">
<option value="" selected="selected">专业名称</option>
<option value="0">软件工程</option>
<option value="1">公共管理</option>
<option value="2">计算机科学与应用</option>
<option value="3">船舶与海洋工程专业</option>
</select>
<select class="fl task-form-30 task-height-30" style="margin:20px 30px 10px 25px;">
<option value="" selected="selected">选择创建单位</option>
<option value="0"></option>
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
<select class="fl task-form-15 task-height-30" style="margin:20px 0px 10px 25px;width: 11%">
<option value="0">创建者姓名搜索</option>
<option value="1">课程名称搜索</option>
</select>
<span class="fr shixun_webssh">
<input type="checkbox"class="mr5 magic-checkbox" id="join_course_role_1">
<label style="top:-30px;padding-left:23px;" for="join_course_role_1"><span class="only_view">只看模板</span></label>
</span>
<input class="fl task-form-20 task-height-30 mt20" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5 mt20" onclick="$('#management_search_user').submit();">搜索</a>
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 mt20" id="clear_contents">清除</a>
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th width="9%">ID</th>
<th width="10%">层级</th>
<th width="16%" class="edu-txt-left">学科门类</th>
<th width="10%">一级学科</th>
<th width="10%">专业名称</th>
<th width="17%" 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>课堂模版</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>专科</td>
<td class="edu-txt-left"><a href="">公共管理与服务大类</a></td>
<td>公共事业类</td>
<td>公共事业管理</td>
<td class="edu-txt-left">人力资源管理</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</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>
<tr>
<td>1</td>
<td>专科</td>
<td class="edu-txt-left"><a href="">公共管理与服务大类</a></td>
<td>公共事业类</td>
<td>公共事业管理</td>
<td class="edu-txt-left">人力资源管理</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="operate"><span class="fr shixun_webssh">
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_2">
<label style="top:-14px;padding-left: 45px;" for="join_course_role_2"></label>
</span></td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,116 @@
<div class="edu-con-top clearfix xmt10">
<select class="fl task-form-10 task-height-30" style="margin:0px 10px 0px 25px;" >
<option value="" selected="selected">全部状态</option>
<option value="0">正在进行</option>
<option value="1">已结束</option>
</select>
<select class="fl task-height-30" style="margin:0px 30px 0px 25px;padding: 5px;width: 25%" >
<option value="" selected="selected">选择创建者单位</option>
<option value="0"></option>
<option value="1"></option>
<option value="2"></option>
</select>
<select class="fl task-form-15 task-height-30" style="margin:0px 0px 10px 25px;width: 11%">
<option value="0">创建者姓名搜索</option>
<option value="1">班级名称搜索</option>
</select>
<input class="fl task-form-20 task-height-30" name="search" maxlength="" placeholder="输入关键字进行搜索" type="text" style="height: 21px;" >
<a href="javascript:void(0);" class="fl task-btn task-btn-blue ml5" onclick="$('#management_search_user').submit();">搜索</a>
<a href="javascript:void(0);" class="fl task-btn ml5 mt2 " id="clear_contents">清除</a>
<span class="fr shixun_webssh">
<input type="checkbox"class="mr5 magic-checkbox" id="join_course_role_1">
<label style="top:2px;padding-left:23px;" for="join_course_role_1"><span class="only_view">只看首页显示</span></label>
</span>
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th width="9%">ID</th>
<th width="20%" class="edu-txt-left">班级名称</th>
<th width="4%">成员</th>
<th width="4%">资源</th>
<th width="4%">作业</th>
<th width="4%">试卷</th>
<th width="4%">私有</th>
<th width="4%">模版</th>
<th width="8%">状态</th>
<th width="15%" 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>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">人力资源开发与管理2016级C班</a></td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>√</td>
<td></td>
<td>正在进行</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</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">
</td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">人力资源开发与管理2016级C班</a></td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>18</td>
<td></td>
<td>√</td>
<td>正在进行</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</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>
</td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">人力资源开发与管理2016级C班</a></td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>√</td>
<td></td>
<td>正在进行</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="operate"><span class="fr shixun_webssh">
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_2">
<label style="top:-14px;padding-left: 35px;" for="join_course_role_2"></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left"><a href="">人力资源开发与管理2016级C班</a></td>
<td>18</td>
<td>18</td>
<td>18</td>
<td>18</td>
<td></td>
<td>√</td>
<td>正在进行</td>
<td class="edu-txt-left">国防科技大学</td>
<td>黄井泉</td>
<td>2015-03-02 11:38</td>
<td class="operate"><span class="fr shixun_webssh">
<input type="checkbox" value="0" class="ml-3 mr5 magic-checkbox" id="join_course_role_4">
<label style="top:-14px;padding-left: 35px;" for="join_course_role_4"></td>
</tr>
</tbody>
</table>

View File

@ -32,35 +32,46 @@
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th class="id">序号</th>
<th class="part edu-txt-left">部门名称</th>
<th class="unit edu-txt-left">单位名称</th>
<th class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th class="editor"></th>
<th width="9%">序号</th>
<th width="20%" class="edu-txt-left">部门名称</th>
<th width="35%" 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>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="unit edu-txt-left">中国科学近代物理研究所</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="unit edu-txt-left">中国科学近代物理研究所</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td class="edu-txt-left">中国科学近代物理研究所</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td class="edu-txt-left">中国科学近代物理研究所</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td class="edu-txt-left">中国科学近代物理研究所</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td class="edu-txt-left">中国科学近代物理研究所</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="unit edu-txt-left">中国科学近代物理研究所</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
</tbody>
</table>
<script>
// var find=$("#shixun_Look_name").val();

View File

@ -31,38 +31,42 @@
</div>
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th class="id">序号</th>
<th class="part edu-txt-left">部门名称</th>
<th class="number">用户数</th>
<th class="job_num">已认证职业</th>
<th class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th class="editor"></th>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="number">200</td>
<td class="job_num">3</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="number">200</td>
<td class="job_num">3</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">计算机学院</td>
<td class="number">200</td>
<td class="job_num">3</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="editor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
<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>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td>200</td>
<td>3</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td>200</td>
<td>3</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">计算机学院</td>
<td>200</td>
<td>3</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
</tbody>
</table>
<script>
// var find=$("#shixun_Look_name").val();

View File

@ -33,61 +33,66 @@
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th class="xid">序号</th>
<th class="xlogo">LOGO</th>
<th class="xpart edu-txt-left">单位名称</th>
<th class="xregion">地区</th>
<th class="xadd edu-txt-left">详细地址</th>
<th class="xuser-num">用户数</th>
<th class="xpart-num">部门数</th>
<th class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th class="xeditor"></th>
</tr>
<tr>
<td class="xid">1</td>
<td class="xlogo"><img src=\"img/编辑.png\"/></td>
<td class="xpart edu-txt-left">中国科学院近代物理研究所</td>
<td class="xregion">北京市海淀区</td>
<td class="xadd edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td class="xuser-num">3</td>
<td class="xpart-num">2</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="xid">1</td>
<td class="xlogo"><img src=\"img/编辑.png\"/></td>
<td class="xpart edu-txt-left">中国科学院近代物理研究所</td>
<td class="xregion">北京市海淀区</td>
<td class="xadd edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td class="xuser-num">3</td>
<td class="xpart-num">2</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="xid">1</td>
<td class="xlogo"><img src=\"img/编辑.png\"/></td>
<td class="xpart edu-txt-left">中国科学院近代物理研究所</td>
<td class="xregion">北京市海淀区</td>
<td class="xadd edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td class="xuser-num">3</td>
<td class="xpart-num">2</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="xid">1</td>
<td class="xlogo"><img src=\"img/编辑.png\"/></td>
<td class="xpart edu-txt-left">中国科学院近代物理研究所</td>
<td class="xregion">北京市海淀区</td>
<td class="xadd edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td class="xuser-num">3</td>
<td class="xpart-num">2</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
<th width="9%">序号</th>
<th width="6%">LOGO</th>
<th width="19%" class="edu-txt-left">单位名称</th>
<th width="15%">地区</th>
<th width="19%" class="edu-txt-left">详细地址</th>
<th width="6%">用户数</th>
<th width="6%">部门数</th>
<th width="10%"class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><img src=\"img/编辑.png\"/></td>
<td class="edu-txt-left">中国科学院近代物理研究所</td>
<td>北京市海淀区</td>
<td class="edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td>3</td>
<td>2</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" title="编辑资料"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td>1</td>
<td><img src=\"img/编辑.png\"/></td>
<td class="edu-txt-left">中国科学院近代物理研究所</td>
<td>北京市海淀区</td>
<td class="edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td>3</td>
<td>2</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" title="编辑资料"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td>1</td>
<td><img src=\"img/编辑.png\"/></td>
<td class="edu-txt-left">中国科学院近代物理研究所</td>
<td>北京市海淀区</td>
<td class="edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td>3</td>
<td>2</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" title="编辑资料"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td>1</td>
<td><img src=\"img/编辑.png\"/></td>
<td class="edu-txt-left">中国科学院近代物理研究所</td>
<td>北京市海淀区</td>
<td class="edu-txt-left">湖北省武汉市武汉纺织大学</td>
<td>3</td>
<td>2</td>
<td >2018-02-02 10:02</td>
<td><a href="javascript:void(0);" title="编辑资料"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
</tbody>
</table>
<script>
// var find=$("#shixun_Look_name").val();

View File

@ -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>

View File

@ -34,51 +34,47 @@
<table class="edu-pop-table edu-txt-center" cellpadding="0" cellspacing="0" style="table-layout: fixed">
<thead>
<tr>
<th class="id">序号</th>
<th class="part edu-txt-left">单位名称</th>
<th class="xregion">地区</th>
<th class="part edu-txt-left">详细地址</th>
<th class="xperson">申请者</th>
<th class="eud-pointer">创建于<i class="fa fa-long-arrow-down color-light-green ml5" title=""></i></th>
<th class="xeditor"></th>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td class="xregion">山西省运城市</td>
<td class="part edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td class="xperson">胡莎莎</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td class="xregion">山西省运城市</td>
<td class="part edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td class="xperson">胡莎莎</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">山西省云城市临猗县白的空间省会花园小区178号</td>
<td class="xregion">山西省运城市</td>
<td class="part edu-txt-left">山西省云城市临猗县的空间省会花园小区178号</td>
<td class="xperson">胡莎莎</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
</tr>
<tr>
<td class="id">1</td>
<td class="part edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td class="xregion">山西省运城市</td>
<td class="part edu-txt-left">山西省云城市临猗县的空间省会花园小区178号</td>
<td class="xperson">胡莎莎</td>
<td class="eud-pointer">2018-02-02 10:02</td>
<td class="xeditor"><a href="javascript:void(0);" title="编辑资料" id="edit_my_account"><i class="fa fa-edit font-16"></i> 修改</a></td>
<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>
<tr>
<td>1</td>
<td class="edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td>山西省运城市</td>
<td class="edu-txt-left">山西省云城市临猗县的空间省会花园小区178号</td>
<td>胡莎莎</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td>山西省运城市</td>
<td class="edu-txt-left">山西省云城市临猗县的空间省会花园小区178号</td>
<td>胡莎莎</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
<tr>
<td>1</td>
<td class="edu-txt-left">山西省云城市临猗县白沙空间省会花园小区178号</td>
<td>山西省运城市</td>
<td class="edu-txt-left">山西省云城市临猗县的空间省会花园小区178号</td>
<td>胡莎莎</td>
<td>2018-02-02 10:02</td>
<td><a href="javascript:void(0);" >批准&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >删除&nbsp;&nbsp;&nbsp;</a><a href="javascript:void(0);" >修改</a></td>
</tr>
</tbody>
</table>
<script>

View File

@ -34,24 +34,24 @@ RedmineApp::Application.routes.draw do
resources :subjects do
member do
get 'choose_subject_shixun'
get 'choose_subject_shixun'
end
collection do
get 'create_subject'
get 'new_subject'
post 'append_to_stage'
post 'append_to_stage'
end
end
resources :stages do
member do
end
collection do
end
end
resources :stages do
member do
end
collection do
end
end
resources :shixuns do
member do
get 'game_webssh'
@ -134,8 +134,8 @@ RedmineApp::Application.routes.draw do
resources :managements do
collection do
match 'shixuns', :via => [:get, :post]
match 'publish_shixuns', :via => [:get, :post]
match 'close_shixuns', :via => [:get, :post]
match 'publish_shixuns', :via => [:get, :post]
match 'close_shixuns', :via => [:get, :post]
get 'approve'
get 'trial_authorization', :as => 'trial_authorization'
get 'shixun_authorization'
@ -156,6 +156,11 @@ RedmineApp::Application.routes.draw do
get 'departments_part'
get 'depart'
get 'unit'
get 'classroom'
get 'classroom_classment'
get 'class_shixuns'
get 'class_publish_shixuns'
get 'class_shixun_authorization'
end
end
# Enable Grack support
@ -868,7 +873,7 @@ RedmineApp::Application.routes.draw do
get 'user_archive_courses'
post 'reply_detail'
get 'user_show_course_list'
get 'search_shixuns_or_courses'
get 'search_shixuns_or_courses'
end
member do
@ -1348,7 +1353,7 @@ RedmineApp::Application.routes.draw do
get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))', :to => 'repositories#changes'
# shixun
get 'shixuns/:id/repository/:repository_id/commits(/*path(.:ext))', :to => 'repositories#commits'
get 'shixuns/:id/repository/:repository_id/shixun_commit_diff/:changeset_id', :to => 'repositories#shixun_commit_diff'
get 'shixuns/:id/repository/:repository_id/shixun_commit_diff/:changeset_id', :to => 'repositories#shixun_commit_diff'
get 'projects/:id/repository/:repository_id/revisions/:rev', :to => 'repositories#revision'
get 'projects/:id/repository/:repository_id/revision', :to => 'repositories#revision'

View File

@ -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;}
@ -125,15 +125,6 @@ a:hover.edu-admin-nav-a,.active a.edu-admin-nav-a{color: #5faee3;}
.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;}
/*管理员单位列表页面*/
.id{ width: 9%;}
.number,.job_num,.editor,.c_time{ width: 15%;}
.part{ width: 30%;}
.r6{margin-right: 65px}
/*管理员单位列表部门页面*/
.xlogo,.xeditor{width: 7%}
.xadd,.xpart{width: 24%;overflow: hidden;}
.eud-pointer{width: 10%}
.xregion{width: 9%;vertical-align: top;padding-top: 4px}
.xuser-num,.xpart-num{width: 5%}
.mt10{margin-top: 10px}
.edu-txt-left{ text-align: left;}
.edu-txt-left{ text-align: left;}
/*课程列表*/
.only_view{font-size: 14px;margin-right: 30px;vertical-align:top;}