XploitSPY/server/assets/views/deviceManagerPages/call_log.ejs

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-01-11 23:35:37 +08:00
<div class="ui segment">
<div class="ui secondary menu">
<div class="right menu">
<button onclick="updateButton(this, '0xCL')" class="ui blue button"> <i
class="icon sync"></i>Update</button>
</div>
</div>
<table class="ui celled table">
<thead>
<tr>
<th>Date</th>
<th>Phone Number</th>
<th>Status</th>
<th>Duration</th>
</tr>
</thead>
<tbody>
<% pageData.forEach((callData) => {
let date = new Date(parseInt(callData.date));
let status = "UNKNOWN";
if(callData.type === 1) status = "IN";
if(callData.type === 2) status = "OUT";
if(callData.type === 3) status = "MISSED";
%>
<tr>
<td class="collapsing"><%= date.toLocaleString('en-GB', { timeZone: 'UTC' }) %></td>
<td><a href="?filter=<%= callData.phoneNo %>"><%= callData.phoneNo %></a></td>
<td><%= status %></td>
<td><%= callData.duration %></td>
</tr>
<% }) %>
</tbody>
</table>
</div>