-
Notifications
You must be signed in to change notification settings - Fork 0
/
pravila.php
94 lines (94 loc) · 4.73 KB
/
pravila.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
<?php
require "db.php";
?>
<?php if (isset($_SESSION['logged_user'])):?>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<? require "header.php"?>
<div class="container">
<div class="text">
<br><br>
<div class="d-flex flex-wrap">
<div class="card mb-4 shadow-sm"style="width:100%;opacity:0.7;color:#000000;background-color:#B22222;font-family: cursive">
<div class="card-header">
<h2 class="my-0 font-weight-normal">Контактная форма</h2>
<div class="container mt-5">
<form action="check.php" method="post">
<input type="email" name="email" placeholder="Введите email" style="color:#000000;font-size:25px;"class="form-control">
<textarea name="message" class="form-control" placeholder="Введите ваше сообщение"style="color:#000000;font-size:25px"></textarea><br>
<button class="my-0 font-weight-normal" type="submit" name="Send" class="btn btn-sucess" style="color:#000000;background-color:#00FA9A;font-family: cursive;width:150px;height:55px;font-size:25px">Отправить</button><br><br>
</form>
<button id="btnLike" onclick="randomTheme()"style="color:#000000;background-color:#00FA9A;font-family: cursive;width:202px;height:50px;font-size:20px;">Смена темы</button>
<script type="text/javascript">
var clicks = 0;
function onClickCounter() {
clicks+=1;
document.getElementById("clicks").innerHTML = clicks;
};
function randomTheme() {
var theme = Math.round(Math.random()*2) + 1;
if(theme==1)
document.body.style.backgroundImage = 'url(https://static.pexels.com/photos/8395/lights-night-unsharp-blured.jpg)';
else if(theme==2)
document.body.style.backgroundImage = 'url(https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2F4.bp.blogspot.com%2F--U5WM3qlEpQ%2FUyC0mBK7D0I%2FAAAAAAAB63M%2FELbiM-ziI4M%2Fs1600%2F%2525E3%252582%2525B8%2525E3%252583%2525A3%2525E3%252583%2525BC%2525E3%252583%25259E%2525E3%252583%2525B3%2525E2%252598%252586%2525E3%252583%252589%2525E3%252583%252583%2525E3%252582%2525B0-843445-www.kaifineart.com-3.jpg&f=1&nofb=1)';
else if(theme==3)
document.body.style.backgroundImage = 'url(https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fcdn.akamai.steamstatic.com%2Fsteamcommunity%2Fpublic%2Fimages%2Fitems%2F251910%2F82cc7e428e9b0f855041d3e9047480782dde3fb8.jpg&f=1&nofb=1)';
};
</script>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require "footer.php"?>
<?php else :?>
<link rel = "stylesheet" href = "/css/styles.css">
<nav>
<ul class="main">
<li><a href="index.php">Главная</a></li>
<li><a href="news.php">Новости</a></li>
<li><a href="">Каталог</a>
<ul class="drop menu3">
<li><a href="catalog.php">Каталог аниме</a></li>
<li><a href="anons.php">Анонсы</a></li>
</ul>
</li>
<li><a href="">Сообщество</a>
<ul class="drop menu4">
<li><a href="user.php">Пользователи</a></li>
</ul>
</li>
<li><a href="">Помощь</a>
<ul class="drop menu5">
<li><a href="pravila.php">Правила сайта</a></li>
<li><a href="sait.php">О сайте fasa_anime</a></li>
</ul>
</li>
<li><a href="/login.php">Авторизоваться</a>
<ul class="drop menu6">
<li><a href="/signup.php">Регистрация</a></li>
</ul>
</li>
</ul>
</nav>
<div class="container">
<div class="text">
<br><br>
<div class="d-flex flex-wrap">
<div class="card mb-4 shadow-sm"style="width:100%;opacity:0.7;color:#000000;background-color:#B22222;font-family: cursive">
<div class="card-header">
<h2 class="my-0 font-weight-normal">Контактная форма</h2>
<div class="container mt-5">
<form action="check.php" method="post">
<input type="email" name="email" placeholder="Введите email" style="color:#000000;font-size:25px;"class="form-control">
<textarea name="message" class="form-control" placeholder="Введите ваше сообщение"style="color:#000000;font-size:25px"></textarea><br>
<button class="my-0 font-weight-normal" type="submit" name="Send" class="btn btn-sucess" style="color:#000000;background-color:#00FA9A;font-family: cursive;width:150px;height:55px;font-size:25px">Отправить</button><br><br>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require "footer.php"?>
<?php endif;?>