mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Some clean up when deleting activity modules
This commit is contained in:
parent
64a97704be
commit
4be030098f
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user