2015-07-19 20:08:57 +08:00
|
|
|
<div class="project_r_h">
|
2015-07-21 09:59:41 +08:00
|
|
|
<h2 class="project_h22"><%= l(:label_project_dts_new) %></h2>
|
2015-07-19 20:08:57 +08:00
|
|
|
</div>
|
|
|
|
|
2015-07-20 16:03:33 +08:00
|
|
|
<!--JS进度条-->
|
|
|
|
<style type="text/css">
|
|
|
|
#out{}
|
|
|
|
#in{width:10px; height:20px;background:#15BCCF;color:white;text-align:center;}
|
|
|
|
#font_color{background:yellow;text-align:center;color:white;}
|
2015-07-21 13:10:02 +08:00
|
|
|
td.redBox {border:1px solid #b0b0b0; width:80px; background-color:#EAEAEA; }
|
|
|
|
td.redBox2 {border:1px solid #b0b0b0; width:120px; }
|
2015-07-20 16:03:33 +08:00
|
|
|
</style>
|
|
|
|
<div style="padding-left: 200px;">
|
2015-07-20 16:28:35 +08:00
|
|
|
<div id='out'>
|
2015-07-21 09:59:41 +08:00
|
|
|
<p style="padding-left: 100px;padding-bottom: 10px;font-size: 14px;">代码上传分析中...</p>
|
2015-07-20 16:28:35 +08:00
|
|
|
<div style="width:300px;height:20px;background:#EEE;">
|
2015-07-21 09:59:41 +08:00
|
|
|
<div id="in" style="width:1%">1%</div>
|
2015-07-20 16:28:35 +08:00
|
|
|
<div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
i=0;
|
|
|
|
$(function(){
|
2015-07-21 09:59:41 +08:00
|
|
|
ba=setInterval("begin()",70);//setInterval 返回的是一个全局变量,一个间隔数值.这个数值是表示调用setInterval的次数
|
2015-07-20 16:28:35 +08:00
|
|
|
});
|
|
|
|
function begin()
|
2015-07-20 16:03:33 +08:00
|
|
|
{
|
2015-07-20 16:28:35 +08:00
|
|
|
i+=1;
|
|
|
|
if(i<=100)
|
|
|
|
{
|
|
|
|
document.getElementById("in").style.width=i+"%";
|
|
|
|
document.getElementById("in").innerHTML=i+"%";}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
clearInterval(ba);
|
|
|
|
$("#show_content_div").show();
|
|
|
|
$("#out").hide();
|
2015-07-20 16:03:33 +08:00
|
|
|
// document.getElementById("out").style.display="none";
|
|
|
|
// document.write("<span style='background:yellow;text-align:center;color:white;'>Successs!</span>");
|
2015-07-20 16:28:35 +08:00
|
|
|
}
|
2015-07-20 16:03:33 +08:00
|
|
|
}
|
|
|
|
|
2015-07-20 16:28:35 +08:00
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-20 16:03:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-07-21 13:10:02 +08:00
|
|
|
<div id="show_content_div" style="display: none;padding-top: 0px;">
|
2015-07-21 15:47:53 +08:00
|
|
|
<p class="fr f14 " style="padding-right: 32px;padding-bottom: 10px;">语言:<span style="color: red">Java</span> 总文件数:<span style="color: red">361</span> 代码行数:<span style="color: red">48662</span></p>
|
2015-07-20 16:03:33 +08:00
|
|
|
|
2015-07-21 15:47:53 +08:00
|
|
|
<% @dts.each do |dt| %>
|
|
|
|
<div style="padding-left: 35px;padding-top: 10px;">
|
|
|
|
<table width="600" border="0" style="padding-left: 30px;padding-top: 100px; border-spacing:0; border-collapse:collapse; border: 1px solid #b0b0b0;">
|
2015-07-21 13:10:02 +08:00
|
|
|
<tr>
|
|
|
|
<td align="center" class="redBox">错误变量</td>
|
|
|
|
<td class="redBox2"> <%= dt.Variable %></td>
|
|
|
|
<td align="center" class="redBox">起始行</td>
|
|
|
|
<td class="redBox2"> <%= dt.StartLine %></td>
|
|
|
|
<td align="center" class="redBox">IP行</td>
|
|
|
|
<td class="redBox2"> <%= dt.IPLine %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="redBox">缺陷代码</td>
|
|
|
|
<td colspan="5" class="redBox2"> <%= dt.IPLineCode %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="redBox">错误描述</td>
|
|
|
|
<td colspan="5" class="redBox2"> <%= dt.Description %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="redBox">文件</td>
|
|
|
|
<td colspan="5" class="redBox2"> <%= dt.File %></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2015-07-21 15:47:53 +08:00
|
|
|
</div>
|
2015-07-21 13:10:02 +08:00
|
|
|
<% end %>
|
2015-07-21 15:47:53 +08:00
|
|
|
|
2015-07-20 16:03:33 +08:00
|
|
|
</div>
|