Some clean up when deleting activity modules

This commit is contained in:
moodler 2003-06-20 04:34:22 +00:00
parent 64a97704be
commit 4be030098f
2 changed files with 20 additions and 13 deletions

View File

@ -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",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
$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;

View File

@ -1,17 +1,13 @@
<table align=center cellpadding=20> <tr> <td colspan=2 bgcolor=#ffaaaa>
<form name="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
<CENTER>
<FORM name="form" method="post" action="<?=$ME ?>">
<? print_heading(get_string("deletecheckfull", "", "$form->fullmodulename '$form->instancename'")); ?>
<input type="hidden" name=mode value="delete">
<input type="hidden" name=section value="<? echo $form->section; ?>">
<input type="hidden" name=course value="<? p($form->course) ?>">
<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
<input type="hidden" name=instance value="<? p($form->instance) ?>">
<input type="submit" value=" <? print_string("yes")?> ">
<input type=button value=" <? print_string("no")?> " onclick="javascript:history.go(-1);">
</FORM>
<input type="hidden" name=section value="<?php p($form->section) ?>">
<input type="hidden" name=course value="<?php p($form->course) ?>">
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
</td></tr></table>
<input type="submit" value=" <?php print_string("yes")?> ">
<input type=button value=" <?php print_string("no")?> " onclick="javascript:history.go(-1);">
</form>