X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5ef582473f6b329be18ad83c61e053fdcd9c6ed5..387db9f30e6a45e1f25052af26c23ecdd1748e3a:/client_delete.php diff --git a/client_delete.php b/client_delete.php index 7cf05ebb..cdc20b6f 100644 --- a/client_delete.php +++ b/client_delete.php @@ -40,13 +40,11 @@ $id = (int)$request->getParameter('id'); $client = ttClientHelper::getClient($id); $client_to_delete = $client['name']; - + $form = new Form('clientDeleteForm'); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$id)); -$form->addInput(array('type'=>'combobox', - 'name'=>'delete_client_entries', - 'data'=>array('0'=>$i18n->getKey('dropdown.do_not_delete'),'1'=>$i18n->getKey('dropdown.delete')), -)); +$form->addInput(array('type'=>'combobox','name'=>'delete_client_entries', + 'data'=>array('0'=>$i18n->getKey('dropdown.do_not_delete'),'1'=>$i18n->getKey('dropdown.delete')))); $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete'))); $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel'))); @@ -63,10 +61,10 @@ if ($request->getMethod() == 'POST') { $errors->add($i18n->getKey('error.db')); if ($request->getParameter('btn_cancel')) { - header('Location: clients.php'); - exit(); + header('Location: clients.php'); + exit(); } -} // post +} // POST $smarty->assign('client_to_delete', $client_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray()));