#===================================================================== # LedgerSMB Small Medium Business Accounting # Copyright (c) 2004 # # Author: DWS Systems Inc. # Web: http://sourceforge.net/projects/ledger-smb/ # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #====================================================================== # # payroll module # #====================================================================== use SL::HR; use SL::User; 1; # end of main sub add { $label = "Add ".ucfirst $form->{db}; $form->{title} = $locale->text($label); $form->{callback} = "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}" unless $form->{callback}; &{ "$form->{db}_links" }; } sub search { &{ "search_$form->{db}" } }; sub search_employee { $form->{title} = $locale->text('Employees'); @a = (); push @a, qq| |.$locale->text('Pos'); push @a, qq| |.$locale->text('ID'); push @a, qq| |.$locale->text('Employee Number'); push @a, qq| |.$locale->text('Employee Name'); push @a, qq| |.$locale->text('Address'); push @a, qq| |.$locale->text('City'); push @a, qq| |.$locale->text('State/Province'); push @a, qq| |.$locale->text('Zip/Postal Code'); push @a, qq| |.$locale->text('Country'); push @a, qq| |.$locale->text('Work Phone'); push @a, qq| |.$locale->text('Home Phone'); push @a, qq| |.$locale->text('Startdate'); push @a, qq| |.$locale->text('Enddate'); push @a, qq| |.$locale->text('Sales'); push @a, qq| |.$locale->text('Manager'); push @a, qq| |.$locale->text('Role'); push @a, qq| |.$locale->text('Login'); push @a, qq| |.$locale->text('E-mail'); push @a, qq| |.$locale->text('SSN'); push @a, qq| |.$locale->text('DOB'); push @a, qq| |.$locale->text('IBAN'); push @a, qq| |.$locale->text('BIC'); push @a, qq| |.$locale->text('Notes'); $form->header; print qq|
|; if ($form->{menubar}) { require "$form->{path}/menu.pl"; &menubar; } print qq|