Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clivi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NF17 - CAMP - P14
clivi
Commits
7a26c1e0
Commit
7a26c1e0
authored
10 years ago
by
Matthieu Guffroy
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
837ad6c8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
class/client.php
+6
-0
6 additions, 0 deletions
class/client.php
controller/personne.php
+32
-0
32 additions, 0 deletions
controller/personne.php
view/list.php
+1
-0
1 addition, 0 deletions
view/list.php
with
39 additions
and
0 deletions
class/client.php
+
6
−
0
View file @
7a26c1e0
...
...
@@ -13,4 +13,10 @@ class Client extends Personne
{
$this
->
numTel
=
$numTel
;
}
public
static
function
getAll
()
{
// TODO return list of objects Client
return
Array
();
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
controller/personne.php
0 → 100644
+
32
−
0
View file @
7a26c1e0
<?php
/*
Controller personne, handle CRUD for personnel and client.
*/
// Implemented actions
$actions
=
array
(
"listePersonnel"
,
"listeClient"
,
"addPersonnel"
,
"addClient"
,
"editPersonnel"
,
"editClient"
);
// Check action is correct
if
(
!
in_array
(
$action
,
$actions
))
{
$action
=
"listePersonnel"
;
}
switch
(
$action
)
{
case
"listePersonnel"
:
break
;
case
"listeClient"
:
$listArray
=
Client
::
getAll
();
$listParams
=
array
();
include
'view/list.php'
;
break
;
case
"addPersonnel"
:
break
;
case
"addClient"
:
break
;
default
:
include
'view/404.php'
;
break
;
}
This diff is collapsed.
Click to expand it.
view/list.php
0 → 100644
+
1
−
0
View file @
7a26c1e0
Afficher
une
liste
!
(
TODO
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment