Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3172 Rev 3174
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html xmlns="http://www.w3.org/1999/xhtml">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
  <head>
3
  <head>
4
    <title><?php echo $mode; ?> de widget de saisie du CeL</title>
4
    <title><?php echo $mode; ?> de widget de saisie du CeL</title>
5
 
5
 
6
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
6
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
7
    <meta http-equiv="Content-style-type" content="text/css" />
7
    <meta http-equiv="Content-style-type" content="text/css" />
8
    <meta http-equiv="Content-script-type" content="text/javascript" />
8
    <meta http-equiv="Content-script-type" content="text/javascript" />
9
    <meta http-equiv="Content-language" content="fr" />
9
    <meta http-equiv="Content-language" content="fr" />
10
    <meta name="revisit-after" content="15 days" />
10
    <meta name="revisit-after" content="15 days" />
11
    <meta name="robots" content="index,follow" />
11
    <meta name="robots" content="index,follow" />
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
    <!-- OpenGraph pour Facebook, Pinterest, Google+ -->
17
    <!-- OpenGraph pour Facebook, Pinterest, Google+ -->
18
    <meta property="og:type" content="website" />
18
    <meta property="og:type" content="website" />
19
    <meta property="og:title" content="Gestion des widgets de saisie du CeL" />
19
    <meta property="og:title" content="Gestion des widgets de saisie du CeL" />
20
    <meta property="og:site_name" content="Tela Botanica" />
20
    <meta property="og:site_name" content="Tela Botanica" />
21
    <meta property="og:description" content="Gestion des widgets de saisie du Carnet en Ligne" />
21
    <meta property="og:description" content="Gestion des widgets de saisie du Carnet en Ligne" />
22
    <meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
22
    <meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
23
    <meta property="og:image:type" content="image/png" />
23
    <meta property="og:image:type" content="image/png" />
24
    <meta property="og:image:width" content="256" />
24
    <meta property="og:image:width" content="256" />
25
    <meta property="og:image:height" content="256" />
25
    <meta property="og:image:height" content="256" />
26
    <meta property="og:locale" content="fr_FR" />
26
    <meta property="og:locale" content="fr_FR" />
27
 
27
 
28
    <!-- Favicones -->
28
    <!-- Favicones -->
29
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
29
    <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
30
 
30
 
31
        <!-- Jquery -->
31
        <!-- Jquery -->
32
        <!-- <script type="text/javascript" src="http://localhost/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
32
        <!-- <script type="text/javascript" src="http://localhost/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
33
        <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
33
        <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
34
        <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
34
        <script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
35
        <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
35
        <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
36
        <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/messages_fr.js"></script>
36
        <script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/messages_fr.js"></script>
37
        <script type="text/javascript" src="http://localhost/commun/jquery/form/2.95/jquery.form.min.js"></script>
37
        <script type="text/javascript" src="http://localhost/commun/jquery/form/2.95/jquery.form.min.js"></script>
38
        <script type="text/javascript" src="http://localhost/commun/bootstrap/3.1.0/js/bootstrap.min.js"></script> -->
38
        <script type="text/javascript" src="http://localhost/commun/bootstrap/3.1.0/js/bootstrap.min.js"></script> -->
39
        	<!-- Jquery -->
39
        	<!-- Jquery -->
40
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
40
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script>
41
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
41
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
42
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
42
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script>
43
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
43
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script>
44
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script>
44
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script>
45
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script>
45
		<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script>
46
		<script src="https://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script>
46
		<script src="https://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script>
47
 
-
 
48
        <!-- Barre de navigation -->
-
 
49
        <?php if ($bar !== false): ?>
-
 
50
                <script src="<?php echo $url_script_navigation; ?>"></script>
-
 
51
        <?php endif; ?>
-
 
52
 
47
 
53
        <!-- CSS -->
48
        <!-- CSS -->
54
		<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" />
49
		<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" />
55
		<link href="https://www.tela-botanica.org/commun/bootstrap/2.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" />
50
		<link href="https://www.tela-botanica.org/commun/bootstrap/2.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" />
56
		<link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" />
51
		<link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" />
57
		<link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" />
52
		<link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" />
58
	 <!-- <link rel="stylesheet" type="text/css" href="http://localhost/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" media="screen" />
53
	 <!-- <link rel="stylesheet" type="text/css" href="http://localhost/commun/jquery/jquery-ui/1.8.18/css/smoothness/jquery-ui-1.8.18.custom.css" media="screen" />
59
		
54
		
60
        <link rel="stylesheet" type="text/css" href="http://localhost/commun/bootstrap/3.1.0/css/bootstrap.min.css" />-->
55
        <link rel="stylesheet" type="text/css" href="http://localhost/commun/bootstrap/3.1.0/css/bootstrap.min.css" />-->
