Esempio n. 1
0
File: Slider.php Progetto: 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>' . '';
 }
Esempio n. 2
0
 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>';
 }
Esempio n. 3
0
 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>';
 }
Esempio n. 4
0
File: Money.php Progetto: atk4/atk4
 public function getInput($attr = array())
 {
     return parent::getInput(array_merge(array('value' => round($this->value, $this->digits)), $attr));
 }
Esempio n. 5
0
 function getInput($attr = array())
 {
     return parent::getInput(array_merge(array('value' => number_format($this->value, $this->digits)), $attr));
 }