/** * Printing wiki editor. * Depending on where it is called , action will go to different destinations. * If it is called from comments section, the return will be in comments section * in any other case it will be in edit view section. * @param $pageid. Current pageid * @param $content. Content to be edited. * @param $section. Current section, default null * @param $comesfrom. Information about where the function call is made * @param commentid. id comment of comment that will be edited. */ function wiki_print_editor_wiki($pageid, $content, $editor, $version = -1, $section = null, $upload = false, $deleteuploads = array(), $comesfrom = 'editorview', $commentid = 0) { global $CFG, $OUTPUT, $PAGE; if ($comesfrom == 'editcomments') { $action = $CFG->wwwroot . '/mod/wiki/instancecomments.php?pageid=' . $pageid . '&id=' . $commentid . '&action=edit'; } else if ($comesfrom == 'addcomments') { $action = $CFG->wwwroot . '/mod/wiki/instancecomments.php?pageid=' . $pageid . '&id=' . $commentid . '&action=add'; } else { $action = $CFG->wwwroot . '/mod/wiki/edit.php?pageid=' . $pageid; } if (!empty($section)) { $action .= "&section=" . urlencode($section); } ///Get tags for every element we are displaying $tag = getTokens($editor, 'bold'); $wiki_editor['bold'] = array('ed_bold.gif', get_string('wikiboldtext', 'wiki'), $tag[0], $tag[1], get_string('wikiboldtext', 'wiki')); $tag = getTokens($editor, 'italic'); $wiki_editor['italic'] = array('ed_italic.gif', get_string('wikiitalictext', 'wiki'), $tag[0], $tag[1], get_string('wikiitalictext', 'wiki')); $tag = getTokens($editor, 'link'); $wiki_editor['internal'] = array('ed_internal.gif', get_string('wikiinternalurl', 'wiki'), $tag[0], $tag[1], get_string('wikiinternalurl', 'wiki')); $tag = getTokens($editor, 'url'); $wiki_editor['external'] = array('ed_external.gif', get_string('wikiexternalurl', 'wiki'), $tag[0], $tag[1], get_string('wikiexternalurl', 'wiki')); $tag = getTokens($editor, 'list'); $wiki_editor['u_list'] = array('ed_ul.gif', get_string('wikiunorderedlist', 'wiki'), '\\n' . $tag[0], '', ''); $wiki_editor['o_list'] = array('ed_ol.gif', get_string('wikiorderedlist', 'wiki'), '\\n' . $tag[1], '', ''); $tag = getTokens($editor, 'image'); $wiki_editor['image'] = array('ed_img.gif', get_string('wikiimage', 'wiki'), $tag[0], $tag[1], get_string('wikiimage', 'wiki')); $tag = getTokens($editor, 'header'); $wiki_editor['h1'] = array('ed_h1.gif', get_string('wikiheader', 'wiki', 1), '\\n' . $tag . ' ', ' ' . $tag . '\\n', get_string('wikiheader', 'wiki', 1)); $wiki_editor['h2'] = array('ed_h2.gif', get_string('wikiheader', 'wiki', 2), '\\n' . $tag . $tag . ' ', ' ' . $tag . $tag . '\\n', get_string('wikiheader', 'wiki', 2)); $wiki_editor['h3'] = array('ed_h3.gif', get_string('wikiheader', 'wiki', 3), '\\n' . $tag . $tag . $tag . ' ', ' ' . $tag . $tag . $tag . '\\n', get_string('wikiheader', 'wiki', 3)); $tag = getTokens($editor, 'line_break'); $wiki_editor['hr'] = array('ed_hr.gif', get_string('wikihr', 'wiki'), '\\n' . $tag . '\\n', '', ''); $tag = getTokens($editor, 'nowiki'); $wiki_editor['nowiki'] = array('ed_nowiki.gif', get_string('wikinowikitext', 'wiki'), $tag[0], $tag[1], get_string('wikinowikitext', 'wiki')); $OUTPUT->heading(strtoupper(get_string('format' . $editor, 'wiki')), 3); $PAGE->requires->js('/mod/wiki/editors/wiki/buttons.js'); echo $OUTPUT->container_start(); foreach ($wiki_editor as $button) { echo "<a href=\"javascript:insertTags"; echo "('" . $button[2] . "','" . $button[3] . "','" . $button[4] . "');\">"; echo "<img width=\"23\" height=\"22\" src=\"$CFG->wwwroot/mod/wiki/editors/wiki/images/$button[0]\" alt=\"" . $button[1] . "\" title=\"" . $button[1] . "\" />"; echo "</a>"; } echo $OUTPUT->container_end(); echo $OUTPUT->container_start(); echo '<form method="post" id="mform1" action="' . $action . '">'; echo $OUTPUT->container(print_textarea(false, 20, 60, 0, 0, "newcontent", $content, 0, true), false, 'wiki_editor'); echo $OUTPUT->container_start(); wiki_print_edit_form_default_fields($editor, $pageid, $version, $upload, $deleteuploads); echo $OUTPUT->container_end(); echo '</form>'; echo $OUTPUT->container_end(); }
function gen_textarea($usehtmleditor, $text = '') { // MDL-16018: Don't print htmlarea with < 7 lines height, causes visualization problem $text = clean_text($text); $this->field->param3 = $usehtmleditor && $this->field->param3 < 7 ? 7 : $this->field->param3; return print_textarea($usehtmleditor, $this->field->param3, $this->field->param2, '', '', 'field_' . $this->field->id, $text, '', true, 'field_' . $this->field->id); }
/** * Returns the input field in HTML * * @return string */ function toHtml() { if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { return $this->_getTabs() . print_textarea(true, $this->_options['rows'], $this->_options['cols'], $this->_options['width'], $this->_options['height'], $this->getName(), preg_replace("/(\r\n|\n|\r)/", '
', $this->getValue()), 0, true, $this->getAttribute('id')); } }
function view($editable, $issueid = 0) { $this->getvalue($issueid); if ($editable) { print_textarea(true, 10, 60, 680, 400, "element{$this->name}", $this->value); } else { echo format_text(format_string($this->value), $this->format); } }
function dbmgr_main() { echo '<link rel="stylesheet" href="include/styles/dbmanager.css" type="text/css" />'; $sql = (string) get_parameter('sql'); $clean_output = get_parameter("clean_output", 0); if ($clean_output == 0) { echo "<h1>" . __('Extensions') . " » " . __('Database interface'); $html_report_image = print_html_report_image("index.php?sec=godmode&sec2=godmode/setup/dbmanager&sql={$sql}", __("Report")); if ($html_report_image) { echo " " . $html_report_image; } echo "</h1>"; echo '<div class="note_simple">'; echo __("This is an advanced extension to interface with Integria IMS database directly using native SQL sentences. Please note that <b>you can damage</b> your Integria IMS installation if you don't know </b>exactly</b> what are you doing, this means that you can severily damage your setup using this extension. This extension is intended to be used <b>only by experienced users</b> with a depth knowledgue of Integria IMS."); echo '</div>'; echo "<br />"; echo __("Some samples of usage:") . " <blockquote><em>SHOW STATUS;<br />DESCRIBE tincidencia<br />SELECT * FROM tincidencia<br />UPDATE tincidencia SET sla_disabled = 1 WHERE inicio < '2010-01-10 00:00:00';</em></blockquote>"; echo "<br /><br />"; echo "<form method='post' action=''>"; print_textarea('sql', 5, 50, html_entity_decode($sql, ENT_QUOTES)); echo "<div style='width: 99%; text-align: right; margin-top: 6px;'>"; print_submit_button(__('Execute SQL'), '', false, 'class="sub next"'); echo "</div>"; echo "</form>"; } else { echo "<form method='post' action=''>"; print_textarea('sql', 2, 40, html_entity_decode($sql, ENT_QUOTES)); echo "<div style='width: 99%; text-align: right; margin-top: 6px;'>"; print_submit_button(__('Execute SQL'), '', false, 'class="sub next"'); echo "</div>"; echo "</form>"; } // Processing SQL Code if ($sql == '') { return; } echo "<br />"; echo "<hr />"; echo "<br />"; $error = ''; $result = dbmanager_query($sql, $error); if ($result === false) { echo '<strong>An error has occured when querying the database.</strong><br />'; echo $error; return; } if (!is_array($result)) { echo "<strong>Output: <strong>" . $result; return; } $table->width = '90%'; $table->class = 'dbmanager'; $table->head = array_keys($result[0]); $table->data = $result; print_table($table); }
function toHtml() { //if ($this->_canUseHtmlEditor && !$this->_flagFrozen){ // $script = ''; //} else { // $script=''; //} if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { return $this->_getTabs() . '<input type="hidden" name="filearea" value="' . $this->_options['filearea'] . '" />' . "\n" . print_textarea($this->_canUseHtmlEditor, $this->_options['rows'], $this->_options['cols'], $this->_options['width'], $this->_options['height'], $this->getName(), preg_replace("/(\r\n|\n|\r)/", '
', $this->getValue()), 0, true, $this->getAttribute('id')); } }
function toHtml() { //if ($this->_canUseHtmlEditor && !$this->_flagFrozen){ // $script = ''; //} else { // $script=''; //} if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { return $this->_getTabs() . print_textarea($this->_canUseHtmlEditor, $this->_options['rows'], $this->_options['cols'], $this->_options['width'], $this->_options['height'], $this->getName(), preg_replace("/(\r\n|\n|\r)/", '
', $this->getValue()), 0, true, $this->getAttribute('id')); //.$script; } }
function toHtml() { if ($this->_canUseHtmlEditor && !$this->_flagFrozen) { ob_start(); use_html_editor($this->getName(), '', $this->getAttribute('id')); $script = ob_get_clean(); } else { $script = ''; } if ($this->_flagFrozen) { return $this->getFrozenHtml(); } else { return $this->_getTabs() . print_textarea($this->_canUseHtmlEditor, $this->_options['rows'], $this->_options['cols'], $this->_options['width'], $this->_options['height'], $this->getName(), preg_replace("/(\r\n|\n|\r)/", '
', $this->getValue()), $this->_options['course'], true, $this->getAttribute('id')) . $script; } }
/** * @TODO: Doc this function */ function wiki_print_editor_html($pageid, $content, $version = -1, $section = null, $upload = false, $deleteuploads = array()) { global $CFG, $OUTPUT; $OUTPUT->heading(strtoupper(get_string('formathtml', 'wiki')), 3); $action = $CFG->wwwroot . '/mod/wiki/edit.php?pageid=' . $pageid; if (!empty($section)) { $action .= "§ion=" . urlencode($section); } echo $OUTPUT->container_start('mdl-align'); echo '<form method="post" action="' . $action . '">'; echo $OUTPUT->container(print_textarea(true, 20, 100, 0, 0, "newcontent", $content, 0, true, '', 'form-textarea-advanced'), 'wiki_editor'); wiki_print_edit_form_default_fields('html', $pageid, $version, $upload, $deleteuploads); echo '</form>'; echo $OUTPUT->container_end(); }
function print_question_formulation_and_controls(&$question, &$state, $cmoptions, $options) { global $CFG; static $htmleditorused = false; $answers =& $question->options->answers; $readonly = empty($options->readonly) ? '' : 'disabled="disabled"'; // Only use the rich text editor for the first essay question on a page. $usehtmleditor = can_use_html_editor() && !$htmleditorused; $formatoptions = new stdClass(); $formatoptions->noclean = true; $formatoptions->para = false; $inputname = $question->name_prefix; $stranswer = get_string("answer", "quiz") . ': '; /// set question text and media $questiontext = format_text($question->questiontext, $question->questiontextformat, $formatoptions, $cmoptions->course); $image = get_question_image($question); // feedback handling $feedback = ''; if ($options->feedback && !empty($answers)) { foreach ($answers as $answer) { $feedback = format_text($answer->feedback, '', $formatoptions, $cmoptions->course); } } // get response value if (isset($state->responses[''])) { $value = stripslashes_safe($state->responses['']); } else { $value = ""; } // answer if (empty($options->readonly)) { // the student needs to type in their answer so print out a text editor $answer = print_textarea($usehtmleditor, 18, 80, 630, 400, $inputname, $value, $cmoptions->course, true); } else { // it is read only, so just format the students answer and output it $safeformatoptions = new stdClass(); $safeformatoptions->para = false; $answer = format_text($value, FORMAT_MOODLE, $safeformatoptions, $cmoptions->course); $answer = '<div class="answerreview">' . $answer . '</div>'; } include "{$CFG->dirroot}/question/type/essay/display.html"; if ($usehtmleditor && empty($options->readonly)) { use_html_editor($inputname); $htmleditorused = true; } }
function show_edit_label($item, $usehtmleditor = false) { $item->presentation = isset($item->presentation) ? $item->presentation : ''; ?> <table style="display:inline"> <tr><th><?php print_string('label', 'feedback'); ?> </th></tr> <tr> <td> <?php print_textarea($usehtmleditor, 20, 60, 680, 400, "presentation", $item->presentation); ?> <input type="hidden" id="itemname" name="itemname" value="label" /> </td> </tr> </table> <div style="clear:both"></div> <?php if ($usehtmleditor) { use_html_editor(); } }
} // Linked values $sql = "SELECT id, label\n\t\tFROM tincident_type_field\t\n\t\tWHERE id_incident_type = {$id_incident_type}\n\t\t\tAND type = 'linked'"; $parents_result = get_db_all_rows_sql($sql); if ($parents_result == false) { $parents_result = array(); } $parents = array(); foreach ($parents_result as $result) { $parents[$result['id']] = $result['label']; } $table->data['id_parent_value'][0] = print_select($parents, 'parent', $parent, '', __('Select parent'), '0', true, 0, true, __("Parent"), $global_field); $table->data['id_linked_value'][0] = print_textarea('linked_value', 15, 1, $linked_value, '', true, __('Linked value') . integria_help("linked_values", true), $global_field); if ($global_field) { $table->data['id_linked_value'][1] = ""; $table->data['id_linked_value'][2] = print_textarea('add_linked_value', 15, 1, $add_linked_value, '', true, __('Add values') . integria_help("linked_values", true)); } // Buttons if ($add_field) { $button = print_input_hidden('add_field', 1, true); $button .= print_submit_button(__('Create'), 'create_btn', false, 'class="sub next"', true); } else { if ($update_field) { if (!$global_field && ($type != 'linked' || $type != 'combo') || $global_field && ($type == 'linked' || $type == 'combo')) { $button = print_input_hidden('update_field', 1, true); $button .= print_input_hidden('add_field', 0, true); $button .= print_input_hidden('id_field', $id_field, true); $button .= print_submit_button(__('Update'), 'update_btn', false, 'class="sub upd"', true); } } }
<tr valign="top"> <td align="left"><b><?php print_string('requirement', 'brainstorm'); ?> :</b></td> <td align="right"> <?php if ($brainstorm->oprequirementtype == 0) { ?> <input type="text" size="60" name="config_requirement" value="<?php echo stripslashes($currentoperator->configdata->requirement); ?> " /> <?php } elseif ($brainstorm->oprequirementtype == 2) { print_textarea($usehtmleditor, 20, 50, 680, 400, 'config_requirement', stripslashes($currentoperator->configdata->requirement)); if (!$usehtmleditor) { $brainstorm->oprequirementtype = 1; } else { $htmleditorneeded = true; } } elseif ($brainstorm->oprequirementtype == 1) { ?> <textarea style="width:100%;height:150px" name="config_requirement"><?php echo stripslashes($currentoperator->configdata->requirement); ?> </textarea> <?php } ?> <?php
$table->data[11][1] = "<h4>" . __("Newsletter SMTP Parameters") . "</h4>"; $table->data[12][0] = print_input_text("news_smtp_host", $config["news_smtp_host"], '', 35, 200, true, __('SMTP Host')); $table->data[12][1] = print_input_text("news_smtp_port", $config["news_smtp_port"], '', 5, 10, true, __('SMTP Port')); $table->data[13][0] = print_input_text("news_smtp_user", $config["news_smtp_user"], '', 25, 200, true, __('SMTP User')); $table->data[13][1] = print_input_text("news_smtp_pass", $config["news_smtp_pass"], '', 25, 200, true, __('SMTP Password')); $table->data[14][0] = print_input_text("news_batch_newsletter", $config["news_batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution')); $table->data[14][0] .= print_help_tip(__("This means, in each execution of the batch external process (integria_cron). If you set your cron to execute each hour in each execution of that process will try to send this ammount of emails. If you set the cron to run each 5 min, will try this number of mails."), true); $table->data[14][1] = print_input_text("batch_email_validation", $config["batch_email_validation"], '', 4, 255, true, __('Newsletter email validation batch')); $table->data[14][1] .= print_help_tip(__("This means, in each execution of the batch external process (integria_cron) will try to validate this ammount of emails."), true); $table->data[15][0] = print_checkbox("active_validate", 1, $config["active_validate"], true, __('Activate email validation')); $table->data[16][1] = "<h4>" . __("Mail general texts") . "</h4>"; $table->colspan[17][0] = 3; $table->colspan[18][0] = 3; $table->colspan[19][0] = 3; $table->data[17][0] = print_textarea("header_email", 5, 40, $config["HEADER_EMAIL"], '', true, __('Email header')); $table->data[18][0] = print_textarea("footer_email", 5, 40, $config["FOOTER_EMAIL"], '', true, __('Email footer')); $table->data[19][1] = "<h4>" . __("Mail queue control"); $total_pending = get_db_sql("SELECT COUNT(*) from tpending_mail"); $table->data[19][1] .= " : " . $total_pending . " " . __("mails in queue") . "</h4>"; if ($total_pending > 0) { $table->colspan[20][0] = 3; $mail_queue = "<div style='height: 250px; overflow-y: auto;'>"; $mail_queue .= "<table width=100% class=listing>"; $mail_queue .= "<tr><th>" . __("Date") . "<th>" . __("Recipient") . "<th>" . __("Subject") . "<th>" . __("Attempts") . "<th>" . __("Status") . "</tr>"; $mails = get_db_all_rows_sql("SELECT * FROM tpending_mail LIMIT 1000"); foreach ($mails as $mail) { $mail_queue .= "<tr>"; $mail_queue .= "<td style='font-size: 9px;'>"; $mail_queue .= $mail["date"]; $mail_queue .= "<td>"; $mail_queue .= $mail["recipient"];
echo '</li>'; echo '</ul>'; echo '</div>'; echo '</div>'; // class="userinfo" echo '<div id="send">'; echo '<form id="editing" method="post" action="discussion.php">'; $usehtmleditor = can_use_html_editor() && get_user_preferences('message_usehtmleditor', 0); echo '<h1><label for="edit-message">' . get_string('sendmessage', 'message') . '</label></h1>'; echo '<div>'; if ($usehtmleditor) { print_textarea(true, 8, 34, 100, 100, 'message', $refreshedmessage); use_html_editor('message', 'formatblock subscript superscript copy cut paste clean undo redo justifyleft justifycenter justifyright justifyfull lefttoright righttoleft insertorderedlist insertunorderedlist outdent indent inserthorizontalrule createanchor nolink inserttable'); echo '<input type="hidden" name="format" value="' . FORMAT_HTML . '" />'; } else { print_textarea(false, 8, 50, 0, 0, 'message', $refreshedmessage); echo '<input type="hidden" name="format" value="' . FORMAT_MOODLE . '" />'; } echo '</div><div>'; echo '<input type="hidden" name="id" value="' . $user->id . '" />'; echo '<input type="hidden" name="start" value="' . $start . '" />'; echo '<input type="hidden" name="noframesjs" value="' . $noframesjs . '" />'; echo '<input type="hidden" name="last" value="' . time() . '" />'; echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />'; echo '<input type="submit" value="' . get_string('sendmessage', 'message') . '" /> '; echo '<input type="submit" name="refresh" value="' . get_string('refresh') . '" />'; echo '<input type="checkbox" name="newonly" id="newonly" ' . ($newonly ? 'checked="checked" ' : '') . '/><label for="newonly">' . get_string('newonlymsg', 'message') . '</label>'; echo '</div>'; echo '</form>'; echo '</div>'; echo '<div id="messages">';
/// Print the appropriate form if (file_exists($filename)) { // We are in maintenance mode echo '<div style="margin-left:auto;margin-right:auto">'; echo '<form action="maintenance.php" method="post">'; echo '<input type="hidden" name="action" value="disable" />'; echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />'; echo '<p><input type="submit" value="' . get_string('disable') . '" /></p>'; echo '</form>'; echo '</div>'; } else { // We are not in maintenance mode $usehtmleditor = can_use_html_editor(); echo '<div style="text-align:center;margin-left:auto;margin-right:auto">'; echo '<form action="maintenance.php" method="post">'; echo '<div>'; echo '<input type="hidden" name="action" value="enable" />'; echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />'; echo '<p><input type="submit" value="' . get_string('enable') . '" /></p>'; echo '<p>' . get_string('optionalmaintenancemessage', 'admin') . ':</p>'; echo '<table><tr><td>'; print_textarea($usehtmleditor, 20, 50, 600, 400, "text"); echo '</td></tr></table>'; echo '</div>'; echo '</form>'; echo '</div>'; if ($usehtmleditor) { use_html_editor(); } } admin_externalpage_print_footer();
/** * Display a single submission, ready for grading on a popup window * * This default method prints the teacher info and submissioncomment box at the top and * the student info and submission at the bottom. * This method also fetches the necessary data in order to be able to * provide a "Next submission" button. * Calls preprocess_submission() to give assignment type plug-ins a chance * to process submissions before they are graded * This method gets its arguments from the page parameters userid and offset */ function display_submission($extra_javascript = '') { global $CFG; require_once $CFG->libdir . '/gradelib.php'; $userid = required_param('userid', PARAM_INT); $offset = required_param('offset', PARAM_INT); //offset for where to start looking for student. if (!($user = get_record('user', 'id', $userid))) { error('No such user!'); } if (!($submission = $this->get_submission($user->id))) { $submission = $this->prepare_new_submission($userid); } if ($submission->timemodified > $submission->timemarked) { $subtype = 'assignmentnew'; } else { $subtype = 'assignmentold'; } $grading_info = grade_get_grades($this->course->id, 'mod', 'assignment', $this->assignment->id, array($user->id)); $disabled = $grading_info->items[0]->grades[$userid]->locked || $grading_info->items[0]->grades[$userid]->overridden; /// construct SQL, using current offset to find the data of the next student $course = $this->course; $assignment = $this->assignment; $cm = $this->cm; $context = get_context_instance(CONTEXT_MODULE, $cm->id); /// Get all ppl that can submit assignments $currentgroup = groups_get_activity_group($cm); $users = get_users_by_capability($context, 'mod/assignment:submit', 'u.id, u.id', '', '', '', $currentgroup, '', false); $select = 'SELECT u.id, u.firstname, u.lastname, u.picture, s.id AS submissionid, s.grade, s.submissioncomment, s.timemodified, s.timemarked, COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status '; $sql = 'FROM ' . $CFG->prefix . 'user u ' . 'LEFT JOIN ' . $CFG->prefix . 'assignment_submissions s ON u.id = s.userid AND s.assignment = ' . $this->assignment->id . ' ' . 'WHERE u.id IN (' . implode(',', array_keys($users)) . ') '; require_once $CFG->libdir . '/tablelib.php'; if ($sort = flexible_table::get_sql_sort('mod-assignment-submissions')) { $sort = 'ORDER BY ' . $sort . ' '; } $nextid = 0; if (($auser = get_records_sql($select . $sql . $sort, $offset + 1, 1)) !== false) { $nextuser = array_shift($auser); /// Calculate user status $nextuser->status = $nextuser->timemarked > 0 && $nextuser->timemarked >= $nextuser->timemodified; $nextid = $nextuser->id; } print_header(get_string('feedback', 'assignment') . ':' . fullname($user, true) . ':' . format_string($this->assignment->name)); /// Print any extra javascript needed for saveandnext echo $extra_javascript; ///SOme javascript to help with setting up >.> echo '<script type="text/javascript">' . "\n"; echo 'function setNext(){' . "\n"; echo 'document.getElementById(\'submitform\').mode.value=\'next\';' . "\n"; echo 'document.getElementById(\'submitform\').userid.value="' . $nextid . '";' . "\n"; echo '}' . "\n"; echo 'function saveNext(){' . "\n"; echo 'document.getElementById(\'submitform\').mode.value=\'saveandnext\';' . "\n"; echo 'document.getElementById(\'submitform\').userid.value="' . $nextid . '";' . "\n"; echo 'document.getElementById(\'submitform\').saveuserid.value="' . $userid . '";' . "\n"; echo 'document.getElementById(\'submitform\').menuindex.value = document.getElementById(\'submitform\').grade.selectedIndex;' . "\n"; echo '}' . "\n"; echo '</script>' . "\n"; echo '<table cellspacing="0" class="feedback ' . $subtype . '" >'; ///Start of teacher info row echo '<tr>'; echo '<td class="picture teacher">'; if ($submission->teacher) { $teacher = get_record('user', 'id', $submission->teacher); } else { global $USER; $teacher = $USER; } print_user_picture($teacher->id, $this->course->id, $teacher->picture); echo '</td>'; echo '<td class="content">'; echo '<form id="submitform" action="submissions.php" method="post">'; echo '<div>'; // xhtml compatibility - invisiblefieldset was breaking layout here echo '<input type="hidden" name="offset" value="' . ($offset + 1) . '" />'; echo '<input type="hidden" name="userid" value="' . $userid . '" />'; echo '<input type="hidden" name="id" value="' . $this->cm->id . '" />'; echo '<input type="hidden" name="mode" value="grade" />'; echo '<input type="hidden" name="menuindex" value="0" />'; //selected menu index //new hidden field, initialized to -1. echo '<input type="hidden" name="saveuserid" value="-1" />'; if ($submission->timemarked) { echo '<div class="from">'; echo '<div class="fullname">' . fullname($teacher, true) . '</div>'; echo '<div class="time">' . userdate($submission->timemarked) . '</div>'; echo '</div>'; } echo '<div class="grade"><label for="menugrade">' . get_string('grade') . '</label> '; choose_from_menu(make_grades_menu($this->assignment->grade), 'grade', $submission->grade, get_string('nograde'), '', -1, false, $disabled); echo '</div>'; echo '<div class="clearer"></div>'; echo '<div class="finalgrade">' . get_string('finalgrade', 'grades') . ': ' . $grading_info->items[0]->grades[$userid]->str_grade . '</div>'; echo '<div class="clearer"></div>'; if (!empty($CFG->enableoutcomes)) { foreach ($grading_info->outcomes as $n => $outcome) { echo '<div class="outcome"><label for="menuoutcome_' . $n . '">' . $outcome->name . '</label> '; $options = make_grades_menu(-$outcome->scaleid); if ($outcome->grades[$submission->userid]->locked) { $options[0] = get_string('nooutcome', 'grades'); echo $options[$outcome->grades[$submission->userid]->grade]; } else { choose_from_menu($options, 'outcome_' . $n . '[' . $userid . ']', $outcome->grades[$submission->userid]->grade, get_string('nooutcome', 'grades'), '', 0, false, false, 0, 'menuoutcome_' . $n); } echo '</div>'; echo '<div class="clearer"></div>'; } } $this->preprocess_submission($submission); if ($disabled) { echo '<div class="disabledfeedback">' . $grading_info->items[0]->grades[$userid]->str_feedback . '</div>'; } else { print_textarea($this->usehtmleditor, 14, 58, 0, 0, 'submissioncomment', $submission->submissioncomment, $this->course->id); if ($this->usehtmleditor) { echo '<input type="hidden" name="format" value="' . FORMAT_HTML . '" />'; } else { echo '<div class="format">'; choose_from_menu(format_text_menu(), "format", $submission->format, ""); helpbutton("textformat", get_string("helpformatting")); echo '</div>'; } } ///Print Buttons in Single View echo '<div class="buttons">'; echo '<input type="submit" name="submit" value="' . get_string('savechanges') . '" onclick = "document.getElementById(\'submitform\').menuindex.value = document.getElementById(\'submitform\').grade.selectedIndex" />'; echo '<input type="submit" name="cancel" value="' . get_string('cancel') . '" />'; //if there are more to be graded. if ($nextid) { echo '<input type="submit" name="saveandnext" value="' . get_string('saveandnext') . '" onclick="saveNext()" />'; echo '<input type="submit" name="next" value="' . get_string('next') . '" onclick="setNext();" />'; } echo '</div>'; echo '</div></form>'; $customfeedback = $this->custom_feedbackform($submission, true); if (!empty($customfeedback)) { echo $customfeedback; } echo '</td></tr>'; ///End of teacher info row, Start of student info row echo '<tr>'; echo '<td class="picture user">'; print_user_picture($user->id, $this->course->id, $user->picture); echo '</td>'; echo '<td class="topic">'; echo '<div class="from">'; echo '<div class="fullname">' . fullname($user, true) . '</div>'; if ($submission->timemodified) { echo '<div class="time">' . userdate($submission->timemodified) . $this->display_lateness($submission->timemodified) . '</div>'; } echo '</div>'; $this->print_user_files($user->id); echo '</td>'; echo '</tr>'; ///End of student info row echo '</table>'; if (!$disabled and $this->usehtmleditor) { use_html_editor(); } print_footer('none'); }
function print_question_formulation_and_controls(&$question, &$state, $cmoptions, $options) { global $CFG; $context = $this->get_context_by_category_id($question->category); $answers =& $question->options->answers; $readonly = empty($options->readonly) ? '' : 'disabled="disabled"'; // Only use the rich text editor for the first essay question on a page. $formatoptions = new stdClass(); $formatoptions->noclean = true; $formatoptions->para = false; $inputname = $question->name_prefix; $stranswer = get_string("answer", "quiz") . ': '; /// set question text and media $questiontext = format_text($question->questiontext, $question->questiontextformat, $formatoptions, $cmoptions->course); // feedback handling $feedback = ''; if ($options->feedback && !empty($answers)) { foreach ($answers as $answer) { $feedback = quiz_rewrite_question_urls($answer->feedback, 'pluginfile.php', $context->id, 'question', 'answerfeedback', array($state->attempt, $state->question), $answer->id); $feedback = format_text($feedback, $answer->feedbackformat, $formatoptions, $cmoptions->course); } } // get response value if (isset($state->responses[''])) { $value = $state->responses['']; } else { $value = ''; } // answer if (empty($options->readonly)) { // the student needs to type in their answer so print out a text editor $answer = print_textarea(can_use_html_editor(), 18, 80, 630, 400, $inputname, $value, $cmoptions->course, true); } else { // it is read only, so just format the students answer and output it $safeformatoptions = new stdClass(); $safeformatoptions->para = false; $answer = format_text($value, FORMAT_MOODLE, $safeformatoptions, $cmoptions->course); $answer = '<div class="answerreview">' . $answer . '</div>'; } include "{$CFG->dirroot}/question/type/essay/display.html"; }
------------------------------------------------------------------------------------------------------ %s ------------------------------------------------------------------------------------------------------ ", $task["name"], $project_manager, $task["start"], $task["end"], get_priority_name($task["priority"]), $task_days, $task_cost, $task["completion"], $participants, $task["description"]); $section_title = __("Task report details"); $section_subtitle = $project_name . " >> " .$task["name"]; $t_menu = print_task_tabs(); print_title_with_menu ($section_title, $section_subtitle, "task_emailreport", 'projects', $t_menu, 'email'); echo "<form method=post action=''>"; echo "<table width=100% class=search-table-button>"; echo "<tr><td>"; print_input_text ('title', $title, '', 80, 175, false, __('Subject')); echo "<tr><td>"; print_textarea ('description', 15, 50, $description, '', false, __('Message text')); echo "<tr><td>"; echo '</table>'; $button = ''; echo '<div style="width:100%;">'; $table = new StdClass; $table->width = '100%'; $table->class = "button-form"; $button .= print_submit_button (__('Send'), 'create_btn', false, 'class="sub create"', true); $button .= print_input_hidden ('operation', 'generate_email',true); $button .= print_input_hidden ('id_project', $id_project, true); $button .= print_input_hidden ('id_task', $id_task, true); $table->data[7][0] = $button; $table->colspan[7][0] = 2;
<?php echo "<tr><td><strong>"; echo get_string("pagecontents", "lesson") . ":</strong><br />\n"; print_textarea($usehtmleditor, 25, 70, 0, 0, "contents"); echo "</td></tr>\n"; echo "<tr><td>\n"; echo "<div class=\"boxaligncenter addform\"><input name=\"layout\" type=\"checkbox\" value=\"1\" checked=\"checked\" />"; echo get_string("arrangebuttonshorizontally", "lesson") . "\n"; echo "<br /><input name=\"display\" type=\"checkbox\" value=\"1\" checked=\"checked\" />"; echo get_string("displayinleftmenu", "lesson"); echo "</div>\n"; echo "</td></tr>\n"; for ($i = 0; $i < $lesson->maxanswers; $i++) { $iplus1 = $i + 1; echo "<tr><td><strong>" . get_string("description", "lesson") . " {$iplus1}:</strong><br />\n"; print_textarea(false, 10, 70, 630, 300, "answer[{$i}]"); echo "</td></tr>\n"; echo "<tr><td><strong>" . get_string("jump", "lesson") . " {$iplus1}:</strong> \n"; if ($i) { // answers 2, 3, 4... jumpto this page choose_from_menu($jump, "jumpto[{$i}]", 0, ""); } else { // answer 1 jumpto next page choose_from_menu($jump, "jumpto[{$i}]", LESSON_NEXTPAGE, ""); } helpbutton("jumpto", get_string("jump", "lesson"), "lesson"); echo "</td></tr>\n"; } // close table and form ?> </table><br />
function ewiki_page_edit_form(&$id, &$data, &$hidden_postdata) { global $ewiki_plugins, $ewiki_config, $moodle_format; $content = optional_param('content', ''); $version = optional_param('version', ''); $o = ''; #-- previously edited, or db fetched content if ($content || $version) { $data = array("version" => $version, "content" => $content); } else { if (empty($data["version"])) { $data["version"] = 1; } @($data["content"] .= ""); } #-- normalize to DOS newlines $data["content"] = str_replace("\r\n", "\n", $data["content"]); $data["content"] = str_replace("\r", "\n", $data["content"]); $data["content"] = str_replace("\n", "\r\n", $data["content"]); $hidden_postdata["version"] =& $data["version"]; #-- edit textarea/form // deleted name="ewiki", can not find the reference, and it's breaking xhtml $o .= ewiki_t("EDIT_FORM_1") . '<form method="post" enctype="multipart/form-data" action="' . ewiki_script("edit", $id) . '" ' . ' accept-charset="' . EWIKI_CHARSET . '">' . "\n"; $o .= '<div>'; #-- additional POST vars foreach ($hidden_postdata as $name => $value) { $o .= '<input type="hidden" name="' . $name . '" value="' . $value . '" />' . "\n"; } ($cols = strtok($ewiki_config["edit_box_size"], "x*/,;:")) && ($rows = strtok("x, ")) || ($cols = 70) && ($rows = 15); global $ewiki_use_editor, $ewiki_editor_content; $ewiki_editor_content = 1; if ($ewiki_use_editor) { ob_start(); $usehtmleditor = can_use_html_editor(); echo '<table><tr><td>'; if ($usehtmleditor) { //clean and convert before editing $options = new object(); $options->smiley = false; $options->filter = false; $oldtext = format_text(ewiki_format($data["content"]), $moodle_format, $options); } else { $oldtext = ewiki_format($data["content"]); } print_textarea($usehtmleditor, $rows, $cols, 680, 400, "content", $oldtext); echo '</td></tr></table>'; $o .= ob_get_contents(); ob_end_clean(); } else { ##### END MOODLE ADDITION ##### $o .= '<textarea wrap="soft" id="ewiki_content" name="content" rows="' . $rows . '" cols="' . $cols . '">' . s($data["content"]) . "</textarea>" . $GLOBALS["ewiki_t"]["C"]["EDIT_TEXTAREA_RESIZE_JS"]; ##### BEGIN MOODLE ADDITION ##### } ##### END MOODLE ADDITION ##### #-- more <input> elements before the submit button if ($pf_a = $ewiki_plugins["edit_form_insert"]) { foreach ($pf_a as $pf) { $o .= $pf($id, $data, $action); } } ##### BEGIN MOODLE ADDITION (Cancel Editing into Button) ##### $o .= "\n<br />\n" . '<input type="submit" name="save" value="' . ewiki_t("SAVE") . '" />' . "\n" . '<input type="submit" name="preview" value="' . ewiki_t("PREVIEW") . '" />' . "\n" . '<input type="submit" name="canceledit" value="' . ewiki_t("CANCEL_EDIT") . '" />' . "\n"; # . ' <a href="'. ewiki_script("", $id) . '">' . ewiki_t("CANCEL_EDIT") . '</a>'; ##### END MOODLE ADDITION ##### #-- additional form elements if ($pf_a = $ewiki_plugins["edit_form_append"]) { foreach ($pf_a as $pf) { $o .= $pf($id, $data, $action); } } $o .= "\n</div></form>\n"; // . ewiki_t("EDIT_FORM_2"); // MOODLE DELETION return '<div class="edit-box">' . $o . '</div>'; }
function question_print_comment_fields($question, $state, $prefix, $cmoptions, $caption = '') { global $QTYPES; $idprefix = preg_replace('/[^-_a-zA-Z0-9]/', '', $prefix); $otherquestionsinuse = ''; if (!empty($cmoptions->questions)) { $otherquestionsinuse = $cmoptions->questions; } if (!question_state_is_graded($state) && $QTYPES[$question->qtype]->is_question_manual_graded($question, $otherquestionsinuse)) { $grade = ''; } else { $grade = question_format_grade($cmoptions, $state->last_graded->grade); } $maxgrade = question_format_grade($cmoptions, $question->maxgrade); $fieldsize = strlen($maxgrade) - 1; if (empty($caption)) { $caption = format_string($question->name); } ?> <fieldset class="que comment clearfix"> <legend class="ftoggler"><?php echo $caption; ?> </legend> <div class="fcontainer clearfix"> <div class="fitem"> <div class="fitemtitle"> <label for="<?php echo $idprefix; ?> _comment_box"><?php print_string('comment', 'quiz'); ?> </label> </div> <div class="felement fhtmleditor"> <?php print_textarea(can_use_html_editor(), 15, 60, 630, 300, $prefix . '[comment]', $state->manualcomment, 0, false, $idprefix . '_comment_box'); ?> </div> </div> <div class="fitem"> <div class="fitemtitle"> <label for="<?php echo $idprefix; ?> _grade_field"><?php print_string('grade', 'quiz'); ?> </label> </div> <div class="felement ftext"> <input type="text" name="<?php echo $prefix; ?> [grade]" size="<?php echo $fieldsize; ?> " id="<?php echo $idprefix; ?> _grade_field" value="<?php echo $grade; ?> " /> / <?php echo $maxgrade; ?> </div> </div> </div> </fieldset> <?php }
make_grading_menu($brainstorm, 'organize', @$gradeset->organize, false); } /// printing final feedback and report print_heading(get_string('feedback', 'brainstorm'), '', 3); $report = get_record('brainstorm_userdata', 'brainstormid', $brainstorm->id, 'userid', $gradefor); print_simple_box(format_string(format_text(@$report->report, @$report->reportformat))); if (!$brainstorm->singlegrade && $brainstorm->seqaccessfeedback) { echo '<br/>'; print_string('gradeforfeedback', 'brainstorm'); echo ' : '; make_grading_menu($brainstorm, 'feedback', @$gradeset->feedback, false); } // print a final feedback form echo '<br/><br/><table width="80%"><tr valign="top"><td><b>' . get_string('feedback') . ':</b></td><td>'; $usehtmleditor = can_use_html_editor(); print_textarea($usehtmleditor, 20, 50, 680, 400, 'teacherfeedback', @$report->feedback); if (!$usehtmleditor) { echo '<p align="right">'; helpbutton('textformat', get_string('formattexttype')); print_string('formattexttype'); echo ": "; if (empty($report->feedbackformat)) { $report->feedbackformat = FORMAT_MOODLE; } choose_from_menu(format_text_menu(), 'feedbackformat', $report->feedbackformat, ''); } else { $htmleditorneeded = 1; } echo '</td></tr></table>'; // if single grading, print a single grade scale if ($brainstorm->singlegrade) {
// Print the question $table->head = array(get_string('question', 'lesson')); $options = new stdClass(); $options->noclean = true; $table->data[] = array(format_text($page->contents, FORMAT_MOODLE, $options)); print_table($table); unset($table->data); // Now the user's answer $essayinfo = unserialize($attempt->useranswer); $table->head = array(get_string('studentresponse', 'lesson', fullname($user, true))); $table->data[] = array(s(stripslashes_safe($essayinfo->answer))); print_table($table); unset($table->data); // Now a response box and grade drop-down for grader $table->head = array(get_string('comments', 'lesson')); $table->data[] = array(print_textarea(false, 15, 60, 0, 0, 'response', $essayinfo->response, $course->id, true)); $options = array(); if ($lesson->custom) { for ($i = $answer->score; $i >= 0; $i--) { $options[$i] = $i; } } else { $options[0] = get_string('nocredit', 'lesson'); $options[1] = get_string('credit', 'lesson'); } $table->data[] = array(get_string('essayscore', 'lesson') . ': ' . choose_from_menu($options, 'score', $essayinfo->score, '', '', '', true)); print_table($table); echo '<div class="buttons"> <input type="submit" name="cancel" value="' . get_string('cancel') . '" /> <input type="submit" value="' . get_string('savechanges') . '" /> </div>
fclose($fileptr); displaydir($wdir); } else { $streditfile = get_string("edit", "", "<strong>{$file}</strong>"); $fileptr = fopen($basedir . $file, "r"); $contents = fread($fileptr, filesize($basedir . $file)); fclose($fileptr); print_heading("{$streditfile}"); echo "<table><tr><td colspan=\"2\">\n"; echo "<form action=\"coursefiles.php\" method=\"post\" name=\"form\" {$onsubmit}>\n"; echo " <input type=\"hidden\" name=\"id\" value=\"{$id}\" />\n"; echo " <input type=\"hidden\" name=\"wdir\" value=\"{$wdir}\" />\n"; echo " <input type=\"hidden\" name=file value=\"{$file}\" />"; echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />\n"; echo " <input type=\"hidden\" name=\"sesskey\" value=\"{$USER->sesskey}\" />\n"; print_textarea(false, 25, 80, 680, 400, "text", $contents); echo "</td>\n</tr>\n<tr>\n<td>\n"; echo " <input type=\"submit\" value=\"" . get_string("savechanges") . "\" />\n"; echo "</form>\n"; echo "</td>\n<td>\n"; echo "<form action=\"coursefiles.php\" method=\"get\">\n"; echo " <input type=\"hidden\" name=\"id\" value=\"{$id}\" />\n"; echo " <input type=\"hidden\" name=\"wdir\" value=\"{$wdir}\" />\n"; echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />\n"; echo " <input type=\"submit\" value=\"" . get_string("cancel") . "\" />\n"; echo "</form>\n"; echo "</td></tr></table>\n"; if ($usehtmleditor) { use_html_editor("text"); } }
$table = new stdClass; $table->width = '100%'; $table->class = 'search-table-button'; $table->data = array (); $table->colspan = array (); $table->colspan[1][0] = 2; $table->colspan[2][0] = 2; $table->data[0][0] = print_input_text ('name', $name, '', 40, 255, true, __('Name')); $groups = get_user_groups ($config['id_user'], "VR"); $groups[0] = __('None'); $table->data[0][1] = print_select ($groups, "id_group", $id_group, '', '', 0, true, false, false, __('Group')); $table->data[1][0] = print_textarea ('sql', 10, 100, $sql, '', true, __('Report SQL sentence')); if (dame_admin ($config['id_user'])) { if ($id) { $button = print_input_hidden ('update_report', 1, true); $button .= print_input_hidden ('id', $id, true); $button .= print_submit_button (__('Update'), 'update', false, 'class="sub upd"', true); } else { $button = print_input_hidden ('create_report', 1, true); $button .= print_submit_button (__('Create'), 'create', false, 'class="sub create"', true); } } echo '<form id="form-inventory_report" method="post">'; print_table ($table); if (dame_admin ($config['id_user']))
/** * Returns XHTML for the field plus wrapping div * * @param string $data The current value * @param string $query * @return string The XHTML output */ public function output_html($data, $query = '') { global $CFG; $CFG->adminusehtmleditor = can_use_html_editor(); $return = '<div class="form-htmlarea">' . print_textarea($CFG->adminusehtmleditor, 15, 60, 0, 0, $this->get_full_name(), $data, 0, true, 'summary') . '</div>'; return format_admin_setting($this, $this->visiblename, $return, $this->description, false, '', NULL, $query); }
protected function get_description_field($id) { return print_textarea(true, 10, 50, 50, 10, 'description', $this->role->description, 0, true); }
$mail .= "\n\t" . $user["direccion"]; $mail .= "\n\t" . $company_user; $table->width = "99%"; $table->class = "search-table-button"; $table->data = array(); $table->size = array(); $table->style = array(); $table->style[0] = 'font-weight: bold'; $table->colspan[1][0] = 3; $table->colspan[2][0] = 3; $table->colspan[3][0] = 3; $table->data[0][0] = print_input_text("from", $from, "", 30, 100, true, __('From')); $table->data[0][1] = print_input_text("to", $to, "", 30, 100, true, __('To')); $table->data[0][2] = print_input_text("cco", $cco, "", 30, 100, true, __('Send a copy to')); $table->data[1][0] = print_input_text("subject", $subject, "", 130, 100, true, __('Subject')); $table->data[2][0] = print_textarea("mail", 10, 1, $mail, 'style="height:350px;"', true, __('E-mail')); $table->data[3][0] = print_submit_button(__('Send email'), 'apply_btn', false, 'class="sub upd"', true); $table->data[3][0] .= print_input_hidden('id', $id, true); $table->data[3][0] .= print_input_hidden('send', 1, true); echo '<form method="post" id="lead_mail_go">'; print_table($table); echo "</form>"; ?> <script type="text/javascript" src="include/js/jquery.validate.js"></script> <script type="text/javascript" src="include/js/jquery.validation.functions.js"></script> <script type="text/javascript" > validate_form("#lead_mail_go"); // Rules: #text-from
// Render SYSTEM language code, not current language. $table = new StdClass(); $table->width = '100%'; $table->class = 'search-table-button'; $table->colspan = array(); $table->data = array(); $incident_reporter_options[0] = __('Disabled'); $incident_reporter_options[1] = __('Enabled'); $language_config = get_db_value('value', 'tconfig', 'token', 'language_code'); $table->data[0][0] = print_select_from_sql('SELECT id_language, name FROM tlanguage ORDER BY name', 'language_code', $language_config, '', '', '', true, false, false, __('Language')); $table->data[0][1] = print_input_text("sitename", $config["sitename"], '', 30, 50, true, __('Sitename')); $error_log_options[0] = __('Disabled'); $error_log_options[1] = __('Enabled'); $table->data[1][0] = print_checkbox("error_log", $error_log_options, $config["error_log"], true, __('Enable error log') . print_help_tip(__("This errorlog is on /integria.log"), true)); $table->data[1][1] = print_input_text("timezone", $config["timezone"], '', 15, 30, true, __('Timezone for integria')); $table->data[2][0] = print_textarea("api_acl", 2, 1, $config["api_acl"], 'style="max-width: 280px;"', true, __('List of IP with access to API') . print_help_tip(__("List of IP (separated with commas which can access to the integria API. Use * for any address (INSECURE!)"), true), false); $table->data[2][1] = print_input_password("api_password", $config["api_password"], '', 30, 255, true, __('API password')); $days_of_week = get_days_of_week(); $table->data[4][0] = print_select($days_of_week, "first_day_week", $config["first_day_week"], '', '', '', true, 0, false, __('First day of the week')); $table->data[4][1] = print_input_text("url_updatemanager", $config["url_updatemanager"], '', 35, 255, true, __('URL update manager')); $table->data[5][0] = print_input_text("loginhash_pwd", $config["loginhash_pwd"], '', 30, 255, true, __('Loginhash password')); $table->data[5][1] = print_checkbox("access_protocol", 1, $config["access_protocol"], true, __('Enable HTTPS access')); $table->data[6][0] = print_input_text("access_port", $config["access_port"], '', 10, 255, true, __('Access port') . print_help_tip(__("Leave blank to use default port (80)"), true)); $table->data[6][1] = print_input_text("access_public", $config["access_public"], '', 30, 50, true, __('Public access to server') . print_help_tip(__("Public IP or name for the server, for example (23.45.67.3 or mydomain.com)"), true)); $csv_standard_encoding = !isset($config['csv_standard_encoding']) ? false : (bool) $config['csv_standard_encoding']; $table->data[7][0] = print_label(__('CSV encoding type'), '', '', true); $table->data[7][0] .= __('Excel') . ' ' . print_radio_button('csv_standard_encoding', 0, '', $csv_standard_encoding, true); $table->data[7][0] .= print_help_tip(__("The Excel type may not be compatible with other applications"), true); $table->data[7][0] .= ' ' . __('Other') . ' ' . print_radio_button('csv_standard_encoding', 1, '', $csv_standard_encoding, true); $table->data[7][1] = print_checkbox("enable_update_manager", 1, $config["enable_update_manager"], true, __('Enable update manager updates')); $table->data[8][0] = print_input_text("max_direct_download", $config["max_direct_download"], '', 10, 255, true, __('Maximum direct download size (MB)'));