-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.php
154 lines (134 loc) · 7.48 KB
/
message.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
<?php
session_start();
include 'includes/dbConnection.php';
if (!$_SESSION["user_name_loggedIn_admin"]) {
$_SESSION["expired_session"] = "Your session has been expired, relog in!";
header("Location: index.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<title>AX GYM</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
<!-- Page level plugin CSS-->
<link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
<?php include 'globalExternals/components.php'; ?>
</head>
<body id="page-top" class="fixed-nav">
<?php include 'navigations/NavigationBar.php'; ?>
<div id="wrapper">
<div id="content-wrapper">
<div class="container-fluid">
<div class="content-wrapper" style="min-height: 1273px !important">
<script>
$(".body-overlay").css("display", "block");
$("body").css("overflow-y", "hidden");
</script>
<!-- <div class="message success" onclick="this.classList.add('hidden')">Success! Message Sent Successfully.</div>-->
<script>
$(document).ready(function() {
$(".hasdatepicker").datepicker({
rtl: true
});
});
</script>
<section class="content">
<br>
<div class="col-md-12 box box-default">
<div class="box-header">
<section class="content-header">
<h1>
<i class="fa fa-plus"></i>
Compose Message
</h1>
</section>
</div>
<hr>
<br>
<div class="box-body">
<div class="row mailbox-header">
<div class="col-md-2">
<a class="btn btn-flat btn-primary btn-block" href="#">Compose</a>
</div>
</div>
<br>
<div class="col-md-2 no-padding-left">
<ul class="list-unstyled mailbox-nav">
<li>
<a style="color:gray;"><i class="fa fa-inbox"></i> Inbox
<span class="badge badge-primary pull-center">0</span></a></li>
<li>
</ul>
</div>
<div class="col-md-10 no-padding-left">
<script type="text/javascript">
$(document).ready(function() {
$('#message_form').validationEngine();
});
</script>
<div class="mailbox-content">
<h2></h2>
<form name="class_form" action="" method="post" class="form-horizontal" id="message_form">
<input type="hidden" name="action" value="insert">
<div class="form-group">
<label class="col-md-2 control-label" for="to">Message To <span class="text-danger">*</span></label>
<div class="col-md-8">
<select name="receiver" class="form-control text-input">
<optgroup label="To">
<option value="member" selected="selected">Members</option>
<option value="staff_member">Staff </option>
<option value="accountant">Admin</option>
</optgroup>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="subject">Subject <span class="text-danger">*</span></label>
<div class="col-md-8">
<input id="subject" class="form-control validate[required] text-input" type="text" name="subject">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="subject">Message Comment <span class="text-danger">*</span></label>
<div class="col-md-8">
<textarea name="message_body" id="message_body" class="form-control validate[required] text-input"></textarea>
</div>
</div>
</form>
<br><br>
</div>
</div>
<!-- END -->
</div>
</div>
<div class="form-group">
<div class="col-md-10">
<div class="pull-right">
<input type="submit" " onclick=" return confirm('Confirm sending message ?')" value="Send Message" name="save_message" class="btn btn-flat btn-success">
</div>
</div>
</div>
<!-- session for add member button -->
<?php if (isset($_SESSION["success"])) { ?>
<div class="alert alert-success">
<strong>Success! </strong> <?php echo $_SESSION["success"];
session_unset(); ?>
</div>
<?php
} ?>
</section>
</div>
</div>
</div>
</div>
</body>
</html>