-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
83 lines (70 loc) · 2.05 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
<html>
<head>
<title>Push Notification Admin Panel</title>
<style type="text/css">
html {
height: 100%;
font-size: 62.5%
}
body {
height: 100%;
background-color: #FFFFFF;
font: 1.4em Verdana, Arial, Helvetica, sans-serif;
}
/* ==================== Form style sheet ==================== */
/*div { align-content: center; padding-bottom: 30px; }*/
fieldset {
display: inline;
align-content: center;
border: 1px solid #095D92;
width: 50%
}
legend {
font-size: 1.1em;
background-color: #707070;
color: #FFFFFF;
font-weight: bold;
}
input.submit-button {
font: 1.4em Georgia, "Times New Roman", Times, serif;
letter-spacing: 1px;
display: block;
width: 25em;
height: 2em;
background-color: #d57079;
}
/* ==================== Form style sheet END ==================== */
</style>
</head>
<body>
<?php
require_once 'db_functions.php';
$db = new DB_Functions_GCM();
$users = $db -> getAllUsers();
if ($users != false)
$no_of_users = mysqli_num_rows($users);
else
$no_of_users = 0;
?>
<div><fieldset>
<h1>Neurobin Example</h1>
<h3>Push Notification Admin Panel</h3></fieldset></div><br></br>
<div><fieldset><legend>Current Registered users</legend>
<?php echo $no_of_users; ?></fieldset></div><br></br>
<form method = 'POST' action = 'gcm_main.php' enctype="multipart/form-data">
<div><fieldset><legend>Notification Type</legend>
<select name="dropdown">
<option value="default" selected="selected">Default</option>
<option value="type1">Type1</option>
</select></fieldset>
</div><br></br>
<div><fieldset><legend>Notification Message</legend>
<div>
<textarea rows = "3" name = "message" cols = "75" placeholder = "Type message here (keep as short as possible)" required></textarea>
</div></fieldset></div><br>
<div>
<input type = "submit" value = "Send Notification">
</div>
</form>
</body>
</html>