コード例 #1
0
ファイル: DTbl.php プロジェクト: Acidburn0zzz/openlitespeed
 private function print_edit($dlayer, $disp)
 {
     $buf = '';
     $ref = $disp->GetLast(DInfo::FLD_REF);
     if ($ref != NULL && is_array($dlayer)) {
         $dlayer = $dlayer[$ref];
     }
     $labels = array($this->_helpKey);
     foreach ($this->_dattrs as $attr) {
         $labels[] = $attr->_helpKey;
     }
     if (($tips = DMsg::GetEditTips($labels)) != NULL) {
         $buf .= UI::GetTblTips($tips);
     }
     $buf .= '<div class="jarviswidget jarviswidget-color-teal">' . "\n";
     $actString = (substr($this->_id, -3) == 'SEL' ? 'n' : 's') . 'B';
     $buf .= $this->get_print_header($disp, $actString, true);
     $buf .= '<div role="content"><div class="widget-body form-horizontal"><fieldset>';
     foreach ($this->_dattrs as $attr) {
         $buf .= $this->get_print_inputline($dlayer, $disp, $attr);
     }
     $buf .= '</fieldset></div></div></div>';
     echo "{$buf} \n";
 }