Subversion Repositories eFlore/Applications.cel

Rev

Rev 3812 | Rev 3878 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3812 Rev 3875
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
 
58
 
59
              <div class="register-section row" id="basic-details-section">
59
              <div class="register-section row" id="basic-details-section">
60
                <h2>Meta-données</h2>
60
                <h2>Meta-données</h2>
61
 
61
 
62
                <input type="text" name="email" id="email" placeholder="Your email" title="laisser ce champ vide" autocomplete="off" tabindex="-1" />
62
                <input type="text" name="email" id="email" placeholder="Your email" title="laisser ce champ vide" autocomplete="off" tabindex="-1" />
63
 
63
 
64
                <div class="col-sm-12 mb-3">
64
                <div class="col-sm-12 mb-3">
65
                  <label for="projet">Projet&nbsp;*</label>
65
                  <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;.">
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;.">
67
                </div>
67
                </div>
68
 
68
 
69
                <div class="col-sm-12 mb-3">
69
                <div class="col-sm-12 mb-3">
70
                  <label for="motscles">Autres mots-clés</label>
70
                  <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'] . '"' : "";?> />
71
                  <input type="text" name="motscles" id="motscles" class="form-control" <?php echo ( $mode === 'modification' ) ? 'value="' . $widget['motscles'] . '"' : "";?> />
72
                </div>
72
                </div>
73
 
73
 
74
                <div class="col-sm-12 mb-3">
74
                <div class="col-sm-12 mb-3">
75
                  <label for="type">Type de widget</label>
75
                  <label for="type">Type de widget</label>
76
                  <select  id="type" name="type" class="form-control custom-select">
76
                  <select  id="type" name="type" class="form-control custom-select">
77
                    <option value=""> ----</option>
77
                    <option value=""> ----</option>
78
                    <?php foreach ( $type as $id => $projet ) : ?>
78
                    <?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>
79
                      <option <?php echo ( isset( $widget['projet'] ) && $projet['projet'] === $widget['projet'] ) ? 'selected="selected"' : '';?> value="<?php echo $projet['projet'];?>"><?php echo $projet['projet'];?></option>
80
                    <?php endforeach;?>
80
                    <?php endforeach;?>
81
                  </select>
81
                  </select>
82
                </div>
82
                </div>
83
 
83
 
84
 
84
 
85
                  <div class="col-sm-12 radio mb-3">
85
                  <div class="col-sm-12 radio mb-3">
86
                    <label for="est_type" class="radio-label">
86
                    <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"' : '';?>>
87
                      <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
88
                      Ce widget est un widget type
89
                    </label>
89
                    </label>
90
                  </div>
90
                  </div>
91
 
91
 
92
                <div class="col-sm-12 mb-3">
92
                <div class="col-sm-12 mb-3">
93
                  <label for="langue">Langue</label>
93
                  <label for="langue">Langue</label>
94
                  <?php if ( $mode === 'modification' ) : ?>
94
                  <?php if ( $mode === 'modification' ) : ?>
95
                    <input id="langue" name="langue" class="form-control" readonly value="<?php echo $widget['langue'];?>">
95
                    <input id="langue" name="langue" class="form-control" readonly value="<?php echo $widget['langue'];?>">
96
                  <?php else : ?>
96
                  <?php else : ?>
97
                    <select id="langue" name="langue" class="form-control custom-select">
97
                    <select id="langue" name="langue" class="form-control custom-select">
98
                    <?php foreach ( $langues as $code => $langue ) : ?>
98
                    <?php foreach ( $langues as $code => $langue ) : ?>
99
                      <option value="<?php echo $code;?>" <?php echo ( $code === 'fr' ) ? 'selected' : '';?>><?php echo $langue['nom'];?></option>
99
                      <option value="<?php echo $code;?>" <?php echo ( $code === 'fr' ) ? 'selected' : '';?>><?php echo $langue['nom'];?></option>
100
                    <?php endforeach;?>
100
                    <?php endforeach;?>
101
                    </select>
101
                    </select>
102
                  <?php endif;?>
102
                  <?php endif;?>
103
                </div>
103
                </div>
104
              </div><!-- end #basic-details-section -->
104
              </div><!-- end #basic-details-section -->
105
 
105
 
106
 
106
 
107
              <div class="register-section row" id="profile-details-description-section">
107
              <div class="register-section row" id="profile-details-description-section">
108
                <h2>Description</h2>
108
                <h2>Description</h2>
109
                <div class="col-sm-12 mb-3">
109
                <div class="col-sm-12 mb-3">
110
                  <label for="titre">Titre</label>
110
                  <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']) : '';?>">
111
                  <input type="text" name="titre" id="titre" class="form-control" value="<?php echo isset( $widget['titre'] ) ? htmlspecialchars( $widget['titre']) : '';?>">
112
                </div>
112
                </div>
113
 
113
 
114
                <div class="input-file-row row">
114
                <div class="input-file-row row">
