Subversion Repositories eFlore/Applications.cel

Rev

Rev 3881 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3881 Rev 3897
1
<?php echo "<noscript>Activer javascript et recharger la page</noscript>";?>
1
<?php echo "<noscript>Activer javascript et recharger la page</noscript>";?>
2
<!DOCTYPE html>
2
<!DOCTYPE html>
3
<html xmlns="http://www.w3.org/1999/xhtml">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
  <head>
4
  <head>
5
    <title><?php echo $mode;?> de widget de saisie du CeL</title>
5
    <title><?php echo $mode;?> de widget de saisie du CeL</title>
6
 
6
 
7
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
7
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
    <meta http-equiv="Content-style-type" content="text/css" />
8
    <meta http-equiv="Content-style-type" content="text/css" />
9
    <meta http-equiv="Content-script-type" content="text/javascript" />
9
    <meta http-equiv="Content-script-type" content="text/javascript" />
10
    <meta http-equiv="Content-language" content="fr" />
10
    <meta http-equiv="Content-language" content="fr" />
11
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noodp">
11
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noodp">
12
    <meta name="author" content="Tela Botanica" />
12
    <meta name="author" content="Tela Botanica" />
13
    <meta name="keywords" content="Tela Botanica, CEL" />
13
    <meta name="keywords" content="Tela Botanica, CEL" />
14
    <meta name="description" content="Gestion des widgets de saisie du carnet en ligne" />
14
    <meta name="description" content="Gestion des widgets de saisie du carnet en ligne" />
15
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
15
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
16
 
16
 
17
    <!-- Favicones -->
17
    <!-- Favicones -->
18
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
18
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
19
    <!-- Jquery-ui custom css-->
19
    <!-- Jquery-ui custom css-->
20
    <link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen">
20
    <link href="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="screen">
21
    <!-- Bootstrap CSS -->
21
    <!-- Bootstrap CSS -->
22
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
22
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
23
    <!-- <link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" /> -->
23
    <!-- <link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" /> -->
24
    <!-- Fontawesome -->
24
    <!-- Fontawesome -->
25
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous" />
25
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous" />
26
    <!-- Carto -->
26
    <!-- Carto -->
27
    <link href="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
27
    <link href="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/styles.css" rel="stylesheet" type="text/css" media="screen" />
28
    <!-- STYLE MANAGER CREATION -->
28
    <!-- STYLE MANAGER CREATION -->
29
    <link rel="stylesheet" type="text/css" href="<?php echo $url_base;?>modules/manager/squelettes/css/manager.css" media="screen" />
29
    <link rel="stylesheet" type="text/css" href="<?php echo $url_base;?>modules/manager/squelettes/css/manager.css" media="screen" />
30
 
30
 
31
    <!--  Google Analytics -->
31
    <!--  Google Analytics -->
32
    <?php if ( $prod ) : ?>
32
    <?php if ( $prod ) : ?>
33
      <?php include "analytics.html";?>
33
      <?php include "analytics.html";?>
34
    <?php endif;?>
34
    <?php endif;?>
35
    <!-- <link rel="icon" type="image/x-icon" href="favicon.ico" /> -->
35
    <!-- <link rel="icon" type="image/x-icon" href="favicon.ico" /> -->
36
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
36
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
37
  </head>
37
  </head>
38
 
38
 
39
  <body>
39
  <body>
40
    <div id="zone-appli" class="container">
40
    <div id="zone-appli" class="container">
41
      <h1 id="widget-titre" class="widget-titre"><?php echo ucfirst( $mode );?> de widget de saisie du CEL</h1>
41
      <h1 id="widget-titre" class="widget-titre"><?php echo ucfirst( $mode );?> de widget de saisie du CEL</h1>
42
      <div id="register-page">
42
      <div id="register-page">
43
        <div id="group-settings-form">
43
        <div id="group-settings-form">
44
 
44
 
45
          <div id="left-block" class="widget-blocks">
45
          <div id="left-block" class="widget-blocks">
46
 
46
 
47
            <p class="message">
47
            <p class="message">
48
              <?php if ( $mode === 'modification' ) : ?>
48
              <?php if ( $mode === 'modification' ) : ?>
49
                Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changés.
49
                Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changés.
50
                S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type.
50
                S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type.
51
              <?php else : ?>
51
              <?php else : ?>
52
                Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront
52
                Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront
53
                obligatoires et la localisation (point ou rue) sera automatiquement déterminée.
53
                obligatoires et la localisation (point ou rue) sera automatiquement déterminée.
54
              <?php endif;?>
54
              <?php endif;?>
55
            </p>
55
            </p>
56
 
56
 
57
            <form action="<?php echo $url_base;?>manager?mode=<?php echo $mode.$params;?>" id="basic-widget-form" method="post" enctype="multipart/form-data">
57
            <form action="<?php echo $url_base;?>manager?mode=<?php echo $mode.$params;?>" id="basic-widget-form" method="post" enctype="multipart/form-data">
58
 
-
 
59
              <div class="register-section row" id="basic-details-section">
58
              <div class="register-section row" id="basic-details-section">
60
                <h2>Meta-données</h2>
59
                <h2>Meta-données</h2>
61
 
-
 
62
                <input type="text" name="email" id="email" placeholder="Your email" title="laisser ce champ vide" autocomplete="off" tabindex="-1" />
60
                <input type="text" name="email" id="email" placeholder="Your email" title="laisser ce champ vide" autocomplete="off" tabindex="-1" />
63
 
-
 
64
                <div class="col-sm-12 mb-3">
61
                <div class="col-sm-12 mb-3">
65
                  <label for="projet">Projet&nbsp;*</label>
62
                  <label for="projet">Projet&nbsp;*</label>
66
                  <input type="text" name="projet" id="projet" class="form-control" pattern="^[a-z][a-z0-9-]{2,24}" <?php echo ( $mode === 'modification' ) ? 'value="' . $widget['projet'] . '" readonly' : 'required';?> title="Champ obligatoire : Pas d'espaces, de majuscules, de caractères spéciaux, ou d'accents. Caractères acceptés : 1er une lettre de a à z, ensuite : lettres, chiffres, tirets &quot; - &quot;.">
63
                  <input type="text" name="projet" id="projet" class="form-control" pattern="^[a-z][a-z0-9-]{2,24}" <?php echo ( $mode === 'modification' ) ? 'value="' . $widget['projet'] . '" readonly' : 'required';?> title="Champ obligatoire : Pas d'espaces, de majuscules, de caractères spéciaux, ou d'accents. Caractères acceptés : 1er une lettre de a à z, ensuite : lettres, chiffres, tirets &quot; - &quot;.">
67
                </div>
64
                </div>
68
 
65
 
69
                <div class="col-sm-12 mb-3">
66
                <div class="col-sm-12 mb-3">
70
                  <label for="motscles">Autres mots-clés</label>
67
                  <label for="motscles">Autres mots-clés</label>
71
                  <input type="text" name="motscles" id="motscles" class="form-control" <?php echo ( $mode === 'modification' ) ? 'value="' . $widget['motscles'] . '"' : "";?> />
68
                  <input type="text" name="motscles" id="motscles" class="form-control" <?php echo ( $mode === 'modification' ) ? 'value="' . $widget['motscles'] . '"' : "";?> />
72
                </div>
69
                </div>
73
 
70
 
74
                <div class="col-sm-12 mb-3">
71
                <div class="col-sm-12 mb-3">
75
                  <label for="type">Type de widget</label>
