-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddSup.php
61 lines (58 loc) · 1.47 KB
/
addSup.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
<?php
if(isset($_POST["name"])){
$name = $_POST["name"];
include('class.php');
$oBj = new Main;
echo $oBj->addSupplier($name);
};
include('template/header.php');
include('template/menu.php');
echo '
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="//getbootstrap.com/docs/4.4/examples/starter-template/starter-template.css" rel="stylesheet">
</head>
<body>
';
echo '<main role="main" class="container">
<div class="starter-template">';
include('template/menuPart.php');
echo "
<br>
<h1> เพิ่ม supplier </h1>
<br>
<form action='addSup.php' method='post'>
<table>
<tr>
<td>
ชื่อ supplier
</td>
<td>
<input type='text' name='name' placeholder='ชื่อ supplier' required>
</td>
</tr>
<tr>
<td>
</td>
<td>
<button type='submit' value='submit'>เพิ่ม</button>
</td>
</tr>
</table>
</form>
";
?>