1,168 → 1,195 |
<!DOCTYPE html> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title><?= $mode; ?> de widget de saisie du CeL</title> |
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
<meta http-equiv="Content-style-type" content="text/css" /> |
<meta http-equiv="Content-script-type" content="text/javascript" /> |
<meta http-equiv="Content-language" content="fr" /> |
|
<meta name="revisit-after" content="15 days" /> |
<meta name="robots" content="index,follow" /> |
<meta name="author" content="Tela Botanica" /> |
<meta name="keywords" content="Tela Botanica, CEL" /> |
<meta name="description" content="Gestion des widgets de saisie du carnet en ligne" /> |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> |
<title><?php echo $mode; ?> de widget de saisie du CeL</title> |
|
<!-- OpenGraph pour Facebook, Pinterest, Google+ --> |
<meta property="og:type" content="website" /> |
<meta property="og:title" content="Gestion des widgets de saisie du CeL" /> |
<meta property="og:site_name" content="Tela Botanica" /> |
<meta property="og:description" content="Gestion des widgets de saisie du Carnet en Ligne" /> |
<meta property="og:image" content="http://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" /> |
<meta property="og:image:type" content="image/png" /> |
<meta property="og:image:width" content="256" /> |
<meta property="og:image:height" content="256" /> |
<meta property="og:locale" content="fr_FR" /> |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
<meta http-equiv="Content-style-type" content="text/css" /> |
<meta http-equiv="Content-script-type" content="text/javascript" /> |
<meta http-equiv="Content-language" content="fr" /> |
<meta name="revisit-after" content="15 days" /> |
<meta name="robots" content="index,follow" /> |
<meta name="author" content="Tela Botanica" /> |
<meta name="keywords" content="Tela Botanica, CEL" /> |
<meta name="description" content="Gestion des widgets de saisie du carnet en ligne" /> |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> |
|
<!-- Favicones --> |
<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" /> |
|
<!-- Jquery --> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script> |
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script> |
<script src="http://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script> |
<!-- OpenGraph pour Facebook, Pinterest, Google+ --> |
<meta property="og:type" content="website" /> |
<meta property="og:title" content="Gestion des widgets de saisie du CeL" /> |
<meta property="og:site_name" content="Tela Botanica" /> |
<meta property="og:description" content="Gestion des widgets de saisie du Carnet en Ligne" /> |
<meta property="og:image" content="https://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" /> |
<meta property="og:image:type" content="image/png" /> |
<meta property="og:image:width" content="256" /> |
<meta property="og:image:height" content="256" /> |
<meta property="og:locale" content="fr_FR" /> |
|
<!-- Barre de navigation --> |
<?php if ($bar !== false): ?> |
<script src="<?=$url_script_navigation?>"></script> |
<?php endif; ?> |
|
|
<!-- CSS --> |
<!-- <link href="http://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" /> |
<!-- <link href="http://www.tela-botanica.org/commun/bootstrap/2.0.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /> --> |
<!-- <link rel="stylesheet" type="text/css" href="http://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" /> |
--> |
<link id="telabotanica-style-css" rel="stylesheet" href="https://beta.tela-botanica.org/preprod/wp-content/themes/telabotanica/dist/bundle.css?ver=4.7.5" type="text/css" media="all"> |
<link href="<?= $url_base; ?>modules/manager/squelettes/css/manager.css" rel="stylesheet" type="text/css" media="screen" /> |
<!-- Google Analytics --> |
<?php if($prod): ?> |
<?php include "analytics.html"; ?> |
<?php endif; ?> |
<!-- Favicones --> |
<link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" /> |
|
<!-- Jquery --> |
<script type="text/javascript" src="http://localhost/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script> |
<script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script> |
<script type="text/javascript" src="http://localhost/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script> |
<script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/jquery.validate.js"></script> |
<script type="text/javascript" src="http://localhost/commun/jquery/validate/1.9.0/messages_fr.js"></script> |
<script type="text/javascript" src="http://localhost/commun/jquery/form/2.95/jquery.form.min.js"></script> |
<script type="text/javascript" src="http://localhost/commun/bootstrap/3.1.0/js/bootstrap.min.js"></script> |
|
<script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/manager.js"></script> |
|
<!-- Barre de navigation --> |
<?php if ($bar !== false): ?> |
<script src="<?php echo $url_script_navigation; ?>"></script> |
<?php endif; ?> |
|
<!-- CSS --> |
<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" /> |
|
<link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" /> |
<link rel="stylesheet" type="text/css" href="http://localhost/commun/bootstrap/3.1.0/css/bootstrap.min.css" /> |
<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"> |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous"> |
|
<!-- Google Analytics --> |
<?php if($prod): ?> |
<?php include "analytics.html"; ?> |
<?php endif; ?> |
</head> |
|
<body> |
<div id="zone-appli" class="container"> |
<?php if ($bar !== false): ?> |
<div id="tb-navigation" data-courant="widget-cel-export" data-squelette="bootstrap3" data-mode="prod"> |
</div> |
<br/> |
<?php endif; ?> |
<h1 id="widget-titre" class="widget-titre"><?= $mode; ?> de widget de saisie du CEL</h1> |
<div id="register-page" class="layout-wrapper page"> |
<div class="droite"> |
<?php if ($mode === 'modification') { ?> |
Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changer. |
S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type. |
<?php } else { ?> |
Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront |
obligatoires et la localisation (point ou rue) sera automatiquement déterminée. |
<?php } ?> |
</div> |
<form action="http://localhost/cel/widget/manager?mode=<?= $mode; ?>" name="" id="" class="standard-form component component-text" method="post" enctype="multipart/form-data"> |
<div class="register-section" id="basic-details-section"> |
<h2>Meta-données</h2> |
|
<label for="projet">Projet</label> |
<input type="text" name="projet" id="projet" pattern="[a-z]*" <?= ($mode === 'modification') ? 'value="'.$widget['projet'].'" readonly' : 'required'; ?> title="Champ obligatoire : pas d'espace" /> |
|
<label for="motscles">Autres mots-clés</label> |
<input type="text" name="motscles" id="motscles" value="" /> |
|
<label for="type">Type de widget</label> |
<select id="type" name="type" > |
<?php foreach ($type as $id => $projet) { ?> |
<option <?= (isset($widget['projet']) && $projet['projet']== $widget['projet']) ? 'selected="selected"' : ''; ?> value="<?= $projet['projet']; ?>"><?= $projet['projet']; ?></option> |
<?php } ?> |
<option value=""> ----</option> |
</select> |
|
<label for="est_type">Ce widget est un widget type</label> |
<input type="radio" name="est_type" id="est_type" <?= (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>/> |
|
<label for="langue">Langue</label> |
<?php if ($mode === 'modification') { ?> |
<input id="langue" name="langue" readonly value="<?= $widget['langue']; ?>" /> |
<?php } else { ?> |
<input id="langue" name="langue" list="langues" > |
<datalist id="langues" > |
<?php foreach ($langues as $code => $langue) { ?> |
<option value="<?= $code; ?>"><?= $langue['nom']; ?></option> |
<?php } ?> |
</datalist> |
<?php } ?> |
</div><!-- #basic-details-section --> |
|
|
<div class="register-section" id="profile-details-section"> |
<h2>Description</h2> |
<label for="titre">Titre</label> |
<input type="text" name="titre" id="titre" value="<?= isset($widget['titre']) ? $widget['titre'] : ''; ?>" /> |
|
<label for="description">Description</label> |
<textarea name="description" id="description"><?= isset($widget['description']) ? $widget['description'] : ''; ?></textarea> |
|
<label for="logo">Logo</label><?= isset($widget['logo']) ? '<img src="'.$widget['logo'].'" /><br />Pour changer, télécharger un nouveau fichier.': ''; ?> |
<input type="file" name="logo" id="logo" accept="image" /> |
|
<label for="fond">Image de fond</label> |
<input type="file" name="fond" id="fond" value="<?= $widget['titre']; ?>" /> |
</div><!-- #profile-details-section --> |
|
<div class="register-section" id="profile-details-section"> |
<h2>Champs</h2> |
<label for="type_localisation">Type de localisation</label> |
<select id="type_localisation" name="type_localisation" > |
<option value="<?= (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?>"><?= (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?></option> |
<option value="<?= (isset($widget['type_localisation']) && $widget['type_localisation'] == 'rue') ? 'point' : 'rue'; ?>"><?= (isset($widget['type_localisation']) && $widget['type_localisation'] == 'rue') ? 'point' : 'rue'; ?></option> |
</select> |
|
<label for="localisation">Zoom</label> |
<input type="text" name="localisation" id="localisation" value="<?= isset($widget['localisation']) ? $widget['localisation'] : ''; ?>" /> |
|
<label for="milieux">Milieux</label> |
<input type="text" name="milieux" id="milieux" value="<?= isset($widget['milieux']) ? $widget['milieux'] : ''; ?>" /> |
|
<label for="type_especes">Type liste espèce</label> |
<select id="type_especes" name="type_especes" required> |
<option selected="selected" value="referentiel">Référentiel</option> |
<option value="liste">Liste</option> |
<option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option> |
<option value="fixe">Espèce fixée</option> |
</select> |
|
<label for="referentiel"></label> |
<input type="text" name="referentiel" id="referentiel" required pattern="([a-z]+?)*" |
title="Nom du référentiel ex. bdtfx" |
value="<?= isset($widget['referentiel']) ? $widget['referentiel'] : ''; ?>"/> |
|
<label for="especes"></label> |
<input type="file" name="especes" id="especes" /> |
fichier type |
</div><!-- #profile-details-section --> |
|
<div class="submit complete-registration"> |
<button href="#" type="submit" name="signup_submit" id="signup_submit" class="button" target="" title=""><span class="button-text">Terminer </span></button> |
</div> |
</form> |
|
</div> |
</div> |
</body> |
</html> |
<div id="zone-appli" class="container"> |
<?php if ($bar !== false): ?> |
<div id="tb-navigation" data-courant="widget-cel-export" data-squelette="bootstrap3" data-mode="prod"> |
</div> |
<br/> |
<?php endif; ?> |
<h1 id="widget-titre" class="widget-titre"><?php echo ucfirst($mode); ?> de widget de saisie du CEL</h1> |
<div id="register-page"> |
<div class="row"> |
<div class="widget-blocks col-md-4"> |
<form action="http://localhost/cel/widget/manager?mode=<?php echo $mode; ?>" name="" id="group-settings-form" class="standard-form component component-text" method="post" enctype="multipart/form-data"> |
<div class="register-section" id="basic-details-section"> |
<h2>Meta-données</h2> |
|
<label for="projet">Projet *</label> |
<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" /> |
|
<label for="motscles">Autres mots-clés</label> |
<input type="text" name="motscles" id="motscles" value="" /> |
|
<label for="type">Type de widget</label> |
<div class="select-wrapper"> |
<select id="type" name="type" > |
<?php foreach ($type as $id => $projet) : ?> |
<option <?php echo (isset($widget['projet']) && $projet['projet']== $widget['projet']) ? 'selected="selected"' : ''; ?> value="<?php echo $projet['projet']; ?>"><?php echo $projet['projet']; ?></option> |
<?php endforeach; ?> |
<option value=""> ----</option> |
</select> |
</div> |
|
<label for="est_type">Ce widget est un widget type</label> |
<input type="radio" name="est_type" id="est_type" <?php echo (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>/> |
|
<label for="langue">Langue</label> |
<?php if ($mode === 'modification') : ?> |
<input id="langue" name="langue" readonly value="<?php echo $widget['langue']; ?>" /> |
<?php else : ?> |
<input id="langue" name="langue" list="langues" > |
<datalist id="langues" > |
<?php foreach ($langues as $code => $langue) : ?> |
<option value="<?php echo $code; ?>"><?php echo $langue['nom']; ?></option> |
<?php endforeach; ?> |
</datalist> |
<?php endif; ?> |
</div><!-- #basic-details-section --> |
|
|
<div class="register-section" id="profile-details-description-section"> |
<h2>Description</h2> |
<label for="titre">Titre</label> |
<input type="text" name="titre" id="titre" value="<?php echo isset($widget['titre']) ? $widget['titre'] : ''; ?>" /> |
|
<label for="description">Description</label> |
<textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea> |
|
<div class="input-file-container"> |
<input type="file" class="input-file" name="logo" id="logo" accept="image" /> |
<label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label> |
</div> |
<p class="file-return"></p> |
|
<?php echo isset($widget['logo']) ? '<img src="'.$widget['logo'].'" /><br />Pour changer, télécharger un nouveau fichier.': ''; ?> |
|
<div class="input-file-container"> |
<input type="file" class="input-file" name="fond" id="fond" value="<?php echo $widget['titre']; ?>" /> |
<label for="fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label> |
</div> |
<p class="file-return"></p> |
</div><!-- #profile-details-description-section --> |
|
<div class="register-section" id="profile-details-fields-section"> |
<h2>Champs</h2> |
<label for="type_localisation">Type de localisation</label> |
<div class="select-wrapper"> |
<select id="type_localisation" name="type_localisation" > |
<option value="<?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?>"><?php echo (isset($widget['type_localisation'])) ? $widget['type_localisation'] : 'point'; ?></option> |
<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> |
</select> |
</div> |
|
<label for="localisation">Zoom</label> |
<input type="text" name="localisation" id="localisation" value="<?php echo isset($widget['localisation']) ? $widget['localisation'] : ''; ?>" /> |
|
<label for="milieux">Milieux</label> |
<input type="text" name="milieux" id="milieux" value="<?php echo isset($widget['milieux']) ? $widget['milieux'] : ''; ?>" /> |
|
<label for="type_especes">Type liste espèce *</label> |
<div class="select-wrapper"> |
<select id="type_especes" name="type_especes" required> |
<option selected="selected" value="referentiel">Référentiel</option> |
<option value="liste">Liste</option> |
<option value="liste" title="remplir référentiel + envoyer csv">Liste + autres</option> |
<option value="fixe">Espèce fixée</option> |
</select> |
</div> |
|
<label for="referentiel">Référentiel *</label> |
<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'] : ''; ?>"/> |
<div class="input-file-container"> |
<input type="file" class="input-file" name="especes" id="especes" /> |
<label for="especes"class="label-file"><i class="fas fa-download"></i> Espèces</label> |
fichier type |
</div> |
<p class="file-return"></p> |
|
|
<label for="add_fields">Ajouter un champ</label> |
<input type="button" class="button" name="add_fields" id="add_fields" title="Ajouter un champ" value="+"/> |
</div><!-- #profile-details-fields-section --> |
|
<div class="submit complete-registration"> |
<button href="#" type="submit" name="signup_submit" id="signup_submit" class="button" target="" title=""><span class="button-text">Terminer </span></button> |
</div> |
</form> |
</div> |
<div class="widget-blocks col-md-8 project"> |
<p class="message"> |
<?php if ($mode === 'modification') : ?> |
Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changer. |
S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type. |
<?php else : ?> |
Vous créez un widget, si vous choississez de le mettre dans un type, certains champs deviendront |
obligatoires et la localisation (point ou rue) sera automatiquement déterminée. |
<?php endif; ?> |
</p> |
<iframe src="http://localhost/widget:cel:saisie2?projet=<?php echo isset($widget['projet'])?$widget['projet']:'base'; ?>" class="widget-renderer" height="100%" width="100%" > |
</iframe> |
</div> |
</div> |
</div> |
</body> |
</html> |