- - 学号
- - 学生姓名
- - 作品名称
- - 教师评分
- - 教辅评分
- - 匿评
- - 成绩
-
-
-
+
+ <% @stundet_works.each do |student_work|%>
+
+
+
+ <% end%>
-
-
-
-
diff --git a/app/views/student_work/show.js.erb b/app/views/student_work/show.js.erb
new file mode 100644
index 000000000..1f7e98e48
--- /dev/null
+++ b/app/views/student_work/show.js.erb
@@ -0,0 +1,7 @@
+if($("#about_hwork_<%= @work.id%>").children().length > 0)
+ {$("#about_hwork_<%= @work.id%>").html("");}
+else
+ {
+ $("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'show',:locals => {:work => @work}) %>");
+ $('#score_<%= @work.id%>').peSlider({range: 'min'});
+ }
\ No newline at end of file
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index d3588d502..63d20fefd 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -721,7 +721,56 @@ $.fn.peSlider = function(settings){
});
};
+//返回顶部
+$(function(){goTopEx();});
+
+var Sys = {};
+var ua = navigator.userAgent.toLowerCase();
+var s;
+(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
+ (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
+ (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
+ (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
+ (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
+
+function goTopEx() {
+ var obj = document.getElementById("goTopBtn");
+ var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
+ function getScrollTop() {
+ var xsun = document.documentElement.scrollTop;
+ if (Sys.chrome) {
+ xsun=document.body.scrollTop;
+ }
+ return xsun;
+ }
+ function setScrollTop(value) {
+ if (Sys.chrome) {
+ document.body.scrollTop = value;
+ }
+ else {
+ document.documentElement.scrollTop = value;
+ }
+ }
+ window.onscroll = function () { getScrollTop() > 0 ? obj.style.display = "" : obj.style.display = "none"; };
+ obj.onclick = function () {
+ var goTop = setInterval(scrollMove, 10);
+ function scrollMove() {
+ setScrollTop(getScrollTop() / 1.1);
+ if (getScrollTop() < 1) clearInterval(goTop);
+ }
+ }
+}
+
+//匿评评分提示
$(function(){
- //创建输入滑杆
- $('#score').peSlider({range: 'min'});
+ $(".student_score_info").bind("mouseover",function(e){
+ //alert($(this).html());
+ $(this).find("div").show();
+ $(this).find("div").css("top",e.pageY);
+ $(this).find("div").css("left",e.pageX);
+ });
+ $(".student_score_info").bind("mouseout",function(e){
+ //alert($(this).html());
+ $(this).find("div").hide();
+ });
});
\ No newline at end of file
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index d29ac1a84..e1d314c53 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -649,8 +649,8 @@ a:hover.down_btn{ background:#14ad5a; color:#fff; border:1px solid #14ad5a;}
.min_search{ width:200px; height:20px; border:1px solid #d0d0d0; color:#666; background:url(../images/public_icon.png) 185px -193px no-repeat; cursor:pointer;}
.li_min_search{ float:right; margin-right:-10px;}
.info_ni{ width:100px; padding:5px;position: absolute;display:none;-moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; box-shadow:0px 0px 5px #194a81; color:#666; background:#fff; text-align:left;}
-
-
+/*返回顶部*/
+.to_top{width: 19px;height: 74px;position: fixed;top: 50px;right: 1px;color: white;background: #15bccf; line-height: 1.2; padding-top: 10px;padding-left: 5px;font-size: 14px;cursor: pointer;}
/* 评分插件 */
input#score{ width:40px;}