} else {
$current = $this->get_setting();
}
- return format_admin_setting('text', $this->name, $this->visiblename,
+ return format_admin_setting($this->name, $this->visiblename,
'<input type="text" class="form-text" id="id_s_'.$this->name.'" name="s_'.$this->name.'" value="'.$current.'" />',
$this->description);
}
} else {
$current = $this->get_setting();
}
- return format_admin_setting('checkbox', $this->name, $this->visiblename,
+ return format_admin_setting($this->name, $this->visiblename,
'<input type="checkbox" class="form-checkbox" id="id_s_'.$this->name.'" name="s_'. $this->name .'" value="1" ' . ($current == true ? 'checked="checked"' : '') . ' />',
$this->description);
}
}
$return .= '</select>';
- return format_admin_setting('select', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
$return .= '<option value="' . $key . '"' . ($key == $currentsetting['m'] ? ' selected="selected"' : '') . '>' . $value . '</option>';
}
$return .= '</select></div>';
- return format_admin_setting('configtime', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
$return .= '<option value="' . $key . '"' . (in_array($key,$currentsetting) ? ' selected="selected"' : '') . '>' . $value . '</option>';
}
$return .= '</select>';
- return format_admin_setting('configmultiselect', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
}
$return .= '</div>';
- return format_admin_setting('frontpage', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
$return = print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, 's_' . $this->name, $currentsetting, 0, true);
- return format_admin_setting('frontpagedesc', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
function get_setting() {
$return .= ' ';
$return .= '<input type="text" class="form-text" name="s_editorfontlist[v' . ($i + 1) . ']" value="" />';
- return format_admin_setting('editorfontlist', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
$return .= '</td></tr>';
$return .= '</table>';
- return format_admin_setting('editorhidebuttons', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
'<td><div align="center"><input type="checkbox" class="form-checkbox" id="id_s_'.$this->name.'s" name="s_'. $this->name .'[s]" value="1" ' . (substr($currentsetting,6,1) == '1' ? 'checked="checked"' : '') . ' /></div></td>' .
'</tr></table>';
- return format_admin_setting('backupdays', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
'<td><div align="center"><input type="checkbox" class="form-checkbox" id="id_s_'.$this->name.'s" name="s_'. $this->name .'[s]" value="1" ' . ($currentsetting['s'] ? 'checked="checked"' : '') . ' /></div></td>' .
'</tr></table>';
- return format_admin_setting('calendarweekend', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
$return = '<input type="checkbox" class="form-checkbox" id="id_s_'.$this->name.'" name="s_'. $this->name .'" value="1" ' . ($currentsetting == 15 ? 'checked="checked"' : '') . ' />';
- return format_admin_setting('checkbox', $this->name, $this->visiblename, $return, $this->description);
+ return format_admin_setting($this->name, $this->visiblename, $return, $this->description);
}
}
}
-function format_admin_setting($class, $name, $title='', $form='', $description='') {
+function format_admin_setting($name, $title='', $form='', $description='') {
return "\n".
- '<div class="form-item admin-'.$class.'">'."\n".
+ '<div class="form-item" id="admin-'.$name.'">'."\n".
'<label for="id_s_'.$name.'">'.$title."\n".
' <span class="form-shortname">'.$name.'</span>'."\n".
'</label>'."\n".