From: moodler Date: Fri, 22 Dec 2006 04:55:41 +0000 (+0000) Subject: Fixed XHTML and Javascript insertion of tags into the templates X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=704a26cbdd7371db6a48c1d5190f3c8cd9d7ac8f;p=moodle.git Fixed XHTML and Javascript insertion of tags into the templates --- diff --git a/mod/data/templates.php b/mod/data/templates.php index 3b9fe44a86..634e9e9063 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -81,12 +81,28 @@ $bodytag .= 'currTextarea = document.tempform.template;'; $bodytag .= '" '; + // Javascript to insert the field tags into the textarea. + $meta = ''."\n"; + print_header_simple($data->name, '', "$strdata -> $data->name", - '', '', true, update_module_button($cm->id, $course->id, get_string('modulename', 'data')), + '', $meta, true, update_module_button($cm->id, $course->id, get_string('modulename', 'data')), navmenu($course, $cm), '', $bodytag); print_heading(format_string($data->name)); + /// Groups needed for Add entry tab if ($groupmode = groupmode($course, $cm)) { // Groups are being used $currentgroup = get_and_set_current_group($course, $groupmode); @@ -152,7 +168,6 @@ data_generate_default_template($data, 'rsstemplate'); } -/// Print the browsing interface. echo '
'; echo ''; @@ -187,16 +202,8 @@ helpbutton('tags', get_string('tags','data'), 'data'); echo '
'; - echo ''; $fields = get_records('data_fields', 'dataid', $data->id); echo '';