Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <?php
  2.  
  3. $groupe_indispensable = new Groupe(AFFICHAGE_CAND_INDISPENSABLE);
  4. $groupe_important = new Groupe(AFFICHAGE_CAND_IMPORTANT);
  5. $groupe_informatif = new Groupe(AFFICHAGE_CAND_INFORMATIF);
  6. $critereclient = $client->getMyCriteres();
  7.  
  8.   foreach ($groupe_indispensable->getAllCriteres(true) as $value){
  9.  
  10.        echo '<br />'.$value.'<br />
  11. ';
  12.          echo'<select id="'.$i.'" multiple="multiple" name="datas['.$value.'][]">
  13. ';
  14.          echo "<option disabled=\"disabled\">-- Choix --</option>\n";
  15.     foreach (Client::getAllCriteresValuesAddslashes($value) as $res_critere){
  16.                 $htmloption =  '<option value="'.$res_critere.'"';
  17.          foreach ($critereclient as $res_critereclient){
  18.                   foreach($res_critereclient as  $res_res_critereclient)
  19.                    if ( $res_critere == $res_res_critereclient[0]) {
  20.                     $htmloption .=' selected="selected" ';
  21.                    }
  22.           }
  23.                 $htmloption .= '>'.$res_critere.'</option>
  24. ';
  25.                 echo $htmloption;
  26.     }
  27.   echo '</select><br />
  28. ';
  29. //}
  30. }
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement