Skip to content
Permalink
Browse files

Some clean up when deleting activity modules

  • Loading branch information...
moodler
moodler committed Jun 20, 2003
1 parent 64a9770 commit 4be030098fc38f3b3a814c7abc66cdaed1d44518
Showing with 20 additions and 13 deletions.
  1. +11 −0 course/mod.php
  2. +9 −13 course/mod_delete.html
@@ -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>

0 comments on commit 4be0300

Please sign in to comment.
You can’t perform that action at this time.