-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.php
82 lines (72 loc) · 2.24 KB
/
events.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
<?php
session_start();
$_SESSION['page'] = 'events';
unset($_SESSION['choosen_event']);
unset($_SESSION['choosen_event_info']);
unset($_SESSION['taken_spots']);
require_once 'get_event.php';
?>
<!DOCTYPE html>
<html lang="ru, en">
<head>
<meta charset=utf-8>
<link rel='stylesheet' href='css/index.css'>
<link rel="stylesheet" href="css/card.css">
<title>События</title>
</head>
<body>
<?php require 'blocks/sidenav.php'; ?>
<?php require 'blocks/header.php'; ?>
<div class="auth_main">
<div class="user_main">
<?php for ($i=1; $i <= $_SESSION['event_count']; $i++):?>
<div class="card">
<div class="card-header">
<h6>
<?php
echo ($_SESSION['event'.$i]['title']);
?>
</h6>
</div>
<div class="card-body">
<ul style="padding-left: 0; list-style: none;">
<li>
<label>
<?php
echo ($_SESSION['event'.$i]['type']);
?>
</label>
</li>
<li>
<label>
<?php
echo (date("H:i", strtotime($_SESSION['event'.$i]['date_time'])));
?>
</label>
</li>
<li>
<label>
<?php
echo (date("d.m.Y", strtotime($_SESSION['event'.$i]['date_time'])));
?>
</label>
</li>
</ul>
</div>
<?php if (isset($_COOKIE['client'])): ?>
<!-- <a href="buy.php"> -->
<form class="buy.php" action="buy.php" method="post">
<!-- <?php echo strval($i)?> -->
<input type="submit" class="card-button" name="choosen_event" value="Выбрать <?php echo strval($i)?>">
<!-- <?php $_SESSION['choosen_event'] = $_SESSION['event'.$i]['id'] ?> -->
<!-- Выбрать место</button> -->
</form>
<!-- </a> -->
<?php endif; ?>
</div>
<?php endfor; ?>
</div>
</div>
<?php require 'blocks/footer.php'; ?>
</body>
</html>