* added footer template which also takes care of displaying the error messages
[squirrelmail.git] / src / addrbook_search_html.php
index 9862ced6c3e38c0ec2e83c83b7d77a96528269c1..f1931f0dabb523d87c20d4d928b8edc4f515b2ce 100644 (file)
@@ -22,7 +22,7 @@ if (! defined('SM_PATH') ) {
 }
 
 /** SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+include_once(SM_PATH . 'include/validate.php');
 include_once(SM_PATH . 'functions/global.php');
 include_once(SM_PATH . 'functions/date.php');
 include_once(SM_PATH . 'functions/display_messages.php');
@@ -300,6 +300,6 @@ if ($addrquery == '' || sizeof($res) == 0) {
     echo '<input type="submit" value="' . _("Return") . '" name="return" />' . "\n" .
          '</form></center></nobr>';
 }
-
-?>
-</body></html>
\ No newline at end of file
+<?php
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file