echo "<p><b>" . get_string('export_priority_title', 'block_oppia_mobile_export') . "</b>"; echo "<br/>" . get_string('export_priority_desc', 'block_oppia_mobile_export') . "<br/>"; $priority = get_oppiaconfig($id, 'coursepriority', '0', $server); echo get_string('export_priority_label', 'block_oppia_mobile_export') . ": "; echo "<select name='coursepriority' id='coursepriority'>"; for ($i = 0; $i < 11; $i++) { echo "<option value='{$i}'"; if ($i == $priority) { echo " selected='selected'"; } echo ">{$i}</option>"; } echo "</select></p>"; echo "<div class='export-section-icon'><img src='" . $OUTPUT->pix_url('ic_tags', 'block_oppia_mobile_export') . "'/></div>"; echo "<p><b>" . get_string('export_course_tags_title', 'block_oppia_mobile_export') . "</b>"; echo "<br/>" . get_string('export_course_tags_desc', 'block_oppia_mobile_export') . "<br/>"; $tags = get_oppiaconfig($id, 'coursetags', '', $server); echo "<div class='pure-g'><input name='coursetags' id='coursetags' value='" . $tags . "' size='100'/></div><br/></p>"; echo "<div class='export-section-icon'><img src='" . $OUTPUT->pix_url('ic_sequencing', 'block_oppia_mobile_export') . "'/></div>"; echo "<p><b>" . get_string('export_sequencing_title', 'block_oppia_mobile_export') . "</b>"; echo "<br/>" . get_string('export_sequencing_desc', 'block_oppia_mobile_export') . "<br/>"; $sequencing = get_oppiaconfig($id, 'coursesequencing', '', $server); echo "<div class=\"pure-g\"><div class='pure-u-md-7-24 pure-u-1 pure-md-right'>" . get_string('export_sequencing_label', 'block_oppia_mobile_export') . ":</div><div class='pure-u-1 pure-u-md-17-24'>"; echo "<input type='radio' name='coursesequencing' value='none' " . ($sequencing == '' || $sequencing == 'none' ? "checked" : "") . "> " . get_string('export_sequencing_none', 'block_oppia_mobile_export') . "<br>"; echo "<input type='radio' name='coursesequencing' value='section' " . ($sequencing == 'section' ? "checked" : "") . "> " . get_string('export_sequencing_section', 'block_oppia_mobile_export') . "<br>"; echo "<input type='radio' name='coursesequencing' value='course' " . ($sequencing == 'course' ? "checked" : "") . "> " . get_string('export_sequencing_course', 'block_oppia_mobile_export') . "<br>"; echo "<br></p>"; echo "</div></div>"; echo "<p><input type='submit' name='submit' value='" . get_string('continue', 'block_oppia_mobile_export') . "'></p>"; echo "</form>"; echo $OUTPUT->footer();
echo "<div style='font-weight:bold; font-size:150%; display:block; border: 1px solid #000; padding:20px'>" . get_string('export_download', 'block_oppia_mobile_export', $a) . "</div>"; // form to publish to OppiaMobile server echo "<form style='display:block; border: 1px solid #000; padding:20px; margin:20px 0;' action='" . $CFG->wwwroot . "/blocks/oppia_mobile_export/publish_course.php' method='POST'>"; echo "<input type='hidden' name='id' value='" . $COURSE->id . "'>"; echo "<input type='hidden' name='sesskey' value='" . sesskey() . "'>"; echo "<input type='hidden' name='server' value='" . $server . "'>"; echo "<input type='hidden' name='file' value='" . $a->zip . "'>"; echo "<h2>" . get_string('publish_heading', 'block_oppia_mobile_export') . "</h2>"; echo "<p>" . get_string('publish_text', 'block_oppia_mobile_export', $server_connection->url) . "</p>"; echo "<p>" . get_string('publish_field_username', 'block_oppia_mobile_export') . "<br/>"; echo "<input type='text' name='username' value=''></p>"; echo "<p>" . get_string('publish_field_password', 'block_oppia_mobile_export') . "<br/>"; echo "<input type='password' name='password' value=''></p>"; echo "<p>" . get_string('publish_field_tags', 'block_oppia_mobile_export') . "<br/>"; echo "<input type='text' name='tags' value='" . $tags . "' size='100'></p>"; $is_draft = get_oppiaconfig($COURSE->id, 'is_draft', 'True'); echo "<p><input type='checkbox' name='is_draft' value='True'"; if ($is_draft == 'True') { echo "checked='checked'/>"; } else { echo "/>"; } echo get_string('publish_field_draft', 'block_oppia_mobile_export') . "<br/>"; echo get_string('publish_field_draft_info', 'block_oppia_mobile_export') . "</p>"; echo "<p><input type='submit' name='submit' value='Publish'></p>"; echo "</form>"; // link to cleanup files echo "<p><a href='cleanup.php?id=" . $id . "'>" . get_string('export_cleanup', 'block_oppia_mobile_export') . "</a></p>"; if (count($advice) > 0) { echo "<p>" . get_string('export_advice_desc', 'block_oppia_mobile_export') . "</p><ol>"; foreach ($advice as $a) {
} echo ">" . get_string('availability_section', 'block_oppia_mobile_export') . "</option>"; echo "<option value='2'"; if ($availability == 2) { echo " selected='selected'"; } echo ">" . get_string('availability_course', 'block_oppia_mobile_export') . "</option>"; echo "</select></td>"; echo "</tr>"; } echo "</table>"; } echo "<p><b>" . get_string('export_priority_title', 'block_oppia_mobile_export') . "</b>"; echo "<br/>" . get_string('export_priority_desc', 'block_oppia_mobile_export') . "<br/>"; $priority = get_oppiaconfig($id, 'coursepriority', '0'); echo "<select name='coursepriority' id='coursepriority'>"; for ($i = 0; $i < 11; $i++) { echo "<option value='{$i}'"; if ($i == $priority) { echo " selected='selected'"; } echo ">{$i}</option>"; } echo "</select></p>"; echo "<p><b>" . get_string('export_course_tags_title', 'block_oppia_mobile_export') . "</b>"; echo "<br/>" . get_string('export_course_tags_desc', 'block_oppia_mobile_export') . "<br/>"; $tags = get_oppiaconfig($id, 'coursetags', ''); echo "<input name='coursetags' id='coursetags' value='" . $tags . "' size='100'/><br/>"; echo "<p><input type='submit' name='submit' value='" . get_string('continue', 'block_oppia_mobile_export') . "'></p>"; echo "</form>"; echo $OUTPUT->footer();