Bonjour j'ai un problème avec des selects.
Lorsque je met mon select basique, il est bien rempli avec les éléments et je peux le dérouler.
Une fois que je lui met la class selectpicker, je ne peux plus dérouler la liste
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Reporting</title>
<script src="../JQuery/jquery.js"></script>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link href="../css/bootstrap/bootstrap.min.css" type="text/css" rel="stylesheet">
<script src="../JQuery/jquery-ui.js"></script>
<link rel="stylesheet" href="../JQuery/jquery-ui.css">
<link href="../css/style.css" type="text/css" rel="stylesheet">
<link href="../css/bootstrap/bootstrap-table.min.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../DataTables/css/jquery.dataTables.css">
<link href="../css/bootstrap/bootstrap-select.min.css" type="text/css" rel="stylesheet">
</head>
<script>
$(function()
{
$( "input.datef" ).datepicker();
var dateFormat = $( "#datepicker" ).datepicker( "option", "dateFormat" );
// setter
$( "input.datef" ).datepicker( "option", "dateFormat", "dd/mm/yy" );
});
$(document).ready(function() {
$('table.display').dataTable();
} );
</script>
<header id="header">
<?php
include('../Header/headerMenu.php');
?>
</header> </br></br>
<h2 align="center"> Recherche & Export </h2>
<body>
</br>
<div >
<form method="post" action="controler_selection_demande.php">
<div class="colonne c1">
<div class="clearfix">
<div class="form-group form-inline">
<label for="Numéro" class="label-control">Numéro De Demande :</label>
<div class="input">
<input maxlength="20" class=" form-control " type="text" placeholder="Numéro" name="dem_id" id="dem_id" value="<?php echo($dem_id)?>" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="label-control" for="PRM">PRM/PDL : </label>
<div class="input">
<input maxlength="20" type="text" name="prm" id="prm" class="form-control" placeholder="PRM/PDL" value="<?php echo($prm)?>" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="label-control" for="SGE">Numéro SGE :</label>
<div class="input">
<input maxlength="20" type="text" name="sge" id="sge" class="form-control" placeholder="SGE" value="<?php echo($sge)?>" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="label-control" for="PCE"> PCE-GI :</label>
<div class="input">
<input maxlength="20" type="text" name="pce" class="form-control" id="pce" placeholder="PCE6GI" class="form-control" value="<?php echo($pce)?>" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="label-control" for="Omega"> Numéro Omega :</label>
<div class="input">
<input maxlength="20" type="text" name="omega" class="form-control" placeholder="Omega" id="omega" value="<?php echo($omega)?>" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label col-md-1" for="energie">Energie : </label>
<select class="form-control selectpicker col-md-3" name='energie'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($energies as $energie)
{
if ($energie['id']== $energieT)
{
echo "<option value=\"".$energie['id']."\"selected";
}
else { echo "<option value=\"".$energie['id']."\"";}
if(isset($_POST['energie']) != null && $_POST['energie'] == $energie)
echo 'selected';
echo ">".$energie['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="expert">Relance de :</label>
<select class="form-control selectpicker" name='relance' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($experts as $expert)
{
if ($expert['id']== $relanceT)
{
echo "<option value=\"".$expert['id']."\"selected";
}
else { echo "<option value=\"".$expert['id']."\"";}
if(isset($_POST['expert']) != null && $_POST['expert'] == $expert)
echo 'selected';
echo ">".$expert['nom']." " . $expert['prenom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="segment">Segment : </label>
<select class="form-control selectpicker" name='segment'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($segments as $segment)
{
if ($segment['id']== $segmentT)
{
echo "<option value=\"".$segment['id']."\"selected";
}
else { echo "<option value=\"".$segment['id']."\"";}
if(isset($_POST['segment']) != null && $_POST['segment'] == $segment)
echo 'selected';
echo ">".$segment['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="objet">Objet : </label>
<select class="form-control selectpicker" name='objet'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($objets as $objet)
{
if ($objet['nom']== $objetT)
{
echo "<option value=\"".$objet['nom']."\"selected";
}
else { echo "<option value=\"".$objet['nom']."\"";}
if(isset($_POST['objet']) != null && $_POST['objet'] == $objet)
echo 'selected';
echo ">".$objet['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="marche">Marche :</label>
<select class="form-control selectpicker" name='marche'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($marches as $marche)
{
if ($marche['id']== $marcheT)
{
echo "<option value=\"".$marche['id']."\"selected";
}
else { echo "<option value=\"".$marche['id']."\"";}
if(isset($_POST['marche']) != null && $_POST['marche'] == $marche)
echo 'selected';
echo ">".$marche['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="expert">Expert en charge :</label>
<select class="form-control selectpicker" name='expert' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($experts as $expert)
{
if ($expert['id']== $expertT)
{
echo "<option value=\"".$expert['id']."\"selected";
}
else { echo "<option value=\"".$expert['id']."\"";}
if(isset($_POST['expert']) != null && $_POST['expert'] == $expert)
echo 'selected';
echo ">".$expert['nom']." " . $expert['prenom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="conseiller">Conseiller :</label>
<select class="form-control selectpicker" name='conseiller' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($conseillers as $conseiller)
{
if ($conseiller['id']== $conseillerT)
{
echo "<option value=\"".$conseiller['id']."\"selected";
}
else { echo "<option value=\"".$conseiller['id']."\"";}
if(isset($_POST['conseiller']) != null && $_POST['conseiller'] == $conseiller)
echo 'selected';
echo ">".$conseiller['nom']." " . $conseiller['prenom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="demandeur">Demandeur d'origine:</label>
<select class="form-control selectpicker" name='demandeur' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($demandeurs as $demandeur)
{
if ($demandeur['demandeur']== $demandeurT)
{
echo "<option value=\"".$demandeur['demandeur']."\"selected";
}
else { echo "<option value=\"".$demandeur['demandeur']."\"";}
if(isset($_POST['demandeur']) != null && $_POST['demandeur'] == $demandeur)
echo 'selected';
echo ">".$demandeur['demandeur']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="type">Demandeur</label> :
<select class="form-control selectpicker" name='DemandeurD' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($demandeursD as $DemandeurD)
{
if ($DemandeurD['utilisateur']== $DemandeurDT)
{
echo "<option value=\"".$DemandeurD['utilisateur']."\"selected";
}
else { echo "<option value=\"".$DemandeurD['utilisateur']."\"";}
if(isset($_POST['DemandeurD']) != null && $_POST['DemandeurD'] == $DemandeurD)
echo 'selected';
echo ">".$DemandeurD['nom']." " . $DemandeurD['prenom'] ."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="Referent">Guichet ROR d'origine </label>
<select class="form-control selectpicker" name='ROROrigine'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($gui_ror as $ROR)
{
if ($ROR['id']== $ROROrigine)
{
echo "<option value=\"".$ROR['id']."\"selected";
}
else { echo "<option value=\"".$ROR['id']."\"";}
if(isset($_POST['ROR']) != null && $_POST['ROR'] == $ROR)
echo 'selected';
echo ">".$ROR['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="guichet">Guichet d'origine:</label>
<select class="form-control selectpicker" name='guichet' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($guichets as $guichet)
{
if ($guichet['id']== $guichetT)
{
echo "<option value=\"".$guichet['id']."\"selected";
}
else { echo "<option value=\"".$guichet['id']."\"";}
if(isset($_POST['guichet']) != null && $_POST['guichet'] == $guichet)
echo 'selected';
echo ">".$guichet['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="document">Document :</label>
<select class="form-control selectpicker" name='document'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($Document as $document)
{
if ($document['nom']== $documentT)
{
echo "<option value=\"".$document['nom']."\"selected";
}
else { echo "<option value=\"".$document['nom']."\"";}
if(isset($_POST['document']) != null && $_POST['document'] == $document)
echo 'selected';
echo ">".$document['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="direction">Direction : </label>
<select class="form-control selectpicker" name='direction' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($directions as $direction)
{
if ($direction['id']== $directionT)
{
echo "<option value=\"".$direction['id']."\"selected";
}
else { echo "<option value=\"".$direction['id']."\"";}
if(isset($_POST['direction']) != null && $_POST['direction'] == $direction)
echo 'selected';
echo ">".$direction['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="guichet">Unité:</label>
<select class="form-control selectpicker" name='unite' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($unites as $unite)
{
if ($unite['id']== $uniteT)
{
echo "<option value=\"".$unite['id']."\"selected";
}
else { echo "<option value=\"".$unite['id']."\"";}
if(isset($_POST['unite']) != null && $_POST['unite'] == $unite)
echo 'selected';
echo ">".$unite['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="direction">Client :</label>
<select class="form-control selectpicker" name='client' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($client as $clien)
{
if ($clien['client']== $clientT)
{
echo "<option value=\"".$clien['id']."\"selected";
}
else { echo "<option value=\"".$clien['client']."\"";}
if(isset($_POST['client']) != null && $_POST['client'] == $clien)
echo 'selected';
echo ">".$clien['client']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="Entité">Entité :</label>
<select class="form-control selectpicker" name='Entite' data-live-search="true">
<option value="" selected >-- Choisissez --</option>
<?php foreach($Entites as $Entite)
{
if ($Entite['id']== $EntiteT)
{
echo "<option value=\"".$Entite['id']."\"selected";
}
else { echo "<option value=\"".$Entite['id']."\"";}
if(isset($_POST['Entite']) != null && $_POST['Entite'] == $Entite)
echo 'selected';
echo ">".$Entite['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="Referent">Transitées/traitées par </br>le guichet Référent :</label>
<select class="form-control selectpicker" name='Referent'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($gui_ref as $Referent)
{
if ($Referent['id']== $ReferentT)
{
echo "<option value=\"".$Referent['id']."\"selected";
}
else { echo "<option value=\"".$Referent['id']."\"";}
if(isset($_POST['Referent']) != null && $_POST['Referent'] == $Referent)
echo 'selected';
echo ">".$Referent['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="Referent">Traitées par le Guichet ROR : </label>
<select class="form-control selectpicker" name='ROR'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($gui_ror as $ROR)
{
if ($ROR['id']== $RORT)
{
echo "<option value=\"".$ROR['id']."\"selected";
}
else { echo "<option value=\"".$ROR['id']."\"";}
if(isset($_POST['ROR']) != null && $_POST['ROR'] == $ROR)
echo 'selected';
echo ">".$ROR['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="Referent">Transférées par le Guichet ROR : </label>
<select class="form-control selectpicker" name='RORValidation'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($gui_ror as $ROR)
{
if ($ROR['id']== $RORValidation)
{
echo "<option value=\"".$ROR['id']."\"selected";
}
else { echo "<option value=\"".$ROR['id']."\"";}
if(isset($_POST['ROR']) != null && $_POST['ROR'] == $ROR)
echo 'selected';
echo ">".$ROR['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="urgent">Urgent :</label>
<select class="form-control selectpicker" name='urgent'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($urgents as $urg)
{
if ($urg['nom']== $urgT)
{
echo "<option value=\"".$urg['nom']."\"selected";
}
else { echo "<option value=\"".$urg['nom']."\"";}
if(isset($_POST['urgent']) != null && $_POST['urgent'] == $urg)
echo 'selected';
echo ">".$urg['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="etat">Etat :</label>
<select class="form-control selectpicker" name='eta'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($etat as $etats)
{
if ($etats['nom']== $eta)
{
echo "<option value=\"".$etats['nom']."\"selected";
}
else { echo "<option value=\"".$etats['nom']."\"";}
if(isset($_POST['etat']) != null && $_POST['etat'] == $etats)
echo 'selected';
echo ">".$etats['nom']."</option>";
} ?>
</select>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label for="Numéro" class="label-control">Date d'ouverture : du </label>
<div class="input">
<input type="text" class="form-control datef" id="date_ouverturedeb" name="OuvDeb"/> au <input type="text" name="OuvFin" class="form-control datef" id="date_ouverturefin" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label for="Numéro" class="label-control">Date d'ouverture : du </label>
<div class="input">
<input type="text" class="form-control datef" id="date_cloturedeb" name="ClosDeb"/> au <input type="text" name="ClosFin" class="form-control datef" id="date_cloturefin" />
</div>
</div>
</div>
<div class="clearfix">
<div class="form-group form-inline">
<label class="control-label" for="type">Type : </label>
<select class="form-control selectpicker" data-live-search="true" name='type'>
<option value="" selected >-- Choisissez --</option>
<?php foreach($types as $type)
{
if ($type['id']== $typeT)
{
echo "<option value=\"".$type['id']."\"selected";
}
else { echo "<option value=\"".$type['id']."\"";}
if(isset($_POST['type']) != null && $_POST['type'] == $type)
echo 'selected';
echo ">".$type['nom']." " . $type['description'] ."</option>";
} ?>
</select>
</div>
</div>
<table align="center" >
<tr>
<td>
<input type="hidden" name="form1" value="yes"/>
<input type="submit" value="Rechercher" /></td>
</div>
</form>
<form method="post" action="controler_recherche.php">
<input type="hidden" name="Test" value="r"/>
<td><input align="right" type="submit" value="Réinitialiser les champs" /></td>
</form>
<form method="post" action="import_excel.php">
<td><input align="right" type="submit" value="Exporter le résultat sous excel" /></td>
<td><input type="checkbox" name="action" value="oui"> Inclure les actions</td>
</table>
</form>
</div>
</div>
<?php
if (isset($Demandes))
{
include('vue_table_recherche.php');
}
?>
</body>
<script src="../DataTables/js/jquery.dataTables.js"></script>
<script src="../css/bootstrap/bootstrap.min.js"></script>
<script src="../css/bootstrap/bootstrap-select.min.js"></script>
<script src="../css/bootstrap/bootstrap-table.min.js"></script>