mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
navigation bar now uses appropriate strings for editing quesitons or editing quiz.
This commit is contained in:
parent
4f764fc4d3
commit
55a77c6c66
1 changed files with 18 additions and 16 deletions
|
@ -11,7 +11,9 @@
|
||||||
$perpage = optional_param('perpage', 20);
|
$perpage = optional_param('perpage', 20);
|
||||||
|
|
||||||
$strquizzes = get_string('modulenameplural', 'quiz');
|
$strquizzes = get_string('modulenameplural', 'quiz');
|
||||||
$strediting = get_string('editquestions', "quiz");
|
$strquiz = get_string('modulename', 'quiz');
|
||||||
|
$streditingquestions = get_string('editquestions', "quiz");
|
||||||
|
$streditingquiz = get_string("editinga", "moodle", $strquiz);
|
||||||
|
|
||||||
if ($modform = data_submitted() and !empty($modform->course)) { // data submitted
|
if ($modform = data_submitted() and !empty($modform->course)) { // data submitted
|
||||||
|
|
||||||
|
@ -269,9 +271,9 @@
|
||||||
if ($inuse) {
|
if ($inuse) {
|
||||||
$questionnames .= get_string('questionsinuse', 'quiz');
|
$questionnames .= get_string('questionsinuse', 'quiz');
|
||||||
}
|
}
|
||||||
print_header_simple($strediting, '',
|
print_header_simple($streditingquestions, '',
|
||||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||||
" -> $strediting");
|
" -> $streditingquestions");
|
||||||
notice_yesno(get_string("deletequestionscheck", "quiz", $questionnames),
|
notice_yesno(get_string("deletequestionscheck", "quiz", $questionnames),
|
||||||
"edit.php?sesskey=$USER->sesskey&deleteselected=$questionlist&confirm=".md5($questionlist), "edit.php");
|
"edit.php?sesskey=$USER->sesskey&deleteselected=$questionlist&confirm=".md5($questionlist), "edit.php");
|
||||||
print_footer($course);
|
print_footer($course);
|
||||||
|
@ -322,10 +324,10 @@
|
||||||
|
|
||||||
if (isset($modform->instance) and record_exists_sql("SELECT * FROM {$CFG->prefix}quiz_attempts WHERE quiz = '$modform->instance' AND NOT (userid = '$USER->id') LIMIT 1")){
|
if (isset($modform->instance) and record_exists_sql("SELECT * FROM {$CFG->prefix}quiz_attempts WHERE quiz = '$modform->instance' AND NOT (userid = '$USER->id') LIMIT 1")){
|
||||||
// one column layout with table of questions used in this quiz
|
// one column layout with table of questions used in this quiz
|
||||||
print_header_simple($strediting, '',
|
print_header_simple($streditingquiz, '',
|
||||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||||
" -> <a href=\"view.php?q=$modform->instance\">".format_string($modform->name,true)."</a>".
|
" -> <a href=\"view.php?q=$modform->instance\">".format_string($modform->name,true)."</a>".
|
||||||
" -> $strediting");
|
" -> $streditingquiz");
|
||||||
print_simple_box_start("center");
|
print_simple_box_start("center");
|
||||||
print_heading(format_string($modform->name));
|
print_heading(format_string($modform->name));
|
||||||
$attemptcount = count_records_select("quiz_attempts", "quiz = '$modform->instance' AND timefinish > 0");
|
$attemptcount = count_records_select("quiz_attempts", "quiz = '$modform->instance' AND timefinish > 0");
|
||||||
|
@ -352,18 +354,18 @@
|
||||||
|
|
||||||
if (!isset($modform->instance)) {
|
if (!isset($modform->instance)) {
|
||||||
// one column layout for non-quiz-specific editing page
|
// one column layout for non-quiz-specific editing page
|
||||||
print_header_simple($strediting, '',
|
print_header_simple($streditingquestions, '',
|
||||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||||
" -> $strediting");
|
" -> $streditingquestions");
|
||||||
echo '<table align="center" border="0" cellpadding="2" cellspacing="0">';
|
echo '<table align="center" border="0" cellpadding="2" cellspacing="0">';
|
||||||
echo '<tr><td valign="top">';
|
echo '<tr><td valign="top">';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// two column layout with quiz info in left column
|
// two column layout with quiz info in left column
|
||||||
print_header_simple($strediting, '',
|
print_header_simple($streditingquiz, '',
|
||||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||||
" -> <a href=\"view.php?q=$modform->instance\">".format_string($modform->name,true)."</a>".
|
" -> <a href=\"view.php?q=$modform->instance\">".format_string($modform->name,true)."</a>".
|
||||||
" -> $strediting");
|
" -> $streditingquiz");
|
||||||
echo '<table border="0" width="100%" cellpadding="2" cellspacing="0">';
|
echo '<table border="0" width="100%" cellpadding="2" cellspacing="0">';
|
||||||
echo '<tr><td width="50%" valign="top">';
|
echo '<tr><td width="50%" valign="top">';
|
||||||
print_simple_box_start("center", "100%");
|
print_simple_box_start("center", "100%");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue