Menu

#14 Pouvoir relancer le menu principal après avoir afficher un planning

1.0
closed
None
Enhancement
2017-01-09
2017-01-08
No

function afficherPlanning(nameIntervenant){
nameIntervenant = nameIntervenant.replace(".",""); //on enlève les points du nom de l'intervenant
nameIntervenant = nameIntervenant.replace(" ",""); //on enlève les espaces du nom de l'intervenant
nameIntervenant = nameIntervenant.replace("-",""); //on enlève les tirets du nom de l'intervenant
var file = fs.readFileSync("database/planningIntervenant"+nameIntervenant+".planinfo", "utf8");
console.log(file);
}
module.exports.choixIntervenant = choixIntervenant;

// Retour au choix

var menu = require("./main.js");
console.log(menu);

Discussion

  • Hadia IDRISSI AOUAD

    • status: open --> accepted
     
  • Hadia IDRISSI AOUAD

    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB