-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
115 lines (104 loc) · 4.78 KB
/
index.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
<?php
require 'includes/classDefs.php';
session_start();
?>
<html>
<head>
<link href="lib/bootstrap3/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/lib/dataTables/css/jquery.dataTables.css" type="text/css" />
<link rel="stylesheet" href="/lib/dataTables/extras/TableTools/media/css/TableTools.css" type="text/css" />
<link rel="stylesheet" href="css/app.css" type="text/css" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script type="text/javascript" src="/lib/dataTables/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="/lib/dataTables/extras/TableTools/media/js/ZeroClipboard.js"></script>
<script type="text/javascript" src="/lib/dataTables/extras/TableTools/media/js/TableTools.js"></script>
<script src="lib/bootstrap3/js/bootstrap.min.js"></script>
<script src="js/jquery.tmpl.js"></script>
<script src="js/ad-data.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">YACM!</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><button id="add_button" type="button" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#basicModal">Add Contact</button></li>
<li class="active"><button id="edit_button" type="button" class="btn btn-default navbar-btn">Edit Contact</button></li>
<li class="active"><button id="delete_button" type="button" class="btn btn-default navbar-btn">Delete Contact</button></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container">
<div class="contactContainer">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="contactGrid" width="80%">
<thead>
<tr>
<th> </th> <!-- contactId -->
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Mobile Number</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Add Contact</h4>
</div>
<div class="modal-body">
<form id="add-contact-form" class="form-horizontal" role="form">
<div class="form-group">
<label for="inputFirstName" class="col-sm-3 control-label">First Name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="inputFirstName" placeholder="First Name" value="Mark">
</div>
</div>
<div class="form-group">
<label for="inputLastName" class="col-sm-3 control-label">Last Name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="inputLastName" placeholder="Last Name" value="Nickel">
</div>
</div>
<div class="form-group">
<label for="inputEmail" class="col-sm-3 control-label">Email</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="inputEmail" placeholder="Email" value="[email protected]">
</div>
</div>
<div class="form-group">
<label for="inputMobileNumber" class="col-sm-3 control-label">Mobile Number</label>
<div class="col-sm-9">
<input type="tel" class="form-control" id="inputMobileNumber" placeholder="Mobile Number" value="999.999.9999">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-success" id="modal_submit">Submit</button>
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>