[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * This file defines a simple editor 4 * 5 * @author Jordi Piguillem 6 * @author Josep Arus 7 * 8 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License 9 * @package mod_wiki 10 * 11 */ 12 13 /** 14 * @TODO: Doc this function 15 */ 16 function wiki_print_editor_html($pageid, $content, $version = -1, $section = null, $upload = false, $deleteuploads = array()) { 17 global $CFG, $OUTPUT; 18 19 $OUTPUT->heading(strtoupper(get_string('formathtml', 'wiki')), 3); 20 21 $action = $CFG->wwwroot.'/mod/wiki/edit.php?pageid='.$pageid; 22 23 if (!empty($section)) { 24 $action .= "§ion=".urlencode($section); 25 } 26 27 echo $OUTPUT->container_start('mdl-align'); 28 echo '<form method="post" action="'.$action.'">'; 29 echo $OUTPUT->container(print_textarea(true, 20, 100, 0, 0, "newcontent", $content, 0, true, '', 'form-textarea-advanced'), 'wiki_editor'); 30 wiki_print_edit_form_default_fields('html', $pageid, $version, $upload, $deleteuploads); 31 echo '</form>'; 32 echo $OUTPUT->container_end(); 33 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |