@@ -46,18 +46,18 @@ |
||
| 46 | 46 | $this->addStyle('width', $this->iWidth . '%'); |
| 47 | 47 | } |
| 48 | 48 | switch ($this->iAlign) { |
| 49 | - case self::CLEAR: |
|
| 50 | - $this->addStyle('clear', 'both'); |
|
| 51 | - break; |
|
| 52 | - case self::LEFT: |
|
| 53 | - $this->addStyle('float', 'left'); |
|
| 54 | - break; |
|
| 55 | - case self::RIGHT: |
|
| 56 | - $this->addStyle('float', 'right'); |
|
| 57 | - break; |
|
| 58 | - case self::NONE: |
|
| 59 | - default: |
|
| 60 | - break; |
|
| 49 | + case self::CLEAR: |
|
| 50 | + $this->addStyle('clear', 'both'); |
|
| 51 | + break; |
|
| 52 | + case self::LEFT: |
|
| 53 | + $this->addStyle('float', 'left'); |
|
| 54 | + break; |
|
| 55 | + case self::RIGHT: |
|
| 56 | + $this->addStyle('float', 'right'); |
|
| 57 | + break; |
|
| 58 | + case self::NONE: |
|
| 59 | + default: |
|
| 60 | + break; |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
@@ -356,34 +356,34 @@ |
||
| 356 | 356 | |
| 357 | 357 | // only one of the button flags is allowed - so we can use switch-case! |
| 358 | 358 | switch ($wButtonFlags) { |
| 359 | - case FormFlags::ADD_DTU: |
|
| 360 | - $strUsername = $this->oFG->getData()->getValue('username'); |
|
| 361 | - [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_DTU); |
|
| 362 | - $strOnClick = "onInsertDateTimeUser('" . $this->strName . "', '" . $strUsername . "')"; |
|
| 363 | - $strID = $this->strName . 'DTU'; |
|
| 364 | - break; |
|
| 365 | - case FormFlags::ADD_DATE_PICKER: |
|
| 366 | - [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_DATE_PICKER); |
|
| 367 | - $strFor = $this->strName; |
|
| 368 | - break; |
|
| 369 | - case FormFlags::ADD_TIME_PICKER: |
|
| 370 | - [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_TIME_PICKER); |
|
| 371 | - $strFor = $this->strName; |
|
| 372 | - break; |
|
| 373 | - case FormFlags::BROWSE_SERVER: |
|
| 374 | - [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_BROWSE); |
|
| 375 | - $strOnClick = "browseServer('" . $this->strName . "','','" . $this->strExpandFolder . "')"; |
|
| 376 | - $strID = $this->strName . 'BS'; |
|
| 377 | - break; |
|
| 378 | - case FormFlags::ADD_SELBTN: |
|
| 379 | - [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_SEARCH); |
|
| 380 | - $strOnClick = "onSelect('" . $this->strName . "')"; |
|
| 381 | - $strID = $this->strName . 'SB'; |
|
| 382 | - $strImg = $this->strSelectImg ?: $strImg; |
|
| 383 | - $strTitle = $this->strSelectImgTitle ?: $strTitle; |
|
| 384 | - break; |
|
| 385 | - default: |
|
| 386 | - trigger_error('Only one of the button-flags can be set!', E_USER_ERROR); |
|
| 359 | + case FormFlags::ADD_DTU: |
|
| 360 | + $strUsername = $this->oFG->getData()->getValue('username'); |
|
| 361 | + [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_DTU); |
|
| 362 | + $strOnClick = "onInsertDateTimeUser('" . $this->strName . "', '" . $strUsername . "')"; |
|
| 363 | + $strID = $this->strName . 'DTU'; |
|
| 364 | + break; |
|
| 365 | + case FormFlags::ADD_DATE_PICKER: |
|
| 366 | + [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_DATE_PICKER); |
|
| 367 | + $strFor = $this->strName; |
|
| 368 | + break; |
|
| 369 | + case FormFlags::ADD_TIME_PICKER: |
|
| 370 | + [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_TIME_PICKER); |
|
| 371 | + $strFor = $this->strName; |
|
| 372 | + break; |
|
| 373 | + case FormFlags::BROWSE_SERVER: |
|
| 374 | + [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_BROWSE); |
|
| 375 | + $strOnClick = "browseServer('" . $this->strName . "','','" . $this->strExpandFolder . "')"; |
|
| 376 | + $strID = $this->strName . 'BS'; |
|
| 377 | + break; |
|
| 378 | + case FormFlags::ADD_SELBTN: |
|
| 379 | + [$strImg, $strTitle] = $this->oFG->getStdImage(FormImage::IMG_SEARCH); |
|
| 380 | + $strOnClick = "onSelect('" . $this->strName . "')"; |
|
| 381 | + $strID = $this->strName . 'SB'; |
|
| 382 | + $strImg = $this->strSelectImg ?: $strImg; |
|
| 383 | + $strTitle = $this->strSelectImgTitle ?: $strTitle; |
|
| 384 | + break; |
|
| 385 | + default: |
|
| 386 | + trigger_error('Only one of the button-flags can be set!', E_USER_ERROR); |
|
| 387 | 387 | } |
| 388 | 388 | $strHTML = $this->buildSelectImage($strImg, $strTitle, $strOnClick, $strID, $strCssClass, $strFor); |
| 389 | 389 | if (!empty($strHTML) && $this->oFlags->isSet(FormFlags::READ_ONLY)) { |