115
                  <div class="input-file-container col-sm-10">
115
                  <div class="input-file-container col-sm-10">
116
 
116
 
117
                    <?php
117
                    <?php
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    = '';
123
                        $info_hidden    = '';
124
                      else :
124
                      else :
125
                        $info_file_name = [];
125
                        $info_file_name = [];
126
                        $info_src       = '';
126
                        $info_src       = '';
127
                        $info_img       = '';
127
                        $info_img       = '';
128
                        $info_hidden    = ' hidden';
128
                        $info_hidden    = ' hidden';
129
                      endif;
129
                      endif;
130
                    ?>
130
                    ?>
131
 
131
 
132
                    <input type="file" class="input-file" name="info" id="info" accept="image/*">
132
                    <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>
133
                    <label for="info" class="label-file "><i class="fas fa-download"></i> Aide dans le titre</label>
134
                  </div>
134
                  </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>
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>
136
                  <div class="file-return info <?php echo $info_hidden;?>">
136
                  <div class="file-return info <?php echo $info_hidden;?>">
137
                    <?php echo $info_file_name;?>
137
                    <?php echo $info_file_name;?>
138
                    <?php echo $info_img;?>
138
                    <?php echo $info_img;?>
139
                  </div>
139
                  </div>
140
                </div>
140
                </div>
141
 
141
 
142
                <div class="col-sm-12 mb-3">
142
                <div class="col-sm-12 mb-3">
143
                  <label for="description">Description</label>
143
                  <label for="description">Description</label>
144
                  <textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? htmlspecialchars( $widget['description'] ) : '';?></textarea>
144
                  <textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? htmlspecialchars( $widget['description'] ) : '';?></textarea>
145
                </div>
145
                </div>
146
 
146
 
147
                <div class="input-file-row row">
147
                <div class="input-file-row row">
148
                  <div class="input-file-container col-sm-10">
148
                  <div class="input-file-container col-sm-10">
149
 
149
 
150
                    <?php
150
                    <?php
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    = '';
156
                        $logo_hidden    = '';
157
                      else :
157
                      else :
158
                        $logo_file_name = [];
158
                        $logo_file_name = [];
159
                        $logo_src       = '';
159
                        $logo_src       = '';
160
                        $logo_img       = '';
160
                        $logo_img       = '';
161
                        $logo_hidden    = ' hidden';
161
                        $logo_hidden    = ' hidden';
162
                      endif;
162
                      endif;
163
                    ?>
163
                    ?>
164
 
164
 
165
                    <input type="file" class="input-file" name="logo" id="logo"  accept="image/*" value="">
165
                    <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>
166
                    <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
167
                  </div>
167
                  </div>
168
                  <div class="btn btn-danger btn-sm remove-file" name="remove-file" title="Supprimer le fichier">
168
                  <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>
169
                    <i class="fas fa-times" aria-hidden="true"></i>
170
                  </div>
170
                  </div>
171
                  <div class="file-return logo<?php echo $logo_hidden;?>">
171
                  <div class="file-return logo<?php echo $logo_hidden;?>">
172
                    <?php echo $logo_file_name;?>
172
                    <?php echo $logo_file_name;?>
173
                    <?php echo $logo_img;?>
173
                    <?php echo $logo_img;?>
174
                  </div>
174
                  </div>
175
                </div>
175
                </div>
176
 
176
 
177
                <div class="input-file-row row">
177
                <div class="input-file-row row">
178
                  <div class="input-file-container col-sm-10">
178
                  <div class="input-file-container col-sm-10">
179
 
179
 
180
                    <?php
180
                    <?php
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    = '';
186
                        $image_fond_hidden    = '';
187
                      else :
187
                      else :
188
                        $image_fond_file_name = [];
188
                        $image_fond_file_name = [];
189
                        $image_fond_src       = '';
189
                        $image_fond_src       = '';
190
                        $image_fond_img       = '';
190
                        $image_fond_img       = '';
191
                        $image_fond_hidden    = ' hidden';
191
                        $image_fond_hidden    = ' hidden';
192
                      endif;
192
                      endif;
193
                    ?>
193
                    ?>
194
 
194
 
195
                    <input type="file" class="input-file" name="image_fond" id="image_fond" accept="image/*">
195
                    <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>
196
                    <label for="image_fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
197
                  </div>
197
                  </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>
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>
199
                  <div class="file-return image_fond <?php echo $image_fond_hidden;?>">
199
                  <div class="file-return image_fond <?php echo $image_fond_hidden;?>">
200
                    <?php echo $image_fond_file_name;?>
200
                    <?php echo $image_fond_file_name;?>
201
                    <?php echo $image_fond_img;?>
201
                    <?php echo $image_fond_img;?>
202
                  </div>
202
                  </div>
203
                </div>
203
                </div>
204
 
204
 
205
              </div><!-- end #profile-details-description-section -->
205
              </div><!-- end #profile-details-description-section -->
206
 
206
 
207
              <div class="register-section row" id="profile-details-fields-section">