72
                  <label for="type">Type de widget</label>
76
                  <select  id="type" name="type" class="form-control custom-select">
73
                  <select  id="type" name="type" class="form-control custom-select">
77
                    <option value=""> ----</option>
74
                    <option value=""> ----</option>
78
                    <?php foreach ( $type as $id => $projet ) : ?>
75
                    <?php foreach ( $type as $id => $projet ) : ?>
79
                      <option <?php echo ( isset( $widget['projet'] ) && $projet['projet'] === $widget['projet'] ) ? 'selected="selected"' : '';?> value="<?php echo $projet['projet'];?>"><?php echo $projet['projet'];?></option>
76
                      <option <?php echo ( isset( $widget['type'] ) && $projet['projet'] === $widget['type'] ) ? 'selected="selected"' : '';?> value="<?php echo $projet['projet'];?>"><?php echo $projet['projet'];?></option>
80
                    <?php endforeach;?>
77
                    <?php endforeach;?>
81
                  </select>
78
                  </select>
82
                </div>
79
                </div>
83
 
-
 
84
 
80
 
85
                  <div class="col-sm-12 radio mb-3">
81
                <div class="col-sm-12 radio mb-3">
86
                    <label for="est_type" class="radio-label">
82
                  <label for="est_type" class="radio-label">
87
                      <input type="checkbox" name="est_type" id="est_type" <?php echo ( isset( $widget['est_type'] ) && $projet['est_type'] === '1' ) ? 'checked="checked"' : '';?>>
83
                    <input type="checkbox" name="est_type" id="est_type" <?php echo ( isset( $widget['est_type'] ) && $projet['est_type'] === '1' ) ? 'checked="checked"' : '';?>>
88
                      Ce widget est un widget type
84
                    Ce widget est un widget type
89
                    </label>
85
                  </label>
90
                  </div>
86
                </div>
91
 
87
 
92
                <div class="col-sm-12 mb-3">
88
                <div class="col-sm-12 mb-3">
93
                  <label for="langue">Langue</label>
89
                  <label for="langue">Langue</label>
94
                  <?php if ( $mode === 'modification' ) : ?>
90
                  <?php if ( $mode === 'modification' ) : ?>
95
                    <input id="langue" name="langue" class="form-control" readonly value="<?php echo $widget['langue'];?>">
91
                    <input id="langue" name="langue" class="form-control" readonly value="<?php echo $widget['langue'];?>">
96
                  <?php else : ?>
92
                  <?php else : ?>
97
                    <select id="langue" name="langue" class="form-control custom-select">
93
                    <select id="langue" name="langue" class="form-control custom-select">
98
                    <?php foreach ( $langues as $code => $langue ) : ?>
94
                    <?php foreach ( $langues as $code => $langue ) : ?>
99
                      <option value="<?php echo $code;?>" <?php echo ( $code === 'fr' ) ? 'selected' : '';?>><?php echo $langue['nom'];?></option>
95
                      <option value="<?php echo $code;?>" <?php echo ( $code === 'fr' ) ? 'selected' : '';?>><?php echo $langue['nom'];?></option>
100
                    <?php endforeach;?>
96
                    <?php endforeach;?>
101
                    </select>
97
                    </select>
102
                  <?php endif;?>
98
                  <?php endif;?>
103
                </div>
99
                </div>
104
              </div><!-- end #basic-details-section -->
100
              </div><!-- end #basic-details-section -->
105
 
101
 
106
 
102
 
107
              <div class="register-section row" id="profile-details-description-section">
103
              <div class="register-section row" id="profile-details-description-section">
108
                <h2>Description</h2>
104
                <h2>Description</h2>
109
                <div class="col-sm-12 mb-3">
105
                <div class="col-sm-12 mb-3">
110
                  <label for="titre">Titre</label>
106
                  <label for="titre">Titre</label>
111
                  <input type="text" name="titre" id="titre" class="form-control" value="<?php echo isset( $widget['titre'] ) ? htmlspecialchars( $widget['titre']) : '';?>">
107
                  <input type="text" name="titre" id="titre" class="form-control" value="<?php echo isset( $widget['titre'] ) ? htmlspecialchars( $widget['titre']) : '';?>">
112
                </div>
108
                </div>
113
 
109
 
114
                <div class="input-file-row row">
110
                <div class="input-file-row row">
115
                  <div class="input-file-container col-sm-10">
111
                  <div class="input-file-container col-sm-10">
116
 
112
 
117
                    <?php
113
                    <?php
-
 
114
                      $info_file_name = [];
-
 
115
                      $info_src       = '';
-
 
116
                      $info_img       = '';
-
 
117
                      $info_hidden    = '';
118
                      if( isset( $widget['info'] ) ) :
118
                      if( isset( $widget['info'] ) ) :
119
                        $info_file_name = 'info.' . preg_replace( '/(?:imag)?e\/?/','',$widget['info']);
119
                        $info_file_name = 'info.' . preg_replace( '/(?:imag)?e\/?/','',$widget['info']);
120
                        $info_src       = $chemin_images . $widget['projet'] . '/' . $info_file_name;
120
                        $info_src       = $chemin_images . $widget['projet'] . '/' . $info_file_name;
121
                        $info_img       =
121
                        $info_img       =
122
                          '<img id="pre-existent-info" src="' . $info_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
122
                          '<img id="pre-existent-info" src="' . $info_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
123
                        $info_hidden    = '';
-
 
124
                      else :
123
                      else :
125
                        $info_file_name = [];
-
 
126
                        $info_src       = '';
-
 
127
                        $info_img       = '';
-
 
128
                        $info_hidden    = ' hidden';
124
                        $info_hidden    = ' hidden';
129
                      endif;
125
                      endif;
130
                    ?>
126
                    ?>
131
 
127
 
132
                    <input type="file" class="input-file" name="info" id="info" accept="image/*">
128
                    <input type="file" class="input-file" name="info" id="info" accept="image/*">
133
                    <label for="info" class="label-file "><i class="fas fa-download"></i> Aide dans le titre</label>
129
                    <label for="info" class="label-file "><i class="fas fa-download"></i> Aide dans le titre</label>
134
                  </div>
130
                  </div>
135
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
131
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
136
                  <div class="file-return info <?php echo $info_hidden;?>">
132
                  <div class="file-return info <?php echo $info_hidden;?>">
137
                    <?php echo $info_file_name;?>
133
                    <?php echo $info_file_name;?>
138
                    <?php echo $info_img;?>
134
                    <?php echo $info_img;?>
139
                  </div>
135
                  </div>
140
                </div>
136
                </div>
141
 
137
 
142
                <div class="col-sm-12 mb-3">
138
                <div class="col-sm-12 mb-3">
143
                  <label for="description">Description</label>
139
                  <label for="description">Description</label>
144
                  <textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? htmlspecialchars( $widget['description'] ) : '';?></textarea>
140
                  <textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? htmlspecialchars( $widget['description'] ) : '';?></textarea>
145
                </div>
141
                </div>
146
 
142
 
147
                <div class="input-file-row row">
143
                <div class="input-file-row row">
148
                  <div class="input-file-container col-sm-10">
144
                  <div class="input-file-container col-sm-10">
149
 
145
 
150
                    <?php
146
                    <?php
-
 
147
                      $logo_file_name = [];
-
 
148
                      $logo_src       = '';
-
 
149
                      $logo_img       = '';
-
 
150
                      $logo_hidden    = '';
