name_instance=$referentiel->name; $form->description_instance=$referentiel->description_instance; $form->label_domaine=$referentiel->label_domaine; $form->label_competence=$referentiel->label_competence; $form->label_item=$referentiel->label_item; $form->ref_referentiel=$referentiel->ref_referentiel; $form->date_instance=$referentiel->date_instance; $form->course=$referentiel->course; $form->instance=$referentiel->id; // tres important // configuration $form->config=$referentiel->config; $form->config_impression=$referentiel->config_impression; $ok_existe_au_moins_un_referentiel=(referentiel_referentiel_exists()>0); $ok_creer_importer_referentiel=referentiel_get_item_configuration('creref', $referentiel->id); // creation importation possible si $ok_selectionner_referentiel $ok_selectionner_referentiel=referentiel_get_item_configuration('selref', $referentiel->id); ?>

'; */ ?>
:
:
:
:
:
'; print_string('referentiel_config_local','referentiel'); echo ': '; print_string('aide_referentiel_config_local','referentiel'); echo '
'.referentiel_selection_configuration($form->config); echo '

" /> " />


'.get_string('aide_creer_referentiel','referentiel').'

'; if (($ok_selectionner_referentiel==0) || ($ok_creer_importer_referentiel==0)){ ?>

'.get_string('editer_referentiel_xml','referentiel').'

'."\n"; // $returnlink_modification="$CFG->wwwroot/mod/referentiel/edit.php?id=$cm->id&sesskey=".sesskey(); echo '

'; echo ''.get_string('editeur_referentiel','referentiel').'

'."\n"; echo '
'."\n"; echo '

'.get_string('import_referentiel_xml','referentiel').'

'."\n"; echo '
'; } // creation du referentiel if ($ok_creer_importer_referentiel==0) { // CREATION if (!isset($form->name)) { $form->name = ''; } if (!isset($form->code_referentiel)) { $form->code_referentiel = ''; } if (!isset($form->cle_referentiel)) { $form->cle_referentiel = ''; } if (!isset($form->pass_referentiel)) { $form->pass_referentiel = ''; } if (!isset($form->old_pass_referentiel)){ $form->old_pass_referentiel=''; } if (!isset($form->mail_auteur_referentiel)) { $form->mail_auteur_referentiel = ''; } if (!isset($form->description_referentiel)) { $form->description_referentiel = ''; } if (!isset($form->nb_domaines)) { $form->nb_domaines = '1'; } if (!isset($form->url_referentiel)){ $form->url_referentiel=""; } if (!isset($form->seuil_certificat)){ $form->seuil_certificat=""; } if (!isset($form->local)){ $form->local=0; // initialiser à global } if (!isset($form->liste_codes_competence)){ $form->liste_codes_competence=""; } if (!isset($form->liste_empreintes_competence)) { $form->liste_empreintes_competence = ''; } if (!isset($form->liste_poids_competence)) { $form->liste_poids_competence = ''; } if (!isset($form->logo_referentiel)) { $form->logo_referentiel = ''; } if (!isset($form->code_domaine)) { $form->code_domaine = ''; } if (!isset($form->description_domaine)) { $form->description_domaine = ''; } if (!isset($form->num_domaine)) { $form->num_domaine = '1'; } if (!isset($form->nb_competences)) { $form->nb_competences = '1'; } if (!isset($form->code_competence)) { $form->code_competence = ''; } if (!isset($form->description_competence)) { $form->description_competence = ''; } if (!isset($form->num_competence)) { $form->num_competence = '1'; } if (!isset($form->nb_item_competences)) { $form->nb_item_competences = '1'; } // ITEM if (!isset($form->code_item)) { $form->code_item = ''; } if (!isset($form->description_item)) { $form->description_item = ''; } if (!isset($form->type_item)) { $form->type_item = ''; } if (!isset($form->poids_item)) { $form->poids_item = '1.0'; } if (!isset($form->empreinte_item)) { $form->empreinte_item = '1'; } if (!isset($form->num_item)) { $form->num_item = '1'; } ?>

:
:
'.get_string('pass_referentiel','referentiel').' :
'.get_string('aide_pass_referentiel','referentiel').''; ?>
:
:
:
: local)){ if ($form->local!=0){ // si local == course_id le referentiel est local echo ''. get_string("yes").' '. get_string("no")."\n"; } else{ echo ''. get_string("yes").' '. get_string("no")."\n"; } } else { echo ''. get_string("yes").' '. get_string("no")."\n"; } ?>
:

:
:
:
:

:
:
:
:

:
:
:
:
:
:

" /> " />