| Line 62... |
Line 62... |
| 62 |
function myExit($msg, $value, $isError = false) {
|
62 |
function myExit($msg, $value, $isError = false) {
|
| 63 |
echo '<span class="' . ($isError ? 'text-danger' : 'text-success') . '">' . $msg . '</span>';
|
63 |
echo '<span class="' . ($isError ? 'text-danger' : 'text-success') . '">' . $msg . '</span>';
|
| 64 |
if (!$isError) {
|
64 |
if (!$isError) {
|
| 65 |
echo '<div class="mt-3">';
|
65 |
echo '<div class="mt-3">';
|
| 66 |
echo '<form method="post" action="/index.php" onsubmit="progressBar(\'Searching for:<br><br><strong>' . $value . '</strong>\');">';
|
66 |
echo '<form method="post" action="/index.php" onsubmit="progressBar(\'Searching for:<br><br><strong>' . $value . '</strong>\');">';
|
| 67 |
echo '<input type="hidden" name="sessionTab" value="' . MySessionHandler::getSessionTab() . '">';
|
67 |
echo '<input type="hidden" name="sessionTab" value="' . MySessionHandler::getSessionTab() . '" />';
|
| 68 |
echo '<input type="hidden" name="searchTerm" value="' . $value . '">';
|
68 |
echo '<input type="hidden" name="searchTerm" value="' . $value . '" />';
|
| 69 |
echo '<button type="submit" class="btn btn-success" name="submit" value="Search">Search ' . $value . '</button>';
|
69 |
echo '<button type="submit" class="btn btn-success" name="submit" value="Search">Search ' . $value . '</button>';
|
| 70 |
echo '</form>';
|
70 |
echo '</form>';
|
| 71 |
echo '</div>';
|
71 |
echo '</div>';
|
| 72 |
}
|
72 |
}
|
| 73 |
MySessionHandler::commit(session_id());
|
73 |
MySessionHandler::commit(session_id());
|