81 lines
2.8 KiB
Plaintext
81 lines
2.8 KiB
Plaintext
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<title>开启匿评功能</title>
|
||
<style>
|
||
/* 匿名评分弹框 */
|
||
.anonymos{width:480px;height:180px;position:fixed !important;z-index:100;left:50%;top:50%;margin:-215px 0 0 -300px; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
|
||
.ni_con { width:425px; margin:25px 30px;}
|
||
.ni_con h2{ display:block; height:40px; width:425px; text-align:center; color:#3a3a3a;}
|
||
.ni_con p{ color:#808181; }
|
||
.ni_con a:hover{ text-decoration:none;}
|
||
.ni_btn{ width:190px; margin:15px auto; line-height:1.9;}
|
||
a.tijiao{ height:28px; display:block; width:80px; color:#fff; background:#15bccf; text-align:center; padding-top:4px; float:left; margin-right:15px;}
|
||
a:hover.tijiao{ background:#0f99a9;}
|
||
.c_blue{ color:#0195bd;}
|
||
.c_pink{ color:#e65d5e;}
|
||
</style>
|
||
|
||
<script type="text/javascript">
|
||
function clickOK()
|
||
{
|
||
hideModal("#popbox02");
|
||
$.ajax({
|
||
type: "GET",
|
||
url: "<%= bid.comment_status == 0 ? start_anonymous_comment_bid_path(bid) : stop_anonymous_comment_bid_path(bid)%>",
|
||
data: 'text',
|
||
success: function (data) {
|
||
|
||
}
|
||
});
|
||
}
|
||
function clickCanel(){hideModal("#popbox02");}
|
||
</script>
|
||
</head>
|
||
|
||
<body>
|
||
<div id="popbox02">
|
||
<div class="ni_con">
|
||
<% if @bid.comment_status == 0%>
|
||
<h2>开启匿评功能</h2>
|
||
<p>
|
||
开启匿评后学生将不能对作业进行
|
||
<span class="c_blue">修改、删除</span>
|
||
等操作,目前有
|
||
<span class="c_pink"><%= totle_size%>个</span>
|
||
学生,共提交了
|
||
<span class="c_pink"><%= cur_size %></span>
|
||
份作业,占
|
||
<span class="c_pink"><%= percent %>%</span>,
|
||
是否确定开启匿评?
|
||
</p>
|
||
<% elsif @bid.comment_status == 1 %>
|
||
<h2>关闭匿评功能</h2>
|
||
<p>
|
||
关闭匿评后学生将不能对作业进行
|
||
<span class="c_blue">匿评</span>
|
||
,且作业列表将会
|
||
<span class="c_blue">公开</span>,
|
||
目前分配了
|
||
<span class="c_pink"><%= totle_size%>份</span>
|
||
匿评作业,已评了
|
||
<span class="c_pink"><%= cur_size %></span>
|
||
份作业,占
|
||
<span class="c_pink"><%= percent %>%</span>,
|
||
是否确定关闭匿评?
|
||
</p>
|
||
<% end %>
|
||
<div class="ni_btn">
|
||
<a href="javascript:" class="tijiao" onclick="clickOK();" >
|
||
确 定
|
||
</a>
|
||
<a href="javascript:" class="tijiao" onclick="clickCanel();">
|
||
取 消
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|
||
|