uawdijnntqw1x1x1
IP : 216.73.216.153
Hostname : 6.87.74.97.host.secureserver.net
Kernel : Linux 6.87.74.97.host.secureserver.net 4.18.0-553.83.1.el8_10.x86_64 #1 SMP Mon Nov 10 04:22:44 EST 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
emeraadmin
/
.spamassassin
/
..
/
public_html
/
ba656
/
..
/
4d695
/
unacceptedtasks.php.tar
/
/
home/emeraadmin/public_html/pages/emeraadmin/unacceptedtasks.php000064400000020053151677422510021205 0ustar00<?php include('head.php'); // Include database connection and TaskService class require_once '../../Classes/Database.php'; require_once '../../Service/TaskService.php'; require_once '../../Classes/System.php'; $System = new System(); // Create TaskService instance $taskService = new TaskService(); // Initialize filters array $filters = []; // Check for filter inputs and add to the filters array if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (!empty($_GET['service_name'])) { $filters['service_name'] = filter_input(INPUT_GET, 'service_name', FILTER_SANITIZE_STRING); } if (!empty($_GET['region'])) { $filters['region'] = filter_input(INPUT_GET, 'region', FILTER_SANITIZE_STRING); } if (!empty($_GET['frequency'])) { $filters['frequency'] = filter_input(INPUT_GET, 'frequency', FILTER_SANITIZE_STRING); } } // Fetch tasks from the database based on filters $tasks = $taskService->getAllUnacceptedTasks($filters); ?> <div class="main-content"> <div class="container-fluid"> <div class="page-header"> <div class="row align-items-end"> <div class="col-lg-8"> <div class="page-header-title"> <i class="ik ik-layers bg-blue"></i> <div class="d-inline"> <h5>View Unaccepted Tasks</h5> <span>View all unaccepted tasks</span> </div> </div> </div> <div class="col-lg-4"> <nav class="breadcrumb-container" aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="../../index.html"><i class="ik ik-home"></i></a> </li> <li class="breadcrumb-item"> <a href="#">Tasks</a> </li> <li class="breadcrumb-item active" aria-current="page">View Tasks</li> </ol> </nav> </div> </div> </div> <!-- Search Form --> <div class="row mb-3"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3>Search Tasks</h3> </div> <div class="card-body"> <form method="GET" action=""> <div class="form-row"> <div class="form-group col-md-2"> <label for="service_name">Service Name</label> <input type="text" class="form-control" id="service_name" name="service_name" placeholder="Enter service name" value="<?php echo htmlspecialchars($_GET['service_name'] ?? ''); ?>"> </div> <div class="form-group col-md-2"> <label for="region">Region</label> <input type="text" class="form-control" id="region" name="region" placeholder="Enter region" value="<?php echo htmlspecialchars($_GET['region'] ?? ''); ?>"> </div> <div class="form-group col-md-2"> <label for="frequency">Frequency</label> <select class="form-control" id="frequency" name="frequency"> <option value="">Select</option> <option value="daily" <?php echo (isset($_GET['frequency']) && $_GET['frequency'] === 'daily') ? 'selected' : ''; ?>>Daily</option> <option value="3x/week" <?php echo (isset($_GET['frequency']) && $_GET['frequency'] === '3x/week') ? 'selected' : ''; ?>>3x/week</option> </select> </div> </div> <button type="submit" class="btn btn-primary">Apply Filters</button> <a href="unacceptedtasks.php" class="btn btn-secondary">Clear Filters</a> </form> </div> </div> </div> </div> <!-- End of Search Form --> <!-- Task viewing section --> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"><h3>View Tasks</h3></div> <div class="card-body"> <table id="advanced_table" class="table"> <thead> <tr> <th>#</th> <th>Service Name</th> <th>Region</th> <th>Frequency</th> <th>Created By</th> <th>Created At</th> <th>Finished</th> <th>Assigned</th> <th>Assigned To</th> <th>Accepted</th> <th>Public Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php if (!empty($tasks)): ?> <?php foreach ($tasks as $task): ?> <tr> <td><?php echo 'TSK-000'.htmlspecialchars($task->id); ?></td> <td><?php echo htmlspecialchars($task->service_name); ?></td> <td><?php echo htmlspecialchars($task->region); ?></td> <td><?php echo htmlspecialchars($task->frequency); ?></td> <td><?php echo htmlspecialchars($task->added_by_name); ?></td> <td><?php echo date('F j, Y, g:i a', strtotime($task->created_at)); ?></td> <td><?php echo ($task->finished ? '<label class="badge badge-success">Finished</label>' : '<label class="badge badge-danger">Not Finished</label>'); ?></td> <td><?php echo ($task->is_assigned ? '<label class="badge badge-success">Assigned</label>' : '<label class="badge badge-danger">Not Assigned</label>'); ?></td> <td><?php echo htmlspecialchars($task->assigned_to_name); ?></td> <th><?php echo ($task->accepted ? ' <label class="badge badge-success">Accepted</label>' : '<label class="badge badge-yellow">Not Accepted</label>'); ?></th> <td><label class="badge badge-<?php echo $task->isPublic ? 'yellow' : 'green'; ?>"><?php echo $task->isPublic ? 'Public' : 'Not Public'; ?></label></td> <td><a href="viewtask.php?id=<?php echo htmlspecialchars($System->encryptData($task->id)); ?>" class="btn btn-primary">View Details</a></td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="10">No tasks found.</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <?php include('footer.php'); ?>
/home/emeraadmin/.spamassassin/../public_html/ba656/../4d695/unacceptedtasks.php.tar