-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathview_links.php
31 lines (28 loc) · 1.05 KB
/
view_links.php
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
<?php
include_once 'Config/CUFunction.php';
$CUF_OBJ = New CUFunction();
$counter = 1;
$Select_URL = $CUF_OBJ->select('shorturl', 'id', 'Desc');
?>
<table class="table text-center">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">New Link</th>
<th scope="col">Oiginal Link</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
<?php if($Select_URL){ foreach($Select_URL as $Select_Data){ ?>
<tr>
<th scope="row"><?php echo $counter; $counter++; ?></th>
<td><?php echo $Select_Data['s_new_link']; ?></td>
<td><?php echo (strlen($Select_Data['s_original_link']) > 50) ? substr($Select_Data['s_original_link'],0,50).'....' : $Select_Data['s_original_link']; ?></td>
<td class="exit-icon" id="Delete" data-deleteno="<?php echo $Select_Data['s_unique_no']; ?>">
<div class="exit-icon-box">❌</div>
</td>
</tr>
<?php }}else{ echo "<tr><td colspan='4' class='text-center'><h3>Links Not Found</h3></td></tr>"; } ?>
</tbody>
</table>