-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregcontest.php
74 lines (74 loc) · 2.67 KB
/
regcontest.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
<html>
<head>
<title> Регистрация на соревнование </title>
<style>
</style>
<script src="assest/js/jquery-3.2.0.min.js"></script>
<script>
</script>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="assest/css/style.css">
</head>
<body>
<?php include("srcaccount"); ?>
<?php if ((isset($_GET['id']))and($type < 3)) {
include('srchead');?>
<div id="body" style="margin-top: -30px; min-height: calc( 100% - 44px )">
<div id="general_content" style="width: 100%;">
<form name="loginServerContest" action="javascript://" id="lgContest">
<legend class="inputBlock" style="width: 280px; margin-left: calc( 50% - 140px ); margin-right: calc( 50% - 140px ); box-shadow: 0 0 10px #000; padding: 10px;">
<?php include("nearContest"); ?>
<legend class="inputBlock" style="border: 0px;">
Регистрация на соревнование
</legend>
<legend class="inputBlock">
ID соревнования:
<div class="inpTextLogin"><?php $id = $_GET['id']; settype($id, 'int'); echo($id); include("nearContest");?></div>
</legend>
<legend class="inputBlock">
Название:
<div class="inpTextLogin"><?php echo $array[$id-1]['title']?></div>
</legend>
<legend class="inputBlock">
Login:
<input type="text" name="login" class="inpTextLogin">
</legend>
<legend class="inputBlock">
Пароль:
<input type="password" name="password" class="inpTextLogin">
</legend>
<a onclick="loginContest()"><button>Войти</button></a>
</legend>
</form>
</div>
</div>
<?php } else if ($type > 2) {
include('srchead');
?>
<div id="body" style="margin-top: 0px; min-height: calc( 100% - 44px )">
<div id="general_content">
<div id="post">
Функция доступна в тестовом режиме. Доступ запрещен.
</div>
</div>
<?php
include("srcnews");
?>
</div>
<?php include("srcfooter");
?>
<?php
} else {
include('srchead');
header('Refresh: 5; URL=index.php');
?>
<div id="body">
<div id="general_content" style="width: 100%;">
<div id="post">Error of input text. After 5 seconds you will be redirected to the <a href="index.php">main</a> page.<br>
Ошибка передачи данных. Через 5 секунд вы будете перенаправлены на <a href="index.php">главную</a> страницу.
</div>
</div>
</div>
<?php } ?>
</body>
</html>