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
d477a341
Commit
d477a341
authored
May 06, 2020
by
Anatole Rakotoson
Browse files
sommom
parent
279ae2c7
Changes
7
Hide whitespace changes
Inline
Side-by-side
views/tpls/forms/sommom/collaboration.php
View file @
d477a341
...
...
@@ -150,6 +150,14 @@
if
(
$i
==
"site"
)
{
echo
"<a href='"
.
$a
[
$i
]
.
"'>"
.
$a
[
$i
]
.
"</a>"
;
}
else
if
(
$i
==
"type"
&&
isset
(
$paramsData
[
$i
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
if
(
$i
==
"nature"
&&
isset
(
$paramsData
[
$i
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
{
echo
$a
[
$i
];
}
...
...
views/tpls/forms/sommom/encadrementrec.php
View file @
d477a341
...
...
@@ -52,13 +52,13 @@
"date"
=>
[
"label"
=>
"Date de création"
,
"placeholder"
=>
"Date de création"
,
"inputType"
=>
"
da
te"
,
"inputType"
=>
"te
xt
"
,
"rules"
=>
[
"required"
=>
false
]
],
"maj"
=>
[
"label"
=>
"dernière mise à jour "
,
"placeholder"
=>
"dernière mise à jour "
,
"inputType"
=>
"
da
te"
,
"inputType"
=>
"te
xt
"
,
"rules"
=>
[
"required"
=>
false
]
],
...
...
@@ -138,7 +138,7 @@
foreach
(
$properties
as
$i
=>
$inp
)
{
echo
"<th>"
.
$inp
[
"
p
la
ceholder
"
]
.
"</th>"
;
echo
"<th>"
.
$inp
[
"la
bel
"
]
.
"</th>"
;
}
?>
...
...
views/tpls/forms/sommom/label.php
View file @
d477a341
...
...
@@ -17,9 +17,10 @@
"labelText"
=>
"Concerne les cétacés"
],
"statut"
=>
[
"Marque Collective simple "
=>
"Marque
C
ollective simple "
,
"Marque Collective simple "
=>
"Marque ollective simple "
,
"Marque collective de certification"
=>
"Marque collective de certification"
,
"Label Officiel ministériel"
=>
"Label Officiel ministériel"
"Label Officiel ministériel"
=>
"Label officiel ministériel"
,
"autre"
=>
"Autre"
]
];
...
...
@@ -151,10 +152,9 @@ $actualNbr1 = 0;
<?php
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$actualNbr1
<
6
){
echo
"<th>"
.
$inp
[
"placeholder"
]
.
"</th>"
;
}
$actualNbr1
++
;
echo
"<th>"
.
$inp
[
"label"
]
.
"</th>"
;
}
?>
<th></th>
...
...
@@ -171,7 +171,7 @@ $actualNbr1 = 0;
echo
"<tr id='"
.
$kunik
.
$q
.
"' class='"
.
$kunik
.
"Line'>"
;
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$actualNbr2
<
6
){
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
])){
...
...
@@ -181,6 +181,10 @@ $actualNbr1 = 0;
if
(
$i
==
"site"
)
{
echo
"<a href='"
.
$a
[
$i
]
.
"'>"
.
$a
[
$i
]
.
"</a>"
;
}
else
if
(
$i
==
"type"
&&
isset
(
$paramsData
[
$i
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
{
if
(
$a
[
$i
]
==
"true"
){
...
...
@@ -194,8 +198,7 @@ $actualNbr1 = 0;
}
}
echo
"</td>"
;
}
$actualNbr2
++
;
}
?>
<td
style=
"white-space: normal;"
>
...
...
@@ -216,71 +219,7 @@ $actualNbr1 = 0;
echo
"</tr>"
;
}
}
if
(
isset
(
$answers
)){
?>
<tr>
</th>
<?php
$actualNbr3
=
0
;
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$actualNbr3
>
5
){
echo
"<th>"
.
$inp
[
"placeholder"
]
.
"</th>"
;
}
$actualNbr3
++
;
}
?>
<th></th>
</tr>
<?php
}
$ct
=
0
;
$actualNbr4
=
0
;
if
(
isset
(
$answers
)){
foreach
(
$answers
as
$q
=>
$a
)
{
//var_dump($actualNbr4);
//if($actualNbr4 > 4){
echo
"<tr id='"
.
$kunik
.
$q
.
"' class='"
.
$kunik
.
"Line'>"
;
foreach
(
$properties
as
$i
=>
$inp
)
{
if
(
$actualNbr4
>
5
){
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
]))
{
echo
implode
(
","
,
$a
[
$i
]);
}
else
{
if
(
$i
==
"site"
)
{
echo
"<a href='"
.
$a
[
$i
]
.
"'>"
.
$a
[
$i
]
.
"</a>"
;
}
else
{
echo
$a
[
$i
];
}
}
}
echo
"</td>"
;
}
$actualNbr4
++
;
}
?>
<td></td>
<?php
$ct
++
;
echo
"</tr>"
;
//}
}
}
?>
?>
</tbody>
</table>
</div>
...
...
views/tpls/forms/sommom/outilsPed.php
View file @
d477a341
...
...
@@ -127,7 +127,7 @@
echo
"<td>"
;
if
(
isset
(
$a
[
$i
]))
{
if
(
is_array
(
$a
[
$i
])){
echo
implode
(
","
,
$a
[
"organisme"
]);
echo
implode
(
","
,
$a
[
$i
]);
}
else
{
...
...
@@ -136,6 +136,10 @@
{
echo
"<a href='"
.
$a
[
$i
]
.
"'>"
.
$a
[
$i
]
.
"</a>"
;
}
else
if
(
$i
==
"type"
&&
isset
(
$paramsData
[
$i
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
{
echo
$a
[
$i
];
...
...
views/tpls/forms/sommom/reglementation.php
View file @
d477a341
...
...
@@ -107,15 +107,15 @@
"placeholder"
=>
"Site de référence pour consultation"
,
"inputType"
=>
"text"
,
"rules"
=>
[
"required"
=>
false
]
],
"natureP"
=>
[
"label"
=>
"Nature"
,
"placeholder"
=>
"Nature"
,
"inputType"
=>
"select"
,
"noOrder"
=>
true
,
"options"
=>
$paramsData
[
"nature"
],
"rules"
=>
[
"required"
=>
false
]
]
// "natureP" => [
// "label" => "Nature",
// "placeholder" => "Nature",
// "inputType" => "select",
// "noOrder" => true,
// "options" => $paramsData["nature"],
// "rules" => [ "required" => false ]
// ]
];
...
...
@@ -185,6 +185,10 @@
echo
"<a href='"
.
$a
[
$i
]
.
"'>"
.
$a
[
$i
]
.
"</a>"
;
}
else
if
(
$i
==
"nature"
&&
isset
(
$paramsData
[
"natureP"
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
{
if
(
$a
[
$i
]
==
"true"
){
...
...
views/tpls/forms/sommom/structureop.php
View file @
d477a341
...
...
@@ -12,7 +12,7 @@
"type"
=>
[
"Transport de passagers"
=>
"Transport de passagers"
,
"Club de plongée"
=>
"Club de plongée"
,
"Location
de Navire
"
=>
"Location de
N
avire"
,
"Location"
=>
"Location de
n
avire
s
"
,
"Autre"
=>
"Autre"
],
...
...
@@ -29,7 +29,8 @@
],
"pratique"
=>
[
"Embarquée"
=>
"Embarquée"
,
"Nage avec"
=>
"Nage avec"
"Nage avec"
=>
"Nage avec"
,
"deux"
=>
"Les deux"
],
"paramsP"
=>
[
"onText"
=>
"oui"
,
...
...
@@ -92,14 +93,14 @@
"options"
=>
$paramsData
[
"type"
],
"rules"
=>
[
"required"
=>
false
]
],
"statut"
=>
[
"label"
=>
"Statut"
,
"placeholder"
=>
"Statut"
,
"inputType"
=>
"select"
,
"noOrder"
=>
true
,
"options"
=>
$paramsData
[
"statut"
],
"rules"
=>
[
"required"
=>
false
]
],
//
"statut" => [
//
"label" => "Statut",
//
"placeholder" => "Statut",
//
"inputType" => "select",
//
"noOrder" => true,
//
"options" => $paramsData["statut"],
//
"rules" => [ "required" => false ]
//
],
"nbrNav"
=>
[
"label"
=>
"Nombre de navires ou appareils"
,
"placeholder"
=>
"Nombre de navires ou appareils"
,
...
...
@@ -198,6 +199,13 @@
echo
"oui"
;
}
else
if
(
$a
[
$i
]
==
"false"
){
echo
"non"
;
}
else
if
(
$i
==
"pratique"
&&
isset
(
$paramsData
[
$i
][
$a
[
$i
]])){
echo
$paramsData
[
$i
][
$a
[
$i
]];
}
else
if
(
$i
==
"typeStruct"
&&
isset
(
$paramsData
[
"type"
][
$a
[
$i
]])){
echo
$paramsData
[
"type"
][
$a
[
$i
]];
}
else
{
echo
$a
[
$i
];
...
...
views/tpls/forms/uploader.php
View file @
d477a341
...
...
@@ -51,7 +51,7 @@ $initAnswerFiles=Document::getListDocumentsWhere(array(
<
/div
>
<
div
class
=
"
col-xs-12 margin-bottom-10 text-center
"
>
<
div
class
=
"
qq-upload-button-selector btn btn-primary
"
>
<
div
>
S
ele
ctionner
un
document
<
/div
>
<
div
>
S
élé
ctionner
un
document
<
/div
>
<
/div
>
<
/div
>
...
...
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