$(“#clickTips”).hide();
return false;
}
var doDeleteTrData = function(clickedTd,type){
if(getIndex(clickedTd,type) == -1) return false;
else {
var index=getIndex(clickedTd,type);
}
$(“table tr”).eq(index).remove();
$(“#clickTips”).hide();
return false;
}
var doEditTrData = function(clickedTd,type){
if(getIndex(clickedTd,type) == -1) return false;
else {
var index=getIndex(clickedTd,type);
}
$(“table tr”).eq(index).addClass(‘editting’);
$(“#clickTips”).hide();
return false;
}
}
bindListening();
});
</script>
<style type=”text/css”>
table{
margin:0 auto;
}
td,#tmpEditor{
display:block;
float:left;
border:1px solid #000000;
margin:auto 0.5px;
width:60px;
height:20px;
}
#clickTips{
border:1px solid #000000;
position:absolute;
left:3px;
width:120px;
padding:3px;
display:none;
background-color:#F5FFFA;
z-index:3;
}
span{
float:left;
width:100px;
height:20px;
clear:both;
}
.cloneTr{
display:none;
}
.newAdd td{
background-color:#FFFACD;
}
.editting td{
background-color:#F0F0F0;
}
.search{
background-color:#dddccc;
}
.search input{
padding-bottom: 0;
padding-right: 7px;
}
.searchButtonTd{
float:left;
}
#searchButton,#clearSearchButton{
margin-left: -2px;
margin-top: -2px;
padding-bottom: 0;
padding-right: 20px;
}
</style>
<div id=”tableContainer”>
<table>
<tr class=”cloneTr”>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search”><input type=”text” size=”6″/></td>
<td class=”search searchButtonTd”><input id=”searchButton” type=”button” size=”10″ value=”查询”/></td>










