You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

_commit_alert.html.erb 2.0 kB

​
​
​
​
​
​
​
​
​
​
​
123456789101112131415161718192021222324
  1. <div id="popbox" style="text-align: center;margin-top: 25px">
  2. <% if @save == 1 %>
  3. <h3 style="font-weight: normal;color: green">保存成功,测验日期截止前您还可以继续答题。</h3>
  4. <%= link_to "确定", exercise_index_path(:course_id => @course.id),:class => 'commit'%>
  5. <% elsif status == 0 && exercise.time != -1%>
  6. <h3 style="font-weight: normal;color: green">提交成功!您的分数是:<%=@score %>分。</h3>
  7. <%= link_to "确定", exercise_path(),:class => 'commit'%>
  8. <% elsif status == 0 && Time.parse(format_time(exercise.end_time)).strftime("%Y-%m-%d %H:%M:%S") > Time.now.strftime("%Y-%m-%d %H:%M:%S") %>
  9. <h3 style="font-weight: normal;color: green">提交成功,测验日期截止前您还可以修改,祝您考高分。</h3>
  10. <%= link_to "确定", exercise_index_path(:course_id => @course.id),:class => 'commit'%>
  11. <% elsif status == 1 && Time.parse(format_time(exercise.end_time)).strftime("%Y-%m-%d %H:%M:%S") > Time.now.strftime("%Y-%m-%d %H:%M:%S")%>
  12. <h3 style="font-weight: normal;color: red">提交成功,您还有未完成的题目,测验日期截止前您还可以继续答题,祝您考高分。</h3>
  13. <%= link_to "确定",exercise_index_path(:course_id => @course.id),:class => 'commit'%>
  14. <% elsif status == 1 && Time.parse(format_time(exercise.end_time)).strftime("%Y-%m-%d %H:%M:%S") <= Time.now.strftime("%Y-%m-%d %H:%M:%S")%>
  15. <h3 style="font-weight: normal;color: red">时间已到!</h3>
  16. <%= link_to "确定", exercise_path(),:class => 'commit'%>
  17. <% elsif status == 2 %>
  18. <h3 style="font-weight: normal;color: red">发生未知错误,请检查您的网络。</h3>
  19. <%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
  20. <% else %>
  21. <h3 style="font-weight: normal;color: green">时间已到!您的分数是:<%=@score %>分。</h3>
  22. <%= link_to "确定", exercise_path(),:class => 'commit'%>
  23. <% end %>
  24. </div>

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...