Inheritance: extends Form_Field_Line
示例#1
0
文件: Slider.php 项目: atk4/atk4
 public function getInput()
 {
     $s = $this->name . '_slider';
     $this->js(true)->_selector('#' . $s)->slider(array('min' => $this->min, 'max' => $this->max, 'step' => $this->step, 'value' => $this->js()->val(), 'change' => $this->js()->_enclose()->val($this->js()->_selector('#' . $s)->slider('value'))->change()));
     $this->setAttr('style', 'display: none');
     return '<div class="atk-cells"><div class="atk-cell atk-align-left">' . $this->left . '</div>' . '<div class="atk-cell atk-align-right">' . $this->right . '</div>' . '</div>' . '' . parent::getInput() . '<div id="' . $s . '"></div>' . '';
 }
示例#2
0
文件: Spinner.php 项目: atk4/atk4
 public function getInput()
 {
     $s = $this->name . '_spinner';
     $this->js(true)->_selector('#' . $s)->spinner(array('min' => $this->min, 'max' => $this->max, 'step' => $this->step, 'value' => $this->js()->val(), 'change' => $this->js()->_enclose()->val($this->js()->_selector('#' . $s)->spinner('value'))->change()));
     $this->setAttr('style', 'display: none');
     return parent::getInput() . '<div id="' . $s . '"></div>';
 }
示例#3
0
文件: Slider.php 项目: TigerBui/atk4
 function getInput()
 {
     $s = $this->name . '_slider';
     $this->js(true)->_selector('#' . $s)->slider(array('min' => $this->min, 'max' => $this->max, 'step' => $this->step, 'value' => $this->js()->val(), 'change' => $this->js()->_enclose()->val($this->js()->_selector('#' . $s)->slider('value'))->change()));
     $this->setAttr('style', 'display: none');
     return '<table width="100%" border="0"><tr>' . '<td align="left">' . $this->left . '</td>' . '<td align="right">' . $this->right . '</td>' . '</tr><tr>' . '<td colspan=2>' . parent::getInput() . '<div id="' . $s . '"></div></td>' . '</tr></table>';
 }
示例#4
0
文件: Money.php 项目: atk4/atk4
 public function getInput($attr = array())
 {
     return parent::getInput(array_merge(array('value' => round($this->value, $this->digits)), $attr));
 }
示例#5
0
文件: Money.php 项目: TigerBui/atk4
 function getInput($attr = array())
 {
     return parent::getInput(array_merge(array('value' => number_format($this->value, $this->digits)), $attr));
 }