61
        <link rel="stylesheet" type="text/css" id="telabotanica-style-css" href="https://www.tela-botanica.org/wp-content/themes/telabotanica/dist/bundle.css?ver=4.9.7" media="all">
56
        <link rel="stylesheet" type="text/css" id="telabotanica-style-css" href="https://www.tela-botanica.org/wp-content/themes/telabotanica/dist/bundle.css?ver=4.9.7" media="all">
62
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
57
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
63
 
58
 
64
    <!--  Google Analytics -->
59
    <!--  Google Analytics -->
65
    <?php if($prod): ?>
60
    <?php if($prod): ?>
66
      <?php include "analytics.html"; ?>
61
      <?php include "analytics.html"; ?>
67
    <?php endif; ?>
62
    <?php endif; ?>
68
  </head>
63
  </head>
69
 
64
 
70
  <body>
65
  <body>
71
    <div id="zone-appli" class="container">
66
    <div id="zone-appli" class="container">
72
    <?php if ($bar !== false): ?>
67
    <?php if ($bar !== false): ?>
73
      <div id="tb-navigation" data-courant="widget-cel-export" data-squelette="bootstrap3" data-mode="prod"></div>
68
      <div id="tb-navigation" data-courant="widget-cel-export" data-squelette="bootstrap3" data-mode="prod"></div>
74
      <br/>
69
      <br/>
75
    <?php endif; ?>
70
    <?php endif; ?>
76
      <h1 id="widget-titre" class="widget-titre"><?php echo ucfirst($mode); ?> de widget de saisie du CEL</h1>
71
      <h1 id="widget-titre" class="widget-titre"><?php echo ucfirst($mode); ?> de widget de saisie du CEL</h1>
77
      <div id="register-page">
72
      <div id="register-page">
78
        <div class="row">
73
        <div id="group-settings-form" class="row">
79
 
74
 
80
          <div class="widget-blocks col-md-4">
75
          <div class="widget-blocks col-md-4">
81
 
76
 
82
            <div  id="group-settings-form">
-
 
83
              <form action="http://localhost/cel/widget/manager?mode=<?php echo $mode; ?>" id="new-widget-form" class="standard-form component component-text" method="post" enctype="multipart/form-data">
-
 
84
                <div class="register-section" id="basic-details-section">
-
 
85
 
-
 
86
                  <h2>Meta-données</h2>
-
 
87
 
77
            <p class="message">
88
                  <?php //var_dump($widget); ?>
-
 
89
                  <label for="projet">Projet *</label>
-
 
90
                  <input type="text" name="projet" id="projet" pattern="[a-z]*" <?php echo ($mode === 'modification') ? 'value="'.$widget['projet'].'" readonly' : 'required'; ?> title="Champ obligatoire : pas d'espace" />
-
 
91
 
78
              <?php if ($mode === 'modification') : ?>
92
                  <label for="motscles">Autres mots-clés</label>
79
                Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changer.
93
                  <input type="text" name="motscles" id="motscles" value="" />
-
 
94
 
-
 
95
                  <label for="type">Type de widget</label>
80
                S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type.
96
                  <div class="select-wrapper">
-
 
97
                    <select  id="type" name="type" >
81
              <?php else : ?>
98
                      <?php foreach ($type as $id => $projet) : ?>
-
 
99
                        <option <?php echo (isset($widget['projet']) && $projet['projet']== $widget['projet']) ? 'selected="selected"' : ''; ?> value="<?php echo $projet['projet']; ?>"><?php echo $projet['projet']; ?></option>
-
 
100
                      <?php endforeach; ?>
82
                Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront
101
                      <option value=""> ----</option>
83
                obligatoires et la localisation (point ou rue) sera automatiquement déterminée.
102
                    </select>
84
              <?php endif; ?>
103
                  </div>
85
            </p>
104
 
86
 
105
                  <label for="est_type">Ce widget est un widget type</label>
-
 
