示例#1
0
        echo "<p><b><label for=\"qoption\">" . get_string('casesensitive', 'lesson') . ":</label></b> \n";
        if ($page->qoption) {
            echo "<input type=\"checkbox\" id=\"qoption\" name=\"qoption\" value=\"1\" checked=\"checked\" />";
        } else {
            echo "<input type=\"checkbox\" id=\"qoption\" name=\"qoption\" value=\"1\" />";
        }
        helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
        echo "</p>\n";
        break;
    case LESSON_TRUEFALSE:
    case LESSON_ESSAY:
    case LESSON_MATCHING:
    case LESSON_NUMERICAL:
        echo '<b>' . get_string("questiontype", "lesson") . ":</b> \n";
        echo helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson") . "<br />";
        lesson_qtype_menu($LESSON_QUESTION_TYPE, $page->qtype, "lesson.php?id={$cm->id}&amp;action=editpage&amp;pageid={$page->id}", "getElementById('editpage').redisplay.value=1;getElementById('editpage').submit();");
        break;
}
?>
    <table cellpadding="5" class="generalbox" border="1">
    <tr valign="top">
    <td><b><label for="title"><?php 
print_string('pagetitle', 'lesson');
?>
:</label></b><br />
    <input type="text" id="title" name="title" size="80" maxsize="255" value="<?php 
p($page->title);
?>
" /></td>
    </tr>
    <?php 
示例#2
0
echo $cm->id;
?>
" />
    <input type="hidden" name="action" value="insertpage" />
    <input type="hidden" name="pageid" value="<?php 
echo $pageid;
?>
" />
    <input type="hidden" name="sesskey" value="<?php 
echo $USER->sesskey;
?>
" />
      <?php 
echo '<b>' . get_string("questiontype", "lesson") . ":</b> \n";
echo helpbutton("questiontypes", get_string("questiontype", "lesson"), "lesson") . "<br />";
lesson_qtype_menu($LESSON_QUESTION_TYPE, $qtype, "lesson.php?id={$cm->id}&amp;action=addpage&amp;pageid=" . $pageid . $linkadd);
if ($qtype == LESSON_SHORTANSWER || $qtype == LESSON_MULTICHOICE) {
    // only display this option for Multichoice and shortanswer
    echo '<p>';
    if ($qtype == LESSON_SHORTANSWER) {
        $qoptionstr = get_string('casesensitive', 'lesson');
    } else {
        $qoptionstr = get_string('multianswer', 'lesson');
    }
    echo "<label for=\"qoption\"><strong>{$qoptionstr}</strong></label><input type=\"checkbox\" id=\"qoption\" name=\"qoption\" value=\"1\"/>";
    helpbutton("questionoption", get_string("questionoption", "lesson"), "lesson");
    echo '</p>';
}
?>
    <table cellpadding="5" class="generalbox boxaligncenter" border="1">
    <tr valign="top">