207
              <div class="register-section row" id="profile-details-fields-section">
208
                <h2>Champs</h2>
208
                <h2>Champs</h2>
209
 
209
 
210
                <div class="col-sm-12 mb-3">
210
                <div class="col-sm-12 mb-3">
211
                  <label for="type_localisation">Type de localisation</label>
211
                  <label for="type_localisation">Type de localisation</label>
212
                  <select  id="type_localisation" name="type_localisation" class="form-control custom-select">
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>
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>
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>
215
                  </select>
215
                  </select>
216
                </div>
216
                </div>
217
 
217
 
218
                <div class="col-sm-12 mb-3">
218
                <div class="col-sm-12 mb-3">
219
                  <label for="milieux">Milieux</label>
219
                  <label for="milieux">Milieux</label>
220
                  <p class="message">
220
                  <p class="message">
221
                    Liste de milieux séparés par un ";".
221
                    Liste de milieux séparés par un ";".
222
                    <br>
222
                    <br>
223
                    <i class="fas fa-pen"></i>&nbsp;Pour ajouter une option "autre" ajoutez le mot "autre" dans votre liste de milieux.
223
                    <i class="fas fa-pen"></i>&nbsp;Pour ajouter une option "autre" ajoutez le mot "autre" dans votre liste de milieux.
224
                    <br>
224
                    <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;).
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;).
226
                    <br>
226
                    <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.
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.
228
                  </p>
228
                  </p>
229
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : '';?>">
229
                  <input type="text" name="milieux" id="milieux" class="form-control" value="<?php echo isset( $widget['milieux'] ) ? $widget['milieux'] : '';?>">
230
                </div>
230
                </div>
231
 
231
 
232
                <div class="col-sm-12 mb-3">
232
                <div class="col-sm-12 mb-3">
233
                  <label for="type_especes">Type liste espèce&nbsp;*</label>
233
                  <label for="type_especes">Type liste espèce&nbsp;*</label>
234
                  <select  id="type_especes" name="type_especes" required class="form-control custom-select">
234
                  <select  id="type_especes" name="type_especes" required class="form-control custom-select">
235
                    <option selected="selected" value="referentiel">Référentiel</option>
235
                    <option selected="selected" value="referentiel">Référentiel</option>
236
                    <option value="liste">Liste</option>
236
                    <option value="liste">Liste</option>
237
                    <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
237
                    <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
238
                    <option value="fixe">Espèce fixée</option>
238
                    <option value="fixe">Espèce fixée</option>
239
                  </select>
239
                  </select>
240
                </div>
240
                </div>
241
 
241
 
242
                <div class="col-sm-12 mb-3">
242
                <div class="col-sm-12 mb-3">
243
                  <label for="referentiel">Référentiel&nbsp;*</label>
243
                  <label for="referentiel">Référentiel&nbsp;*</label>
244
                  <p class="message">
244
                  <p class="message">
245
                    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;:
245
                    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;:
246
                    <br>
246
                    <br>
247
                    <code>référentiel:num_nom</code>
247
                    <code>référentiel:num_nom</code>
248
                    <br>
248
                    <br>
249
                    ex&nbsp;: <code>bdtfx:182</code>
249
                    ex&nbsp;: <code>bdtfx:182</code>
250
                  </p>
250
                  </p>
251
                  <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'] : '';?>">
251
                  <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'] : '';?>">
252
                </div>
252
                </div>
253
 
253
 
254
                <!-- Bouton fichier-type à compléter -->
254
                <!-- Bouton fichier-type à compléter -->
255
                <div class="input-file-row row">
255
                <div class="input-file-row row">
256
                  <div class="input-file-container col-sm-10">
256
                  <div class="input-file-container col-sm-10">
257
                    <input type="file" class="input-file" name="especes" id="especes">
257
                    <input type="file" class="input-file" name="especes" id="especes">
258
                    <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label>
258
                    <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label>
259
                    <p class="message mt-2">
259
                    <p class="message mt-2">
260
                      <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
260
                      <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
261
                      &nbsp;Format&nbsp;: CSV ou TSV UTF-8.
261
                      &nbsp;Format&nbsp;: CSV ou TSV UTF-8.
262
                      <br>
262
                      <br>
263
                      Séparateur&nbsp;: Tabulation.
263
                      Séparateur&nbsp;: Tabulation.
264
                    </p>
264
                    </p>
265
                  </div>
265
                  </div>
266
                  <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>
266
                  <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>
267
                  <div class="file-return especes hidden"></div>
267
                  <div class="file-return especes hidden"></div>
268
                </div>
268
                </div>
269
                <div class="col-sm-12 mb-3">
269
                <div class="col-sm-12 mb-3">
270
                  <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>
270
                  <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>
271
                </div>
271
                </div>
272
              </div><!-- end #profile-details-fields-section -->
272
              </div><!-- end #profile-details-fields-section -->
273
 
273
 
274
              <!--localisation-->
