Example #1
0
    $class = $val == 'NA' ? ' class="check"' : '';
    $checked = $val == 'NA' ? ' checked' : '';
    $select_critere_seuil_acquis .= '<label for="f_critere_seuil_acquis_' . $val . '"' . $class . '><input type="checkbox" name="f_critere_seuil_acquis[]" id="f_critere_seuil_acquis_' . $val . '" value="' . $val . '"' . $checked . ' /> ' . html($txt) . '</label>';
}
$select_critere_seuil_valide = '';
$tab_options = array(0 => 'Invalidé', 1 => 'Validé', 2 => 'Non renseigné');
foreach ($tab_options as $val => $txt) {
    $class = $val == 0 ? ' class="check"' : '';
    $checked = $val == 0 ? ' checked' : '';
    $select_critere_seuil_valide .= '<label for="f_critere_seuil_valide_' . $val . '"' . $class . '><input type="checkbox" name="f_critere_seuil_valide[]" id="f_critere_seuil_valide_' . $val . '" value="' . $val . '"' . $checked . ' /> ' . html($txt) . '</label>';
}
$tab_groupes = $_SESSION['USER_JOIN_GROUPES'] == 'config' ? DB_STRUCTURE_COMMUN::DB_OPT_groupes_professeur($_SESSION['USER_ID']) : DB_STRUCTURE_COMMUN::DB_OPT_regroupements_etabl(FALSE);
$select_groupe = HtmlForm::afficher_select($tab_groupes, 'f_groupe', '', FALSE, 'regroupements');
$select_critere_objet = HtmlForm::afficher_select(Form::$tab_select_recherche_objet, 'f_critere_objet', '', FALSE, 'objet_recherche');
$select_matiere = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_etabl(), 'f_matiere', FALSE, TRUE, '', TRUE);
$select_piliers = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_paliers_piliers(), 'f_select_pilier', '', FALSE, 'paliers');
$select_selection_items = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_selection_items($_SESSION['USER_ID']), 'f_selection_items', '', FALSE, '');
?>

<div><span class="manuel"><a class="pop_up" href="<?php 
echo SERVEUR_DOCUMENTAIRE;
?>
?fichier=releves_bilans__releve_recherche">DOC : Recherche ciblée.</a></span></div>

<hr />

<form action="#" method="post" id="form_select"><fieldset>
  <p><label class="tab" for="f_groupe">Élèves :</label><?php 
echo $select_groupe;
?>
<input type="hidden" id="f_groupe_id" name="f_groupe_id" value="" /><input type="hidden" id="f_groupe_type" name="f_groupe_type" value="" /><input type="hidden" id="f_groupe_nom" name="f_groupe_nom" value="" /></p>
Example #2
0
$select_critere_seuil_valide = '';
$tab_options = array( 0=>'Invalidé' , 1=>'Validé' , 2=>'Non renseigné' );
foreach($tab_options as $val => $txt)
{
  $class   = ($val==0) ? ' class="check"' : '' ;
  $checked = ($val==0) ? ' checked'       : '' ;
  $select_critere_seuil_valide .= '<label for="f_critere_seuil_valide_'.$val.'"'.$class.'><input type="checkbox" name="f_critere_seuil_valide[]" id="f_critere_seuil_valide_'.$val.'" value="'.$val.'"'.$checked.' /> '.html($txt).'</label>';
}

$tab_groupes = ($_SESSION['USER_JOIN_GROUPES']=='config') ? DB_STRUCTURE_COMMUN::DB_OPT_groupes_professeur($_SESSION['USER_ID']) : DB_STRUCTURE_COMMUN::DB_OPT_regroupements_etabl(FALSE/*sans*/) ;

$select_groupe          = HtmlForm::afficher_select($tab_groupes                                                      , 'f_groupe'          /*select_nom*/ ,    '' /*option_first*/ , FALSE /*selection*/ ,   'regroupements' /*optgroup*/);
$select_critere_objet   = HtmlForm::afficher_select(Form::$tab_select_recherche_objet                                 , 'f_critere_objet'   /*select_nom*/ ,    '' /*option_first*/ , FALSE /*selection*/ , 'objet_recherche' /*optgroup*/);
$select_matiere         = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_etabl()                      , 'f_matiere'         /*select_nom*/ , FALSE /*option_first*/ , TRUE  /*selection*/ ,                '' /*optgroup*/ , TRUE /*multiple*/);
$select_piliers         = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_paliers_piliers()                     , 'f_select_pilier'   /*select_nom*/ ,    '' /*option_first*/ , FALSE /*selection*/ ,         'paliers' /*optgroup*/);
$select_selection_items = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_selection_items($_SESSION['USER_ID']) , 'f_selection_items' /*select_nom*/ ,    '' /*option_first*/ , FALSE /*selection*/ ,                '' /*optgroup*/);

?>

<div><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=releves_bilans__releve_recherche">DOC : Recherche ciblée.</a></span></div>

<hr />

<form action="#" method="post" id="form_select"><fieldset>
  <p><label class="tab" for="f_groupe">Élèves :</label><?php echo $select_groupe ?><input type="hidden" id="f_groupe_id" name="f_groupe_id" value="" /><input type="hidden" id="f_groupe_type" name="f_groupe_type" value="" /><input type="hidden" id="f_groupe_nom" name="f_groupe_nom" value="" /></p>
  <label class="tab" for="f_critere_objet">Critère observé :</label><?php echo $select_critere_objet ?><br />
  <span id="span_matiere_items" class="hide">
    <label class="tab">Item(s) matière(s) :</label><input id="f_matiere_items_nombre" name="f_matiere_items_nombre" size="10" type="text" value="" readonly /><input id="f_matiere_items_liste" name="f_matiere_items_liste" type="text" value="" class="invisible" /><q class="choisir_compet" title="Voir ou choisir les items."></q><br />
  </span>
  <span id="span_socle_item" class="hide">