small fixes
This commit is contained in:
parent
1de6550360
commit
211c5a71e0
|
@ -505,6 +505,9 @@ function get_preg($argument, $regexp) {
|
||||||
case "digit": // Normal number
|
case "digit": // Normal number
|
||||||
$pregexpr = '/^[[:digit:]]*$/';
|
$pregexpr = '/^[[:digit:]]*$/';
|
||||||
break;
|
break;
|
||||||
|
case "float": // float value
|
||||||
|
$pregexpr = '/^[[:digit:]]+(\\.[[:digit:]]+)?$/';
|
||||||
|
break;
|
||||||
case "UNC": // UNC Path, e.g. \\server\share\folder\...
|
case "UNC": // UNC Path, e.g. \\server\share\folder\...
|
||||||
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u';
|
$pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u';
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -426,6 +426,8 @@ class htmlInputField extends htmlElement {
|
||||||
protected $showCalendar = false;
|
protected $showCalendar = false;
|
||||||
/** calendar format */
|
/** calendar format */
|
||||||
protected $calendarFormat = '';
|
protected $calendarFormat = '';
|
||||||
|
/** title attribute */
|
||||||
|
protected $title = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
@ -509,7 +511,11 @@ class htmlInputField extends htmlElement {
|
||||||
if ($this->onKeyPress != null) {
|
if ($this->onKeyPress != null) {
|
||||||
$onKeyPress = ' onkeypress="' . $this->onKeyPress . '"';
|
$onKeyPress = ' onkeypress="' . $this->onKeyPress . '"';
|
||||||
}
|
}
|
||||||
echo '<input type="' . $inputType . '"' . $class . $name . $id . $value . $maxLength . $size . $fieldTabIndex . $onKeyPress . $disabled . '>';
|
$title = '';
|
||||||
|
if (!empty($this->title)) {
|
||||||
|
$title = ' title="' . $this->title . '"';
|
||||||
|
}
|
||||||
|
echo '<input type="' . $inputType . '"' . $class . $name . $id . $value . $maxLength . $size . $fieldTabIndex . $onKeyPress . $title . $disabled . '>';
|
||||||
// autocompletion
|
// autocompletion
|
||||||
if ($this->autocomplete) {
|
if ($this->autocomplete) {
|
||||||
echo "<script type=\"text/javascript\">\n";
|
echo "<script type=\"text/javascript\">\n";
|
||||||
|
@ -676,6 +682,15 @@ class htmlInputField extends htmlElement {
|
||||||
$this->calendarFormat = $format;
|
$this->calendarFormat = $format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the title for the input field.
|
||||||
|
*
|
||||||
|
* @param String $title title value
|
||||||
|
*/
|
||||||
|
public function setTitle($title) {
|
||||||
|
$this->title = htmlspecialchars($title);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -397,7 +397,7 @@ class inetOrgPerson extends baseModule implements passwordService {
|
||||||
'name' => 'inetOrgPerson_description',
|
'name' => 'inetOrgPerson_description',
|
||||||
'description' => _('Description'),
|
'description' => _('Description'),
|
||||||
'help' => 'description',
|
'help' => 'description',
|
||||||
'example' => _('Temp, contract til December')
|
'example' => _('Temp, contract till December')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideJobTitle')) {
|
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideJobTitle')) {
|
||||||
|
|
|
@ -251,7 +251,7 @@ class windowsUser extends baseModule implements passwordService {
|
||||||
'name' => 'windowsUser_description',
|
'name' => 'windowsUser_description',
|
||||||
'description' => _('Description'),
|
'description' => _('Description'),
|
||||||
'help' => 'description',
|
'help' => 'description',
|
||||||
'example' => _('Temp, contract til December'),
|
'example' => _('Temp, contract till December'),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => 'windowsUser_streetAddress',
|
'name' => 'windowsUser_streetAddress',
|
||||||
|
|
Loading…
Reference in New Issue