diff --git a/source/rb/rb/html/text.php b/source/rb/rb/html/text.php
index 523a190..dd7295b 100644
--- a/source/rb/rb/html/text.php
+++ b/source/rb/rb/html/text.php
@@ -10,15 +10,21 @@
class Rb_HtmlText
{
- static function filter($name, $view, Array $filters = array(), $prefix='filter_payplans')
+ function filter($name, $view, Array $filters = array(), $prefix='filter_payplans', $attrs = array())
{
$elementName = $prefix.'_'.$view.'_'.$name;
$elementValue = @array_shift($filters[$name]);
$html = '';
+ .'value="'.$elementValue.'" ';
+
+ if(!empty($attrs)){
+ foreach ($attrs as $attr => $attrValue){
+ $html .= ' '.$attr.'="'.$attrValue.'"';
+ }
+ }
+ $html .= '/>';
return $html;
}