Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3360 → Rev 3361

/trunk/widget/modules/manager/squelettes/creation.tpl.html
104,7 → 104,7
<h2>Description</h2>
<div class="col-sm-12 mb-3">
<label for="titre">Titre</label>
<input type="text" name="titre" id="titre" class="form-control" value="<?php echo isset( $widget['titre'] ) ? $widget['titre'] : ''; ?>">
<input type="text" name="titre" id="titre" class="form-control" value="<?php echo isset( $widget['titre'] ) ? htmlspecialchars( $widget['titre']) : ''; ?>">
</div>
 
<div class="input-file-row row">
125,7 → 125,7
endif;
?>
 
<input type="file" class="input-file" name="info" id="info" value="<?= $widget['titre']; ?>" accept="image/*">
<input type="file" class="input-file" name="info" id="info" accept="image/*">
<label for="info" class="label-file "><i class="fas fa-download"></i> Aide dans le titre</label>
</div>
<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>
137,7 → 137,7
 
<div class="col-sm-12 mb-3">
<label for="description">Description</label>
<textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? $widget['description'] : ''; ?></textarea>
<textarea name="description" id="description" class="form-control"><?php echo isset( $widget['description'] ) ? htmlspecialchars( $widget['description'] ) : ''; ?></textarea>
</div>
 
<div class="input-file-row row">
188,7 → 188,7
endif;
?>
 
<input type="file" class="input-file" name="image_fond" id="image_fond" value="<?= $widget['titre']; ?>" accept="image/*">
<input type="file" class="input-file" name="image_fond" id="image_fond" accept="image/*">
<label for="image_fond" class="label-file"><i class="fas fa-download"></i> Image de fond</label>
</div>
<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>
213,7 → 213,7
 
<div class="col-sm-12 mb-3">
<label for="localisation">Zoom</label>
<input type="text" name="localisation" id="localisation" class="form-control" value="<?php echo isset( $widget['localisation'] ) ? $widget['localisation'] : ''; ?>" />
<input type="text" name="localisation" id="localisation" class="form-control" value="<?php echo isset( $widget['localisation'] ) ? htmlspecialchars($widget['localisation'] ) : ''; ?>" />
</div>
 
<div class="col-sm-12 mb-3">
/trunk/widget/modules/manager/Manager.php
201,7 → 201,7
 
foreach ( $_POST as $id => $parametres ) {
if ($parametres !== '' ) {
$parametres_modif[$id] = $parametres;
$parametres_modif[$id] = addslashes($parametres);
} else {
$parametres_modif[$id] = ' ';
}