学生列表界面静态显示
This commit is contained in:
parent
9a08daa1d2
commit
5f41c92cb3
|
@ -311,7 +311,8 @@ class CoursesController < ApplicationController
|
|||
when '2'
|
||||
@subPage_title = l :label_student_list
|
||||
page = params[:page].nil? ? 0 : (params['page'].to_i - 1)
|
||||
@all_members = student_homework_score(0,page, 10,"desc")
|
||||
# @all_members = student_homework_score(0,page, 10,"desc")
|
||||
@all_members = @course.members
|
||||
@members = paginateHelper_for_members @all_members, 10
|
||||
end
|
||||
respond_to do |format|
|
||||
|
|
|
@ -0,0 +1,173 @@
|
|||
<div class="st_list">
|
||||
<div class="st_search">
|
||||
<form class="f_l"><input type="text" name="" value="输入学生姓名、学号进行搜索" class="st_search_input"/></form>
|
||||
<a href="#" class="f_l">搜索</a>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<div class="st_addclass">
|
||||
<ul>
|
||||
<li style=" color:#8b8b8b;">分班:</li>
|
||||
<li class="classbox">
|
||||
<a href="#">全部</a>
|
||||
</li>
|
||||
<li class="classbox_on">
|
||||
<a href="#">A班(<span class="c_red">29人</span>)</a><a href="#" onClick="sAlert('温馨提示:已有学生加入该班级,不能删除该班级,仅可编辑班级名称。');" style="margin-right:5px;" ><img src="images/courses/pic_del.gif" width="11" height="12" alt="删除班级" title="删除该班级" /></a>
|
||||
<a href="javascript:void(0)" class="f_l" onclick="$('#add_tag01').slideToggle();"><img src="images/courses/pic_edit.png" width="14" height="15" alt="编辑班级 "title="编辑该班级" /></a>
|
||||
</li>
|
||||
<li>
|
||||
<span id="add_tag01" style="display:none; vertical-align: middle;" class=" f_l">
|
||||
<input type="text" id="" name="" size="20" class="isTxt w90 f_l" maxlength="100" />
|
||||
<input type="button" class="submit f_l" onclick="addTag();"/>
|
||||
</span>
|
||||
</li>
|
||||
<li class="classbox">
|
||||
<a href="#">B班(<span class="c_red">29人</span>)</a><a href="#" style="margin-right:5px;" ><img src="images/courses/pic_del.gif" width="11" height="12" alt="删除班级" title="删除该班级"/></a>
|
||||
<a href="javascript:void(0)" class="f_l" onclick="$('#add_tag02').slideToggle();"><img src="images/courses/pic_edit.png" width="14" height="15" alt="编辑班级" title="编辑该班级" /></a>
|
||||
</li>
|
||||
<li>
|
||||
<span id="add_tag02" style="display:none; vertical-align: middle;" class=" f_l">
|
||||
<input type="text" id="" name="" size="20" class="isTxt w90 f_l" maxlength="100" />
|
||||
<input type="button" class="submit f_l" onclick="addTag();"/>
|
||||
</span>
|
||||
</li>
|
||||
<li class="classbox">
|
||||
<a href="#">C班(<span class="c_red">29人</span>)</a><a href="#" style="margin-right:5px;" ><img src="images/courses/pic_del.gif" width="11" height="12" alt="删除班级" title="删除该班级"/></a>
|
||||
<a href="javascript:void(0)" class="f_l" onclick="$('#add_tag03').slideToggle();"><img src="images/courses/pic_edit.png" width="14" height="15" alt="编辑班级" title="编辑该班级" /></a>
|
||||
</li>
|
||||
<li>
|
||||
<span id="add_tag03" style="display:none; vertical-align: middle;" class=" f_l">
|
||||
<input type="text" id="" name="" size="20" class="isTxt w90 f_l" maxlength="100" />
|
||||
<input type="button" class="submit f_l" onclick="addTag();"/>
|
||||
</span>
|
||||
</li>
|
||||
<li style="margin-left:15px;">
|
||||
<a href="javascript:void(0)" class="st_add f_l" onclick="$('#add_tag04').slideToggle();">+添加分班</a>
|
||||
</li>
|
||||
<li>
|
||||
<span id="add_tag04" style="display:none; vertical-align: middle;" class="ml10 f_l">
|
||||
<input type="text" id="" name="" size="20" class="isTxt w90 f_l" maxlength="100" />
|
||||
<input type="button" class="submit f_l" onclick="addTag();"/>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<div class="st_box">
|
||||
<ul class="st_box_top">
|
||||
<li class="ml50"><a href="#">姓名</a><a href="#" class="st_up"></a></li>
|
||||
<li class="ml10"><a href="#">学号</a><a href="#" class="st_down"></a></li>
|
||||
<li class="ml358"><a href="#" >作业积分</a><a href="#" class="st_down"></a></li>
|
||||
<li class="ml50"><a href="#" >加入时间</a></li>
|
||||
</ul>
|
||||
<div class="cl"></div><!--st_box_top end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
<div class="st_boxlist">
|
||||
<a href="#" class="st_img"><img src="images/courses/pic_01.jpg" width="32" height="32" alt="学生" /></a>
|
||||
<ul>
|
||||
<li ><a href="#">姓名:<span >阿里巴巴</span></a></li><br />
|
||||
<li><a href="#">学号:<span>123456</span></a></li>
|
||||
</ul>
|
||||
<a href="#" class="ml258 c_red">4.2</a>
|
||||
<span class="ml65 c_grey">2014-11-27</span>
|
||||
</div>
|
||||
<div class="cl"></div><!--st_boxlist end-->
|
||||
</div>
|
||||
</div> <!-- st_list end-->
|
||||
|
||||
<ul class="wlist" >
|
||||
<li><a href="#">下一页</a></li>
|
||||
<li><a href="#">...</a></li>
|
||||
<li><a href="#">2</a></li>
|
||||
<li class="wlist_select" ><a href="#">1</a></li>
|
||||
<li><a href="#">上一页</a></li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
|
@ -48,27 +48,7 @@
|
|||
<h2 class="project_h2"><%= @subPage_title%></h2>
|
||||
</div>
|
||||
<% if @subPage_title == l(:label_student_list)%>
|
||||
<div class="st_list" id="member_of_course">
|
||||
<div class="st_search" style="margin-left: 14px" >
|
||||
<span class="f_l"><%= @subPage_title %></span>
|
||||
<span id = "search_members">
|
||||
<%= render :partial => 'searchmembers' %>
|
||||
</span>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<% if @subPage_title == l(:label_student_list) %>
|
||||
<div class="st_addclass" id = "st_groups">
|
||||
<%= render :partial => 'groups_name', :locals => {:course_groups => @course_groups} %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="cl"></div>
|
||||
|
||||
<div class="member_content" id = "member_content">
|
||||
<%= error_messages_for 'member' %>
|
||||
<%= render :partial => @render_file, :locals => {:members => @members} %>
|
||||
</div>
|
||||
</div>
|
||||
<%= render :partial => 'course_student', :locals => {:members => @members} %>
|
||||
<% else%>
|
||||
<%= render :partial => 'course_teacher', :locals => {:members => @members} %>
|
||||
<% end%>
|
||||
|
|
Loading…
Reference in New Issue