diff --git a/upload/modules/admin/groups.class.php b/upload/modules/admin/groups.class.php index 1aa2b28..7fc5841 100644 --- a/upload/modules/admin/groups.class.php +++ b/upload/modules/admin/groups.class.php @@ -143,29 +143,33 @@ } private function get_default_value($name='false', $value, $type='boolean'){ + $data = array( + 'NAME' => $name, + 'VALUE' => '' + ); + switch($type){ case 'integer': - $value = intval($value); - $input = ''; + $data['VALUE'] = intval($value); + $input = $this->core->sp(MCR_THEME_MOD."admin/groups/perm-id-integer.html", $data); break; case 'float': - $value = floatval($value); - $input = ''; + $data['VALUE'] = floatval($value); + $input = $this->core->sp(MCR_THEME_MOD."admin/groups/perm-id-float.html", $data); break; case 'string': - $value = $this->db->HSC($value); - $input = ''; + $data['VALUE'] = $this->db->HSC($value); + $input = $this->core->sp(MCR_THEME_MOD."admin/groups/perm-id-string.html", $data); break; default: - $select = ($value=='true') ? 'selected' : ''; - $input = ''; + $data['VALUE'] = ($value=='true') ? 'selected' : ''; + $input = $this->core->sp(MCR_THEME_MOD."admin/groups/perm-id-boolean.html", $data); break; } - return $input; } diff --git a/upload/themes/default/modules/admin/groups/perm-id-boolean.html b/upload/themes/default/modules/admin/groups/perm-id-boolean.html new file mode 100644 index 0000000..39b2005 --- /dev/null +++ b/upload/themes/default/modules/admin/groups/perm-id-boolean.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/upload/themes/default/modules/admin/groups/perm-id-float.html b/upload/themes/default/modules/admin/groups/perm-id-float.html new file mode 100644 index 0000000..75b590a --- /dev/null +++ b/upload/themes/default/modules/admin/groups/perm-id-float.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/upload/themes/default/modules/admin/groups/perm-id-integer.html b/upload/themes/default/modules/admin/groups/perm-id-integer.html new file mode 100644 index 0000000..75b590a --- /dev/null +++ b/upload/themes/default/modules/admin/groups/perm-id-integer.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/upload/themes/default/modules/admin/groups/perm-id-string.html b/upload/themes/default/modules/admin/groups/perm-id-string.html new file mode 100644 index 0000000..75b590a --- /dev/null +++ b/upload/themes/default/modules/admin/groups/perm-id-string.html @@ -0,0 +1 @@ + \ No newline at end of file