106
                  <input type="checkbox" name="est_type" id="est_type" <?php echo (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>>
-
 
107
 
-
 
108
                  <label for="langue">Langue</label>
-
 
109
                  <?php if ($mode === 'modification') : ?>
-
 
110
                    <input id="langue" name="langue" readonly value="<?php echo $widget['langue']; ?>">
-
 
111
                  <?php else : ?>
-
 
112
                    <input id="langue" name="langue" list="langues">
-
 
113
                    <datalist id="langues" >
-
 
114
                    <?php foreach ($langues as $code => $langue) : ?>
-
 
115
                      <option value="<?php echo $code; ?>"><?php echo $langue['nom']; ?></option>
-
 
116
                    <?php endforeach; ?>
-
 
117
                    </datalist>
-
 
118
                  <?php endif; ?>
-
 
119
                </div><!-- end #basic-details-section -->
-
 
120
 
87
            <form action="http://localhost/cel/widget/manager?mode=<?php echo $mode; ?>" id="basic-widget-form" class="standard-form component component-text" method="post" enctype="multipart/form-data">
121
 
-
 
122
                <div class="register-section" id="profile-details-description-section">
-
 
123
                  <h2>Description</h2>
-
 
124
                  <label for="titre">Titre</label>
-
 
125
                  <input type="text" name="titre" id="titre" value="<?php echo isset($widget['titre']) ? $widget['titre'] : ''; ?>">
-
 
126
 
-
 
127
                  <label for="description">Description</label>
-
 
128
                  <textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea>
-
 
129
 
-
 
130
                  <div class="input-file-container">
-
 
131
                      <input type="file" class="input-file" name="logo" id="logo"  accept="image">
-
 
-
 
88
              <div class="register-section" id="basic-details-section">
-
 
89
 
-
 
90
                <h2>Meta-données</h2>
-
 
91
 
-
 
92
                <?php //var_dump($widget); ?>
-
 
93
                <label for="projet">Projet *</label>
-
 
94
                <input type="text" name="projet" id="projet" pattern="[a-z]*" <?php echo ($mode === 'modification') ? 'value="'.$widget['projet'].'" readonly' : 'required'; ?> title="Champ obligatoire : pas d'espace" />
-
 
95
 
-
 
96
                <label for="motscles">Autres mots-clés</label>
-
 
97
                <input type="text" name="motscles" id="motscles" value="" />
-
 
98
 
132
                      <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
99
                <label for="type">Type de widget</label>
-
 
100
                <div class="select-wrapper">
-
 
101
                  <select  id="type" name="type" >
-
 
102
                    <?php foreach ($type as $id => $projet) : ?>
-
 
103
                      <option <?php echo (isset($widget['projet']) && $projet['projet']== $widget['projet']) ? 'selected="selected"' : ''; ?> value="<?php echo $projet['projet']; ?>"><?php echo $projet['projet']; ?></option>
133
                  </div>
104
                    <?php endforeach; ?>
134
                  <div class="file-return logo"></div>
105
                    <option value=""> ----</option>
135
 
-
 
136
                  <?php echo isset($widget['logo']) ? '<img src="'.$widget['logo'].'"><br />Pour changer, télécharger un nouveau fichier.': ''; ?>
-
 
137
 
-
 
138
                  <div class="input-file-container">
-
 
-
 
106
                  </select>
-
 
107
                </div>
139
                      <input type="file" class="input-file" name="fond" id="fond" value="<?php echo $widget['titre']; ?>">
108
 
140
                      <label for="fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
109
                <label for="est_type">Ce widget est un widget type</label>
141
                  </div>
110
                <input type="checkbox" name="est_type" id="est_type" <?php echo (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>>
142
                  <div class="file-return fond"></div>
111
 
143
                </div><!-- end #profile-details-description-section -->
112
                <label for="langue">Langue</label>
144
 
113
                <?php if ($mode === 'modification') : ?>
145
                <div class="register-section" id="profile-details-fields-section">
114
                  <input id="langue" name="langue" readonly value="<?php echo $widget['langue']; ?>">
146
                  <h2>Champs</h2>
115
                <?php else : ?>
-
 
116
                  <input id="langue" name="langue" list="langues">
-
 
117
                  <datalist id="langues" >
-
 
118
                  <?php foreach ($langues as $code => $langue) : ?>
-
 
119
                    <option value="<?php echo $code; ?>"><?php echo $langue['nom']; ?></option>
-
 
120
                  <?php endforeach; ?>
-
 
121
                  </datalist>
-
 
122
                <?php endif; ?>
-
 
123
              </div><!-- end #basic-details-section -->
-
 
124
 
-
 
125
 
-
 
126
              <div class="register-section" id="profile-details-description-section">
-
 
127
                <h2>Description</h2>
-
 
128
                <label for="titre">Titre</label>
-
 
129
                <input type="text" name="titre" id="titre" value="<?php echo isset($widget['titre']) ? $widget['titre'] : ''; ?>">
-
 
130
 
147
                  <label for="type_localisation">Type de localisation</label>
131
                <label for="description">Description</label>
-
 
132
                <textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea>
-
 
133
 
148
                  <div class="select-wrapper">
-
 
149
                    <select  id="type_localisation" name="type_localisation" >
134
                <div class="input-file-container">
-
 
135
                    <input type="file" class="input-file" name="logo" id="logo"  accept="image">
-
 
136
                    <label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label>
-
 
137
                </div>
-
 
138
                <div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
-
 
139
                <div class="file-return logo hidden"></div>
-
 
140
 
-
 
141
                <?php echo isset($widget['logo']) ? '<img src="'.$widget['logo'].'"><br />Pour changer, télécharger un nouveau fichier.': ''; ?>
-
 
142
 
-
 
143
                <div class="input-file-container">
-
 
144
                    <input type="file" class="input-file" name="fond" id="fond" value="<?php echo $widget['titre']; ?>">
150
                      <option value="<?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?>"><?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?></option>
145
                    <label for="fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
-
 
146
                </div>
-
 
147
                <div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
-
 
148
                <div class="file-return fond hidden"></div>
151
                      <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>
149
              </div><!-- end #profile-details-description-section -->
-
 
150
 
-
 
151
              <div class="register-section" id="profile-details-fields-section">
152
                    </select>
152
                <h2>Champs</h2>
153
                  </div>
-
 
154
 
-
 
155
                  <label for="localisation">Zoom</label>
-
 
156
                  <input type="text" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? $widget['localisation'] : ''; ?>"  />
-
 
157
 
153
                <label for="type_localisation">Type de localisation</label>
158
                  <label for="milieux">Milieux</label>
-
 
159
                  <input type="text" name="milieux" id="milieux" value="<?php echo isset($widget['milieux']) ? $widget['milieux'] : ''; ?>">
-
 
160
 
-
 
161
                  <label for="type_especes">Type liste espèce *</label>
154
                <div class="select-wrapper">
162
                  <div class="select-wrapper">
155
                  <select  id="type_localisation" name="type_localisation" >
163
                    <select  id="type_especes" name="type_especes" required>
-
 
164
                      <option selected="selected" value="referentiel">Référentiel</option>
-
 
165
                      <option value="liste">Liste</option>
-
 
166
                      <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
-
 
167
                      <option value="fixe">Espèce fixée</option>
-
 
168
                    </select>
-
 
-
 
156
                    <option value="<?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?>"><?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?></option>
169
                  </div>
157
                    <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>
-
 
158
                  </select>
170
 
159
                </div>
-
 
160
 
171
                  <label for="referentiel">Référentiel *</label>
161
                <label for="localisation">Zoom</label>
-
 
162
                <input type="text" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? $widget['localisation'] : ''; ?>"  />
-
 
163
 
172
                  <input type="text" name="referentiel" id="referentiel" required pattern="([a-z]+?)*" title="Nom du référentiel ex. bdtfx" value="<?php echo isset($widget['referentiel']) ? $widget['referentiel'] : ''; ?>">
164
                <label for="milieux">Milieux</label>
173
                  <div class="input-file-container">
-
 
174
                    <input type="file" class="input-file" name="especes" id="especes">
165
                <input type="text" name="milieux" id="milieux" value="<?php echo isset($widget['milieux']) ? $widget['milieux'] : ''; ?>">
-
 
166
 
175
                    <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label> fichier type
-
 
176
                  </div>
167
                <label for="type_especes">Type liste espèce *</label>
177
                  <div class="file-return especes"></div>
-
 
178
                </div><!-- end #profile-details-fields-section -->
-
 
179
 
-
 
180
                <!--Submit-->
-
 
181
                <div class="submit complete-registration" id="submit-button">
168
                <div class="select-wrapper">
182
                  <button href="#" type="submit" name="signup_submit" id="signup_submit"  class="button" target="" title=""><span class="button-text">Terminer </span></button>
169
                  <select  id="type_especes" name="type_especes" required>
183
                </div>
-
 
184
                <!--Submit-->
-
 
185
 
-
 
186
              </form><!-- end #new-widget-form -->
170
                    <option selected="selected" value="referentiel">Référentiel</option>
187
 
-
 
188
              <form id="new-fields">
171
                    <option value="liste">Liste</option>
-
 
172
                    <option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option>
-
 
173
                    <option value="fixe">Espèce fixée</option>
-
 
174
                  </select>
-
 
175
                </div>
-
 
176
 
-
 
177
                <label for="referentiel">Référentiel *</label>
-
 
178
                <input type="text" name="referentiel" id="referentiel" required pattern="([a-z]+?)*" title="Nom du référentiel ex. bdtfx" value="<?php echo isset($widget['referentiel']) ? $widget['referentiel'] : ''; ?>">
-
 
179
 
189
                  <h2>Ajouter des champs</h2>
180
                <!-- Bouton fichier-type à compléter -->
-
 
181
                <div class="input-file-container">
-
 
182
                  <input type="file" class="input-file" name="especes" id="especes">
-
 
183
                  <label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label>
-
 
184
                </div>
-
 
185
                <div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div>
-
 
186
                <a href="#" class="button fichier-type"><i class="fas fa-file-alt" aria-hidden="true"></i> Fichier type</a>
-
 
187
                <div class="file-return especes hidden"></div>
-
 
188
              </div><!-- end #profile-details-fields-section -->
-
 
189
 
-
 
190
              <!--Submit-->
-
 
191
              <div class="submit complete-registration" id="submit-button">
-
 
192
                <button href="#" type="submit" name="signup_submit" id="signup_submit" class="button" target="" title="Soumettre le nouveau widget"><i class="fas fa-trophy" aria-hidden="true"></i>&nbsp;Terminer</button>
-
 
193
              </div>
-
 
194
              <!--Submit-->
190
                  <p class="message"><i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i> Attention : Ces nouveaux champs (tout comme le widget) ne seront pris en compte qu'une fois le formulaire validé</p>
195
 
-
 
196
            </form><!-- end #new-widget-form -->
-
 
197
 
-
 
198
            <form id="new-fields" autocomplete="off">
-
 
199
                <h2>Ajouter des champs</h2>
-
 
200
                <p class="message">
-
 
201
                  <i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:#ff5d55"></i>
-
 
202
                  &nbsp;Attention :
-
 
203
                  <br>
-
 
204
                  <i class="fa fa-bolt" aria-hidden="true"  style="color:#B3C954"></i>
-
 
205
                  &nbsp;Le bouton "Valider" sert à valider les champs supplémentaires uniquement
-
 
206
                  <br>
-
 
207
                  <i class="fas fa-trophy" aria-hidden="true"  style="color:#B3C954"></i>
-
 
208
                  &nbsp;Le bouton "Terminer" sert à envoyer la totalité du nouveau widget
-
 
209
                </p>
-
 
210
            </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
191
              </form><!-- #new-fields = fomulaire oû viennent s'insérer les champs supplémentaires -->
211
 
-
 
212
            <div class="row">
-
 
213
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
192
 
214
                <label class="add-fields">Ajouter</label>
193
              <div class="row">
215
                <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
194
                <div class="col-md-6">
-
 
195
                  <label class="add-fields">Ajouter champs</label>
-
 
196
                  <div class="button" id="add-fields" title="Ajouter un champ"><i class="fa fa-plus" aria-hidden="true"></i></div>
-
 
197
                </div>
-
 
198
                <div class="col-md-6">
-
 
199
                  <label class="validate-new-fields">Valider champs</label>
-
 
200
                  <div class="button disabled" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-check" aria-hidden="true"></i></div>
-
 
201
                </div>
-
 
202
              </div>
-
 
203
 
216
              </div>
204
              <hr>
217
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
205
            </div>
218
                <label for="preview-field">Prévisualiser</label>
206
 
-
 
207
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
219
                <div class="button" id="preview-field" name="preview-field" title="prévisualiser"><i class="fa fa-magic" aria-hidden="true"></i></div>
208
 
220
              </div>
-
 
221
              <div class="col-md-4 col-sm-4 col-xs-4 buttons">
209
          <div class="widget-blocks col-md-8 project">
222
                <label class="validate-new-fields">Valider</label>
210
            <p class="message">
223
                <div class="button" id="validate-new-fields" title="Valider les champs supplémentaires"><i class="fa fa-bolt" aria-hidden="true"></i></div>
211
              <?php if ($mode === 'modification') : ?>
224
              </div>
212
                Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changer.
225
            </div>
213
                S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type.
226
 
214
              <?php else : ?>
227
            <hr>
215
                Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront
228
 
216
                obligatoires et la localisation (point ou rue) sera automatiquement déterminée.
229
          </div><!-- end .widget-blocks = tout le bloc de gauche-->
217
              <?php endif; ?>
230
 
218
            </p>
231
          <div class="widget-blocks col-md-8">
219
<!-- <iframe src="http://localhost/widget:cel:saisie2?projet=<?php echo isset($widget['projet'])?$widget['projet']:'base'; ?>" class="widget-renderer" height="100%" width="100%" ></iframe> -->
232
<!-- <iframe src="http://localhost/widget:cel:saisie2?projet=<?php echo isset($widget['projet'])?$widget['projet']:'base'; ?>" class="widget-renderer" height="100%" width="100%" ></iframe> -->
220
            <div class="widget-renderer">
233
            <div class="widget-renderer" style="background:rgba(248, 245, 239, 0.6);">
221
 
234
 
222
              <div class="row">
235
              <div id="preview-header" class="row">
223
 
236
                  <div id="preview-logo" class="col-md-4">
224
                <div class="col-md-4">
237
                    <img src="" alt="" width="75%">
225
                  <img id="preview-logo" src="" alt="">
238
                  </div>
226
                  <div id="preview-title" class="col-md-8">
239
                  <div id="preview-title" class="col-md-8">
227
                    <h1></h1>
240
                    <h1></h1>
228
                  </div>
241
                  </div>
229
                </div>
-
 
230
 
242
 
231
              </div>
243
              </div>
232
 
244
 
233
              <div class="row">
245
              <div id="preview-messages" class="row">
-
 
246
 
-
 
247
                <div id="preview-description" class="col-md-7">
-
 
248
                  <div class="message">
-
 
249
                    <h3>
-
 
250
                      <span>Projet : </span>
234
 
251
                      <span class="projet-description"></span>
-
 
252
                    </h3>
235
                <div id="preview-description" class="col-md-6">
253
                    <p class="preview-description"></p>
236
                  <div class="preview-description message"></div>
254
                  </div>
-
 
255
                </div><!-- end #preview-description -->
237
                </div><!-- end #preview-description -->
256
 
238
 
257
                <div id="preview-aide" class="col-md-5">
239
                <div id="preview-aide" class="message col-md-6">
258
                  <div class="message">
240
                  <h3>Aide</h3>
259
                    <h3>Aide</h3>
241
                  <p>
260
                    <p>
242
                    Cet outil vous permet de partager simplement vos observations avec
261
                      Cet outil vous permet de partager simplement vos observations avec
243
                    le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
262
                      le <a target="_blank" href="https://www.tela-botanica.org/site:accueil">réseau Tela Botanica</a>
244
                    (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
263
                      (<a target="_blank" href="https://www.tela-botanica.org/page:licence">licence CC-BY-SA</a>).
245
                    Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
264
                      Identifiez-vous bien pour ensuite retrouver et gérer vos données dans votre
246
                    <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
265
                      <a target="_blank" href="https://www.tela-botanica.org/appli:cel"> Carnet en ligne</a>.
247
                    Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
266
                      Créez jusqu'à 10 observations (avec 10Mo max d'images) puis partagez-les avec le bouton 'transmettre'.
248
                    Elles apparaissent immédiatement sur les
267
                      Elles apparaissent immédiatement sur les
249
                    <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
268
                      <a target="_blank" href="https://www.tela-botanica.org/site:botanique">cartes et galeries photos </a> du site.
250
                  </p>
269
                    </p>
251
                  <p class="discretion">
270
                    <p class="discretion">
252
                    Pour toute question ou remarque,
271
                      Pour toute question ou remarque,
253
                    <a href="https://www.tela-botanica.org/widget:reseau:remarques?service=cel&pageSource=http%3A%2F%2Flocalhost%2Fcel%2Fwidget%2Findex.php%2F%3Fprojet%3Dbase" target="_blank" onclick=
272
                      <a href="https://www.tela-botanica.org/widget:reseau:remarques?service=cel&pageSource=http%3A%2F%2Flocalhost%2Fcel%2Fwidget%2Findex.php%2F%3Fprojet%3Dbase" target="_blank" onclick=
254
                    "
273
                      "
255
                      javascript:window.open(
274
                        javascript:window.open(
256
                        this.getAttribute('href'),
275
                          this.getAttribute('href'),
257
                        'Tela Botanica - Remarques',
276
                          'Tela Botanica - Remarques',
258
                        config='height=700, width=640, scrollbars=yes, resizable=yes'
277
                          config='height=700, width=640, scrollbars=yes, resizable=yes'
259
                      );
278
                        );
-
 
279
                        return false;
260
                      return false;
280
                      ">contactez-nous</a>
261
                    ">contactez-nous</a>
281
                    </p>
262
                  </p>
282
                  </div>
263
                </div>
283
                </div>
264
              </div><!-- end #preview-aide -->
284
              </div><!-- end #preview-aide -->
265
 
285
 
266
              <div id="preview-formulaire" class="row">
286
              <div id="preview-formulaire" class="row">
267
 
287
 
268
                <form id="preview-form-observateur" role="form" autocomplete="on">
288
                <form id="preview-form-observateur" role="form" autocomplete="on">
269
 
289
 
270
                  <h2>Observateur</h2>
290
                  <h2>Observateur</h2>
271
 
291
 
272
                  <div id="zone-courriel" class="row align-items-center">
292
                  <div id="zone-courriel" class="row align-items-center">
273
 
293
 
274
                    <div class="col-md-6">
294
                    <div class="col-md-6">
275
                      <label for="courriel" class="" title="Veuillez saisir votre adresse courriel.">
295
                      <label for="courriel" class="" title="Veuillez saisir votre adresse courriel.">
276
                        <strong class="obligatoire">*</strong>Courriel
296
                        <strong class="obligatoire">*</strong>Courriel
277
                      </label>
297
                      </label>
278
                      <div class="input-group">
298
                      <div class="input-group">
279
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
299
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
280
                        <input type="email" id="courriel" name="courriel" class="form-control" title="Veuillez saisir votre adresse courriel. ">
300
                        <input type="email" id="courriel" name="courriel" class="form-control" title="Veuillez saisir votre adresse courriel. ">
281
                        <input type="hidden" id="id_utilisateur" name="id_utilisateur">
301
                        <input type="hidden" id="id_utilisateur" name="id_utilisateur">
282
                      </div>
302
                      </div>
283
                    </div>
303
                    </div>
284
 
304
 
285
                    <div id="zone-courriel-confirmation" class="col-md-6 ">
305
                    <div id="zone-courriel-confirmation" class="col-md-6 ">
286
                      <label for="courriel_confirmation" class="" title="Veuillez confirmer le courriel.">
306
                      <label for="courriel_confirmation" class="" title="Veuillez confirmer le courriel.">
287
                        <strong class="obligatoire">*</strong> Courriel (confirmation)
307
                        <strong class="obligatoire">*</strong> Courriel (confirmation)
288
                      </label>
308
                      </label>
289
                      <div class="input-group">
309
                      <div class="input-group">
290
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
310
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
291
                        <input type="email" id="courriel_confirmation" name="courriel_confirmation" class="form-control">
311
                        <input type="email" id="courriel_confirmation" name="courriel_confirmation" class="form-control">
292
                      </div>
312
                      </div>
293
                    </div>
313
                    </div>
294
 
314
 
295
                  </div>
315
                  </div>
296
 
316
 
297
                  <div id="zone-prenom-nom" class="row align-items-center">
317
                  <div id="zone-prenom-nom" class="row align-items-center">
298
 
318
 
299
                    <div class="col-md-6 ">
319
                    <div class="col-md-6 ">
300
                      <label for="prenom" class="">Prénom</label>
320
                      <label for="prenom" class="">Prénom</label>
301
                      <div class="input-group">
321
                      <div class="input-group">
302
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
322
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
303
                        <input type="text" id="prenom" name="prenom" class="form-control">
323
                        <input type="text" id="prenom" name="prenom" class="form-control">
304
                      </div>
324
                      </div>
305
                    </div>
325
                    </div>
306
 
326
 
307
                    <div class="col-md-6 ">
327
                    <div class="col-md-6 ">
308
                      <label for="nom" class="">Nom</label>
328
                      <label for="nom" class="">Nom</label>
309
                      <div class="input-group">
329
                      <div class="input-group">
310
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
330
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
311
                        <input type="text" id="nom" name="nom" class="form-control">
331
                        <input type="text" id="nom" name="nom" class="form-control">
312
                      </div>
332
                      </div>
313
                    </div>
333
                    </div>
314
 
334
 
315
                  </div>
335
                  </div>
316
 
336
 
317
                </form>
337
                </form>
318
 
338
 
319
                <form id="form-observation" role="form" autocomplete="on">
339
                <form id="form-observation" role="form" autocomplete="on">
320
 
340
 
321
                  <h2>Observation</h2>
341
                  <h2>Observation</h2>
322
 
342
 
323
                  <div id="zone-observation" class="row align-items-center">
343
                  <div id="zone-observation" class="row align-items-center">
324
 
344
 
325
                    <div class="col-md-6 ">
345
                    <div class="col-md-6 ">
326
                      <label for="courriel" class="" title="Veuillez saisir votre adresse courriel.">
346
                      <label for="courriel" class="" title="Veuillez saisir votre adresse courriel.">
327
                        <strong class="obligatoire">*</strong>Geolocalisation
347
                        <strong class="obligatoire">*</strong>Geolocalisation
328
                      </label>
348
                      </label>
329
                      <div class="input-group">
349
                      <div class="input-group">
330
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
350
                        <span class="input-group-addon"><i class="fa fa-envelope"></i></span>
331
                        <input type="email" id="courriel" name="courriel" class="form-control" title="Veuillez saisir votre adresse courriel. ">
351
                        <input type="email" id="courriel" name="courriel" class="form-control" title="Veuillez saisir votre adresse courriel. ">
332
                        <input type="hidden" id="id_utilisateur" name="id_utilisateur">
352
                        <input type="hidden" id="id_utilisateur" name="id_utilisateur">
333
                      </div>
353
                      </div>
334
                      <label for="milieu" class="">Milieu</label>
354
                      <label for="milieu" class="">Milieu</label>
335
                      <div class=" input-group">
355
                      <div class=" input-group">
336
                        <span class="input-group-addon"><i class="fa fa-street-view"></i></span>
356
                        <span class="input-group-addon"><i class="fa fa-street-view"></i></span>
337
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
357
                        <input type="text" id="milieu" name="milieu" class="form-control" placeholder="bois, champ, falaise, ...">
338
                      </div>
358
                      </div>
339
                    </div>
359
                    </div>
340
 
360
 
341
                    <div class="col-md-6">
361
                    <div class="col-md-6">
342
                      <label for="date" class="" title="">
362
                      <label for="date" class="" title="">
343
                        <strong class="obligatoire">*</strong>Date de relevé
363
                        <strong class="obligatoire">*</strong>Date de relevé
344
                      </label>
364
                      </label>
345
                      <div class=" input-group date" id="datetimepicker">
365
                      <div class=" input-group date" id="datetimepicker">
346
                        <span id="date-icone" class="input-group-addon"><i class="fa fa-calendar"></i></span>
366
                        <span id="date-icone" class="input-group-addon"><i class="fa fa-calendar"></i></span>
347
                        <input type="date" id="date" name="date" class="form-control hasDatepicker">
367
                        <input type="date" id="date" name="date" class="form-control hasDatepicker">
348
                      </div>
368
                      </div>
349
                      <label for="referentiel" class="" title="">
369
                      <label for="referentiel" class="" title="">
350
                        <strong class="obligatoire">*</strong>Référentiel
370
                        <strong class="obligatoire">*</strong>Référentiel
351
                      </label>
371
                      </label>
352
                      <div class=" input-group">
372
                      <div class=" input-group">
353
                        <span class="input-group-addon"><i class="fa fa-book"></i></span>
373
                        <span class="input-group-addon"><i class="fa fa-book"></i></span>
354
                        <select id="referentiel" name="referentiel" class="form-control">
374
                        <select id="referentiel" name="referentiel" class="form-control">
355
                          <option value="" selected="" title="">-</option>
375
                          <option value="" selected="" title="">-</option>
356
                        </select>
376
                        </select>
357
                      </div>
377
                      </div>
358
                      <label for="taxon" class="" title="">Espèce</label>
378
                      <label for="taxon" class="" title="">Espèce</label>
359
                      <div class=" input-group date">
379
                      <div class=" input-group date">
360
                        <span class="input-group-addon"><i class="fa fa-leaf"></i></span>
380
                        <span class="input-group-addon"><i class="fa fa-leaf"></i></span>
361
                        <input type="text" name="taxon" class="form-control" id="taxon" >
381
                        <input type="text" name="taxon" class="form-control" id="taxon" >
362
                      </div>
382
                      </div>
363
                      <label for="certitude" class="" title="">
383
                      <label for="certitude" class="" title="">
364
                        <strong class="obligatoire">*</strong>Certitude
384
                        <strong class="obligatoire">*</strong>Certitude
365
                      </label>
385
                      </label>
366
                      <div class="input-group date" id="datetimepicker">
386
                      <div class="input-group date" id="datetimepicker">
367
                        <span class="input-group-addon"><i class="fa fa-question"></i></span>
387
                        <span class="input-group-addon"><i class="fa fa-question"></i></span>
368
                        <select id="certitude" name="certitude" class="form-control">
388
                        <select id="certitude" name="certitude" class="form-control">
369
                          <option value="">-</option>
389
                          <option value="">-</option>
370
                        </select>
390
                        </select>
371
                      </div>
391
                      </div>
372
                    </div>
392
                    </div>
373
 
393
 
374
                  </div>
394
                  </div>
375
 
395
 
376
                </form>
396
                </form>
377
 
397
 
378
                <form id="form-supp" role="form" autocomplete="on">
398
                <form id="form-supp" role="form" autocomplete="on">
379
                  <div id="zone-supp" class="row align-items-center">
399
                  <div id="zone-supp" class="row align-items-center">
380
                    <div class="col-md-6"></div>
400
                    <div class="col-md-6 preview-container"></div>
381
                  </div>
401
                  </div>
382
                </form>
402
                </form>
383
 
403
 
384
                <div id="image" class="row align-items-center"></div>
404
                <div id="image" class="row align-items-center"></div>
385
 
405
 
386
              </div><!-- end #preview-formulaire -->
406
              </div><!-- end #preview-formulaire -->
387
 
407
 
388
            </div><!-- end #widget-renderer-->
408
            </div><!-- end #widget-renderer-->
389
 
409
 
390
          </div><!-- #widget-blocks = tout le bloc de droite-->
410
          </div><!-- #widget-blocks = tout le bloc de droite-->
391
 
411
 
392
        </div>
412
        </div>
393
      </div>
413
      </div>
394
    </div>
414
    </div>
-
 
415
    <div id="help-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="help-modal-label" style="display: none;" aria-hidden="true">
-
 
416
      <div class="modal-dialog modal-dialog-centered" role="document">
-
 
417
        <div class="modal-content">
-
 
418
          <div class="modal-header">
-
 
419
            <h5 class="modal-title" id="help-modal-label"></h5>
-
 
420
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
-
 
421
              <span aria-hidden="true">×</span>
-
 
422
            </button>
-
 
423
          </div>
-
 
424
          <div class="modal-body" id="print_content"></div>
-
 
425
          <div class="modal-footer">
-
 
426
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
-
 
427
          </div>
-
 
428
        </div>
-
 
429
      </div>
-
 
430
    </div>
395
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/manager.js"></script>
431
    <script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/manager.js"></script>
-
 
432
    </script>
396
  </body>
433
  </body>
397
</html>
434
</html>