1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="keywords"
content="wrappixel, admin dashboard, html css dashboard, web dashboard, bootstrap 5 admin, bootstrap 5, css3 dashboard, bootstrap 5 dashboard, Matrix lite admin bootstrap 5 dashboard, frontend, responsive bootstrap 5 admin template, Matrix admin lite design, Matrix admin lite dashboard bootstrap 5 dashboard template"
/>
<meta
name="description"
content="Matrix Admin Lite Free Version is powerful and clean admin dashboard template, inpired from Bootstrap Framework"
/>
<meta name="robots" content="noindex,nofollow" />
<title> ORDONNANCE MEDICALE </title>
<!-- Favicon icon -->
<link
rel="icon"
type="image/png"
sizes="16x16"
href="../assets/images/Stéthoscope.jpg"
/>
<!-- Bootstrap icons CSS -->
<link rel="stylesheet" type="text/css" href="../assets/icons-1.10.2/font/bootstrap-icons.css">
<!-- Custom CSS -->
<link href="../assets/libs/flot/css/float-chart.css" rel="stylesheet" />
<!-- Custom CSS -->
<link href="../dist/css/style.min.css" rel="stylesheet" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<div class="preloader">
<div class="lds-ripple">
<div class="lds-pos"></div>
<div class="lds-pos"></div>
</div>
</div>
<!-- ============================================================== -->
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div
id="main-wrapper"
data-layout="vertical"
data-navbarbg="skin5"
data-sidebartype="full"
data-sidebar-position="absolute"
data-header-position="absolute"
data-boxed-layout="full"
>
<?php
include('Connexion_BD.php');
if((isset($_POST['edit_medic'])) AND ($_POST['edit_medic'] == "EDITER")){
header('Location: medicaments.php');
die();
}
include('menu.php');
include('sidebar.php');
?>
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h4 class="page-title"> Médicaments </h4>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<?php
if((isset($_GET['oper'])) AND (isset($_GET['id']))){
if($_GET['oper'] == "edit"){
$id_Medicament = $_GET['id'];
$req1 = $bdd -> prepare ('SELECT * FROM medicament WHERE id_Medicament = ?');
$req1 -> execute(array($id_Medicament));
$donnees1 = $req1->fetch();
$nom_Medic = $donnees1['design_Medicament'];
$dos_Medic = $donnees1['dosage_Medicament'];
$id_typ_Medic = $donnees1['type_Medicament'];
$req1->closeCursor();
?>
<from method="post" action="medicaments2.php?oper=edit&id=<?= $id_Medicament; ?>"
class="d-flex flex-column align-items-center justify-content-center position-absolute top-50 start-50 translate-middle border border-3 border-success rounded rounded-3 shadow-lg col-sm-5">
<legend class="fs-4 text-dark fw-bold fst-italic text-decoration-underline mt-3 mb-2 text-center">
Modifier les informations du Médicament :
</legend>
<div class="row col-sm-12 m-2">
<label class="fs-5 text-dark col-sm-4"> ID Médicament : </label>
<div class="col-sm-8">
<input type="text" readonly class="form-control fs-5 text-dark" value="<?= $id_Medicament; ?>" name="id_medic">
</div>
</div>
<div class="row col-sm-12 m-2">
<label class="fs-5 text-dark col-sm-4"> Nom Médicament : </label>
<div class="col-sm-8">
<input type="text" class="form-control fs-5 text-dark" value="<?= $nom_Medic; ?>" name="nom_medic">
</div>
</div>
<div class="row col-sm-12 m-2">
<label class="fs-5 text-dark col-sm-4"> Dosage Médicament : </label>
<div class="col-sm-8">
<input type="text" class="form-control fs-5 text-dark" value="<?= $dos_Medic; ?>" name="dos_medic">
</div>
</div>
<div class="row col-sm-12 m-2">
<label class="fs-5 text-dark col-sm-4"> Type Médicament : </label>
<div class="col-sm-8">
<select class="form-select fs-5 text-dark" name="type_medic" aria-label="Default select example">
<?php
$req = $bdd -> prepare('SELECT * FROM type_medicament');
$req -> execute(array());
while($donnees = $req->fetch()){
?>
<option class="fs-5 text-dark" value="<?php echo $donnees['id_Type_Medicament'];?>" <?php if($donnees['id_Type_Medicament'] == $id_typ_Medic){echo "selected";} ?> >
<?= $donnees['type_Medicament']; ?>
</option>
<?php
}
?>
</select>
</div>
</div>
<input type="submit" name="edit_medic" value="EDITER" class="btn btn-lg col-sm-6 btn-success text-white fs-5 mt-3 mb-4 text-center">
</form>
<a href="medicaments.php" class="btn btn-sm btn-success fs-6 text-white mb-3">Retour à la liste des Médicaments <i class="bi bi-arrow-return-left"></i></a>
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
<?php
include('footer.php');
?> |
Partager