Options for the select
* @param $required bool Whether the select is required
* @param $disable_reason string|null Reason for the option to be disabled, if any
*
* @return string
*/
function __PREFIX__makeSelect($label, $name, $options, $required = false, $disable_reason = null) {
$name = htmlentities($name);
ob_start();
?>
>
= $description ?>
$value) {
printf("%-{$columnWidths[$key]}s|", htmlentities($value));
}
echo PHP_EOL;
}
// Print bottom row
echo "+";
foreach ($headers as $header) {
echo str_repeat("-", $columnWidths[$header]);
echo "+";
}
echo PHP_EOL;
}
/**
* Create an alert element on the page
*
* @param $title string Title of the alert box
* @param $message string Message of the alert
*
* @return string
*/
function __PREFIX__makeAlert($title, $message) {
ob_start();
?>
= htmlentities($title) ?>
= $message ?>
= $title; ?>
= $description; ?>
$column";
}
?>
";
foreach ($columns as $key => $column) {
if (is_array($row[$key])) {
echo "