socialforge/app/views/homework_attach/_show.html.erb

194 lines
11 KiB
Plaintext
Raw Normal View History

2014-11-02 09:46:07 +08:00
<script type="text/javascript" language="javascript">
2014-10-30 19:32:43 +08:00
//<!CDATA[
function g(o){return document.getElementById(o);}
function HoverLi(n){
2014-10-31 17:00:12 +08:00
//如果有N个标签,就将i<=N;
2014-11-02 14:41:41 +08:00
for(var i=3;i<=5;i++){g('ping_tb_'+i).className='ping_normaltab';g('tbc_0'+i).className='ping_undis';}g('tbc_0'+n).className='ping_dis';g('ping_tb_'+n).className='ping_hovertab';
2014-10-30 19:32:43 +08:00
}
2014-10-31 17:00:12 +08:00
//如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick;
//]]>
2014-10-30 19:32:43 +08:00
</script>
2014-11-02 11:17:39 +08:00
<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable'%>
2014-10-30 19:32:43 +08:00
<div id="popbox">
<div class="ping_con">
2014-11-02 09:46:07 +08:00
<h2><%= @homework.name %></h2>
2014-10-30 19:32:43 +08:00
<ul>
2014-11-02 09:46:07 +08:00
<li><%= l(:label_create_person) %><span class="c_grey"><%= link_to @homework.user, user_path(@homework.user)%></span></li>
<li style=" margin-left:130px;"><%= l(:label_activity_time) %><span class="c_grey" ><%=format_time @homework.created_at %></span></li>
2014-10-30 19:32:43 +08:00
</ul>
<div class="cl"></div>
2014-11-02 09:46:07 +08:00
<% if @homework.users.count > 0 %>
<div><%= l(:label_participation_person) %>
<% @homework.users.each do |homework_user| %>
<span class="c_grey"><%= link_to homework_user, user_path(homework_user)%></span>
<% if @homework.users.count > 1 && homework_user != @homework.users.last %>
、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<% end %>
<% end %>
</div>
<% end %>
<p>
<% if @homework.description != nil && @homework.description != "" %>
<%= @homework.description %>
<% else %>
<div style="font-size: 15px;color: #15BCCC;vertical-align:middle;padding-top: 10px;padding-left: 10px ">
<strong><%= l(:label_homework_without_description) %></strong>
</div>
<% end %>
</p>
<p style=" border-bottom:none; color:#333; margin-top:8px;"><strong><%= l(:label_attachment) %>
</strong>
<span>
<% if @is_evaluation || is_teacher%>
<% options = {:author => true } %>
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
<% else %>
<%= l(:label_cant_download) %>
<% end %>
</span>
</p>
2014-10-30 19:32:43 +08:00
<div class="ping_star">
2014-11-02 11:17:39 +08:00
<%= l(:label_work_rating) %>
2014-11-02 09:46:07 +08:00
<%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>
2014-10-30 19:32:43 +08:00
</div>
<div class="cl"></div>
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => nil} %>
<!-- <textarea id="ta_msg_content" name="content" placeholder="最多250个字"></textarea>
<a href="#" class="ping_sub">提交评论</a> -->
2014-10-30 19:32:43 +08:00
<div class="cl"></div>
2014-10-31 17:00:12 +08:00
</div><!---ping_con end--->
2014-10-30 19:32:43 +08:00
<div class="ping_list">
<div id="ping_tb_" class="ping_tb_">
<ul>
<li id="ping_tb_4" class="ping_normaltab" onmouseover="i:HoverLi(4);">
2014-11-02 14:41:41 +08:00
<%= l(:label_teacher_comments) %><span class="c_red">30</span></li>
<li id="ping_tb_5" class="ping_normaltab" onmouseover="i:HoverLi(5);">
<%= l(:label_anonymous_comments) %><span class="c_red">30</span></li>
<li id="ping_tb_3" class="ping_hovertab" onmouseover="x:HoverLi(3);">
<%= l(:label_responses) %><span class="c_red">30</span></li>
2014-10-30 19:32:43 +08:00
</ul>
</div>
<div class="cl"></div>
<div class="ping_ctt">
<div class="ping_dis" id="tbc_03">
2014-10-30 19:32:43 +08:00
<div class="ping_C">
2014-11-02 09:46:07 +08:00
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
2014-10-30 19:32:43 +08:00
<div class="ping_discon">
<div class="ping_distop">
2014-11-02 09:46:07 +08:00
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
2014-10-30 19:32:43 +08:00
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了前十四位的验证就相当于转换类型再查表一样所以它的验证号码速度比一般的方式快。如果还不明白就说明你写框架写多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
<div class="ping_C">
2014-11-02 09:46:07 +08:00
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
2014-10-30 19:32:43 +08:00
<div class="ping_discon">
<div class="ping_distop">
2014-11-02 09:46:07 +08:00
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
2014-10-30 19:32:43 +08:00
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了前十四位的验证就相当于转换类型再查表一样所以它的验证号码速度比一般的方式快。如果还不明白就说明你写框架写多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
2014-10-31 17:00:12 +08:00
<div class="cl"></div>
<div class="recall">
2014-11-02 09:46:07 +08:00
<div class="recall_head"><a href="#" target="_blank"><img src="images/225905790.jpg" width="30" height="30"></a></div>
2014-10-31 17:00:12 +08:00
<div class="recall_con">
<a href="#">jack</a>&nbsp;回复&nbsp;<a href="#">jack</a>:
<p>我们尽快修复,此问题已发现原因,测试后我们尽快上线。谢谢反馈!!</p>
<span style="float:left; color:#a6a6a6;">2014-10-31</span>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
<div class="recall">
2014-11-02 09:46:07 +08:00
<div class="recall_head"><a href="#" target="_blank"><img src="images/225905790.jpg" width="30" height="30"></a></div>
2014-10-31 17:00:12 +08:00
<div class="recall_con">
<a href="#">jack</a>&nbsp;回复&nbsp;<a href="#">jack</a>:
<p>我们尽快修复,此问题已发现原因,测试后我们尽快上线。谢谢反馈!!</p>
<span style="float:left; color:#a6a6a6;">2014-10-31</span>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
2014-10-30 19:32:43 +08:00
</div>
<div class="cl"></div>
</div>
<div class="ping_C">
2014-11-02 09:46:07 +08:00
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
2014-10-30 19:32:43 +08:00
<div class="ping_discon">
<div class="ping_distop">
2014-11-02 09:46:07 +08:00
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
2014-10-30 19:32:43 +08:00
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了前十四位的验证就相当于转换类型再查表一样所以它的验证号码速度比一般的方式快。如果还不明白就说明你写框架写多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
</div><!--全部评论end-->
<div class="ping_undis" id="tbc_04">
2014-10-30 19:32:43 +08:00
<div class="ping_C">
2014-11-02 09:46:07 +08:00
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
2014-10-30 19:32:43 +08:00
<div class="ping_discon">
<div class="ping_distop">
2014-11-02 09:46:07 +08:00
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
2014-10-30 19:32:43 +08:00
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
</div>
2014-11-02 14:41:41 +08:00
<div class="ping_undis" id="tbc_05">
<div class="ping_C">
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
<div class="ping_discon">
<div class="ping_distop">
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
<div class="ping_C">
<div class="ping_dispic"><a href="#" target="_blank"><img src="images/225905790.jpg" width="46" height="46"></a></div>
<div class="ping_discon">
<div class="ping_distop">
<span><a href="#" target="_blank" style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;">gugu01</a></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;">2014-10-24</span><span style="font-weight:bold; color:#a6a6a6; ">评分:<a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a><a href="#"></a></span>
<div class="cl"></div>
<p>我写了一个验证身份证号码的程序它是以一定内存空间大概100M)换取cpu消耗然后它的运算量就降低了多了或者</p>
</div>
<div class="ping_disfoot"><a href="#">删除</a><a href="#">回复</a></div>
</div>
<div class="cl"></div>
</div>
2014-10-30 19:32:43 +08:00
</div>
</div>
2014-11-02 14:41:41 +08:00
</div><!---ping_list end--->
</div>