-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddTel.php
168 lines (143 loc) · 8.9 KB
/
addTel.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
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
157
158
159
160
161
162
163
164
165
166
167
168
<?php
include_once("./database/db.php");
include_once("./database/constants.php");
$db = new Database();
$con = $db->connect();
if (!isset($_SESSION["user_login"])) {
echo "<script>
alert('link ไม่ถูกต้อง');
window.location.href='" . DOMAIN . "/login';
</script>";
} else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shoes Store - Check Out</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<!-- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" /> -->
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<!-- <script type="text/javascript">
ddsmoothmenu.init({
mainmenuid: "top_nav", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
</script> -->
<!-- จบ -->
<!-- css admin -->
<link rel="stylesheet" type="text/css" href="admin.css" />
<!-- จบ -->
<!-- css addTel -->
<link rel="stylesheet" type="text/css" href="addTel.css" />
<!-- จบ -->
</head>
<body>
<div id="templatemo_body_wrapper">
<!-- ส่วน header -->
<div id="background_header">
<div id="templatemo_header">
<div id="site_title">
<h1><a href="#">berchewit.com</a>
</h1>
</div>
<div id="header_right">
<p></p>
</div>
<div class="cleaner"></div>
</div> <!-- END of templatemo_header -->
</div>
<div id="templatemo_wrapper">
<div id="templatemo_menubar">
<div id="top_nav" class="ddsmoothmenu">
<ul>
<!-- <li><a href="index.php">หน้าแรก</a></li>
<li><a href="products.php">หมวดหมู่เบอร์</a>
<ul>
<li><a href="products.php #tel1">เบอร์มงคล</a></li>
<li><a href="products.php #tel2">เบอร์มงคลท้าย</a></li>
<li><a href="products.php #tel3">เบอร์หงส์มังกร</a></li>
<li><a href="products.php #tel4">เบอร์เรียง</a></li>
<li><a href="products.php #tel5">เบอร์ตอง</a></li>
<li><a href="products.php #tel6">เบอร์โฟร์</a></li>
</ul>
</li>
<li><a href="about.php">วิธีสั่งซื้อ</a></li>
<li><a href="faqs.php">ติดต่อเรา</a></li> -->
<li><a href="checkout" class="selected">Admin</a></li>
<li><a href="<?php echo DOMAIN . '/logout' ?>">Logout</a></li>
</ul>
<br style="clear: left" />
</div> <!-- end of ddsmoothmenu -->
</div> <!-- END of templatemo_menubar -->
<div id="templatemo_main_table">
<div id="content_table" class="float_b">
<div class="positionText">
<h2>เพิ่มรายการเบอร์ <img src="images/pencil.png" width="53" height="66" /></h2>
</div>
<!-- form เพิ่มข้อมูล -->
<div class="form-style-5">
<form action="./data_process/phone_number_add.php" method="POST">
<fieldset>
<legend><span class="tel">1</span> เบอร์โทรศัพท์</legend>
<input type="text" id="tel" name="tel" placeholder="กรุณากรอกหมายเลข" required>
<!-- <legend><span class="number">2</span> ผลรวม</legend>
<input type="number" id="sum" name="sum" placeholder="กรุณากรอกผลรวม" required> -->
<legend><span class="number">3</span> ราคา</legend>
<input type="number" name="price" placeholder="กรุณากรอกราคา" required>
<legend><span class="number">4</span> รายละเอียด</legend>
<input type="text" name="detail" placeholder="รายละเอียดเพิ่มเติม..." required>
<legend><span class="number">5</span> เครื่อข่าย</legend>
<select id="network" name="network">
<optgroup label="โปรดเลือกเครื่อข่าย">
<option value="DTAC">Dtac</option>
<option value="TRUE">Truemove</option>
<option value="AIS">Ais</option>
</optgroup>
</select>
<legend><span class="number">6</span> หมวดหมู่เบอร์</legend>
<select id="type" name="type">
<optgroup label="โปรดเลือกหมวดหมู่เบอร์">
<option value="เบอร์มงคล">เบอร์มงคล</option>
<option value="เบอร์มงคลท้าย">เบอร์มงคลท้าย</option>
<option value="เบอร์หงส์มังกร">เบอร์หงส์มังกร</option>
<option value="เบอร์เรียง">เบอร์เรียง</option>
<option value="เบอร์ตอง">เบอร์ตอง</option>
<option value="เบอร์โฟร์">เบอร์โฟร์</option>
</optgroup>
</select>
</fieldset>
<input type="submit" value="ยืนยัน" name="submit" />
<input type="button" onclick="location.href='checkout'" value="ยกเลิก" />
</form>
</div>
</div>
</div>
<div class="cleaner"></div>
</div> <!-- END of templatemo_main -->
</div> <!-- END of templatemo_wrapper -->
<!-- ส่วนท้าย -->
<div id="background_footer">
<div id="templatemo_footer">
<p><a href="home">หน้าแรก</a> | <a href="products">หมวดหมู่เบอร์</a> | <a href="about">วิธีสั่งซื้อ</a> | <a href="faqs">ติดต่อเรา</a> | <a href="login">Admin</a>
</p>
Copyright © 2072 <a href="#">berchewit.com</a> <!-- Credit: www.templatemo.com -->
</div> <!-- END of templatemo_footer -->
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js"></script>
<!-- <script type="text/javascript" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script> -->
<!--phone_number_retrieve.js-->
<!-- <script type="text/javascript" src="./js/phone_number_retrieve.js"></script> -->
<!-- <script type="text/javascript">
$(document).ready(function() {
});
</script> -->
</body>
</html>
<?php } ?>