1,9 → 1,9 |
<!DOCTYPE html> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head> |
<title><?php echo $mode; ?> de widget de saisie du CeL</title> |
<title><?= $mode; ?> de widget de saisie du CeL</title> |
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> |
<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" /> |
28,28 → 28,14 |
<!-- 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="https://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.min.js"></script> |
<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> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/jquery-ui/1.8.17/js/jquery.ui.datepicker-fr.js"></script> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/jquery.validate.js"></script> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/validate/1.9.0/messages_fr.js"></script> |
<script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/form/2.95/jquery.form.min.js"></script> |
<script type="text/javascript" src="https://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script> |
|
<!-- Barre de navigation --> |
<?php if ($bar !== false): ?> |
<script src="<?php echo $url_script_navigation; ?>"></script> |
<?php endif; ?> |
|
<!-- CSS --> |
<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"> |
<link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css"> |
<link rel="stylesheet" type="text/css" href="<?php echo $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen"> |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous"> |
<link rel="stylesheet" type="text/css" href="https://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" /> |
<link rel="stylesheet" type="text/css" href="<?= $url_base; ?>modules/manager/squelettes/css/manager.css" media="screen" /> |
<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 if( $prod ) : ?> |
<?php include "analytics.html"; ?> |
<?php endif; ?> |
</head> |
56,11 → 42,11 |
|
<body> |
<div id="zone-appli" class="container"> |
<?php if ($bar !== false): ?> |
<?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> |
<h1 id="widget-titre" class="widget-titre"><?php echo ucfirst( $mode ); ?> de widget de saisie du CEL</h1> |
<div id="register-page"> |
<div id="group-settings-form" class="row"> |
|
67,7 → 53,7 |
<div class="widget-blocks col-md-4"> |
|
<p class="message"> |
<?php if ($mode === 'modification') : ?> |
<?php if ( $mode === 'modification' ) : ?> |
Attention vous modifiez un widget déjà existant, le tag et la langue ne peuvent pas être changés. |
S'il s'agit d'un projet type, en modifiant ce widget vous modifiez tous les widgets de ce type. |
<?php else : ?> |
76,14 → 62,14 |
<?php endif; ?> |
</p> |
|
<form action="<?php echo $url_base; ?>manager?mode=<?php echo $mode.$params; ?>" id="basic-widget-form" class="standard-form component component-text" method="post" enctype="multipart/form-data"> |
<form action="<?= $url_base; ?>manager?mode=<?= $mode.$params; ?>" id="basic-widget-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> |
|
<?php //var_dump($widget); ?> |
<?php // var_dump($widget); ?> |
<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"> |
<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="" /> |
92,23 → 78,23 |
<div class="select-wrapper"> |
<select id="type" name="type"> |
<option value=""> ----</option> |
<?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 foreach ( $type as $id => $projet ) : ?> |
<option <?php echo ( isset( $widget['projet'] ) && $projet['projet'] === $widget['projet'] ) ? 'selected="selected"' : ''; ?> value="<?= $projet['projet']; ?>"><?= $projet['projet']; ?></option> |
<?php endforeach; ?> |
</select> |
</div> |
|
<label for="est_type">Ce widget est un widget type</label> |
<input type="checkbox" name="est_type" id="est_type" <?php echo (isset($widget['est_type']) && $projet['est_type']=== '1') ? 'checked="checked"' : ''; ?>> |
<input type="checkbox" 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 if ( $mode === 'modification' ) : ?> |
<input id="langue" name="langue" readonly value="<?= $widget['langue']; ?>"> |
<?php else : ?> |
<div class="select-wrapper"> |
<select id="langue" name="langue"> |
<?php foreach ($langues as $code => $langue) : ?> |
<option value="<?php echo $code; ?>" <?php echo $code === 'fr' ? 'selected' : '';?>><?php echo $langue['nom']; ?></option> |
<?php foreach ( $langues as $code => $langue ) : ?> |
<option value="<?= $code; ?>" <?= ( $code === 'fr' ) ? 'selected' : '';?>><?= $langue['nom']; ?></option> |
<?php endforeach; ?> |
</select> |
</div> |
119,10 → 105,17 |
<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'] : ''; ?>"> |
<input type="text" name="titre" id="titre" value="<?php echo isset( $widget['titre'] ) ? $widget['titre'] : ''; ?>"> |
|
<div class="input-file-container"> |
<input type="file" class="input-file" name="info" id="info" value="<?= $widget['titre']; ?>" accept="image/*"> |
<label for="info" class="label-file"><i class="fas fa-download"></i> Image d'aide dans le titre (.jpg)</label> |
</div> |
<div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div> |
<div class="file-return info hidden"></div> |
|
<label for="description">Description</label> |
<textarea name="description" id="description"><?php echo isset($widget['description']) ? $widget['description'] : ''; ?></textarea> |
<textarea name="description" id="description"><?php echo isset( $widget['description'] ) ? $widget['description'] : ''; ?></textarea> |
|
<div class="input-file-container"> |
|
132,7 → 125,7 |
$logo_img = |
'<img id="pre-existent-logo" src="' . $logo_src . '"><br>Pour changer, télécharger un nouveau fichier.'; |
$logo_hidden = ''; |
$logo_file_name = array_reverse(explode('/', $logo_src)); |
$logo_file_name = array_reverse( explode( '/', $logo_src ) ); |
else : |
$logo_src = ''; |
$logo_img = ''; |
141,24 → 134,25 |
endif; |
?> |
|
<input type="file" class="input-file" name="logo" id="logo" accept="image" value="<?php echo $logo_src; ?>"> |
<input type="file" class="input-file" name="logo" id="logo" accept="image/*" value=""> |
<label for="logo" class="label-file"><i class="fas fa-download"></i> Logo</label> |
</div> |
<div class="remove-file button" name="remove-file" title="Supprimer le fichier"> |
<i class="fas fa-times" aria-hidden="true"></i> |
</div> |
<div class="file-return logo<?php echo $logo_hidden; ?>"> |
<?php echo $logo_file_name[0]; ?> |
<?php echo $logo_img; ?> |
<div class="file-return logo<?= $logo_hidden; ?>"> |
<?= $logo_file_name[0]; ?> |
<?= $logo_img; ?> |
</div> |
|
|
<div class="input-file-container"> |
<input type="file" class="input-file" name="fond" id="fond" value="<?php echo $widget['titre']; ?>"> |
<input type="file" class="input-file" name="fond" id="fond" value="<?= $widget['titre']; ?>" accept="image/*"> |
<label for="fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label> |
</div> |
<div class="remove-file button" name="remove-file" title="Supprimer le fichier"><i class="fas fa-times" aria-hidden="true"></i></div> |
<div class="file-return fond hidden"></div> |
|
</div><!-- end #profile-details-description-section --> |
|
<div class="register-section" id="profile-details-fields-section"> |
166,16 → 160,16 |
<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> |
<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'] : ''; ?>" /> |
<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'] : ''; ?>"> |
<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"> |
188,7 → 182,7 |
</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'] : ''; ?>"> |
<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'] : ''; ?>"> |
|
<!-- Bouton fichier-type à compléter --> |
<div class="input-file-container"> |
249,7 → 243,6 |
<div id="preview-title" class="col-md-8"> |
<h1></h1> |
</div> |
|
</div> |
|
<div id="preview-messages" class="row"> |
262,6 → 255,7 |
</h3> |
<p class="preview-description"></p> |
</div> |
|
</div><!-- end #preview-description --> |
|
<div id="preview-aide" class="col-md-5"> |
279,14 → 273,13 |
</p> |
<p class="discretion"> |
Pour toute question ou remarque, |
<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= |
" |
javascript:window.open( |
this.getAttribute('href'), |
'Tela Botanica - Remarques', |
config='height=700, width=640, scrollbars=yes, resizable=yes' |
); |
return false; |
<a href="https://www.tela-botanica.org/widget:reseau:remarques?service=cel&pageSource=<?= $url_base; ?>manager?mode=<?php echo $mode . $params; ?>" target="_blank" onclick=" |
javascript:window.open( |
this.getAttribute( 'href' ), |
'Tela Botanica - Remarques', |
config = 'height=700, width=640, scrollbars=yes, resizable=yes' |
); |
return false; |
">contactez-nous</a> |
</p> |
</div> |
376,7 → 369,7 |
<label for="certitude" class="" title=""> |
<i class="fa fa-question"></i> Certitude * |
</label> |
<div class="date select-wrapper add-field-select" id="datetimepicker"> |
<div class="select-wrapper add-field-select"> |
<select id="certitude" name="certitude" required> |
<option value="">-</option> |
</select> |
394,8 → 387,6 |
</div> |
</form> |
|
<div id="image" class="row align-items-center"></div> |
|
</div><!-- end #preview-formulaire --> |
|
</div><!-- end #widget-renderer--> |
421,6 → 412,25 |
</div> |
</div> |
</div> |
<script type="text/javascript" src="<?php echo $url_base; ?>modules/manager/squelettes/js/manager.js"></script> |
<!-- Jquery --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/1.11.1/jquery-1.11.1.min.js"></script> |
|
<!-- Jquery UI : nécessaire pour le minicalendrier et l'auto-complétion --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/jquery-ui.min.js"></script> |
<!-- <script type="text/javascript" src="https://resources.tela-botanica.org/jquery/jquery-ui/1.11.0/js/datepicker-fr.js"></script> --> |
<!-- Jquery Plugins --> |
<!-- Jquery Validate : nécessaire pour la validation des formulaires --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/jquery.validate.min.js"></script> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/additional-methods.min.js"></script> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/validate/1.11.1/messages_fr.js"></script> |
<!-- Jquery Form :nécessaire pour l'upload des images --> |
<script type="text/javascript" src="https://resources.tela-botanica.org/jquery/form/3.51/jquery.form.min.js"></script> |
<!-- Bootstrap --> |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> |
<script type="text/javascript" src="<?= $url_base; ?>modules/manager/squelettes/js/manager.js"></script> |
<!-- Barre de navigation --> |
<?php if ( $bar !== false ) : ?> |
<script src="<?= $url_script_navigation; ?>"></script> |
<?php endif; ?> |
</body> |
</html> |