diff --git a/controller/personne.php b/controller/personne.php index 74300ecec89302d81178eb15aa10c87377118540..cb8566485f94102395767460888303fb90cc48e9 100644 --- a/controller/personne.php +++ b/controller/personne.php @@ -23,6 +23,7 @@ switch($action) { $listArray = Client::getAll(); $listParams = array("title" => "Liste des clients", "keys" => array("id", "nom", "prenom", "numTel")); + $editLink = "editClient"; include 'view/list.php'; break; case "addPersonnel": @@ -36,10 +37,14 @@ switch($action) { include 'view/form.php'; break; case "editPersonnel": - + $employe = new Employe(); + $formConf = $employe->getForm(); + include 'view/form.php'; break; case "editClient": - + $client = new Client(); + $formConf = $client->getForm(); + include 'view/form.php'; break; default: include 'view/404.php'; diff --git a/template/header.php b/template/header.php index 250b8d7201e8d686b863dc874754b4c027276271..acd2fd0b90342b74531179516d56514db1ae3d7e 100644 --- a/template/header.php +++ b/template/header.php @@ -12,7 +12,7 @@ <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="http://tuxa.sme.utc/~nf17p110/css/bootstrap.css"> - <link rel="stylesheet" href="http://tuxa.sme.utc/~nf17p110/css/custom_boostrap.css"> + <link rel="stylesheet" href="http://tuxa.sme.utc/~nf17p110/css/custom_bootstrap.css"> <link href="http://tuxa.sme.utc/~nf17p110/css/sticky-footer.css" rel="stylesheet"> diff --git a/view/list.php b/view/list.php index 48a554031cf9d009b6f846a50779811d28b44944..dd45fe6f77569d0738c8d01023271b979d2cee2f 100644 --- a/view/list.php +++ b/view/list.php @@ -15,7 +15,7 @@ <?php foreach($listParams["keys"] as $key): ?> <td><?php echo $line->{$key}(); ?></td> <?php endforeach; ?> - <td> <a type="button" class="btn btn-primary" href="""<?php echo $base_url.$editLink.'?'.$listParams['keys'][0].'='.$line->{$listParams["keys"][0]}() ?>""">Editer</a> + <td> <a type="button" class="btn btn-primary" href="<?php echo $base_url.$page.$editLink.'?'.$listParams['keys'][0].'='.$line->{$listParams['keys'][0]}() ?>">Editer</a> </tr> <?php endforeach; ?> </tbody>