Example #1
0
                     echo '
 <table width="100%">
     <tr>
         <th>ID</th>
         <th>First Name</th>
         <th>Nickname</th>
         <th>Valid</th>
         <th>Date Added</th>
         <th>Invert Status</th>
         <th>Edit</th>
     </tr>';
                     $pid = $_GET['page-id'];
                     if (empty($pid)) {
                         $pid = 1;
                     }
                     $lastPage = ceil($client->getTotalRecordCount() / $websiteProperty->getProperty('max_client_entries_per_page'));
                     if ($pid < 1) {
                         $pid = 1;
                     } elseif ($pid > $lastPage) {
                         $pid = $lastPage;
                     }
                     if ($_SERVER['REQUEST_METHOD'] == "POST" && !empty($_POST['search'])) {
                         $dataArr = $client->getClientsLike($_POST['search']);
                     } else {
                         $dataArr = $client->getClients($websiteProperty->getProperty('max_client_entries_per_page'), ($pid - 1) * $websiteProperty->getProperty('max_client_entries_per_page'));
                     }
                     if ($dataArr !== false) {
                         foreach ($dataArr as $data) {
                             echo '<tr>';
                             echo '<td>' . $data['id'] . '</td>';
                             echo '<td>';