parent
0496c33378
commit
7970bd6df0
|
@ -29,10 +29,22 @@
|
|||
<div class="cl"></div>
|
||||
<p id="bid_description_<%= bid.id%>" class="news_description mt5">
|
||||
<%= textilizable bid, :description %>
|
||||
<br /> <%= l(:label_create_time)%> : <%= format_time bid.created_on%></p>
|
||||
<div class="news_foot" onclick="bid_show_more_des(<%= bid.id%>);"><%= l(:label_expend_information)%>
|
||||
<span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span>
|
||||
<div class="news_foot c_red" onclick="bid_show_more_des(<%= bid.id%>);" style="cursor:pointer;">
|
||||
<%= l(:button_more)%>...
|
||||
<span class="g-arr-down"></span>
|
||||
</div>
|
||||
<span class="fl"><%= l(:label_end_time)%>:<%= bid.deadline%></span>
|
||||
<% if betweentime(bid.deadline) < 0 %>
|
||||
<span class='fr mr10 pr_join_span '>
|
||||
<%= l(:label_commit_limit)%>
|
||||
</span>
|
||||
<% else %>
|
||||
<script type="text/javascript">
|
||||
window.setInterval(function(){show_bid_dead_line(<%= bid.deadline.year%>,<%= bid.deadline.month%>,<%= bid.deadline.day + 1%>,"bid_deadline_<%= bid.id%>");},1000)
|
||||
</script>
|
||||
<div id="bid_deadline_<%= bid.id%>">
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,7 @@ $(document).ready(function () {
|
|||
$("#RSide").css("min-height",$("#LSide").height()-30);
|
||||
});
|
||||
//课程作业结束时间倒计时
|
||||
function ShowCountDown(year,month,day,divname)
|
||||
function show_bid_dead_line(year,month,day,divname)
|
||||
{
|
||||
var now = new Date();
|
||||
var endDate = new Date(year, month-1, day);
|
||||
|
@ -45,11 +45,13 @@ function ShowCountDown(year,month,day,divname)
|
|||
var hour=Math.floor((leftsecond-day1*24*60*60)/3600);
|
||||
var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60);
|
||||
var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60);
|
||||
$("#"+divname).html("<span style='color: #acaeb1;'>作业提交还剩 :</span> <span style='color: red;'>"
|
||||
+day1+" </span><span style='color: #acaeb1;'>天</span><span style='color: red;'> "
|
||||
+hour+" </span><span style='color: #acaeb1;'>时</span><span style='color: red;'> "
|
||||
+minute+" </span><span style='color: #acaeb1;'>分</span><span style='color: red;'> "
|
||||
+second+" </span><span style='color: #acaeb1;'>秒</span>");
|
||||
$("#"+divname).html("<form name='formnow' class='fr'>"
|
||||
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+day1+"' > 天"
|
||||
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+hour+"' > 小时"
|
||||
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+minute+"' > 分"
|
||||
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+second+"' > 秒"
|
||||
+ "</form>"
|
||||
+ "<p class='fr'>作业提交还剩:</p>");
|
||||
}
|
||||
//验证新建作业的名字
|
||||
function regex_bid_name()
|
||||
|
|
Loading…
Reference in New Issue