X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_add.php;h=8dbb0d86afba2f48c1e9c316df8358f93a474847;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=bd1516f16fecc8d05b564153140836f5d9ed3217;hpb=5a6a33edf0ec2ac012715e12c35c7285b64c099b;p=timetracker.git diff --git a/client_add.php b/client_add.php index bd1516f1..8dbb0d86 100644 --- a/client_add.php +++ b/client_add.php @@ -32,7 +32,7 @@ import('ttClientHelper'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) { +if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) { header('Location: access_denied.php'); exit(); } @@ -52,7 +52,7 @@ if ($request->isPost()) { $form = new Form('clientForm'); $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','style'=>'width: 350px;','value'=>$cl_name)); -$form->addInput(array('type'=>'textarea','name'=>'address','maxlength'=>'255','style'=>'width: 350px;','cols'=>'55','rows'=>'5','value'=>$cl_address)); +$form->addInput(array('type'=>'textarea','name'=>'address','maxlength'=>'255','style'=>'width: 350px; height: 80px;','value'=>$cl_address)); $form->addInput(array('type'=>'floatfield','name'=>'tax','size'=>'10','format'=>'.2','value'=>$cl_tax)); if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->tracking_mode) $form->addInput(array('type'=>'checkboxgroup','name'=>'projects','data'=>$projects,'layout'=>'H','datakeys'=>array('id','name'),'value'=>$cl_projects));