X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fct.pl;h=76d9fb71fc48ada95340d57717283d69041871a6;hb=eeb07c164e0c3398f14372308b404fb07e2102cf;hp=a091ff955d01b9ccf72fd13a00b715941bc631ae;hpb=bcb41cda2a33c1b7e8cd3386ae53b04ac7198f15;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index a091ff955..76d9fb71f 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -37,12 +37,15 @@ # $locale->text('Add Customer') # $locale->text('Add Vendor') -use SL::CT; use CGI::Ajax; -use CGI; -use Data::Dumper; +use POSIX qw(strftime); + +use SL::CT; +use SL::CVar; +use SL::ReportGenerator; require "bin/mozilla/common.pl"; +require "bin/mozilla/reportgenerator.pl"; 1; @@ -51,10 +54,12 @@ require "bin/mozilla/common.pl"; sub add { $lxdebug->enter_sub(); + $auth->assert('customer_vendor_edit'); + $form->{title} = "Add"; $form->{callback} = - "$form->{script}?action=add&db=$form->{db}&path=$form->{path}&login=$form->{login}&password=$form->{password}" + "$form->{script}?action=add&db=$form->{db}" unless $form->{callback}; CT->populate_drop_down_boxes(\%myconfig, \%$form); @@ -68,470 +73,152 @@ sub add { sub search { $lxdebug->enter_sub(); - $label = ucfirst $form->{db}; - $form->{title} = $locale->text($label . "s"); + $auth->assert('customer_vendor_edit'); - $form->header; + $form->{IS_CUSTOMER} = $form->{db} eq 'customer'; - print qq| -
- - - - -