Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
survey
Commits
3be782b4
Commit
3be782b4
authored
Apr 28, 2020
by
Anatole Rakotoson
Browse files
sommmom
parent
6e07f22f
Changes
3
Hide whitespace changes
Inline
Side-by-side
views/tpls/forms/sommom/especeObs.php
View file @
3be782b4
...
...
@@ -204,7 +204,7 @@
$ccnt
++
;
}
?>
<th
colspan=
"
4
"
>
Observation Saisonnière
</th>
<th
colspan=
"
2
"
>
Observation Saisonnière
</th>
<?php
$ccnt1
=
1
;
foreach
(
$properties
as
$i
=>
$inp
)
{
...
...
@@ -219,8 +219,17 @@
<?php
$ccnt2
=
1
;
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$ccnt2
>
3
and
$ccnt2
<
8
){
echo
"<th >"
.
$inp
[
"placeholder"
]
.
"</th>"
;
// if($ccnt2 > 3 and $ccnt2 < 8){
// echo "<th >".$inp["placeholder"]."</th>";
// }
if
(
$ccnt2
==
4
){
echo
" <th> Période de présence </th>"
;
}
else
if
(
$ccnt2
==
5
){
}
else
if
(
$ccnt2
==
6
){
echo
"<th> Période d'observation </th>"
;
}
else
if
(
$ccnt2
==
7
){
}
$ccnt2
++
;
}
}
?>
...
...
@@ -232,10 +241,94 @@
$ct
=
0
;
if
(
isset
(
$answers
)){
foreach
(
$answers
as
$q
=>
$a
)
{
echo
"<tr id='"
.
$kunik
.
$q
.
"' class='"
.
$kunik
.
"Line'>"
;
$mycounter
=
0
;
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$mycounter
==
3
){
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
}
else
{
if
(
$a
[
$i
]
==
"Annuelle"
){
echo
"Annuelle"
;
}
else
{
echo
"<b>De </b>"
.
$a
[
$i
];
}
}
}
}
else
if
(
$mycounter
==
4
){
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
}
else
{
if
(
$a
[
$i
]
==
"Annuelle "
){
echo
"Annuelle"
;
}
else
{
echo
" <b> à </b>"
.
$a
[
$i
];
}
}
}
echo
"</td>"
;
}
else
if
(
$mycounter
==
5
){
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
}
else
{
if
(
$a
[
$i
]
===
"Annuelle "
){
echo
"Annuelle"
;
}
else
{
echo
"<b>De </b>"
.
$a
[
$i
];
}
}
}
}
else
if
(
$mycounter
==
6
){
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
}
else
{
if
(
$a
[
$i
]
==
"Annuelle "
){
echo
"Annuelle"
;
}
else
{
echo
" <b> à </b>"
.
$a
[
$i
];
}
}
}
echo
"</td>"
;
}
else
{
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
...
...
@@ -266,6 +359,8 @@
}
}
echo
"</td>"
;
}
$mycounter
++
;
}
?>
<td
style=
"white-space: normal;"
>
...
...
views/tpls/forms/sommom/structureaer.php
View file @
3be782b4
...
...
@@ -44,8 +44,8 @@
$properties
=
[
"organisme"
=>
[
"label"
=>
"
Organisme référent
"
,
"placeholder"
=>
"
Organisme référent
"
,
"label"
=>
"
Nom de l’organisme
"
,
"placeholder"
=>
"
Sélectionner l’organisme
"
,
"inputType"
=>
"selectMultiple"
,
"options"
=>
$a
,
"rules"
=>
[
"required"
=>
false
]
...
...
@@ -101,7 +101,7 @@
<?php
foreach
(
$properties
as
$i
=>
$inp
)
{
echo
"<th>"
.
$inp
[
"
p
la
ceholder
"
]
.
"</th>"
;
echo
"<th>"
.
$inp
[
"la
bel
"
]
.
"</th>"
;
}
?>
<th></th>
</tr>
...
...
views/tpls/forms/sommom/structureop.php
View file @
3be782b4
...
...
@@ -78,8 +78,8 @@
$properties
=
[
"organisme"
=>
[
"label"
=>
"
Organisme référent
"
,
"placeholder"
=>
"
Organisme référent
"
,
"label"
=>
"
Nom de l’organisme
"
,
"placeholder"
=>
"
Sélectionner l’organisme
"
,
"inputType"
=>
"selectMultiple"
,
"options"
=>
$a
,
"rules"
=>
[
"required"
=>
false
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment