From 4be030098fc38f3b3a814c7abc66cdaed1d44518 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 20 Jun 2003 04:34:22 +0000 Subject: [PATCH] Some clean up when deleting activity modules --- course/mod.php | 11 +++++++++++ course/mod_delete.html | 22 +++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/course/mod.php b/course/mod.php index 982106dae9..4355ebd3f4 100644 --- a/course/mod.php +++ b/course/mod.php @@ -221,7 +221,18 @@ $form->fullmodulename = $fullmodulename; $form->instancename = $instance->name; + $strdeletecheck = get_string("deletecheck", "", "$form->fullmodulename"); + $strdeletecheckfull = get_string("deletecheckfull", "", "$form->fullmodulename '$form->instancename'"); + + print_header("$course->shortname: $strdeletecheck", "$course->fullname", + "wwwroot/course/view.php?id=$course->id\">$course->shortname -> + $strdeletecheck"); + + print_simple_box_start("center", "60%", "#FFAAAA", 20, "noticebox"); + print_heading($strdeletecheckfull); include_once("mod_delete.html"); + print_simple_box_end(); + print_footer($course); exit; diff --git a/course/mod_delete.html b/course/mod_delete.html index 5d73e0aa9f..6e9c736696 100644 --- a/course/mod_delete.html +++ b/course/mod_delete.html @@ -1,17 +1,13 @@ -
+
wwwroot/course/mod.php" ?>"> -
- -fullmodulename '$form->instancename'")); ?> - - - - - - "> - " onclick="javascript:history.go(-1);"> - + + + + + -
+ "> + " onclick="javascript:history.go(-1);"> + -- 2.39.5