<? class functions { private $table; private $db; public function __construct($table = "patient") { $this->table = $table; $this->db = new Database(); } // Ici la suite du code function sanitize_my_email($field) { $field = filter_var($field, FILTER_SANITIZE_EMAIL); if (filter_var($field, FILTER_VALIDATE_EMAIL)) { return true; } else { return false; } } // Envoyer un email public function sendmail($to_email,$subject,$message,$headers) { $to =$to_email; $sujet =$subject; $msg =$message; $head ...
import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout; import java.awt.Color; import java.awt.FlowLayout; import java.awt.Panel; import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JMenu; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.event.ChangeListener; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; import javax.swing.event.ChangeEvent; //devlopper par mzili toufik import java.awt.event.ItemListener; import java.awt.event.ItemEvent; public class dis extends JFrame{ dis(){ this.setBounds(100, 100, 450, 300); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); pan panel = new pan(); getContentPane().add(panel, BorderLayout.CENTER); JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JM...