MDL-11028 GUI complete, language strings complete, user key creation done. Validation is not yet coded.

This commit is contained in:
nicolasconnault 2007-08-29 11:43:48 +00:00
parent b16393cb07
commit 0f78c4de3d
9 changed files with 80 additions and 39 deletions

View file

@ -49,7 +49,7 @@ if ($id and $delete) {
print_header(get_string('deleteselectedkey'), get_string('deleteselectedkey'));
$optionsyes = array('id'=>$id, 'delete'=>1, 'courseid'=>$courseid, 'sesskey'=>sesskey(), 'confirm'=>1);
$optionsno = array('id'=>$courseid);
notice_yesno(get_string('deletekeyconfirm', 'key', $key->value), 'key.php', 'keymanager.php', $optionsyes, $optionsno, 'get', 'get');
notice_yesno(get_string('deletekeyconfirm', 'userkey', $key->value), 'key.php', 'keymanager.php', $optionsyes, $optionsno, 'get', 'get');
print_footer();
die;
@ -81,13 +81,13 @@ if ($editform->is_cancelled()) {
redirect($returnurl);
}
$strkeys = get_string('userkeys');
$strkeys = get_string('userkeys', 'userkey');
$strgrades = get_string('grades');
if ($id) {
$strheading = get_string('edituserkey', 'key');
$strheading = get_string('edituserkey', 'userkey');
} else {
$strheading = get_string('createuserkey', 'key');
$strheading = get_string('createuserkey', 'userkey');
}