151
                      if( isset( $widget['logo'] ) ) :
151
                      if( isset( $widget['logo'] ) ) :
152
                        $logo_file_name = 'logo.' . preg_replace( '/(?:imag)?e\/?/','',$widget['logo']);
152
                        $logo_file_name = 'logo.' . preg_replace( '/(?:imag)?e\/?/','',$widget['logo']);
153
                        $logo_src       = $chemin_images . $widget['projet'] . '/' . $logo_file_name;
153
                        $logo_src       = $chemin_images . $widget['projet'] . '/' . $logo_file_name;
154
                        $logo_img       =
154
                        $logo_img       =
155
                          '<img id="pre-existent-logo" src="' . $logo_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
155
                          '<img id="pre-existent-logo" src="' . $logo_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
156
                        $logo_hidden    = '';
-
 
157
                      else :
156
                      else :
158
                        $logo_file_name = [];
-
 
159
                        $logo_src       = '';
-
 
160
                        $logo_img       = '';
-
 
161
                        $logo_hidden    = ' hidden';
157
                        $logo_hidden    = ' hidden';
162
                      endif;
158
                      endif;
163
                    ?>
159
                    ?>
164
 
160
 
165
                    <input type="file" class="input-file" name="logo" id="logo"  accept="image/*" value="">
161
                    <input type="file" class="input-file" name="logo" id="logo"  accept="image/*" value="">
166
                    <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
162
                    <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
167
                  </div>
163
                  </div>
168
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier">
164
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier">
169
                    <i class="fas fa-times" aria-hidden="true"></i>
165
                    <i class="fas fa-times" aria-hidden="true"></i>
170
                  </div>
166
                  </div>
171
                  <div class="file-return logo<?php echo $logo_hidden;?>">
167
                  <div class="file-return logo<?php echo $logo_hidden;?>">
172
                    <?php echo $logo_file_name;?>
168
                    <?php echo $logo_file_name;?>
173
                    <?php echo $logo_img;?>
169
                    <?php echo $logo_img;?>
174
                  </div>
170
                  </div>
175
                </div>
171
                </div>
176
 
172
 
177
                <div class="input-file-row row">
173
                <div class="input-file-row row">
178
                  <div class="input-file-container col-sm-10">
174
                  <div class="input-file-container col-sm-10">
179
 
175
 
180
                    <?php
176
                    <?php
-
 
177
                      $image_fond_file_name = [];
-
 
178
                      $image_fond_src       = '';
-
 
179
                      $image_fond_img       = '';
-
 
180
                      $image_fond_hidden    = '';
181
                      if( isset( $widget['image_fond'] ) ) :
181
                      if( isset( $widget['image_fond'] ) ) :
182
                        $image_fond_file_name = 'image_fond.' . preg_replace( '/(?:imag)?e\/?/','',$widget['image_fond']);
182
                        $image_fond_file_name = 'image_fond.' . preg_replace( '/(?:imag)?e\/?/','',$widget['image_fond']);
183
                        $image_fond_src       = $chemin_images . $widget['projet'] . '/' . $image_fond_file_name;
183
                        $image_fond_src       = $chemin_images . $widget['projet'] . '/' . $image_fond_file_name;
184
                        $image_fond_img       =
184
                        $image_fond_img       =
185
                          '<img id="pre-existent-image_fond" src="' . $image_fond_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
185
                          '<img id="pre-existent-image_fond" src="' . $image_fond_src . '" width="50%"><br>Pour changer, télécharger un nouveau fichier.';
186
                        $image_fond_hidden    = '';
-
 
187
                      else :
186
                      else :
188
                        $image_fond_file_name = [];
-
 
189
                        $image_fond_src       = '';
-
 
190
                        $image_fond_img       = '';
-
 
191
                        $image_fond_hidden    = ' hidden';
187
                        $image_fond_hidden    = ' hidden';
192
                      endif;
188
                      endif;
193
                    ?>
189
                    ?>
194
 
190
 
195
                    <input type="file" class="input-file" name="image_fond" id="image_fond" accept="image/*">
191
                    <input type="file" class="input-file" name="image_fond" id="image_fond" accept="image/*">
196
                    <label for="image_fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
192
                    <label for="image_fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
197
                  </div>
193
                  </div>
198
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
194
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
199
                  <div class="file-return image_fond <?php echo $image_fond_hidden;?>">
195
                  <div class="file-return image_fond <?php echo $image_fond_hidden;?>">
200
                    <?php echo $image_fond_file_name;?>
196
                    <?php echo $image_fond_file_name;?>
201
                    <?php echo $image_fond_img;?>
197
                    <?php echo $image_fond_img;?>
202
                  </div>
198
                  </div>
203
                </div>
199
                </div>
204
 
200
 
205
              </div><!-- end #profile-details-description-section -->
201
              </div><!-- end #profile-details-description-section -->
206
 
202
 
207
              <div class="register-section row" id="profile-details-fields-section">
203
              <div class="register-section row" id="profile-details-fields-section">
208
                <h2>Champs</h2>
-
 
209
 
-
 
210
                <div class="col-sm-12 mb-3">
-
 
211
                  <label for="type_localisation">Type de localisation</label>
-
 
212
                  <select  id="type_localisation" name="type_localisation" class="form-control custom-select">
-
 
213
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point';?>"><?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point';?></option>
-
 
214
                    <option value="<?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue' ) ? 'point' : 'rue';?>"><?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue') ? 'point' : 'rue';?></option>
204
                <h2>Milieux et taxonomie</h2>
215
                  </select>
-
 
216
                </div>
-
 
217
 
-
 
218
                <div class="col-sm-12 mb-3">
205
                <div class="col-sm-12 mb-3">
219
                  <label for="milieux">Milieux</label>
206
                  <label for="milieux">Milieux</label>
220
                  <p class="message">
207
                  <p class="message">
221
                    Liste de milieux séparés par un ";".
208
                    Liste de milieux séparés par un ";".
222
                    <br>
209
                    <br>
223
                    <i class="fas fa-pen"></i>&nbsp;Pour ajouter une option "autre" ajoutez le mot "autre" dans votre liste de milieux.
210
                    <i class="fas fa-pen"></i>&nbsp;Pour ajouter une option "autre" ajoutez le mot "autre" dans votre liste de milieux.
224
                    <br>
211
                    <br>
225
                    <i class="fas fa-check-double"></i>&nbsp;Pour autoriser la sélection de plusieurs milieux ajouter "multimilieux" dans votre liste de milieux (sans fautes&nbsp;!&nbsp;<i class="far fa-smile-beam"></i>&nbsp;).
212
                    <i class="fas fa-check-double"></i>&nbsp;Pour autoriser la sélection de plusieurs milieux ajouter "multimilieux" dans votre liste de milieux (sans fautes&nbsp;!&nbsp;<i class="far fa-smile-beam"></i>&nbsp;).
226
                    <br>
213
                    <br>
227
                    <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>&nbsp;Les options apparaitront dans l'ordre de saisie de cette liste.
214
                    <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>&nbsp;Les options apparaitront dans l'ordre de saisie de cette liste.
228
                  </p>
215
                  </p>
229
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : '';?>">
216
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : '';?>">
230
                </div>
217
                </div>
231
 
218
 
232
                <div class="col-sm-12 mb-3">
219
                <div class="col-sm-12 mb-3">
233
                  <label for="type_especes">Type liste espèce&nbsp;*</label>
220
                  <label for="type_especes">Type liste espèce&nbsp;*</label>
