echo '<a title="' . htmlspecialchars($res['cert']['issuer']) . '">C</a>'; } else { echo '<a title="' . htmlspecialchars($res['cert']['issuer']) . '">U</a>'; } } else { echo '<span style="color: #b4b4b4; font-size: x-small">NA</span>'; } echo '</td>'; showRes('adminBind', $res, $this); showRes('ldapSearchBogus', $res, $this); showRes('configTest', $res, $this); showRes('ldapSearchTestUser', $res, $this); showRes('ldapBindTestUser', $res, $this); showRes('getTestOrg', $res, $this); showRes('configMeta', $res, $this); showRes('schema', $res, $this); if ($res['time'] > 2.0) { echo '<td style="text-align: right; color: #700">' . ceil($res['time'] * 1000) . ' ms</td>'; } else { if ($res['time'] > 0.3) { echo '<td style="text-align: right">' . ceil($res['time'] * 1000) . ' ms</td>'; } else { echo '<td style="text-align: right; color: #060">' . ceil($res['time'] * 1000) . ' ms</td>'; } } echo '</tr>'; if ($this->data['showcomments'] && array_key_exists('comment', $this->data['orgconfig'][$orgkey])) { echo '<tr><td style="color: #400; padding-left: 5em; font-family: \'Arial Narrow\'; font-size: 85%" colspan="11">' . $this->data['orgconfig'][$orgkey]['comment'] . '</td></tr>'; } } }
/** * File: adminTable.php * * Created by PhpStorm. * User: ArtofWack * Date: 1/27/2016 * Time: 8:38 PM */ require_once '../config.php'; switch ($_POST['request']) { case 'guests': showGuests($link); break; case 'reservations': showRes($link); break; case 'rooms': checkRooms($link); break; case 'checkIN': checkIN($link, $_POST['guestID']); console($link, $_POST['guestID']); break; case 'checkOUT': checkOUT($link, $_POST['guestID']); console($link, $_POST['guestID']); break; case 'payment': payment($link, $_POST['guestID']); console($link, $_POST['guestID']);