-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
113 lines (83 loc) · 3.15 KB
/
index.php
File metadata and controls
113 lines (83 loc) · 3.15 KB
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
<?php
include_once("classes/users.php");
$obj = new Lists;
if(ISSET($_POST['list_todo'])){
$todo_title = $_POST['todo_title'];
$todo_description = $_POST['todo_description'];
/*$todo_date = date("d/m/y H:i:s");*/
$todo_date = date("d/m/y h:i:s");
$obj->todo_Insert($todo_title,$todo_description,$todo_date);
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BOLT Sports Shop</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
<body>
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1><a href="index.php">BOLT Sports Shop</a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
</ul>
<section class="top-bar-section">
<!-- Right Nav Section -->
<ul class="right">
<li><a href="index.php">Index</a></li>
<li><a href="view_todo.php">View</a></li>
<li><a href="cart.php">View Cart</a></li>
<li><a href="orders.php">My Orders</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</section>
</nav>
<div class="row" style="margin-top:10px;">
<div class="small-12">
<form method="POST" action="" style="margin-top:30px;">
<div class="row">
<div class="small-8">
<div class="row">
<div class="small-4 columns">
<label for="right-label" class="right inline">Todo Title</label>
</div>
<div class="small-8 columns">
<input type="text" id="right-label" placeholder="" name="todo_title">
</div>
</div>
<div class="row">
<div class="small-4 columns">
<label for="right-label" class="right inline">Discription</label>
</div>
<div class="small-8 columns">
<input type="text" id="right-label" name="todo_description">
</div>
</div>
<div class="row">
<div class="small-4 columns">
</div>
<div class="small-8 columns">
<input type="submit" id="right-label" value="Login" name="list_todo" style="background: #0078A0; border: none; color: #fff; font-family: 'Helvetica Neue', sans-serif; font-size: 1em; padding: 10px;">
<input type="reset" id="right-label" value="Reset" style="background: #0078A0; border: none; color: #fff; font-family: 'Helvetica Neue', sans-serif; font-size: 1em; padding: 10px;">
</div>
</div>
</div>
</div>
</form>
<footer style="margin-top:10px;">
<p style="text-align:center; font-size:0.8em;">© BOLT Sports Shop. All Rights Reserved.</p>
</footer>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>