-
Notifications
You must be signed in to change notification settings - Fork 8
/
add-brand.php
108 lines (101 loc) · 3.72 KB
/
add-brand.php
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
<?php
session_start();
if(!isset($_SESSION['store_id'])) {
header("location:login.php");
exit();
}else{
include('config/db.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Pharmacy</title>
<!-- All CSS -->
<?php include("part/all-css.php");?>
<!-- All CSS end -->
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Navbar -->
<?php include("part/navbar.php");?>
<!-- Navbar end -->
<!-- Sidebar -->
<?php include("part/sidebar.php");?>
<!-- Sidebar end -->
<div class="content-wrapper">
<!-- Main content -->
<section class="container-fluid">
<div class="row">
<div class="card card-default col-md-12 col-lg-9">
<div class="card-header">
<h3 class="card-title">New Brand</h3>
<div class="card-tools">
<a href="manage-brand.php" class="btn btn-info btn-sm">Manage Brands</a>
</div>
</div>
<div class="card-body">
<form action="actions/addMedicineOptions.php" method="POST" enctype="multipart/form-data">
<div class="card-body">
<div class="form-group">
<label for="name">Brand Name</label>
<input type="text" class="form-control" placeholder="Enter Brand Name" name="medicineBrand">
</div>
<div class="form-group">
<label for="name">Details</label>
<textarea name="detailstext" id="" cols="30" rows="5" class="form-control"></textarea>
</div>
<div class="form-group">
<label>Image</label>
<div class="row">
<div class="col-8">
<div class="custom-file">
<input type="file" class="custom-file-input" id="customFile" name="uploadfile" oninput="img_preview.src=window.URL.createObjectURL(this.files[0])">
<label class="custom-file-label">Choose file</label>
</div>
</div>
<div class="col-4">
<img id="img_preview" class="img-thambnail" src="" alt="medicine image" height="200px" width="200px;" >
</div>
</div>
</div>
</div>
<div class="mt-3 ml-4">
<button type="submit" class="btn btn-info" name="submitBrand">Save</button>
</div>
</form>
</div>
</div>
<div class="d-none d-lg-block col-lg-3">
<div class="card">
<a href="#"> <img src="dist/img/clinic.jpg" alt="" class="img-fluid w-100"> </a>
</div>
</div>
</div>
</section>
</div>
<!-- Footer -->
<?php include("part/footer.php");?>
<!-- Footer End -->
</div>
<!-- Alert -->
<?php include("part/alert.php");?>
<!-- Alert end -->
<!-- All JS -->
<?php include("part/all-js.php");?>
<!-- All JS end -->
<!-- Page specific script -->
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
//Initialize Select2 Elements
$(".select2bs4").select2({
theme: "bootstrap4",
});
});
</script>
</body>
</html>