Spaces:
Sleeping
Sleeping
Download processmaker-files/thirdparty/html2ps_pdf/box.button.reset.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 962 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/html2ps_pdf/box.button.reset.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/thirdparty/html2ps_pdf/box.button.reset.php
-
curl -L -o box.button.reset.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/html2ps_pdf/box.button.reset.php
962 Bytes
| class ButtonResetBox extends ButtonBox { | |
| function ButtonResetBox($text) { | |
| $this->ButtonBox($text); | |
| } | |
| function &create(&$root, &$pipeline) { | |
| if ($root->has_attribute("value")) { | |
| $text = $root->get_attribute("value"); | |
| } else { | |
| $text = DEFAULT_RESET_TEXT; | |
| }; | |
| $box =& new ButtonResetBox($text); | |
| $box->readCSS($pipeline->getCurrentCSSState()); | |
| return $box; | |
| } | |
| function readCSS(&$state) { | |
| parent::readCSS($state); | |
| $this->_readCSS($state, | |
| array(CSS_HTML2PS_FORM_ACTION)); | |
| } | |
| function _render_field(&$driver) { | |
| $driver->field_pushbuttonreset($this->get_left_padding(), | |
| $this->get_top_padding(), | |
| $this->get_width() + $this->get_padding_left() + $this->get_padding_right(), | |
| $this->get_height() + $this->get_padding_top() + $this->get_padding_bottom()); | |
| } | |
| } | |