@@ 609-620 (lines=12) @@ | ||
606 | * @param string $additionalStyle |
|
607 | * @return string |
|
608 | */ |
|
609 | public function setCalendarControl($controlName, $additionalStyle = '') |
|
610 | { |
|
611 | return $this->setStringIntoTag(' ', 'span', [ |
|
612 | 'onclick' => implode('', [ |
|
613 | 'javascript:NewCssCal(\'' . $controlName, |
|
614 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
|
615 | ]), |
|
616 | 'class' => 'fa fa-calendar', |
|
617 | 'id' => $controlName . '_picker', |
|
618 | 'style' => 'cursor:pointer;' . $additionalStyle, |
|
619 | ]); |
|
620 | } |
|
621 | ||
622 | /** |
|
623 | * Set a control to a user-friendly calendar with time included |
|
@@ 629-640 (lines=12) @@ | ||
626 | * @param string $additionalStyle |
|
627 | * @return string |
|
628 | */ |
|
629 | public function setCalendarControlWithTime($controlName, $additionalStyle = '') |
|
630 | { |
|
631 | return $this->setStringIntoTag(' ', 'span', [ |
|
632 | 'onclick' => implode('', [ |
|
633 | 'javascript:NewCssCal(\'' . $controlName, |
|
634 | '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
|
635 | ]), |
|
636 | 'class' => 'fa fa-calendar', |
|
637 | 'id' => $controlName . '_picker', |
|
638 | 'style' => 'cursor:pointer;' . $additionalStyle, |
|
639 | ]); |
|
640 | } |
|
641 | ||
642 | /** |
|
643 | * Cleans a string for certain internal rules |
|
@@ 666-677 (lines=12) @@ | ||
663 | * |
|
664 | * @param integer $height |
|
665 | */ |
|
666 | protected function setClearBoth1px($height = 1) |
|
667 | { |
|
668 | return $this->setStringIntoTag(' ', 'div', [ |
|
669 | 'style' => implode('', [ |
|
670 | 'height:' . $height . 'px;', |
|
671 | 'line-height:' . $height . 'px;', |
|
672 | 'float:none;', |
|
673 | 'clear:both;', |
|
674 | 'margin:0px;' |
|
675 | ]) |
|
676 | ]); |
|
677 | } |
|
678 | ||
679 | /** |
|
680 | * Returns css codes |