234
                  <?php
221
                  <?php
235
                    $types_espece = [
222
                    $types_espece = [
236
                      'referentiel' => 'Référentiel',
223
                      'referentiel' => 'Référentiel',
237
                      'liste' => 'Liste',
224
                      'liste' => 'Liste',
238
                      'liste+autre' => 'Liste + autres',
225
                      'liste+autre' => 'Liste + autres',
239
                      'fixe' => 'Espèce fixée',
226
                      'fixe' => 'Espèce fixée',
240
                    ];
227
                    ];
241
                  ?>
228
                  ?>
242
                  <select  id="type_especes" name="type_especes" required class="form-control custom-select">
229
                  <select  id="type_especes" name="type_especes" required class="form-control custom-select">
243
                    <?php foreach( $types_espece as $type_espece => $affichage_type_espece ): ?>
230
                    <?php foreach( $types_espece as $type_espece => $affichage_type_espece ): ?>
244
                      <option <?php echo (!isset($widget['type_especes']) && 'referentiel' === $type_espece) || $type_espece === $widget['type_especes']? 'selected="selected" ' : '';?>value="<?php echo $type_espece;?>"><?php echo $affichage_type_espece;?></option>
231
                      <option <?php echo (!isset($widget['type_especes']) && 'referentiel' === $type_espece) || $type_espece === $widget['type_especes']? 'selected="selected" ' : '';?>value="<?php echo $type_espece;?>"><?php echo $affichage_type_espece;?></option>
245
                    <?php endforeach;?>
232
                    <?php endforeach;?>
246
                  </select>
233
                  </select>
247
                </div>
234
                </div>
248
 
235
 
249
                <div class="col-sm-12 mb-3">
236
                <div class="col-sm-12 mb-3">
250
                  <label for="referentiel">Référentiel&nbsp;*</label>
237
                  <label for="referentiel">Référentiel&nbsp;*</label>
251
                  <p class="message">
238
                  <p class="message">
252
                    Pour une espèce fixée renseigner le num_nom après le référentiel, séparés de ":" suivant le schéma&nbsp;:
239
                    Pour une espèce fixée renseigner le num_nom après le référentiel, séparés de ":" suivant le schéma&nbsp;:
253
                    <br>
240
                    <br>
254
                    <code>référentiel:num_nom</code>
241
                    <code>référentiel:num_nom</code>
255
                    <br>
242
                    <br>
256
                    ex&nbsp;: <code>bdtfx:182</code>
243
                    ex&nbsp;: <code>bdtfx:182</code>
257
                  </p>
244
                  </p>
258
                  <input type="text" name="referentiel" id="referentiel" class="form-control" required pattern="^[a-z]+(:[0-9]+)?$" title="Nom du référentiel ex. bdtfx" value="<?php echo isset( $widget['referentiel'] ) ? $widget['referentiel'] : '';?>">
245
                  <input type="text" name="referentiel" id="referentiel" class="form-control" required pattern="^[a-z]+(:[0-9]+)?$" title="Nom du référentiel ex. bdtfx" value="<?php echo isset( $widget['referentiel'] ) ? $widget['referentiel'] : '';?>">
259
                </div>
246
                </div>
260
 
247
 
261
                <!-- Bouton fichier-type à compléter -->
248
                <!-- Bouton fichier-type à compléter -->
262
                <div class="input-file-row row">
249
                <div class="input-file-row row">
263
                  <div class="input-file-container col-sm-10">
250
                  <div class="input-file-container col-sm-10">
264
                    <input type="file" class="input-file" name="especes" id="especes">
251
                    <input type="file" class="input-file" name="especes" id="especes">
265
                    <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label>
252
                    <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label>
266
                    <p class="message mt-2">
253
                    <p class="message mt-2">
267
                      <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
254
                      <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
268
                      &nbsp;Format&nbsp;: CSV ou TSV UTF-8.
255
                      &nbsp;Format&nbsp;: CSV ou TSV UTF-8.
269
                      <br>
256
                      <br>
270
                      Séparateur&nbsp;: Tabulation.
257
                      Séparateur&nbsp;: Tabulation.
271
                    </p>
258
                    </p>
272
                  </div>
259
                  </div>
273
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
260
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
274
                  <div class="file-return especes hidden"></div>
261
                  <div class="file-return especes hidden"></div>
275
                </div>
262
                </div>
276
                <div class="col-sm-12 mb-3">
263
                <div class="col-sm-12 mb-3">
277
                  <a href="<?php echo $url_base;?>modules/manager/squelettes/img/fichier_type/especes.csv" class="button fichier-type" download><i class="fas fa-file-alt" aria-hidden="true"></i> Fichier type</a>
264
                  <a href="<?php echo $url_base;?>modules/manager/squelettes/img/fichier_type/especes.csv" class="button fichier-type" download><i class="fas fa-file-alt" aria-hidden="true"></i> Fichier type</a>
278
                </div>
265
                </div>
-
 
266
                <h2>Champs Imposés</h2>
-
 
267
                 <div class="col-sm-12 mb-3">
-
 
268
                      <label for="adresse">Adresse obligatoire</label>
-
 
269
                      <select  id="adresse" name="adresse" class="form-control custom-select">
-
 
270
                        <option value="0" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
271
                        <option value="1" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
272
                      </select>
-
 
273
                  </div>
-
 
274
                  <div class="col-sm-12 mb-3">
-
 
275
                      <label for="photo_obligatoire">Photo obligatoire</label>
-
 
276
                      <select  id="photo_obligatoire" name="photo_obligatoire" class="form-control custom-select">
-
 
277
                        <option value="0" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
278
                        <option value="1" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
279
                      </select>
-
 
280
                  </div>
-
 
281
                  <h2>Localisation</h2>
-
 
282
                  <div class="col-sm-12 mb-3">
-
 
283
                    <label for="type_localisation">Type de localisation</label>
-
 
284
                    <select  id="type_localisation" name="type_localisation" class="form-control custom-select">
-
 
285
                      <option value="<?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point';?>"><?php echo ( isset( $widget['type_localisation'] ) ) ? $widget['type_localisation'] : 'point';?></option>
-
 
286
                      <option value="<?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue' ) ? 'point' : 'rue';?>"><?php echo ( isset( $widget['type_localisation'] ) && $widget['type_localisation'] === 'rue') ? 'point' : 'rue';?></option>
-
 
287
                    </select>
-
 
288
                  </div>
-
 
289
                  <div class="col-sm-12">
-
 
290
                    <label for="fond_carte">Fond de carte</label>
-
 
291
                    <select  id="fond_carte" name="fond_carte" class="form-control custom-select">
-
 
292
                      <?php
-
 
293
                        $affichage_fonds_carte = [
-
 
294
                          'osm' => 'OSM (carte par défaut)',
-
 
295
                          'googleHybrid' => 'Photos aériennes',
-
 
296
                        ];
-
 
297
                        $fond_carte = isset($widget['fond_carte']) && isset($affichage_fonds_carte[$widget['fond_carte']]) ? $widget['fond_carte'] : 'osm';
-
 
298
                      ?>
-
 
299
                      <?php foreach($affichage_fonds_carte  as $nom_base => $nom_affiche) :?>
-
 
300
                        <option value="<?php echo $nom_base;?>"<?php echo $nom_base === $fond_carte ? ' selected="selected"' : '';?>><?php echo $nom_affiche;?></option>
-
 
301
                      <?php endforeach;?>