274
              <!--localisation-->
275
              <input type="hidden" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? htmlspecialchars($widget['localisation']) : '';?>">
275
              <input type="hidden" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? htmlspecialchars($widget['localisation']) : '';?>">
276
              <!--Submit-->
276
              <!--Submit-->
277
              <div class="submit complete-registration" id="submit-button">
277
              <div class="submit complete-registration" id="submit-button">
278
                <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>
278
                <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>
279
              </div>
279
              </div>
280
              <!--Submit-->
280
              <!--Submit-->
281
 
281
 
282
            </form><!-- end #new-widget-form -->
282
            </form><!-- end #new-widget-form -->
283
 
283
 
284
            <form id="form-geolocalisation" autocomplete="off">
284
            <form id="form-geolocalisation" autocomplete="off">
285
              <div class="row mb-3">
285
              <div class="row mb-3">
286
                <label for="geolocalisation" class="obligatoire has-tooltip col-sm-12" data-toggle="tooltip" title="">
286
                <label for="geolocalisation" class="obligatoire has-tooltip col-sm-12" data-toggle="tooltip" title="">
287
                  Geolocalisation&nbsp: Déterminer un point gps (facultatif)
287
                  Geolocalisation&nbsp: Déterminer un point gps (facultatif)
288
                </label>
288
                </label>
289
              </div>
289
              </div>
290
              <div id="geoloc" class="geoloc">
290
              <div id="geoloc" class="geoloc">
291
                <tb-geolocation-element
291
                <tb-geolocation-element
292
                  id="tb-geolocation"
292
                  id="tb-geolocation"
293
                  layer='osm'
293
                  layer='osm'
294
                  zoom_init="4"
294
                  zoom_init="4"
295
                  lat_init="46.5"
295
                  lat_init="46.5"
296
                  lng_init="2.9"
296
                  lng_init="2.9"
297
                  marker="true"
297
                  marker="true"
298
                  polyline="false"
298
                  polyline="false"
299
                  polygon="false"
299
                  polygon="false"
300
                  show_lat_lng_elevation_inputs="true"
300
                  show_lat_lng_elevation_inputs="true"
301
                  osm_class_filter=""
301
                  osm_class_filter=""
302
                  geometry_filter="point"
302
                  geometry_filter="point"
303
                  elevation_provider="mapquest"
303
                  elevation_provider="mapquest"
304
                  map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
304
                  map_quest_api_key="mG6oU5clZHRHrOSnAV0QboFI7ahnGg34"
305
                  height="400px"
305
                  height="400px"
306
                >
306
                >
307
                </tb-geolocation-element>
307
                </tb-geolocation-element>
308
              </div>
308
              </div>
309
              <div class="control-group mt-3 mb-3">
309
              <div class="control-group mt-3 mb-3">
310
                <div class="row">
310
                <div class="row">
311
                  <div id="geoloc-datas" class="col-sm-12 row">
311
                  <div id="geoloc-datas" class="col-sm-12 row">
312
                    <div class="col-sm-6 mb-3">
312
                    <div class="col-sm-6 mb-3">
313
                      <label for="latitude">Latitude</label>
313
                      <label for="latitude">Latitude</label>
314
                      <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="">
314
                      <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="">
315
                    </div>
315
                    </div>
316
                    <div class="col-sm-6 mb-3">
316
                    <div class="col-sm-6 mb-3">
317
                      <label for="longitude">Longitude</label>
317
                      <label for="longitude">Longitude</label>
318
                      <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="">
318
                      <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="">
319
                    </div>
319
                    </div>
320
                    <div class="col-sm-12 mb-3">
320
                    <div class="col-sm-12 mb-3">
321
                      <label for="zoom">Zoom (indépendant des coordonnées)</label>
321
                      <label for="zoom">Zoom (indépendant des coordonnées)</label>
322
                      <p class="message">
322
                      <p class="message">
323
                        Quelques exemples de précision zoom&nbsp;:<br>
323
                        Quelques exemples de précision zoom&nbsp;:<br>
324
                        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).
324
                        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).
325
                      </p>
325
                      </p>
326
                      <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=""  />
326
                      <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=""  />
327
                    </div>
327
                    </div>
-
 
328
                    <div class="col-sm-12 mb-3">
-
 
329
                  		<label for="fond_carte">Fond de carte</label>
-
 
330
                  		<select  id="fond_carte" name="fond_carte" class="form-control custom-select">
-
 
331
                    		<option value="<?php echo ( isset( $widget['fond_carte'] ) ) ? $widget['fond_carte'] : 'OSM';?>"><?php echo ( isset( $widget['fond_carte'] ) ) ? $widget['fond_carte'] : 'OSM';?></option>
-
 
332
                    		<option value="<?php echo ( isset( $widget['fond_carte'] ) && $widget['fond_carte'] === 'aerienne' ) ? 'OSM' : 'aerienne';?>"><?php echo ( isset( $widget['fond_carte'] ) && $widget['fond_carte'] === 'aerienne') ? 'OSM' : 'aerienne';?></option>
