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
00cfed05
Commit
00cfed05
authored
Apr 14, 2020
by
Anatole Rakotoson
Browse files
sommom
parent
716b22d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
views/tpls/forms/sommom/especeObs.php
View file @
00cfed05
...
...
@@ -239,17 +239,7 @@
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
if
(
$i
=
"pPresence"
){
echo
implode
(
"<br>"
,
$a
[
"pPresence"
]);
}
else
if
(
$i
=
"pObservation"
)
{
echo
implode
(
"<br>"
,
$a
[
"pObservation"
]);
}
else
if
(
$i
=
"dpPresence"
)
{
echo
implode
(
"<br>"
,
$a
[
"dpPresence"
]);
}
else
if
(
$i
=
"dpObservation"
)
{
echo
implode
(
"<br>"
,
$a
[
"dpObservation"
]);
}
}
else
{
if
(
$a
[
$i
]
==
"true"
){
...
...
views/tpls/forms/sommom/planConsevation.php
View file @
00cfed05
...
...
@@ -4,7 +4,7 @@
<table
class=
"table table-bordered table-hover directoryTable"
id=
"
<?php
echo
$kunik
?>
"
>
<?php
$editBtnL
=
(
$canAnswer
)
?
" <a href='javascript:;' data-id='"
.
$answer
[
"_id"
]
.
"' data-collection='"
.
Form
::
ANSWER_COLLECTION
.
"' data-path='"
.
$answerPath
.
"' class='add"
.
$kunik
.
" btn btn-default'><i class='fa fa-plus'></i> Ajouter une ligne </a>"
:
""
;
$editBtnL
=
(
$canAnswer
)
?
" <a href='javascript:;' data-id='"
.
$answer
[
"_id"
]
.
"' data-collection='"
.
Form
::
ANSWER_COLLECTION
.
"' data-path='"
.
$answerPath
.
"' class='add"
.
$kunik
.
" btn btn-default'><i class='fa fa-plus'></i> Ajouter une ligne </a>
<a href='javascript:;' data-id='5e5e2470681c3376298b456b' data-collection='answers' data-path='answers.sommomForm1.sommomForm122.' class='addorganismesommomForm122 btn btn-default'><i class='fa fa-plus'></i> Ajouter un organisme </a'
"
:
""
;
$editParamsBtn
=
(
$canEdit
)
?
" <a href='javascript:;' data-id='"
.
$el
[
"_id"
]
.
"' data-collection='"
.
Yii
::
app
()
->
session
[
"costum"
][
"contextType"
]
.
"' data-path='costum.form.params."
.
$kunik
.
"' class='previewTpl edit"
.
$kunik
.
"Params btn btn-xs btn-danger'><i class='fa fa-cog'></i> </a>"
:
""
;
...
...
@@ -26,9 +26,11 @@
if
(
isset
(
$answer
[
"answers"
][
"sommomForm1"
])){
foreach
(
$answer
[
"answers"
][
"sommomForm1"
]
as
$k
=>
$v
)
{
foreach
(
$v
as
$key
=>
$value
)
{
if
(
isset
(
$value
[
"intitule"
]))
{
$a
+=
array
(
$value
[
"intitule"
]
=>
$value
[
"intitule"
]);
if
(
is_array
(
$v
)){
foreach
(
$v
as
$key
=>
$value
)
{
if
(
isset
(
$value
[
"intitule"
]))
{
$a
+=
array
(
$value
[
"intitule"
]
=>
$value
[
"intitule"
]);
}
}
}
}
...
...
@@ -54,8 +56,8 @@
"rules"
=>
[
"required"
=>
true
]
],
"Gestion"
=>
[
"label"
=>
"
Gestion
"
,
"placeholder"
=>
"
gestion
"
,
"label"
=>
"
Organisme associé
"
,
"placeholder"
=>
"
Organisme associé
"
,
"inputType"
=>
"selectMultiple"
,
"options"
=>
$a
,
"rules"
=>
[
"required"
=>
true
]
...
...
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