Skip to content
Snippets Groups Projects
Commit 7a4d06bd authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents aba28638 41a76baf
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
......@@ -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">
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment