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) { ...@@ -23,6 +23,7 @@ switch($action) {
$listArray = Client::getAll(); $listArray = Client::getAll();
$listParams = array("title" => "Liste des clients", $listParams = array("title" => "Liste des clients",
"keys" => array("id", "nom", "prenom", "numTel")); "keys" => array("id", "nom", "prenom", "numTel"));
$editLink = "editClient";
include 'view/list.php'; include 'view/list.php';
break; break;
case "addPersonnel": case "addPersonnel":
...@@ -36,10 +37,14 @@ switch($action) { ...@@ -36,10 +37,14 @@ switch($action) {
include 'view/form.php'; include 'view/form.php';
break; break;
case "editPersonnel": case "editPersonnel":
$employe = new Employe();
$formConf = $employe->getForm();
include 'view/form.php';
break; break;
case "editClient": case "editClient":
$client = new Client();
$formConf = $client->getForm();
include 'view/form.php';
break; break;
default: default:
include 'view/404.php'; include 'view/404.php';
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!-- Latest compiled and minified CSS --> <!-- 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/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"> <link href="http://tuxa.sme.utc/~nf17p110/css/sticky-footer.css" rel="stylesheet">
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<?php foreach($listParams["keys"] as $key): ?> <?php foreach($listParams["keys"] as $key): ?>
<td><?php echo $line->{$key}(); ?></td> <td><?php echo $line->{$key}(); ?></td>
<?php endforeach; ?> <?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> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </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