| @@ 163-183 (lines=21) @@ | ||
| 160 | * |
|
| 161 | * @author Jan Karai <https://www.sachsen-it.de> |
|
| 162 | */ |
|
| 163 | class tl_belegungsplan_calender extends Backend |
|
| 164 | {
|
|
| 165 | /** |
|
| 166 | * Import the back end user object |
|
| 167 | */ |
|
| 168 | public function __construct() {
|
|
| 169 | parent::__construct(); |
|
| 170 | $this->import('BackendUser', 'User');
|
|
| 171 | } |
|
| 172 | /** |
|
| 173 | * Add the type of input field |
|
| 174 | * |
|
| 175 | * @param array $arrRow |
|
| 176 | * |
|
| 177 | * @return string |
|
| 178 | */ |
|
| 179 | public function listCalender($arrRow) |
|
| 180 | {
|
|
| 181 | return '<div class="tl_content_left">' . $arrRow['gast'] . ' <span style="color:#999;padding-left:3px">[' . Date::parse(Config::get('dateFormat'), $arrRow['startDate']) . $GLOBALS['TL_LANG']['MSC']['cal_timeSeparator'] . Date::parse(Config::get('dateFormat'), $arrRow['endDate']) . ']</span></div>';
|
|
| 182 | } |
|
| 183 | } |
|
| 184 | ||
| @@ 163-184 (lines=22) @@ | ||
| 160 | * |
|
| 161 | * @author Jan Karai <https://www.sachsen-it.de> |
|
| 162 | */ |
|
| 163 | class tl_belegungsplan_calender extends Backend |
|
| 164 | {
|
|
| 165 | /** |
|
| 166 | * Import the back end user object |
|
| 167 | */ |
|
| 168 | public function __construct() {
|
|
| 169 | parent::__construct(); |
|
| 170 | $this->import('BackendUser', 'User');
|
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * Add the type of input field |
|
| 175 | * |
|
| 176 | * @param array $arrRow |
|
| 177 | * |
|
| 178 | * @return string |
|
| 179 | */ |
|
| 180 | public function listCalender($arrRow) |
|
| 181 | {
|
|
| 182 | return '<div class="tl_content_left">' . $arrRow['gast'] . ' <span style="color:#999;padding-left:3px">[' . Date::parse(Config::get('dateFormat'), $arrRow['startDate']) . $GLOBALS['TL_LANG']['MSC']['cal_timeSeparator'] . Date::parse(Config::get('dateFormat'), $arrRow['endDate']) . ']</span></div>';
|
|
| 183 | } |
|
| 184 | } |
|
| 185 | ||