-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgetHeaders.php
More file actions
21 lines (14 loc) · 833 Bytes
/
getHeaders.php
File metadata and controls
21 lines (14 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$apiChoice = $_GET['apiChoice'];
function getTableHeaders($apiChoice)
{
$output = '';
if ($apiChoice == "getFillerCharacters") {
$output =
'<tr class="header-data"><th scope="col" class="methodHeader">Method</th><th scope="col">Input 1</th><th scope="col">Input Type</th>><th scope="col">Actual Result</th><th scope="col" class="jsonHeader">JSON Output</th></tr>';
} else if ($apiChoice == "all") {
$output = '<tr class="header-data"><th scope="col" class="methodHeader">Method</th><th scope="col">Input 1</th><th scope="col">Input 2</th><th scope="col">Input 3</th><th scope="col">Expected Result</th><th scope="col">Actual Result</th><th scope="col">Pass/Fail</th><th scope="col" class="jsonHeader">JSON Output</th></tr>';
}
echo $output;
}
getTableHeaders($apiChoice);