-
 
333
                  		</select>
-
 
334
                	</div>
-
 
335
                	 <div class="col-sm-12 mb-3">
-
 
336
                  		<label for="adresse">Adresse obligatoire</label>
-
 
337
                  		<select  id="adresse" name="adresse" class="form-control custom-select">
-
 
338
                    		<option value="0" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
339
                    		<option value="1" <?php echo ( isset( $widget['adresse'] ) && $widget['adresse'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
340
                  		</select>
-
 
341
                	</div>
-
 
342
                	<div class="col-sm-12 mb-3">
-
 
343
                  		<label for="photo_obligatoire">Photo obligatoire</label>
-
 
344
                  		<select  id="photo_obligatoire" name="photo_obligatoire" class="form-control custom-select">
-
 
345
                    		<option value="0" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '0' ) ? 'selected' : '';?>>Non</option>
-
 
346
                    		<option value="1" <?php echo ( isset( $widget['photo_obligatoire'] ) && $widget['photo_obligatoire'] === '1' ) ? 'selected' : '';?>>Oui</option>
-
 
347
                  		</select>
-
 
348
                	</div>
328
                  </div>
349
                  </div>
329
                </div>
350
                </div>
330
              </div>
351
              </div>
331
            </form><!-- end #form-geolocalisation -->
352
            </form><!-- end #form-geolocalisation -->
332
 
353
 
333
            <form id="new-fields" autocomplete="off">
354
            <form id="new-fields" autocomplete="off">
334
              <h2>Ajouter des champs</h2>
355
              <h2>Ajouter des champs</h2>
335
              <p class="message">
356
              <p class="message">
336
                <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
357
                <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
337
                &nbsp;Attention&nbsp;:
358
                &nbsp;Attention&nbsp;:
338
                <br>
359
                <br>
339
                <i class="fa fa-bolt" aria-hidden="true"  style="color:#B3C954"></i>
360
                <i class="fa fa-bolt" aria-hidden="true"  style="color:#B3C954"></i>
340
                &nbsp;Le bouton "Valider" sert à valider les champs supplémentaires uniquement
361
                &nbsp;Le bouton "Valider" sert à valider les champs supplémentaires uniquement
341
                <br>
362
                <br>
342
                <i class="fas fa-trophy" aria-hidden="true"  style="color:#B3C954"></i>
363
                <i class="fas fa-trophy" aria-hidden="true"  style="color:#B3C954"></i>
343
                &nbsp;Le bouton "Terminer" sert à envoyer la totalité du nouveau widget
364
                &nbsp;Le bouton "Terminer" sert à envoyer la totalité du nouveau widget
344
              </p>
365
              </p>
345
            </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
366
            </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
346
 
367
 
347
            <div id="new-fields-buttons" class="row">
368
            <div id="new-fields-buttons" class="row">
348
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
369
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
349
                <label class="add-fields">Ajouter</label>
370
                <label class="add-fields">Ajouter</label>
350
                <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
371
                <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
351
              </div>
372
              </div>
352
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
373
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
353
                <label for="preview-field">Prévisualiser</label>
374
                <label for="preview-field">Prévisualiser</label>
354
                <div class="button" id="preview-field" name="preview-field" title="prévisualiser"><i class="fa fa-magic" aria-hidden="true"></i></div>
375
                <div class="button" id="preview-field" name="preview-field" title="prévisualiser"><i class="fa fa-magic" aria-hidden="true"></i></div>
355
              </div>
376
              </div>
356
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
377
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
357
                <label class="validate-new-fields">Valider</label>
378
                <label class="validate-new-fields">Valider</label>
358
                <div class="button" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-bolt" aria-hidden="true"></i></div>
379
                <div class="button" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-bolt" aria-hidden="true"></i></div>
359
              </div>
380
              </div>
360
            </div>
381
            </div>
361
 
382
 
362
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
383
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
363
 
384
 
364
          <div id="right-block" class="widget-blocks">
385
          <div id="right-block" class="widget-blocks">
365
            <div class="widget-renderer">
386
            <div class="widget-renderer">
366
              <div id="preview-background"></div>
387
              <div id="preview-background"></div>
367
 
388
 
368
              <div id="preview-header" class="row">
389
              <div id="preview-header" class="row">
369
                  <div id="preview-logo" class="col-md-4"></div>
390
                  <div id="preview-logo" class="col-md-4"></div>
370
                  <div id="preview-title" class="col-md-8">
391
                  <div id="preview-title" class="col-md-8">
371
                    <h1></h1>
392
                    <h1></h1>
372
                    <p class="message"><i class="fas fa-info-circle" style="color:#009fb8"></i> Les liens et autres balises html fonctionneront dans le widget</p>
393
                    <p class="message"><i class="fas fa-info-circle" style="color:#009fb8"></i> Les liens et autres balises html fonctionneront dans le widget</p>
373
                  </div>
394
                  </div>
374
              </div>
395
              </div>
375
 
396
 
376
              <div id="preview-messages" class="row">
397
              <div id="preview-messages" class="row">
377
 
398
 
378
                <div id="preview-description" class="col-md-6">
399
                <div id="preview-description" class="col-md-6">
379
                  <div class="">
400
                  <div class="">
380
                    <p class="preview-description"></p>
401
                    <p class="preview-description"></p>
381
                  </div>
402
                  </div>
382
 
403
 
383
                </div><!-- end #preview-description -->
404
                </div><!-- end #preview-description -->
384
 
405
 
385
                <div id="preview-aide" class="col-md-6">
406
                <div id="preview-aide" class="col-md-6">
386
                  <div class="">
407
                  <div class="">
387
                    <h3>Aide</h3>
408
                    <h3>Aide</h3>
388
                    <p>
409
                    <p>
389
                      Cet outil vous permet de partager simplement vos observations avec
410
                      Cet outil vous permet de partager simplement vos observations avec
390
                      le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
411
                      le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
391
                      (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
412
                      (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
392
                      Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
413
                      Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
393
                      <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
414
                      <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
394
                      Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
415
                      Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
395
                      Elles apparaissent immédiatement sur les
416
                      Elles apparaissent immédiatement sur les
396
                      <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
417
                      <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
397
                    </p>
418
                    </p>
398
                    <p class="discretion">
419
                    <p class="discretion">
399
                      Pour toute question ou remarque,
420
                      Pour toute question ou remarque,
400
                      <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="
421
                      <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="
401
                          javascript:window.open(
422
                          javascript:window.open(
402
                            this.getAttribute( 'href' ),
423
                            this.getAttribute( 'href' ),
403
                            'Tela Botanica - Remarques',
424
                            'Tela Botanica - Remarques',
404
                            config = 'height=700, width=640, scrollbars=yes, resizable=yes'
425
                            config = 'height=700, width=640, scrollbars=yes, resizable=yes'
405
                          );
426
                          );
406
                          return false;
427
                          return false;
407
                      ">contactez-nous</a>
428
                      ">contactez-nous</a>
408
                    </p>
429
                    </p>
409
                  </div>
430
                  </div>
410
                </div>
431
                </div>
411
              </div><!-- end #preview-aide -->
432
              </div><!-- end #preview-aide -->
412
 
433
 
413
              <div id="preview-formulaire" class="row">
434
              <div id="preview-formulaire" class="row">
414
 
435
 
415
                <form id="preview-form-observateur" role="form" autocomplete="on">
436
                <form id="preview-form-observateur" role="form" autocomplete="on">
416
 
437
 
417
                  <h2>Observateur</h2>
438
                  <h2>Observateur</h2>
418
 
439
 
419
                  <div class="row">
440
                  <div class="row">
420
                    <div id="bouton-connexion" class="col-md-6 col-sm-8">
441
                    <div id="bouton-connexion" class="col-md-6 col-sm-8">
421
                      <label for="bouton-connexion">Je me connecte à mon compte&nbsp;:</label>
442
                      <label for="bouton-connexion">Je me connecte à mon compte&nbsp;:</label>
422
                      <div class="btn btn-success mr-1 mb-1">Connexion</div>
443
                      <div class="btn btn-success mr-1 mb-1">Connexion</div>
423
                      <div class="btn btn-success mr-1 mb-1">Inscription</div>
444
                      <div class="btn btn-success mr-1 mb-1">Inscription</div>
424
                    </div>
445
                    </div>
425
                    <div id="creation-compte" class="col-md-6 col-sm-8">
446
                    <div id="creation-compte" class="col-md-6 col-sm-8">
426
                      <label for="creation-compte">Je ne souhaite pas m'inscrire&nbsp;:</label>
447
                      <label for="creation-compte">Je ne souhaite pas m'inscrire&nbsp;:</label>
427
                      <div class="btn btn-info mr-1 mb-1">Observation sans inscription</div>
448
                      <div class="btn btn-info mr-1 mb-1">Observation sans inscription</div>
428
                    </div>
449
                    </div>
429
 
450
 
430
                  </div>
451
                  </div>
431
 
452
 
432
                </form>
453
                </form>
433
 
454
 
434
                <form id="form-observation" role="form" autocomplete="on">
455
                <form id="form-observation" role="form" autocomplete="on">
435
 
456
 
436
                  <h2>Observation</h2>
457
                  <h2>Observation</h2>
437
 
458
 
438
                  <div id="zone-observation" class="row">
459
                  <div id="zone-observation" class="row">
439
 
460
 
440
                    <div class="col-md-6 row">
461
                    <div class="col-md-6 row">
441
                      <div class="col-md-12">
462
                      <div class="col-md-12">
442
                        <label for="geolocalisation-previs" id="label-geolocalisation" title="Veuillez saisir votre adresse courriel.">
463
                        <label for="geolocalisation-previs" id="label-geolocalisation" title="Veuillez saisir votre adresse courriel.">
443
                          <i class="fa fa-envelope"></i>&nbsp;Geolocalisation
464
                          <i class="fa fa-envelope"></i>&nbsp;Geolocalisation
444
                        </label>
465
                        </label>
445
                        <div id="geolocalisation-previs">
466
                        <div id="geolocalisation-previs">
446
                          <img src="<?php echo $url_base;?>modules/manager/squelettes/img/geoloc/geoloc.png" alt="geolocalisation" width="90%">
467
                          <img src="<?php echo $url_base;?>modules/manager/squelettes/img/geoloc/geoloc.png" alt="geolocalisation" width="90%">
447
                        </div>
468
                        </div>
448
                      </div>
469
                      </div>
449
 
470
 
450
                      <div class="col-md-12">
471
                      <div class="col-md-12">
451
                        <label for="milieu" id="label-milieu">
472
                        <label for="milieu" id="label-milieu">
452
                          <i class="fa fa-street-view"></i>&nbsp;Milieu
473
                          <i class="fa fa-street-view"></i>&nbsp;Milieu
453
                        </label>
474
                        </label>
454
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
475
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
455
                      </div>
476
                      </div>
456
                    </div>
477
                    </div>
457
 
478
 
458
                    <div class="col-md-6 row">
479
                    <div class="col-md-6 row">
459
                      <div class="col-md-12">
480
                      <div class="col-md-12">
460
                        <label for="date" id="label-date" title="">
481
                        <label for="date" id="label-date" title="">
461
                          <i class="fa fa-calendar"></i>&nbsp;Date de relevé
482
                          <i class="fa fa-calendar"></i>&nbsp;Date de relevé
462
                        </label>
483
                        </label>
463
                        <div class="date">
484
                        <div class="date">
464
                          <input type="date" id="date" class="form-control" name="date" title="jj/mm/aaaa" required>
485
                          <input type="date" id="date" class="form-control" name="date" title="jj/mm/aaaa" required>
465
                        </div>
486
                        </div>
466
                      </div>
487
                      </div>
467
 
488
 
468
                      <div class="col-md-12">
489
                      <div class="col-md-12">
469
                        <label for="taxon" id="label-taxon" title="">
490
                        <label for="taxon" id="label-taxon" title="">
470
                          <i class="fa fa-leaf"></i>&nbsp;Espèce<span></span>
491
                          <i class="fa fa-leaf"></i>&nbsp;Espèce<span></span>
471
                        </label>
492
                        </label>
472
                        <div class="taxon">
493
                        <div class="taxon">
473
                          <input type="text" name="taxon" id="taxon" class="form-control">
494
                          <input type="text" name="taxon" id="taxon" class="form-control">
474
                        </div>
495
                        </div>
475
                      </div>
496
                      </div>
476
 
497
 
477
                      <div class="col-md-12">
498
                      <div class="col-md-12">
478
                        <label for="certitude" id="label-certitude" title="">
499
                        <label for="certitude" id="label-certitude" title="">
479
                          <i class="fa fa-question"></i>&nbsp;Certitude
500
                          <i class="fa fa-question"></i>&nbsp;Certitude
480
                        </label>
501
                        </label>
481
                        <select id="certitude" name="certitude" class="form-control custom-select" required>
502
                        <select id="certitude" name="certitude" class="form-control custom-select" required>
482
                          <option value="" >À déterminer</option>
503
                          <option value="" >À déterminer</option>
483
                          <option value="" >Douteuse</option>
504
                          <option value="" >Douteuse</option>
484
                          <option value="" selected="selected" >Certaine</option>
505
                          <option value="" selected="selected" >Certaine</option>
485
                        </select>
506
                        </select>
486
                      </div>
507
                      </div>
487
 
508
 
488
                      <div class="col-md-12">
509
                      <div class="col-md-12">
489
                        <label for="notes" id="label-notes" title="">
510
                        <label for="notes" id="label-notes" title="">
490
                          <i class="fa fa-pen" aria-hidden="true"></i>&nbsp;Notes
511
                          <i class="fa fa-pen" aria-hidden="true"></i>&nbsp;Notes
491
                        </label>
512
                        </label>
492
                        <div class="notes">
513
                        <div class="notes">
493
                            <textarea id="notes" name="notes" class="form-control" placeholder="Vous pouvez éventuellement ajouter des informations complémentaires à votre observation."></textarea>
514
                            <textarea id="notes" name="notes" class="form-control" placeholder="Vous pouvez éventuellement ajouter des informations complémentaires à votre observation."></textarea>
494
                        </div>
515
                        </div>
495
                      </div>
516
                      </div>
496
                    </div>
517
                    </div>
497
 
518
 
498
                  </div>
519
                  </div>
499
 
520
 
500
                </form>
521
                </form>
501
 
522
 
502
                <!-- formulaire d'affichage des bouveaux champs -->
523
                <!-- formulaire d'affichage des bouveaux champs -->
503
                <form id="form-supp" role="form" autocomplete="on">
524
                <form id="form-supp" role="form" autocomplete="on">
504
                  <div id="zone-supp" class="row align-items-center">
525
                  <div id="zone-supp" class="row align-items-center">
505
                    <div class="col-md-6 preview-container row"></div>
526
                    <div class="col-md-6 preview-container row"></div>
506
                  </div>
527
                  </div>
507
                </form>
528
                </form>
508
 
529
 
509
                <!-- formulaire d'upload d'images -->
530
                <!-- formulaire d'upload d'images -->
510
                <form id="form-upload" class="" action="" method="" enctype="multipart/form-data">
531
                <form id="form-upload" class="" action="" method="" enctype="multipart/form-data">
511
                  <h2>Image(s) de cette plante</h2>
532
                  <h2>Image(s) de cette plante</h2>
512
                  <p class="miniature-info" class="discretion help-inline">
533
                  <p class="miniature-info" class="discretion help-inline">
513
                    Les photos doivent être au format JPEG et ne doivent pas excéder 5Mo chacunes.
534
                    Les photos doivent être au format JPEG et ne doivent pas excéder 5Mo chacunes.
514
                  </p>
535
                  </p>
515
                  <div>
536
                  <div>
516
                      <div class="btn btn-large btn-info mb-3">
537
                      <div class="btn btn-large btn-info mb-3">
517
                        <span class=""><i class="fas fa-download"></i>&nbsp;Ajouter une image</span>
538
                        <span class=""><i class="fas fa-download"></i>&nbsp;Ajouter une image</span>
518
                      </div>
539
                      </div>
519
                  </div>
540
                  </div>
520
                </form>
541
                </form>
521
 
542
 
522
              </div><!-- end #preview-formulaire -->
543
              </div><!-- end #preview-formulaire -->
523
 
544
 
524
            </div><!-- end #widget-renderer-->
545
            </div><!-- end #widget-renderer-->
525
 
546
 
526
          </div><!-- #widget-blocks = tout le bloc de droite-->
547
          </div><!-- #widget-blocks = tout le bloc de droite-->
527
 
548
 
528
        </div>
549
        </div>
529
      </div>
550
      </div>
530
    </div>
551
    </div>
531
    <div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
552
    <div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
532
      <div class="modal-dialog modal-dialog-centered" role="document">
553
      <div class="modal-dialog modal-dialog-centered" role="document">
533
        <div class="modal-content">
554
        <div class="modal-content">
534
          <div class="modal-header">
555
          <div class="modal-header">
535
            <h5 class="modal-title" id="help-modal-label"></h5>
556
            <h5 class="modal-title" id="help-modal-label"></h5>
536
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
557
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
537
              <span aria-hidden="true">&times;</span>
558
              <span aria-hidden="true">&times;</span>
538
            </button>
559
            </button>
539
          </div>
560
          </div>
540
          <div class="modal-body" id="print_content"></div>
561
          <div class="modal-body" id="print_content"></div>
541
          <div class="modal-footer">
562
          <div class="modal-footer">
542
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
563
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
543
          </div>
564
          </div>
544
        </div>
565
        </div>
545
      </div>
566
      </div>
546
    </div>
567
    </div>
547
    <!-- carto -->
568
    <!-- carto -->
548
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
569
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/tb-geoloc/tb-geoloc-lib-app.js"></script>
549
    <!-- Jquery -->
570
    <!-- Jquery -->
550
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
571
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script>
551
    <!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
572
    <!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion -->
552
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
573
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script>
553
    <!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> -->
574
    <!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> -->
554
    <!-- Jquery Plugins -->
575
    <!-- Jquery Plugins -->
555
    <!-- Jquery Validate : nécessaire pour la validation des formulaires -->
576
    <!-- Jquery Validate : nécessaire pour la validation des formulaires -->
556
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
577
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script>
557
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
578
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script>
558
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
579
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script>
559
    <!-- Jquery Form :nécessaire pour l'upload des images -->
580
    <!-- Jquery Form :nécessaire pour l'upload des images -->
560
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
581
    <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script>
561
    <!-- Bootstrap -->
582
    <!-- Bootstrap -->
562
    <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>
583
    <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>
563
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
584
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
564
    <script type="text/javascript" src="<?php echo $url_base;?>modules/manager/squelettes/js/manager.js"></script>
585
    <script type="text/javascript" src="<?php echo $url_base;?>modules/manager/squelettes/js/manager.js"></script>
565
      <!-- Barre de navigation -->
586
      <!-- Barre de navigation -->
566
    <?php if ( $bar !== false ) : ?>
587
    <?php if ( $bar !== false ) : ?>
567
      <script src="<?php echo $url_script_navigation;?>"></script>
588
      <script src="<?php echo $url_script_navigation;?>"></script>
568
    <?php endif;?>
589
    <?php endif;?>
569
  </body>
590
  </body>
570
</html>
591
</html>