-
Notifications
You must be signed in to change notification settings - Fork 0
/
messenger.php
49 lines (40 loc) · 1.5 KB
/
messenger.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
<?php
require_once "functions.php";
if(!isset($_SESSION['mail']) or !isset($_SESSION['password'])){
header("Location: \signIn.php");
exit();
}
if(isset($_POST['sendAppealBtn'])
and !empty($_POST['appeal_order_id'])
and !empty($_POST['appeal_type_id'])
and !empty($_POST['appeal_text'])
){
pushAppeal($_POST);
}
refreshAppeals();
echo(HEAD_MESSAGER);
echo('<div class="container col-lg-7 col-md-9 col-sm-9 col-xs-10 col-12">
<form name="Appeals" action="" class="was-validated" method="POST">
<div class="input-group text-center">');
echo '<div class="input-group mt-2">';
showAppealTypes();
echo '</div><div class="input-group mt-2">';
showAppealOrders();
echo('</div><div class="input-group mt-2">
<span class="input-group-text col-md-3 col-sm-3 col-xs-12 col-12">Текст звернення</span>
<textarea name="appeal_text" id="appeal_text" type="text" class="form-control" placeholder="Введіть текст звернення" required></textarea>
<span class="valid-feedback">Коректно.</span>
<span class="invalid-feedback">
Будь ласка, заповніть текст звернення.
</span>
</div></div>');
echo ('<div class="text-center d-block ">
<button type="submit" name="sendAppealBtn" id="sendAppealBtn" class="btn btn-primary w-50 m-2">
Відправити
</button>
</div>');
echo '</form>';
showAppeals();
echo '</div>';
echo(FOOTER);
?>