-
 
302
 
-
 
303
                    </select>
-
 
304
                  </div>
279
              </div><!-- end #profile-details-fields-section -->
305
              </div><!-- end #profile-details-fields-section -->
280
 
306
 
281
              <!--localisation-->
307
              <!--localisation-->
282
              <input type="hidden" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? htmlspecialchars($widget['localisation']) : '';?>">
308
              <input type="hidden" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? htmlspecialchars($widget['localisation']) : '';?>">
283
              <!--Submit-->
309
              <!--Submit-->
284
              <div class="submit complete-registration" id="submit-button">
310
              <div class="submit complete-registration" id="submit-button">
285
                <button href="#" type="submit" name="signup_submit" id="signup_submit" class="button" target="" title="Soumettre le nouveau widget" disabled="disabled"><i class="fas fa-trophy" aria-hidden="true"></i>&nbsp;Terminer</button>
311
                <button href="#" type="submit" name="signup_submit" id="signup_submit" class="button" target="" title="Soumettre le nouveau widget" disabled="disabled"><i class="fas fa-trophy" aria-hidden="true"></i>&nbsp;Terminer</button>
286
              </div>
312
              </div>
287
              <!--Submit-->
313
              <!--Submit-->
288
 
314
 
289
            </form><!-- end #new-widget-form -->
315
            </form><!-- end #new-widget-form -->
290
 
316
 
291
            <form id="form-geolocalisation" autocomplete="off">
317
            <form id="form-geolocalisation" autocomplete="off">
292
              <div class="row mb-3">
318
              <div class="row">
293
                <label for="geolocalisation" class="obligatoire has-tooltip col-sm-12" data-toggle="tooltip" title="">
319
                <label for="geolocalisation" class="obligatoire has-tooltip col-sm-12" data-toggle="tooltip" title="">
294
                  Geolocalisation&nbsp: Déterminer un point gps (facultatif)
320
                  Geolocalisation&nbsp: Déterminer un point gps (facultatif)
295
                </label>
321
                </label>
296
              </div>
322
              </div>
297
              <div id="geoloc" class="geoloc">
323
              <div id="geoloc" class="geoloc">
298
                <tb-geolocation-element
324
                <tb-geolocation-element
299
                  id="tb-geolocation"
325
                  id="tb-geolocation"
300
                  layer='osm'
326
                  layer='osm'
301
                  zoom_init="4"
327
                  zoom_init="<?php echo $widget['tableau-localisation']['zoom'] ?? '4' ;?>"
302
                  lat_init="46.5"
328
                  lat_init="<?php echo $widget['tableau-localisation']['latitude'] ?? '46.5' ;?>"
303
                  lng_init="2.9"
329
                  lng_init="<?php echo $widget['tableau-localisation']['longitude'] ?? '2.9' ;?>"
304
                  marker="true"
330
                  marker="true"
305
                  polyline="false"
331
                  polyline="false"
306
                  polygon="false"
332
                  polygon="false"
307
                  show_lat_lng_elevation_inputs="true"
333
                  show_lat_lng_elevation_inputs="true"
308
                  osm_class_filter=""
334
                  osm_class_filter=""
309
                  geometry_filter="point"
335
                  geometry_filter="point"
310
                  elevation_provider="mapquest"
336
                  elevation_provider="mapquest"
311
                  map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
337
                  map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
312
                  height="400px"
338
                  height="400px"
313
                >
339
                >
314
                </tb-geolocation-element>
340
                </tb-geolocation-element>
315
              </div>
341
              </div>
316
              <div class="control-group mt-3 mb-3">
342
              <div class="control-group mt-3 mb-3">
317
                <div class="row">
343
                <div class="row">
318
                  <div id="geoloc-datas" class="col-sm-12 row">
344
                  <div id="geoloc-datas" class="col-sm-12 row">
319
                    <div class="col-sm-6 mb-3">
345
                    <div class="col-sm-6 mb-3">
320
                      <label for="latitude">Latitude</label>
346
                      <label for="latitude">Latitude</label>
321
                      <input type="text" class="form-control latitude" id="latitude" name="latitude" pattern="-?(8[0-5]|[1-7]?[0-9])(,|.)[0-9]{5}" title="Nombre décimal de 6 à 8 chiffres au total, dont exactement 5 chiffres après la virgule" placeholder="+/- 0.00000 à 90.00000" value="">
347
                      <input type="text" class="form-control latitude" id="latitude" name="latitude" pattern="-?(8[0-5]|[1-7]?[0-9])(,|.)[0-9]{5}" title="Nombre décimal de 6 à 8 chiffres au total, dont exactement 5 chiffres après la virgule" placeholder="+/- 0.00000 à 90.00000" value="<?php echo $widget['tableau-localisation']['latitude'] ?? '' ;?>">
322
                    </div>
348
                    </div>
323
                    <div class="col-sm-6 mb-3">
349
                    <div class="col-sm-6 mb-3">
324
                      <label for="longitude">Longitude</label>
350
                      <label for="longitude">Longitude</label>
325
                      <input type="text" class="form-control longitude" id="longitude" name="longitude" pattern="-?(1(80|[0-7][0-9])|([1-9]?[0-9]))(,|.)[0-9]{5}" title="Nombre décimal de 6 à 8 chiffres au total, dont exactement 5 chiffres après la virgule" placeholder="+/- 0.00000 à 180.00000" value="">
351
                      <input type="text" class="form-control longitude" id="longitude" name="longitude" pattern="-?(1(80|[0-7][0-9])|([1-9]?[0-9]))(,|.)[0-9]{5}" title="Nombre décimal de 6 à 8 chiffres au total, dont exactement 5 chiffres après la virgule" placeholder="+/- 0.00000 à 180.00000" value="<?php echo $widget['tableau-localisation']['longitude'] ?? '' ;?>">
326
                    </div>
352
                    </div>
327
                    <div class="col-sm-12 mb-3">
353
                    <div class="col-sm-12 mb-3">
328
                      <label for="zoom">Zoom (indépendant des coordonnées)</label>
354
                      <label for="zoom">Zoom (indépendant des coordonnées)</label>
329
                      <p class="message">
355
                      <p class="message">
330
                        Quelques exemples de précision zoom&nbsp;:<br>
356
                        Quelques exemples de précision zoom&nbsp;:<br>
331
                        Europe&nbsp;:&nbsp;4, France&nbsp;:&nbsp;5, région&nbsp;:&nbsp;7, département&nbsp;:&nbsp;9, ville&nbsp;:&nbsp;12, lieu-dit/quartier&nbsp;:&nbsp;15, rue&nbsp;:&nbsp;18 (=&nbsp;max).
357
                        Europe&nbsp;:&nbsp;4, France&nbsp;:&nbsp;5, région&nbsp;:&nbsp;7, département&nbsp;:&nbsp;9, ville&nbsp;:&nbsp;12, lieu-dit/quartier&nbsp;:&nbsp;15, rue&nbsp;:&nbsp;18 (=&nbsp;max).
332
                      </p>
358
                      </p>
333
                      <input type="text" name="zoom" id="zoom" class="form-control" pattern="(0?[1-9]|(1[0-8]))" title="Nombre de 1 à 18" placeholder="1 à 18" value=""  />
359
                      <input type="text" name="zoom" id="zoom" class="form-control" pattern="(0?[1-9]|(1[0-8]))" title="Nombre de 1 à 18" placeholder="1 à 18" value="<?php echo $widget['tableau-localisation']['zoom'] ?? '' ;?>"  />
