############################################################################### # A U T O M A T I C V I E W / M O D I F Y S E A R C H # # If you have set up your database with either $auth_modify_own=1 or # # $auth_view_own=1 (or both), this mod will allow users to view or modify # # their records without having to first go to the search page. It does allow # # anyone with admin permission to search for records to view or modify, # # however. # ############################################################################### ############################################################################### # script: html.pl # # sub html_footer # # # # replace subroutine # ############################################################################### sub html_footer { # -------------------------------------------------------- # Print the menu. # # We only print options that the user have permissions for. # print qq!

<$font>!; print qq!| Home !; print qq!| Add ! if ($per_add); if (!$per_admin && $auth_view_own) { print qq!| View ! if ($per_view); } else { print qq!| View ! if ($per_view); print qq!| List All ! if ($per_view); } if (!$per_admin && $auth_modify_own) { print qq!| Delete ! if ($per_del); print qq!| Modify ! if ($per_mod); } else { print qq!| Delete ! if ($per_del); print qq!| Modify ! if ($per_mod); } print qq!| Admin ! if ($per_admin); print qq!| Log Off !; print qq!|

!; # Print the Footer. print qq!
<$font>Copyright 1998 Gossamer Threads Inc. Database Powered by Gossamer Threads Inc.
!; }