1. <table width="98%" id="CTTable" cellpadding="3" cellspacing="1" align="center" border="1" style="border-collapse:collapse" class="simple displayTable" >
<thead>
<tr height="30" >
<th width="5%">
<input type="checkbox" name="checkbox" value="0" onClick='selectAllChecbox(this, document.forms[0].checkbox)'>
</th>
<th><div align="center">资产编码</div></th>
<th><div align="center">项目编号</div></th>
<th><div align="center">配置项名</div></th>
<th><div align="center">责任人</div></th>
<th><div align="center">使用人</div></th>
<th><div align="center">产品型号</div></th>
</tr>
</thead>
</table>
2.function addCTItemToTable(data)
{
var tableobj = document.getElementById("CTTable");
var appli_id="";
if (tableobj != null)
{
for(var k=0;k<data.length;k++)
{
var st=data[k];
appli_id=st[7];
var newRow = tableobj.insertRow(tableobj.rows.length);
c1 = newRow.insertCell(0);
c1.innerHTML = " <input type=checkbox name=checkbox checked class=checkbox1 value='"+st[0]+"'> ";
c2 = newRow.insertCell(1);
c2.innerHTML = '<div align=\"center\">' + st[1] + '</div>';
c3 = newRow.insertCell(2);
c3.innerHTML = '<div align=\"center\">'+st[2]+'</div>';
c4 = newRow.insertCell(3);
c4.innerHTML = '<div align=\"center\">'+st[3]+'</div>';
c5 = newRow.insertCell(4);
c5.innerHTML = '<div align=\"center\">'+st[4]+'</div>';
c6 = newRow.insertCell(5);
c6.innerHTML = '<div align=\"center\">'+st[5]+'</div>';
c7 = newRow.insertCell(6);
c7.innerHTML = '<div align=\"center\">'+st[6]+'</div>'
}
}
}