en | fr  | Contact  | Print  | Share

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'); ?>&nbsp;:</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 ('|&nbsp;'$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'); ?>&nbsp;:</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'); ?>&nbsp;:</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'); ?>&nbsp;:</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">&nbsp;&nbsp;<input type="reset" value="<?php echo Beurk_traduit('Init''Kom1'); ?>">
</div>
<div>
<span id="messageRecherche">&nbsp;</span>
</div>
</form>
</div>


© 2010-2015 by ToolOscope SASU. © 2016-2018 by Arnaud De Rette. All rights reserved