Export en PDF
tridam23
Messages postés
99
Date d'inscription
Statut
Membre
Dernière intervention
-
tridam23 Messages postés 99 Date d'inscription Statut Membre Dernière intervention -
tridam23 Messages postés 99 Date d'inscription Statut Membre Dernière intervention -
Bonjour et merci bcp jordane45 pour ton assistance
j'ai tester le phpexcel et c'est bon pour jquery je continuerai la lecture. cependant, un autre souci
Question : est-il possible d'ajouter un bouton pour enregistrer en pdf et le bouton impression?
Question : est ce possible au moment de submit que l'enregistrement s'exporte automatiquement en pdf dans un dossier défini?
j'ai tester le phpexcel et c'est bon pour jquery je continuerai la lecture. cependant, un autre souci
<?php require_once("connection.php"); $classe = $_POST['classe']; $inscription = $_POST['inscription']; $nomPhoto = $_FILES['photo']['name']; $file_tmp_name = $_FILES['photo']['tmp_name']; move_uploaded_file($file_tmp_name, "./images/$nomPhoto"); $nom = $_POST['nom']; $prenom = $_POST['prenom']; $postnom = $_POST['postnom']; $naissance = $_POST['naissance']; $sexe = $_POST['sexe']; $pays = $_POST['pays']; $nationalite = $_POST['nationalite']; $adresse = $_POST['adresse']; $surnom = $_POST['surnom']; $religion = $_POST['religion']; $pere = $_POST['pere']; $telpere = $_POST['telpere']; $adresse1 = $_POST['adresse1']; $email = $_POST['email']; $employeur = $_POST['employeur']; $adresseemp = $_POST['adresseemp']; $mere = $_POST['mere']; $telmere = $_POST['telmere']; $adresse2 = $_POST['adresse2']; $email2 = $_POST['email2']; $employeur1 = $_POST['employeur1']; $adresseemp2 = $_POST['adresseemp2']; $nom1 = $_POST['nom1']; $adresse5 = $_POST['adresse5']; $tel1 = $_POST['tel1']; $nom2 = $_POST['nom2']; $adresse6 = $_POST['adresse6']; $tel2 = $_POST['tel2']; $medenft = $_POST['medenft']; $telmed = $_POST['telmed']; $adressemed = $_POST['adressemed']; $dentenft = $_POST['dentenft']; $teldent = $_POST['teldent']; $adressedent = $_POST['adressedent']; $utile = $_POST['utile']; $fam1 = $_POST['fam1']; $age1 = $_POST['age1']; $sex1 = $_POST['sex1']; $fam2 = $_POST['fam2']; $age2 = $_POST['age2']; $sex2 = $_POST['sex2']; $fam3 = $_POST['fam3']; $age3 = $_POST['age3']; $sex3 = $_POST['sex3']; $fam4 = $_POST['fam4']; $age4 = $_POST['age4']; $sex4 = $_POST['sex4']; $autresenft = $_POST['autresenft']; $datedpt = $_POST['datedpt']; $datepolio = $_POST['datepolio']; $datecholera = $_POST['datecholera']; $daterougeole = $_POST['daterougeole']; $datejaune = $_POST['datejaune']; $dateautres = $_POST['dateautres']; $autremed = $_POST['autremed']; $adresseautre = $_POST['adresseautre']; $datefin = $_POST['datefin']; $dateguide = $_POST['dateguide']; $ecolefreq = $_POST['ecolefreq']; $freq1 = $_POST['freq1']; $freq2 = $_POST['freq2']; $classefreq = $_POST['classefreq']; $req = "insert into ELEVES(CLASSE,INSCRIPTION,PHOTO,NOM,PRENOM,POSTNOM,NAISSANCE,SEXE,PAYS,NATIONALITE,ADRESSE,SURNOM,RELIGION,PERE,TELPERE,ADRESSE1,EMAIL,EMPLOYEUR,ADRESSEEMP,MERE,TELMERE,ADRESSE2,EMAIL2,EMPLOYEUR1,ADRESSEEMP2,NOM1,ADRESSE5,TEL1,NOM2,ADRESSE6,TEL2,MEDENFT,TELMED,ADRESSEMED,DENTENFT,TELDENT,ADRESSEDENT,UTILE,FAM1,AGE1,SEX1,FAM2,AGE2,SEX2,FAM3,AGE3,SEX3,FAM4,AGE4,SEX4,AUTRESENFT,DATEDPT,DATEPOLIO,DATECHOLERA,DATEROUGEOLE,DATEJAUNE,DATEAUTRES,AUTREMED,ADRESSEAUTRE,DATEFIN,DATEGUIDE,ECOLEFREQ,FREQ1,FREQ2,CLASSEFREQ) values ('$classe','$inscription','$nomPhoto','$nom','$prenom','$postnom','$naissance','$sexe','$pays','$nationalite','$adresse','$surnom','$religion','$pere','$telpere','$adresse1','$email','$employeur','$adresseemp','$mere','$telmere','$adresse2','$email2','$employeur1','$adresseemp2','$nom1','$adresse5','$tel1','$nom2','$adresse6','$tel2','$medenft','$telmed','$adressemed','$dentenft','$teldent','$adressedent','$utile','$fam1','$age1','$sex1','$fam2','$age2','$sex2','$fam3','$age3','$sex3','$fam4','$age4','$sex4','$autresenft','$datedpt','$datepolio','$datecholera','$daterougeole','$datejaune','$dateautres','$autremed','$adresseautre','$datefin','$dateguide','$ecolefreq','$freq1','$freq2','$classefreq')"; mysql_query($req) or (die(mysql_error)); ?> <!DOCTYPE html> <html> <head lang="fr"> <meta charset="utf-8"> <title>Ajouter un Elève</title> <style type="text/css"> body, td, th { font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif; } </style> </head> <body bgcolor="#3FACFC" leftmargin="50"> <h1 align="center">Jewels International School of Kinshasa <br> 6705, Av. O.U.A., <br> Commune de Ngaliema Kinshasa, <br> Democratic Republic of Congo</h1> <p align="center"><img src="logo/logo.png" width="140" height="134" alt=""/></p> <form method="post" action="ajouterEleve.php" enctype="multipart/form-data"> <p> <label>Grade/Classe:</label> <strong><?php echo($classe) ?></strong> <label><br> Date of inscription/Date d'Inscription:</label> <strong><?php echo($inscription) ?></strong> <label> </p> <p> <img src="images/<?php echo($nomPhoto) ?>"width="90" height="113</label> <h1 align="center"> <p> <label><br> </label> <label>Name of Student/Nom de l'étudiant: Last/Nom:</label> <strong><?php echo($nom) ?></strong> <label> Name/Prenom:</label> <strong><?php echo($prenom) ?></strong> <label>Middle/Post-nom:</label> <strong><?php echo($postnom) ?><br></strong> <label><br> Date of Birth/Date de naissance:</label> <strong><?php echo($naissance) ?></strong> <br> <br> <label>Gender/Sexe:</label> <strong><?php echo($sexe) ?></strong> <label><br> COUNTRY OF BIRTH/PAYS DE NAISSANCE:</label> <strong><?php echo($pays) ?><br></strong> <label><br> NATIONALITY/NATIONALITE :</label> <strong><?php echo($nationalite) ?><br></strong> <label><br> ADDRESS/ADRESSE:</label> <strong><?php echo($adresse) ?><br></strong> <label><br> NAME BY WHICH THE CHILD IS MOST FREQUENTLY CALLED/NOM PAR LEQUEL L'ENFANT EST SOUVENT IDENTIFIE:</label> <?php echo($surnom) ?><br> <label><br> RELIGION :</label> <?php echo($religion) ?><br> <label><br> FATHER'S OR GUARDIAN'S NAME/NOM DU PERE ou TUTEUR:</label> <?php echo($pere) ?><br> <label><br> PHONE N°/NUMERO TEL.:</label> <?php echo($telpere) ?><br> <label><br> HOME ADDRESS/ADRESSE DU DOMICILE:</label> <?php echo($adresse1) ?><br> <label><br> E-MAIL ADDRESS/ADRESSE ELECTRONIQUE :</label> <?php echo($email) ?><br> <label><br> EMPLOYER/EMPLOYEUR - Company/Entreprise :</label> <label><?php echo($employeur) ?><br> <label><br> EMPLOYER'S ADDRESS/ADRESSE DE L'EMPLOYEUR:</label> <label><?php echo($adresseemp) ?><br> <label><br> MOTHER'S OR GUARDIAN'S NAME/NOM DE LA MERE ou TUTEUR :</label> <label><?php echo($mere) ?><br> <label><br> PHONE N°/NUMERO TEL.:</label> <label><?php echo($telmere) ?><br> <label><br> HOME ADDRESS/ADRESSE DU DOMICILE :</label> <label><?php echo($adresse2) ?><br> </p> </p> <p>(If different from above/Si différente de celle-ci-haut mentionnée)</p> <label> E-MAIL ADDRESS/ADRESSE ELECTRONIQUE :</label> <label><?php echo($email2) ?><br> <label><br> EMPLOYER/EMPLOYEUR - Company/Entreprise:</label> <label><?php echo($employeur1) ?><br> <label><br> EMPLOYER'S ADDRESS/ADRESSE DE L'EMPLOYEUR :</label> <label><?php echo($adresseemp2) ?> <label><br> <br> </label> <p>If neither parent nor guardian can be reached in an emergency, contact:/En cas d’urgence, si le parent ou le tuteur est injoignable, contacter:</p> <label> NAME/NOM :</label> <?php echo($nom1) ?> <label> NAME/NOM :</label> <?php echo($nom2) ?> <label><br> <br> ADDRESS/ADRESSE:</label> <?php echo($adresse5) ?> <label> ADDRESS/ADRESSE:</label> <?php echo($adresse6) ?> <label><br> <br> PHONE N°/NUM. TEL.:</label> <?php echo($tel1) ?> <label> PHONE N°/NUM. TEL.:</label> <?php echo($tel2) ?> <label><br> <br> CHILD'S DOCTOR/MEDECIN DE L'ENFANT :</label> <?php echo($medenft) ?> <label> PHONE N°/NUM. TEL.:</label> <?php echo($telmed) ?><br> <label><br> DOCTOR'S ADDRESS/ADRESSE DU MEDECIN :</label> <?php echo($adressemed) ?><br> <label><br> CHILD'S DENTIST/DENTISTE DE L'ENFANT :</label> <?php echo($dentenft) ?> <label> PHONE N°/NUM. TEL.:</label> <?php echo($teldent) ?><br> <label><br> DENTIST'S ADDRESS/ADRESSE DU DENTISTE:</label> <?php echo($adressedent) ?><br> <label><br> Please give any information concerning your child which you think may be helpful to us. (PLAY AND EATING HABITS, FEARS, LIKES AND DISLIKES, CHRONIC HEALTH CONDITIONS & MEDICATIONS - ASTHMA, ALLERGIES, ETC.)/ Veuillez fournir toute information utile concernant l'enfant. (DIVERTISSEMENT & REGIME ALIMENTAIRE, PEURS, PREFERENCES & AVERSIONS, MALADIES CHRONIQUES & MEDICAMENTS - ASTHME, ALLERGIES, ETC.) :</label> <?php echo($utile) ?><br> <label><br> Other children in family/Autres enfants dans la famille :</label> <?php echo($fam1) ?> <label> Age:</label> <?php echo($age1) ?> <label>Gender/Sexe:</label> <?php echo($sex1) ?><br> <label><br> Other children in family/Autres enfants dans la famille :</label> <?php echo($fam2) ?> <label> Age:</label> <?php echo($age2) ?> <label>Gender/Sexe:</label> <?php echo($sex2) ?><br> <label><br> Other children in family/Autres enfants dans la famille :</label> <?php echo($fam3) ?> <label> Age:</label> <?php echo($age3) ?> <label>Gender/Sexe:</label> <?php echo($sex3) ?><br> <label><br> Other children in family/Autres enfants dans la famille :</label> <?php echo($fam4) ?> <label> Age:</label> <?php echo($age4) ?> <label>Gender/Sexe:</label> <?php echo($sex4) ?><br> <label><br> List other adults in the family (relation to child)/Autres enfants dans la famille (relations avec l'enfant):</label> <?php echo($autresenft) ?><br> <P>IMMUNIZATION RECORD/CARNET DE VACCINATION: (Please enter the date of the last immunization/Veuillez indiquer la date du dernier vaccine.)</P> <table width="80" border="1"> <tr> <td><strong>Immunization/Vaccin </strong></td> <td><strong>Date</strong></td> <td><strong>Immunization/Vaccin</strong></td> <td><strong>Date</strong></td> </tr> <tr> <td>DPT/Diphtérie:</td> <td><?php echo($datedpt) ?></td> <td>MMR/Rougeole:</td> <td><?php echo($daterougeole) ?></td> </tr> <tr> <td>Oral Polio/Polio Oral:</td> <td><?php echo($datepolio) ?></td> <td>Yellow fever/FièvreJaune:</td> <td><?php echo($datejaune) ?></td> </tr> <tr> <td>Cholera:</td> <td><?php echo($datecholera) ?></td> <td>Other/Autre:</td> <td><?php echo($dateautres) ?></td> </tr> </table> <label><br> Should an emergency arise, I hereby give my permission to the school to call a doctor for medical or surgical care for my child. / En cas d'urgence, j'autorise l'école à faire appel à un médecin pour une éventuelle intervention médicale ou chirurgicale en faveur de mon enfant: </label> <?php echo($autremed) ?> It is understood that a conscientious effort will be made to locate me or/Il est entendu qu'un effort devra être fourni au préalable pour me localiser ou </label> <?php echo($adresseautre) ?>before any action is taken, but if it is not possible to contact me, I will accept this action. I accept all the emergency treatment charges/avant d'entreprendre quelque action que ce soit; mais s'il n'est pas possible de me contacter, j'accepterai toute action entreprise par l'école. Je m'engage donc à m'acquitter des frais d'urgence. <label><br> <br> Date: </label> <?php echo($datefin) ?> <br> <br>FIELD TRIPS/VISITES GUIDEES I give permission for child to go on trips away from the premises of the school, whether on foot or by vehicle. Pour les activités parascolaires, j'autorise aussi mon enfant d'aller en visite guidée en dehors de l'école, à pied ou en véhicule, sous l'encadrement de l'enseignant. <label><br> <br> Date: </label> <?php echo($dateguide) ?> <br> <label><br> <strong>PREVIOUS SCHOOL/ECOLE ANTERIEURE </strong><br> <br>NAME OF PREVIOUS SCHOOL ATTENDED (IF NOT JEWELS)/NOM DE L'ECOLE PRECEDENTE (SI PAS JEWELS) :</label> <?php echo($ecolefreq) ?><br> <label><br> DATE STUDENT ATTENDED/PERIODE DE FREQUENTATION: From/De: </label> <?php echo($freq1) ?> To/A : </label> <?php echo($freq2) ?> <label><br> <br> GRADE COMPLETED/CLASSE FREQUENTEE :</label> <?php echo($classefreq) ?><br> <br> <br> <br> <label></label><input type="submit" value="Enregistrer"><br> </form> </body> </html>
Question : est-il possible d'ajouter un bouton pour enregistrer en pdf et le bouton impression?
Question : est ce possible au moment de submit que l'enregistrement s'exporte automatiquement en pdf dans un dossier défini?
A voir également:
- Export en PDF
- Lire le coran en français pdf - Télécharger - Histoire & Religion
- Save as pdf office 2007 - Télécharger - Bureautique
- Télécharger dictionnaire larousse pdf gratuit - Télécharger - Dictionnaires & Langues
- Notices gratuites pdf - Guide
- Pdf creator - Télécharger - PDF
2 réponses
Bonjour,
Oui
Oui
.. il existe une class pour générer du PDF.
(enfin.. il en existe même plusieurs.... )
en voici une : https://tcpdf.org/
Et une autre : http://www.fpdf.org/
Et un petit tuto pour celle là : https://jc-cornic.developpez.com/tutoriels/php/pdf/index.php?page=page_1#LI-B
Question : est-il possible d'ajouter un bouton pour enregistrer en pdf et le bouton impression?
Oui
Question : est ce possible au moment de submit que l'enregistrement s'exporte automatiquement en pdf dans un dossier défini?
Oui
.. il existe une class pour générer du PDF.
(enfin.. il en existe même plusieurs.... )
en voici une : https://tcpdf.org/
Et une autre : http://www.fpdf.org/
Et un petit tuto pour celle là : https://jc-cornic.developpez.com/tutoriels/php/pdf/index.php?page=page_1#LI-B
Le plus simple c'est de suivre les tutoriels à ce sujet :
https://jc-cornic.developpez.com/tutoriels/php/pdf/
ou celui ci :
http://obligement.free.fr/articles/fpdf.php
Mais tu pourras en trouver d'autres sur le net.
https://jc-cornic.developpez.com/tutoriels/php/pdf/
ou celui ci :
http://obligement.free.fr/articles/fpdf.php
Mais tu pourras en trouver d'autres sur le net.
Bonjour,
dans mon appli php de gestion d'inscription des élèves, les infos s'affiche sous forme de tableau dans lequel je n'affiche que les infos importantes.
Préoccupation : j'aimerai qu'en cliquant sur un élèment cela affiche sous forme d'une fiche toutes les autres informations sur l'élève sélection?
dans mon appli php de gestion d'inscription des élèves, les infos s'affiche sous forme de tableau dans lequel je n'affiche que les infos importantes.
Préoccupation : j'aimerai qu'en cliquant sur un élèment cela affiche sous forme d'une fiche toutes les autres informations sur l'élève sélection?
je suis un peut perdu
j'ai tenté de mettre le code dans la page ajouterEleve.php mais tout plein d'erreur
"FPDF error: Some data has already been output, can't send PDF file"
=>Il faut créer une page PHP à part ... que tu appelles via ton bouton ...
Donc.. d'un côté tu as la page qui te permet d'afficher des choses ...
de l'autre .. une page qui ne sert qu' A LA GENERATION DU PDF
Et comment faire la manip avec le bouton?
Désolé de toutes ces questions.