Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $groupe_indispensable = new Groupe(AFFICHAGE_CAND_INDISPENSABLE);
- $groupe_important = new Groupe(AFFICHAGE_CAND_IMPORTANT);
- $groupe_informatif = new Groupe(AFFICHAGE_CAND_INFORMATIF);
- $critereclient = $client->getMyCriteres();
- foreach ($groupe_indispensable->getAllCriteres(true) as $value){
- echo '<br />'.$value.'<br />
- ';
- echo'<select id="'.$i.'" multiple="multiple" name="datas['.$value.'][]">
- ';
- echo "<option disabled=\"disabled\">-- Choix --</option>\n";
- foreach (Client::getAllCriteresValuesAddslashes($value) as $res_critere){
- $htmloption = '<option value="'.$res_critere.'"';
- foreach ($critereclient as $res_critereclient){
- foreach($res_critereclient as $res_res_critereclient)
- if ( $res_critere == $res_res_critereclient[0]) {
- $htmloption .=' selected="selected" ';
- }
- }
- $htmloption .= '>'.$res_critere.'</option>
- ';
- echo $htmloption;
- }
- echo '</select><br />
- ';
- //}
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement