diff options
author | msquare <msquare@notrademark.de> | 2019-12-08 11:48:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-08 11:48:58 +0100 |
commit | a3a938a1210f1bfb2680c25b2bcf53e47444bdba (patch) | |
tree | fd4c13fd9b714c0d8c60b6d3fe3e2fc88b82b717 /includes/sys_template.php | |
parent | b540ac93856065ce6e145930b6611e0a0946d646 (diff) | |
parent | 064a1750279be244f86cf24f29749b391b11f1dd (diff) |
Merge pull request #685 from MyIgel/schedule-import
Rebuild Schedule import
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index fad207a9..cf4c64aa 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -410,42 +410,6 @@ function table_buttons($buttons = []) } /** - * @param string $str - * @param int $length - * @return string - */ -function shorten($str, $length = 50) -{ - if (strlen($str) < $length) { - return $str; - } - return '<span title="' . htmlentities($str, ENT_COMPAT, 'UTF-8') . '">' - . substr($str, 0, $length - 3) - . '...</span>'; -} - -/** - * @param array[] $array - * @return string - */ -function table_body($array) -{ - $html = ''; - foreach ($array as $line) { - $html .= '<tr>'; - if (is_array($line)) { - foreach ($line as $td) { - $html .= '<td>' . $td . '</td>'; - } - } else { - $html .= '<td>' . $line . '</td>'; - } - $html .= '</tr>'; - } - return $html; -} - -/** * @param string $msg * @return mixed */ |