|
|
@ -279,7 +279,7 @@ function table($columns, $rows_raw, $data = true) {
|
|
|
|
if (count($rows) == 0)
|
|
|
|
if (count($rows) == 0)
|
|
|
|
return info(_("No data found."), true);
|
|
|
|
return info(_("No data found."), true);
|
|
|
|
$html = "";
|
|
|
|
$html = "";
|
|
|
|
$html .= '<table class="table ' . ($data ? ' data' : '') . '">';
|
|
|
|
$html .= '<table class="table table-striped' . ($data ? ' data' : '') . '">';
|
|
|
|
$html .= '<thead><tr>';
|
|
|
|
$html .= '<thead><tr>';
|
|
|
|
foreach ($columns as $key => $column)
|
|
|
|
foreach ($columns as $key => $column)
|
|
|
|
$html .= '<th class="column_' . $key . '">' . $column . '</th>';
|
|
|
|
$html .= '<th class="column_' . $key . '">' . $column . '</th>';
|
|
|
|