FrameBeurk File
Fmbk/Module/Kom1/controleurRecherche.php
<?php //FrameBeurk V0.65 Copyright ToolOscope 2016. Licence CeCILL-C. ?>
<div id="menuRecherche">
<form id="formrechercheSite" class="saisieMenu" action="<?php echo Beurk_URL(array('ActVue' => 'recherche', 'IdVue' => 'Site')); ?>" method="post" enctype="application/x-www-form-urlencoded">
<div><?php echo Beurk_traduit('Recherche', 'Kom1'); ?></div>
<fieldset>
<legend><?php echo Beurk_traduit('Périmètre', 'Kom1'); ?> :</legend>
<label>
<select name="Perimetre">
<?php //périmètre : affichage des options. les périmètres sont déclarés dans les init<module>.php
foreach($CONFIG['Controle']['Recherche'] as $EntVueRecherche => $paramRecherche) {
$module = $CONFIG['Entite'][$EntVueRecherche]['Module'];
$messageAuto = Beurk_controleurAutorisation($paramRecherche['autorisation'],
array('ActMaj' => 'recherche',
'IdMaj' => $EntVueRecherche,
'preAuto' => true)); // preAuto=true inhibe les autos qui ont besoin d'un résultat (état jeton, controle somme...)
if ($messageAuto == '') {
echo '<option value="' . $EntVueRecherche . '" ',
(isset($_REQUEST['Perimetre']) && $_REQUEST['Perimetre'] == $EntVueRecherche) ? 'selected' : '',
'>' . str_repeat ('| ', $paramRecherche['niveau'] - 1) . $paramRecherche['libelle'] . '</option>' . "\n"; // les '|' représentent la hierarchie des périmètres
}
}
?></select>
</label>
</fieldset>
<fieldset>
<legend><?php echo Beurk_traduit('Mots clés', 'Kom1'); ?> :</legend>
<label>
<input name="MotCle" type="text" value="<?php if (isset($_REQUEST['MotCle'])) echo Beurk_DB2InputHTML($_REQUEST['MotCle']);?>">
</label>
</fieldset>
<fieldset>
<legend><?php echo Beurk_traduit('Créé le', 'Kom1'); ?> :</legend>
<label>
<input name="DateCreation" type="text" data-calendrier="dateRecherche" maxlength="10" value="<?php if (isset($_REQUEST['DateCreation'])) echo Beurk_DB2InputHTML($_REQUEST['DateCreation']);?>">
</label>
</fieldset>
<div id="dateRecherche" style="display:none;"></div>
<fieldset>
<legend><?php echo Beurk_traduit('Créé par', 'Kom1'); ?> :</legend>
<label>
<input name="Createur" type="text" maxlength="16" value="<?php if (isset($_REQUEST['Createur'])) echo Beurk_DB2InputHTML($_REQUEST['Createur']);?>">
</label>
</fieldset>
<div>
<input type="submit" value="<?php echo Beurk_traduit('Rechercher', 'Kom1'); ?>" data-ajax="Page"> <input type="reset" value="<?php echo Beurk_traduit('Init', 'Kom1'); ?>">
</div>
<div>
<span id="messageRecherche"> </span>
</div>
</form>
</div>