public static function showConversationsList() { $conList = new ConversationsList(); $conversations = $conList->GetConversationsList(); echo '<br> <br>'; echo "<table border='1'>\r\n <tr>\r\n <th>conversation_code</th>\r\n <th>date_of_creation</th>\r\n <th>client_code</th>\r\n <th>employee_code</th>\r\n <th>status</th> \r\n </tr>"; while ($row = mysql_fetch_array($conversations)) { echo "<tr>"; echo "<td>" . $row['conversation_code'] . "</td>"; echo "<td>" . $row['date_of_creation'] . "</td>"; echo "<td>" . $row['client_code'] . "</td>"; echo "<td>" . $row['employee_code'] . "</td>"; echo "<td>" . $row['status'] . "</td>"; echo "</tr>"; } echo "</table>"; $conList->closeDBConnection(); }
<!-- <p class="bottom">Conversations List</p>--> <thead> <tr> <th>conversation_code</th> <th>date_of_creation</th> <th>client_code</th> <th>employee_code</th> <th>status</th> </tr> </thead> <tbody> <?php include_once 'ConversationsList.php'; $convObj = new ConversationsList(); $convList = $convObj->GetConversationsList(); if (count($convList) == 0) { echo 'There is no representatives in database'; } else { while ($row = mysql_fetch_array($convList)) { ?> <tr> <td><?php echo $row['conversation_code']; ?> </td> <td><?php echo $row['date_of_creation']; ?> </td>