tpl-list-pending-users.php
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$users = json_decode( zoom_conference()->listUsers( 1, array( 'status' => 'pending' ) ) );
?>
<div class="wrap">
<h2><?php _e( "Pending Approval Users", "video-conferencing-with-zoom-api" ); ?></h2>
<a href="?post_type=zoom-meetings&page=zoom-video-conferencing-list-users"><?php _e( 'Check Available Users', 'video-conferencing-with-zoom-api' ); ?></a>
<div class="zvc_listing_table">
<table id="zvc_users_list_table" class="display" width="100%">
<thead>
<tr>
<th class="zvc-text-left"><?php _e( 'SN', 'video-conferencing-with-zoom-api' ); ?></th>
<th class="zvc-text-left"><?php _e( 'User ID', 'video-conferencing-with-zoom-api' ); ?></th>
<th class="zvc-text-left"><?php _e( 'Email', 'video-conferencing-with-zoom-api' ); ?></th>
<th class="zvc-text-left"><?php _e( 'Created On', 'video-conferencing-with-zoom-api' ); ?></th>
</tr>
</thead>
<tbody>
<?php
$count = 1;
if ( empty( $users->code ) && ! empty( $users->users ) ) {
foreach ( $users->users as $user ) {
?>
<tr>
<td><?php echo $count ++; ?></td>
<td><?php echo $user->id; ?></td>
<td><?php echo $user->email; ?></td>
<td><?php echo ! empty( $user->created_at ) ? date( 'F j, Y, g:i a', strtotime( $user->created_at ) ) : "N/A"; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>