Şuanki Dizin: /home/wwwdreamtechnolo/public_html/strongergen.com/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/strongergen.com/delete-acc-report.php |
<?php require_once('functions.php'); $db = new class_function(); if(isset($_GET['delete_id'])){ $del_id = $_GET['delete_id']; $db->delete_user_record($del_id); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> table, th, td{ border: 2px solid black; } table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; text-align: left; border-bottom: 1px solid #ddd; } thead th { background-color: #f2f2f2; } tbody tr:nth-child(even) { background-color: #f9f9f9; } tbody tr:hover { background-color: #f1f1f1; } th, td:nth-child(1), th, td:nth-child(3), th, td:nth-child(4), th, td:nth-child(5) { text-align: center; } </style> </head> <body> <h1>Report</h1> <table> <thead> <th>Sr No</th> <th>Name</th> <th>Mobile Number</th> <th>Email Address</th> <th>Reason</th> <th>date</th> <th>time</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php $users_data = array(); $users_data = $db->get_user_data(); // print_r($users_data); if(!empty($users_data)){ $counter = 0; foreach($users_data as $record){ $res_id = $users_data[$counter]['id']; $name = $users_data[$counter]['name']; $mobile_no = $users_data[$counter]['mobile_no']; $email = $users_data[$counter]['email']; $message = $users_data[$counter]['message']; $date = $users_data[$counter]['date']; $time = $users_data[$counter]['time']; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $name; ?></td> <td><?php echo $mobile_no; ?></td> <td><?php echo $email; ?></td> <td><?php echo $message; ?></td> <td><?php echo $date; ?></td> <td><?php echo $time; ?></td> <td><a href="edit-record.php?edit_id=<?php echo $res_id;?>">edit</a></td> <td><a href="delete-acc-report.php?delete_id=<?php echo $res_id; ?>">delete</a></td> </tr> <?php $counter++; } } else{ echo "No data found"; } ?> </tbody> </table> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4