334
                    </div>
360
                    </div>
335
                    <div class="col-sm-12 mb-3">
-
 
336
                  		<label for="fond_carte">Fond de carte</label>
-
 
337
                  		<select  id="fond_carte" name="fond_carte" class="form-control custom-select">
-
 
338
                        <?php
-
 
339
                          $affichage_fonds_carte = [
-
 
340
                            'osm' => 'OSM (carte par défaut)',
-
 
341
                            'googleHybrid' => 'Photos aériennes',
-
 
342
                          ];
-
 
343
                          $fond_carte = isset($widget['fond_carte']) && isset($affichage_fonds_carte[$widget['fond_carte']]) ? $widget['fond_carte'] : 'osm';
-
 
344
                        ?>
-
 
345
                        <?php foreach($affichage_fonds_carte  as $nom_base => $nom_affiche) :?>
-
 
346
                          <option value="<?php echo $nom_base;?>"<?php echo $nom_base === $fond_carte ? ' selected="selected"' : '';?>><?php echo $nom_affiche;?></option>
-
 
347
                    		<?php endforeach;?>
-
 
348
 
-
 
349
                  		</select>
-
 
350
                	</div>
-
 
351
                	 <div class="col-sm-12 mb-3">
-
 
352
                  		<label for="adresse">Adresse obligatoire</label>
-
 
353
                  		<select  id="adresse" name="adresse" class="form-control custom-select">
-
 
354
                    		<option value="0" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
355
                    		<option value="1" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
356
                  		</select>
-
 
357
                	</div>
-
 
358
                	<div class="col-sm-12 mb-3">
-
 
359
                  		<label for="photo_obligatoire">Photo obligatoire</label>
-
 
360
                  		<select  id="photo_obligatoire" name="photo_obligatoire" class="form-control custom-select">
-
 
361
                    		<option value="0" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
362
                    		<option value="1" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
363
                  		</select>
-
 
364
                	</div>
-
 
365
                  </div>
361
                  </div>
366
                </div>
362
                </div>
367
              </div>
363
              </div>
368
            </form><!-- end #form-geolocalisation -->
364
            </form><!-- end #form-geolocalisation -->
-
 
365
 
369
 
366
            <?php if ( !isset( $widget['type'] ) ):?>
370
            <form id="new-fields" autocomplete="off">
367
              <form id="new-fields" autocomplete="off">
-
 
368
                <h2>Ajouter des champs</h2>
-
 
369
                <p id="infos-validation-boutons" class="message">
-
 
370
                  <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
-
 
371
                  &nbsp;Attention&nbsp;:
-
 
372
                  <br>
-
 
373
                  <i class="fa fa-bolt" aria-hidden="true"  style="color:#B3C954"></i>
-
 
374
                  &nbsp;Le bouton "Valider" sert à valider les champs supplémentaires uniquement
-
 
375
                  <br>
-
 
376
                  <i class="fas fa-trophy" aria-hidden="true"  style="color:#B3C954"></i>
-
 
377
                  &nbsp;Le bouton "Terminer" sert à envoyer la totalité du nouveau widget
-
 
378
                </p>
-
 
379
              </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
-
 
380
 
-
 
381
              <div id="new-fields-buttons" class="row">
-
 
382
                <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
383
                  <label class="add-fields">Ajouter</label>
-
 
384
                  <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
-
 
385
                </div>
-
 
386
                <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
387
                  <label for="preview-field">Prévisualiser</label>
-
 
388
                  <div class="button" id="preview-field" name="preview-field" title="prévisualiser"><i class="fa fa-magic" aria-hidden="true"></i></div>
-
 
389
                </div>
-
 
390
                <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
391
                  <label class="validate-new-fields">Valider</label>
-
 
392
                  <div class="button" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-bolt" aria-hidden="true"></i></div>
-
 
393
                </div>
-
 
394
              </div>
371
              <h2>Ajouter des champs</h2>
395
            <?php else:?>
372
              <p class="message">
396
              <p class="message">
373
                <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
397
                <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
374
                &nbsp;Attention&nbsp;:
398
                &nbsp;Ce widget est de type "<?php echo ( $widget['type'] );?>"&nbsp;:
375
                <br>
-
 
376
                <i class="fa fa-bolt" aria-hidden="true"  style="color:#B3C954"></i>
399
                <br>
377
                &nbsp;Le bouton "Valider" sert à valider les champs supplémentaires uniquement
400
                &nbsp;si vous souhaitez ajouter ou modifier des champs supplémentaires, vous devez le faire sur <a href="<?php echo $url_base ;?>manager?mode=modification&projet=<?php echo $widget['type'];?>&langue=fr">le widget type</a> lui même.
378
                <br>
401
                <br>
379
                <i class="fas fa-trophy" aria-hidden="true"  style="color:#B3C954"></i>
402
                <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
380
                &nbsp;Le bouton "Terminer" sert à envoyer la totalité du nouveau widget
403
                &nbsp;cela modifiera les champs supplémentaires de tous les tous les autres widgets du même type.
381
              </p>
-
 
382
            </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
-
 
383
 
-
 
384
            <div id="new-fields-buttons" class="row">
-
 
385
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
386
                <label class="add-fields">Ajouter</label>
-
 
387
                <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
404
              </p>
388
              </div>
-
 
389
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
390
                <label for="preview-field">Prévisualiser</label>
-
 
391
                <div class="button" id="preview-field" name="preview-field" title="prévisualiser"><i class="fa fa-magic" aria-hidden="true"></i></div>
-
 
392
              </div>
-
 
393
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
-
 
394
                <label class="validate-new-fields">Valider</label>
-
 
395
                <div class="button" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-bolt" aria-hidden="true"></i></div>
-
 
396
              </div>
-
 
397
            </div>
405
            <?php endif;?>
398
 
406
 
399
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
407
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
400
 
408
 
401
          <div id="right-block" class="widget-blocks">
409
          <div id="right-block" class="widget-blocks">
402
            <div class="widget-renderer">
410
            <div class="widget-renderer">
403
              <div id="preview-background"></div>
411
              <div id="preview-background"></div>
404
 
412
 
405
              <div id="preview-header" class="row">
413
              <div id="preview-header" class="row">
406
                  <div id="preview-logo" class="col-md-4"></div>
414
                  <div id="preview-logo" class="col-md-4"></div>
407
                  <div id="preview-title" class="col-md-8">
415
                  <div id="preview-title" class="col-md-8">
408
                    <h1></h1>
416
                    <h1></h1>
409
                    <p class="message"><i class="fas fa-info-circle" style="color:#009fb8"></i> Les liens et autres balises html fonctionneront dans le widget</p>
417
                    <p class="message"><i class="fas fa-info-circle" style="color:#009fb8"></i> Les liens et autres balises html fonctionneront dans le widget</p>
410
                  </div>
418
                  </div>
411
              </div>
419
              </div>
412
 
420
 
413
              <div id="preview-messages" class="row">
421
              <div id="preview-messages" class="row">
414
 
422
 
415
                <div id="preview-description" class="col-md-6">
423
                <div id="preview-description" class="col-md-6">
416
                  <div class="">
424
                  <div class="">
417
                    <p class="preview-description"></p>
425
                    <p class="preview-description"></p>
418
                  </div>
426
                  </div>
419
 
427
 
420
                </div><!-- end #preview-description -->
428
                </div><!-- end #preview-description -->
421
 
429
 
