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
1cca5ccb
Commit
1cca5ccb
authored
10 years ago
by
clement
Browse files
Options
Downloads
Patches
Plain Diff
c
parent
39475124
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
controller/animal.php
+5
-5
5 additions, 5 deletions
controller/animal.php
controller/fact.php
+11
-5
11 additions, 5 deletions
controller/fact.php
controller/ord.php
+5
-5
5 additions, 5 deletions
controller/ord.php
controller/rdv.php
+5
-5
5 additions, 5 deletions
controller/rdv.php
with
26 additions
and
20 deletions
controller/animal.php
+
5
−
5
View file @
1cca5ccb
...
...
@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions
=
array
(
"liste
Animal
"
,
"add
Animal
"
,
"edit
Animal
"
);
$actions
=
array
(
"liste"
,
"add"
,
"edit"
);
// Check action is correct
if
(
!
in_array
(
$action
,
$actions
))
{
$action
=
"liste
Animal
"
;
$action
=
"liste"
;
}
switch
(
$action
)
{
case
"liste
Animal
"
:
case
"liste"
:
$listArray
=
Animal
::
getAll
();
$listParams
=
array
(
"title"
=>
"Liste des animaux de la clinique"
,
"keys"
=>
array
(
"nom"
,
"proprio"
,
"race"
,
"poids"
,
"genre"
,
"sterile"
,
"dateNaissance"
,
"dateDeces"
,
"taille"
,
"code"
));
include
'view/list.php'
;
break
;
case
"add
Animal
"
:
case
"add"
:
break
;
case
"edit
Animal
"
:
case
"edit"
:
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
controller/fact.php
+
11
−
5
View file @
1cca5ccb
...
...
@@ -4,24 +4,30 @@
*/
// Implemented actions
$actions
=
array
(
"liste
Fact
"
,
"add
Fact
"
,
"edit
Fact
"
);
$actions
=
array
(
"liste"
,
"add"
,
"edit"
);
// Check action is correct
if
(
!
in_array
(
$action
,
$actions
))
{
$action
=
"liste
Fact
"
;
$action
=
"liste"
;
}
switch
(
$action
)
{
case
"liste
Fact
"
:
case
"liste"
:
$listArray
=
Facture
::
getAll
();
$listParams
=
array
(
"title"
=>
"Liste des factures"
,
"keys"
=>
array
(
"id"
,
"employe"
,
"animal"
,
"dateEdition"
,
"datePaiement"
,
"moyenPaiement"
,
"prixTotal"
));
include
'view/list.php'
;
break
;
case
"addFact"
:
case
"listePersonnel"
:
$listArray
=
Employe
::
getAll
();
$listParams
=
array
(
"title"
=>
"Liste du personnel"
,
"keys"
=>
array
(
"id"
,
"nom"
,
"prenom"
,
"isVeterinaire"
,
"idNational"
));
include
'view/list.php'
;
break
;
case
"add"
:
break
;
case
"edit
Fact
"
:
case
"edit"
:
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
controller/ord.php
+
5
−
5
View file @
1cca5ccb
...
...
@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions
=
array
(
"liste
Ord
"
,
"add
Ord
"
,
"edit
Ord
"
);
$actions
=
array
(
"liste"
,
"add"
,
"edit"
);
// Check action is correct
if
(
!
in_array
(
$action
,
$actions
))
{
$action
=
"liste
Ord
"
;
$action
=
"liste"
;
}
switch
(
$action
)
{
case
"liste
Ord
"
:
case
"liste"
:
$listArray
=
Ordonnance
::
getAll
();
$listParams
=
array
(
"title"
=>
"Liste des ordonnances"
,
"keys"
=>
array
(
"id"
,
"animal"
,
"veterinaire"
,
"date"
,
"prix"
));
include
'view/list.php'
;
break
;
case
"add
Ord
"
:
case
"add"
:
break
;
case
"edit
Ord
"
:
case
"edit"
:
break
;
default
:
...
...
This diff is collapsed.
Click to expand it.
controller/rdv.php
+
5
−
5
View file @
1cca5ccb
...
...
@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions
=
array
(
"liste
Rdv
"
,
"add
Rdv
"
,
"edit
Rdv
"
);
$actions
=
array
(
"liste"
,
"add"
,
"edit"
);
// Check action is correct
if
(
!
in_array
(
$action
,
$actions
))
{
$action
=
"liste
Rdv
"
;
$action
=
"liste"
;
}
switch
(
$action
)
{
case
"liste
Rdv
"
:
case
"liste"
:
$listArray
=
Rdv
::
getAll
();
$listParams
=
array
(
"title"
=>
"Liste des rendez-vous"
,
"keys"
=>
array
(
"id"
,
"animal"
,
"veterinaire"
,
"date"
,
"duree"
));
include
'view/list.php'
;
break
;
case
"add
Personnel
"
:
case
"add"
:
break
;
case
"
addClien
t"
:
case
"
edi
t"
:
break
;
default
:
...
...
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