mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 15:31:41 +02:00
Rating system re-work and cleanup.
This commit is contained in:
@@ -549,6 +549,24 @@ class e_form
|
||||
return $ret;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A 'Rating' element
|
||||
* @var $text
|
||||
*/
|
||||
function rate($table,$id,$options=null)
|
||||
{
|
||||
$table = preg_replace('/\W/', '', $table);
|
||||
$id = intval($id);
|
||||
|
||||
return e107::getRate()->render($table, $id, $options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function file($name, $options = array())
|
||||
{
|
||||
@@ -566,7 +584,7 @@ class e_form
|
||||
{
|
||||
$options = $this->format_options('text', $name, $options);
|
||||
//never allow id in format name-value for text fields
|
||||
return "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
||||
return "<input class='e-password' type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
||||
}
|
||||
|
||||
// autoexpand done
|
||||
|
Reference in New Issue
Block a user