422
                <div id="preview-aide" class="col-md-6">
430
                <div id="preview-aide" class="col-md-6">
423
                  <div class="">
431
                  <div class="">
424
                    <h3>Aide</h3>
432
                    <h3>Aide</h3>
425
                    <p>
433
                    <p>
426
                      Cet outil vous permet de partager simplement vos observations avec
434
                      Cet outil vous permet de partager simplement vos observations avec
427
                      le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
435
                      le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
428
                      (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
436
                      (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
429
                      Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
437
                      Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
430
                      <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
438
                      <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
431
                      Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
439
                      Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
432
                      Elles apparaissent immédiatement sur les
440
                      Elles apparaissent immédiatement sur les
433
                      <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
441
                      <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
434
                    </p>
442
                    </p>
435
                    <p class="discretion">
443
                    <p class="discretion">
436
                      Pour toute question ou remarque,
444
                      Pour toute question ou remarque,
437
                      <a href="https://www.tela-botanica.org/widget:reseau:remarques?service=cel&pageSource=<?php echo $url_base;?>manager?mode=<?php echo $mode . $params;?>" target="_blank" onclick="
445
                      <a href="https://www.tela-botanica.org/widget:reseau:remarques?service=cel&pageSource=<?php echo $url_base;?>manager?mode=<?php echo $mode . $params;?>" target="_blank" onclick="
438
                          javascript:window.open(
446
                          javascript:window.open(
439
                            this.getAttribute( 'href' ),
447
                            this.getAttribute( 'href' ),
440
                            'Tela Botanica - Remarques',
448
                            'Tela Botanica - Remarques',
441
                            config = 'height=700, width=640, scrollbars=yes, resizable=yes'
449
                            config = 'height=700, width=640, scrollbars=yes, resizable=yes'
442
                          );
450
                          );
443
                          return false;
451
                          return false;
444
                      ">contactez-nous</a>
452
                      ">contactez-nous</a>
445
                    </p>
453
                    </p>
446
                  </div>
454
                  </div>
447
                </div>
455
                </div>
448
              </div><!-- end #preview-aide -->
456
              </div><!-- end #preview-aide -->
449
 
457
 
450
              <div id="preview-formulaire" class="row">
458
              <div id="preview-formulaire" class="row">
451
 
459
 
452
                <form id="preview-form-observateur" role="form" autocomplete="on">
460
                <form id="preview-form-observateur" role="form" autocomplete="on">
453
 
461
 
454
                  <h2>Observateur</h2>
462
                  <h2>Observateur</h2>
455
 
463
 
456
                  <div class="row">
464
                  <div class="row">
457
                    <div id="bouton-connexion" class="col-md-6 col-sm-8">
465
                    <div id="bouton-connexion" class="col-md-6 col-sm-8">
458
                      <label for="bouton-connexion">Je me connecte à mon compte&nbsp;:</label>
466
                      <label for="bouton-connexion">Je me connecte à mon compte&nbsp;:</label>
459
                      <div class="btn btn-success mr-1 mb-1">Connexion</div>
467
                      <div class="btn btn-success mr-1 mb-1">Connexion</div>
460
                      <div class="btn btn-success mr-1 mb-1">Inscription</div>
468
                      <div class="btn btn-success mr-1 mb-1">Inscription</div>
461
                    </div>
469
                    </div>
462
                    <div id="creation-compte" class="col-md-6 col-sm-8">
470
                    <div id="creation-compte" class="col-md-6 col-sm-8">
463
                      <label for="creation-compte">Je ne souhaite pas m'inscrire&nbsp;:</label>
471
                      <label for="creation-compte">Je ne souhaite pas m'inscrire&nbsp;:</label>
464
                      <div class="btn btn-info mr-1 mb-1">Observation sans inscription</div>
472
                      <div class="btn btn-info mr-1 mb-1">Observation sans inscription</div>
465
                    </div>
473
                    </div>
466
 
474
 
467
                  </div>
475
                  </div>
468
 
476
 
469
                </form>
477
                </form>
470
 
478
 
471
                <form id="form-observation" role="form" autocomplete="on">
479
                <form id="form-observation" role="form" autocomplete="on">
472
 
480
 
473
                  <h2>Observation</h2>
481
                  <h2>Observation</h2>
474
 
482
 
475
                  <div id="zone-observation" class="row">
483
                  <div id="zone-observation" class="row">
476
 
484
 
477
                    <div class="col-md-6 row">
485
                    <div class="col-md-6 row">
478
                      <div class="col-md-12">
486
                      <div class="col-md-12">
479
                        <label for="geolocalisation-previs" id="label-geolocalisation" title="Veuillez saisir votre adresse courriel.">
487
                        <label for="geolocalisation-previs" id="label-geolocalisation" title="Veuillez saisir votre adresse courriel.">
480
                          <i class="fa fa-envelope"></i>&nbsp;Geolocalisation
488
                          <i class="fa fa-envelope"></i>&nbsp;Geolocalisation
481
                        </label>
489
                        </label>
482
                        <div id="geolocalisation-previs">
490
                        <div id="geolocalisation-previs">
483
                          <img src="<?php echo $url_base;?>modules/manager/squelettes/img/geoloc/geoloc.png" alt="geolocalisation" width="90%">
491
                          <img src="<?php echo $url_base;?>modules/manager/squelettes/img/geoloc/geoloc.png" alt="geolocalisation" width="90%">
484
                        </div>
492
                        </div>
485
                      </div>
493
                      </div>
486
 
494
 
487
                      <div class="col-md-12">
495
                      <div class="col-md-12">
488
                        <label for="milieu" id="label-milieu">
496
                        <label for="milieu" id="label-milieu">
489
                          <i class="fa fa-street-view"></i>&nbsp;Milieu
497
                          <i class="fa fa-street-view"></i>&nbsp;Milieu
490
                        </label>
498
                        </label>
491
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
499
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
492
                      </div>
500
                      </div>
493
                    </div>
501
                    </div>
494
 
502
 
495
                    <div class="col-md-6 row">
503
                    <div class="col-md-6 row">
496
                      <div class="col-md-12">
504
                      <div class="col-md-12">
497
                        <label for="date" id="label-date" title="">
505
                        <label for="date" id="label-date" title="">
498
                          <i class="fa fa-calendar"></i>&nbsp;Date de relevé
506
                          <i class="fa fa-calendar"></i>&nbsp;Date de relevé
499
                        </label>
507
                        </label>
500
                        <div class="date">
508
                        <div class="date">
501
                          <input type="date" id="date" class="form-control" name="date" title="jj/mm/aaaa" required>
509
                          <input type="date" id="date" class="form-control" name="date" title="jj/mm/aaaa" required>
502
                        </div>
510
                        </div>
503
                      </div>
511
                      </div>
504
 
512
 
505
                      <div class="col-md-12">
513
                      <div class="col-md-12">
506
                        <label for="taxon" id="label-taxon" title="">
514
                        <label for="taxon" id="label-taxon" title="">
507
                          <i class="fa fa-leaf"></i>&nbsp;Espèce<span></span>
515
                          <i class="fa fa-leaf"></i>&nbsp;Espèce<span></span>
508
                        </label>
516
                        </label>
509
                        <div class="taxon">
517
                        <div class="taxon">
510
                          <input type="text" name="taxon" id="taxon" class="form-control">
518
                          <input type="text" name="taxon" id="taxon" class="form-control">
511
                        </div>
519
                        </div>
512
                      </div>
520
                      </div>
513
 
521
 
514
                      <div class="col-md-12">
522
                      <div class="col-md-12">
515
                        <label for="certitude" id="label-certitude" title="">
523
                        <label for="certitude" id="label-certitude" title="">
516
                          <i class="fa fa-question"></i>&nbsp;Certitude
524
                          <i class="fa fa-question"></i>&nbsp;Certitude
517
                        </label>
525
                        </label>
518
                        <select id="certitude" name="certitude" class="form-control custom-select" required>
526
                        <select id="certitude" name="certitude" class="form-control custom-select" required>
519
                          <option value="" >À déterminer</option>
527
                          <option value="" >À déterminer</option>
520
                          <option value="" >Douteuse</option>
528
                          <option value="" >Douteuse</option>
521
                          <option value="" selected="selected" >Certaine</option>
529
                          <option value="" selected="selected" >Certaine</option>
522
                        </select>
530
                        </select>
523
                      </div>
531
                      </div>
524
 
532
 
525
                      <div class="col-md-12">
533
                      <div class="col-md-12">
526
                        <label for="notes" id="label-notes" title="">
534
                        <label for="notes" id="label-notes" title="">
527
                          <i class="fa fa-pen" aria-hidden="true"></i>&nbsp;Notes
535
                          <i class="fa fa-pen" aria-hidden="true"></i>&nbsp;Notes
528
                        </label>
536
                        </label>
529
                        <div class="notes">
537
                        <div class="notes">
530
                            <textarea id="notes" name="notes" class="form-control" placeholder="Vous pouvez éventuellement ajouter des informations complémentaires à votre observation."></textarea>
538
                            <textarea id="notes" name="notes" class="form-control" placeholder="Vous pouvez éventuellement ajouter des informations complémentaires à votre observation."></textarea>
531
                        </div>
539
                        </div>
532
                      </div>
540
                      </div>
533
                    </div>
541
                    </div>
534
 
542
 
535
                  </div>
543
                  </div>
536
 
544
 
537
                </form>
545
                </form>
538
 
546
 
539
                <!-- formulaire d'affichage des bouveaux champs -->
547
                <!-- formulaire d'affichage des bouveaux champs -->
540
                <form id="form-supp" role="form" autocomplete="on">
548
                <form id="form-supp" role="form" autocomplete="on">
541
                  <div id="zone-supp" class="row align-items-center">
549
                  <div id="zone-supp" class="row align-items-center">
542
                    <div class="col-md-6 preview-container row"></div>
550
                    <div class="col-md-6 preview-container row"></div>
543
                  </div>
551
                  </div>
544
                </form>
552
                </form>
545
 
553
 
546
                <!-- formulaire d'upload d'images -->
554
                <!-- formulaire d'upload d'images -->
547
                <form id="form-upload" class="" action="" method="" enctype="multipart/form-data">
555
                <form id="form-upload" class="" action="" method="" enctype="multipart/form-data">
548
                  <h2>Image(s) de cette plante</h2>
556
                  <h2>Image(s) de cette plante</h2>
549
                  <p class="miniature-info" class="discretion help-inline">
557
                  <p class="miniature-info" class="discretion help-inline">
550
                    Les photos doivent être au format JPEG et ne doivent pas excéder 5Mo chacunes.
558
                    Les photos doivent être au format JPEG et ne doivent pas excéder 5Mo chacunes.
551
                  </p>
559
                  </p>
552
                  <div>
560
                  <div>
553
                      <div class="btn btn-large btn-info mb-3">
561
                      <div class="btn btn-large btn-info mb-3">
554
                        <span class=""><i class="fas fa-download"></i>&nbsp;Ajouter une image</span>
562
                        <span class=""><i class="fas fa-download"></i>&nbsp;Ajouter une image</span>
555
                      </div>
563
                      </div>
556
                  </div>
564
                  </div>
557
                </form>
565
                </form>
558
 
566
 
559
              </div><!-- end #preview-formulaire -->
567
              </div><!-- end #preview-formulaire -->
560
 
568
 
561
            </div><!-- end #widget-renderer-->
569
            </div><!-- end #widget-renderer-->
562
 
570
 
563
          </div><!-- #widget-blocks = tout le bloc de droite-->
571
          </div><!-- #widget-blocks = tout le bloc de droite-->
564
 
572
 
565
        </div>
573
        </div>
566
      </div>
574
      </div>
567
    </div>
575
    </div>
568
    <div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
576
    <div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
569
      <div class="modal-dialog modal-dialog-centered" role="document">
577
      <div class="modal-dialog modal-dialog-centered" role="document">
570
        <div class="modal-content">
578
        <div class="modal-content">
571
          <div class="modal-header">
579
          <div class="modal-header">
572
            <h5 class="modal-title" id="help-modal-label"></h5>
580
            <h5 class="modal-title" id="help-modal-label"></h5>
573
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
581
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
574
              <span aria-hidden="true">&times;</span>
582
              <span aria-hidden="true">&times;</span>
575
            </button>
583
            </button>
576
          </div>
584
          </div>
577
          <div class="modal-body" id="print_content"></div>
585
          <div class="modal-body" id="print_content"></div>
578
          <div class="modal-footer">
586
          <div class="modal-footer">
579
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
587
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
580
          </div>
588
          </div>
581
        </div>
589
        </div>
582
      </div>
590
      </div>
583
    </div>
591
    </div>
584
    <!-- carto -->
592
    <!-- carto -->
585
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
593
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
586
    <!-- Jquery -->
594
    <!-- Jquery -->
587
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
595
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
588
    <!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
596
    <!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
589
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
597
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
590
    <!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> -->
598
    <!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> -->
591
    <!-- Jquery Plugins -->
599
    <!-- Jquery Plugins -->
592
    <!-- Jquery Validate : nécessaire pour la validation des formulaires -->
600
    <!-- Jquery Validate : nécessaire pour la validation des formulaires -->
593
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
601
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
594
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
602
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
595
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
603
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
596
    <!-- Jquery Form :nécessaire pour l'upload des images -->
604
    <!-- Jquery Form :nécessaire pour l'upload des images -->
597
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
605
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
598
    <!-- Bootstrap -->
606
    <!-- Bootstrap -->
599
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
607
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
600
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
608
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
601
    <script type="text/javascript" src="<?php echo $url_base;?>modules/manager/squelettes/js/manager.js"></script>
609
   <!--  <script type="text/javascript" src="<?php echo $url_base;?>modules/manager/squelettes/js/manager.js"></script> -->
-
 
610
    <script type="module" src="<?php echo $url_base; ?>modules/manager/squelettes/js/manager.js"></script>
-
 
611
    <script type="text/javascript">
-
 
612
      const CHAMPS_SUPP_JSON = <?php echo $widget['chpSupp'][$widget['projet']]['champs-supp-json'] ?? '""';?>;
-
 
613
      const URLS_IMAGES = "<?php echo $url_base;?>modules/manager/squelettes/img/images_projets/<?php echo $widget['projet'];?>/";
-
 
614
    </script>
602
      <!-- Barre de navigation -->
615
      <!-- Barre de navigation -->
603
    <?php if ( $bar !== false ) : ?>
616
    <?php if ( $bar !== false ) : ?>
604
      <script src="<?php echo $url_script_navigation;?>"></script>
617
      <script src="<?php echo $url_script_navigation;?>"></script>
605
    <?php endif;?>
618
    <?php endif;?>
606
  </body>
619
  </body>
607
</html>
620
</html>