commit 9c3ae2785a4aa84a3c6affba4e07f7c37319c435
Author: root <root@srv-xen-moodle08.tauntons.ac.uk>
Date:   Mon Jun 22 12:23:05 2009 +0100

    Add header and footer to add.php and del.php

diff --git a/blocks/createparent/add.php b/blocks/createparent/add.php
index c2650bb..62e13d7 100644
--- a/blocks/createparent/add.php
+++ b/blocks/createparent/add.php
@@ -20,10 +20,16 @@
 
     $cfg_createparent = get_config('block/createparent');
 
+    global $SITE;
+
+    print_header($SITE->fullname, $SITE->fullname, '', '',
+                '<meta name="description" content="'. strip_tags(format_text($SITE->summary, FORMAT_HTML)) .'" />',
+                true, '', user_login_string($SITE));
+
     if(empty($email)){
         //print form to enter email
-        require_once ($CFG->libdir.'/formslib.php');
 
+        require_once ($CFG->libdir.'/formslib.php');
 
         class block_createparent_form extends moodleform {
 
@@ -31,11 +37,9 @@
                 $mform    =& $this->_form;
                 global $studentid;
                 $mform->addElement('hidden', 'studentid',$studentid);
-
                 $mform->addElement('text', 'email', get_string('email'));
                 $this->add_action_buttons(false);
 
-
             }
             function validation(){return true;}
         }
@@ -97,5 +101,7 @@
         }
     }
 
+    print_footer();
+
 
 ?>
\ No newline at end of file
diff --git a/blocks/createparent/del.php b/blocks/createparent/del.php
index 8ba0fd7..0534d7d 100644
--- a/blocks/createparent/del.php
+++ b/blocks/createparent/del.php
@@ -28,7 +28,12 @@
 
     $parent=get_record('user','id',$id);
     if(delete_user($parent)){
+        global $SITE;
+        print_header($SITE->fullname, $SITE->fullname, '', '',
+                '<meta name="description" content="'. strip_tags(format_text($SITE->summary, FORMAT_HTML)) .'" />',
+                true, '', user_login_string($SITE));
         echo get_string('delsucess','block_createparent');
+        print_footer();
     }
 
     //redirect? or popup close?

