From e9f044341fc06b8719755f03c45609c8cc83b457 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 5 Jan 2007 02:00:20 +0000 Subject: [PATCH] MDL-7861, xhtml related issues, added class for some fieldsets to not display border --- lib/weblib.php | 5 +++-- mod/data/edit.php | 4 ++-- mod/data/templates.php | 16 +++++++++------- user/view.php | 14 +++++++------- 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 67a472b0a2..9ff09454a2 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3909,10 +3909,11 @@ function update_module_button($moduleid, $courseid, $string) { $string = get_string('updatethis', '', $string); return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/mod.php\">". + "
". "". "". "". - ""; + "
"; } else { return ''; } @@ -4847,7 +4848,7 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno $linkno = clean_text($linkno); print_simple_box_start('center', '60%', '', 5, 'generalbox', 'notice'); - echo '

'. $message .'

'; + echo '

'. $message .'

'; echo ''; echo ''; echo ''; echo ''; @@ -256,9 +257,9 @@ echo ''; echo ''; echo ''; echo ''; @@ -277,19 +278,20 @@ echo ''; echo ''; echo ''; echo ''; } - echo '
'; print_single_button($linkyes, $optionsyes, get_string('yes'), $methodyes, $CFG->framename); echo ''; diff --git a/mod/data/edit.php b/mod/data/edit.php index a1818cfd5c..e89569c7a5 100755 --- a/mod/data/edit.php +++ b/mod/data/edit.php @@ -307,7 +307,7 @@ print_heading(get_string('uploadrecords', 'data'), '', 3); $maxuploadsize = get_max_upload_file_size(); - echo '
'; + echo '
'; echo '
'; echo ''; echo ''; @@ -332,7 +332,7 @@ echo '
'; print_simple_box_end(); } else { - echo '
'; + echo ''; } diff --git a/mod/data/templates.php b/mod/data/templates.php index 86d846dce5..aa099a2bcc 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -156,7 +156,7 @@ add_to_log($course->id, 'data', 'templates saved', "templates.php?id=$cm->id&d=$data->id", $data->id, $cm->id); } } else { - echo '
'.get_string('header'.$mode,'data').'
'; + echo '
'.get_string('header'.$mode,'data').'
'; } /// If everything is empty then generate some defaults @@ -170,6 +170,7 @@ echo ''; + echo '
'; echo ''; // Print button to autogen all forms, if all templates are empty @@ -187,7 +188,7 @@ echo '
 '; - echo '
'; + echo '
'; print_textarea($usehtmleditor, 10, 72, 0, 0, 'listtemplateheader', $data->listtemplateheader); echo '
'; if ($mode == 'listtemplate'){ - echo '
'; + echo '
'; } else { - echo '
'; + echo '
'; } print_textarea($usehtmleditor, 20, 72, 0, 0, 'template', $data->{$mode}); @@ -269,7 +270,7 @@ echo '
 '; - echo '
'; + echo '
'; print_textarea($usehtmleditor, 10, 72, 0, 0, 'listtemplatefooter', $data->listtemplatefooter); echo '
 '; - echo '
'; + echo '
'; print_textarea($usehtmleditor, 10, 72, 0, 0, 'rsstitletemplate', $data->rsstitletemplate); echo '
'; + echo '
'; echo ' '; echo '
'; print_simple_box_end(); + echo ''; echo ''; if ($usehtmleditor) { use_html_editor('template'); diff --git a/user/view.php b/user/view.php index 14a85b9792..a80f4988b6 100644 --- a/user/view.php +++ b/user/view.php @@ -353,7 +353,7 @@ if ($currentuser and !isguest()) { if ($internalpassword ) { echo "
"; - echo "
"; + echo "
"; echo "id\" />"; if (!empty($USER->realuser)) { // changing of password when "Logged in as" is not allowed @@ -365,7 +365,7 @@ echo ""; } elseif ( method_exists($userauth, 'change_password_url') and strlen($userauth->change_password_url())) { echo "
change_password_url()."\" method=\"get\">"; - echo "
"; + echo "
"; echo ""; echo "
"; echo ""; @@ -382,7 +382,7 @@ get_user_roles($coursecontext, $user->id)) ) { // This user has roles echo '
'; - echo "
"; + echo "
"; echo ''; echo ''; echo ''; @@ -393,7 +393,7 @@ if ($USER->id != $user->id && has_capability('moodle/user:loginas', $coursecontext)) { echo ''; - echo "
"; + echo "
"; echo ''; echo ''; echo ''; @@ -409,13 +409,13 @@ $messagebuttonname = get_string("messages", "message"); } echo ""; - echo "
"; + echo "
"; echo ""; echo "
"; echo ""; } else { echo "
id\" action=\"../message/discussion.php\" method=\"get\">"; - echo "
"; + echo "
"; echo "id\" />"; echo "id', 'message_$user->id', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0);\" />"; echo "
"; @@ -425,7 +425,7 @@ // Authorize.net: User Payments if ($course->enrol == 'authorize' || (empty($course->enrol) && $CFG->enrol == 'authorize')) { echo ""; - echo "
"; + echo "
"; echo "id\" />"; echo "id\" />"; echo ""; -- 2.39.5