当前位置: 首页>>代码示例>>PHP>>正文


PHP Button::get方法代码示例

本文整理汇总了PHP中Button::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::get方法的具体用法?PHP Button::get怎么用?PHP Button::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Button的用法示例。


在下文中一共展示了Button::get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buildXHTML

 /**
  * Construct the widget
  *
  * @access  private
  */
 function buildXHTML()
 {
     $colorpicker = PIWI_URL . 'piwidata/js/colorpicker/ColorPicker2.js';
     $popup = PIWI_URL . 'piwidata/js/colorpicker/PopupWindow.js';
     $anchor = PIWI_URL . 'piwidata/js/colorpicker/AnchorPosition.js';
     $this->addFile($colorpicker);
     $this->addFile($popup);
     $this->addFile($anchor);
     $pickerName = $this->_id . '_colorpicker';
     $this->_XHTML = "<script type=\"text/javascript\">\n";
     $this->_XHTML .= "var " . $pickerName . "_properties = [];\n";
     $this->_XHTML .= $pickerName . "_properties['windowname'] = '" . $this->_popupName . "';\n";
     $this->_XHTML .= $pickerName . "_properties['fontStyle'] = '" . $this->_colorFontStyle . "';\n";
     $this->_XHTML .= $pickerName . "_properties['fieldID'] = '" . $this->_entry->getID() . "';\n";
     if (!empty($this->_onSelectEvent)) {
         $this->_onSelectEvent = " " . $this->_onSelectEvent . " ";
     }
     $this->_XHTML .= $pickerName . "_properties['onselect'] = '" . $this->_onSelectEvent . "';\n";
     if ($this->_usePopup) {
         $this->_XHTML .= "var " . $pickerName . " = new ColorPicker('window'," . $pickerName . "_properties);\n";
     } else {
         $this->_XHTML .= "var " . $pickerName . " = new ColorPicker(''," . $pickerName . "_properties);\n";
     }
     $this->_XHTML .= "</script>\n";
     $this->_button->addEvent(ON_CLICK, $pickerName . ".select(document.getElementById('" . $this->_entry->getID() . "'), " . "'" . $pickerName . "_ahref'); return false;");
     if (!empty($this->_onSelectEvent)) {
         $this->_entry->addEvent(ON_CHANGE, $this->_onSelectEvent);
     }
     if ($this->_hideInput) {
         $this->_entry->setType("hidden");
     }
     $this->_XHTML .= "<table border=\"0\" style=\"border-spacing: 0px; padding: 0px; border: 0px;\">\n";
     $this->_XHTML .= " <tr>\n";
     $this->_XHTML .= "  <td>\n";
     $this->_XHTML .= "<script type=\"text/javascript\">\n";
     $this->_XHTML .= "function ExecutePingBackOf" . $this->_entry->getID() . "() {\n";
     $this->_XHTML .= "  " . $this->_onSelectEvent . "\n";
     $this->_XHTML .= "}\n";
     $this->_XHTML .= "</script>\n";
     $this->_XHTML .= $this->_entry->get();
     $this->_XHTML .= "  </td>\n";
     $this->_XHTML .= "  <td>\n";
     $this->_XHTML .= "<a id=\"" . $pickerName . "_ahref\"></a>\n";
     $this->_XHTML .= $this->_button->get();
     $this->_XHTML .= "<script type=\"text/javascript\">\n";
     $this->_XHTML .= $pickerName . ".writeDiv();\n";
     $this->_XHTML .= "</script>\n";
     $this->_XHTML .= "  </td>\n";
     $this->_XHTML .= " </tr>\n";
     $this->_XHTML .= "</table>";
 }
开发者ID:Dulciane,项目名称:jaws,代码行数:56,代码来源:ColorPicker.php

示例2:

 function _buildXHTML()
 {
     $this->_entry->setReadOnly($this->_readOnly);
     $this->_entry->setEnabled($this->_isEnabled);
     $this->_button->setEnabled($this->_isEnabled);
     $this->_XHTML = "<table";
     $this->_XHTML .= $this->buildBasicXHTML();
     $this->_XHTML .= $this->buildJSEvents();
     $this->_XHTML .= ">\n";
     $this->_XHTML .= " <tr>\n";
     $this->_XHTML .= "  <td>\n";
     $this->_XHTML .= $this->_entry->get();
     $this->_XHTML .= "  </td>\n";
     $this->_XHTML .= "  <td>\n";
     $this->_XHTML .= $this->_button->get();
     $this->_XHTML .= "  </td>\n";
     $this->_XHTML .= " </tr>\n";
     $this->_XHTML .= "</table>";
 }
开发者ID:Dulciane,项目名称:jaws,代码行数:19,代码来源:DatePicker.php


注:本文中的Button::get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。