Skip to content

Commit

Permalink
Quick test of data in the table
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Sep 8, 2014
1 parent e750e89 commit 679e500
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions carcv-webapp/src/main/webapp/app/cartable.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ $(document).ready(function() {
} );
$('#deleteButton').click( function () {
table.rows('.selected').remove().draw( false );
if (!confirm("Are you sure you want to delete?")) {
return;
}
var rows = table.rows('.selected')
window.parent.location.replace("/admin/servlet/RemoveEntry?entry_id=" + rows.indexes());
//table.rows('.selected').remove().draw( false );
} );
} );
</script>

</head>
Expand All @@ -38,19 +41,20 @@ $(document).ready(function() {
<table id="carTable" style="border: 1px solid #C0C0C0;" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th style="width: 5%; height: 15px; background-color: #B0C4DE;">ID</th>
<th style="width: 160px; height: 15px; background-color: #B0C4DE;">Car preview</th>
<th style="width: 10%; height: 15px; background-color: #B0C4DE;">Date</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">License plate</th>
<th style="width: 20%; height: 15px; background-color: #B0C4DE;">Location</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Video</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Pictures</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">Report</th>

</tr>
</thead>

<tfoot>
<tr>
<th style="width: 5%; height: 15px; background-color: #B0C4DE;">ID</th>
<th style="width: 160px; height: 15px; background-color: #B0C4DE;">Car preview</th>
<th style="width: 10%; height: 15px; background-color: #B0C4DE;">Date</th>
<th style="width: 15%; height: 15px; background-color: #B0C4DE;">License plate</th>
Expand All @@ -64,6 +68,7 @@ $(document).ready(function() {
<tbody>
<c:forEach var="member" items="${wrtmList}">
<tr>
<td>${member.entryId}</td>
<td><img src="/servlet/DisplayImage?path=${member.previewPath}&width=150" style="border: 2px" width="150"
alt="Car"></td>
<td>${member.date}<br> ${member.time}
Expand All @@ -75,8 +80,9 @@ $(document).ready(function() {
<td><a href="/servlet/GenerateReport?entry_id=${member.entryId}&timezone=${member.timeZone}" target="_top">Generate
report</a></td>
</tr>
</tbody>
<!-- TODO put script to addROw here -->
</c:forEach>
</tbody>
</table>
</body>
</html>

0 comments on commit 679e500

Please sign in to comment.