コード例 #1
0
ファイル: Help.php プロジェクト: hybr/jpm
 public function show()
 {
     if ($this->getOption('text') == '') {
         return '';
     }
     $contentHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'id' => $this->getOption('fieldName'), 'content' => '<b>Help</b>: ' . $this->getOption('text')));
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $contentHtmlTag->get())))->get();
 }
コード例 #2
0
ファイル: Label.php プロジェクト: hybr/jpm
 public function show()
 {
     $contentHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'content' => (new owebp_TitleCreator(array('string' => $this->getOption('title'))))->get()));
     $titleText = trim($contentHtmlTag->get());
     if ($this->getOption('required') == 1) {
         $requiredHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'content' => ' *', 'style' => 'color: red;'));
         $titleText .= ' ' . $requiredHtmlTag->get();
     }
     $labelHtmlTag = new owebp_Html_Tag(array('tag' => 'label', 'class' => 'ui-widget-header', 'id' => $this->getOption('name'), 'style' => 'padding: 2px;', 'content' => trim($titleText)));
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $labelHtmlTag->get())))->get();
 }