-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
199 lines (182 loc) · 8.22 KB
/
index.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
header("Content-Type: text/html; charset=utf-8");
?>
<html>
<head>
<title>Admin Page</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/admin/jquery-ui-1.8.16.custom.min.js"></script>
<link href="js/admin/css/start/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<!-- Toast jQuery plugin
http://akquinet.github.com/jquery-toastmessage-plugin/
-->
<script type="text/javascript" src="js/admin/jquery.toastmessage.js"></script>
<link href="js/admin/resources/css/jquery.toastmessage.css" rel="stylesheet" />
<!-- jQuery List Plugin
https://github.com/mpalmerlee/jQuery-UI-Listbox/
-->
<link rel="stylesheet" href="js/admin/js-listbox-style.css" />
<script type="text/javascript" src="js/admin/js-inherit.js"></script>
<script type="text/javascript" src="js/admin/js-listbox.js"></script>
<!-- Main JavaScript logic-->
<script type="text/javascript" src="js/additional_prototypes.js"></script>
<script type="text/javascript" src="js/server_constants.js"></script>
<script type="text/javascript" src="js/api_constants.js"></script>
<script type="text/javascript" src="js/lottery/gameconstants.js"></script>
<script type="text/javascript" src="js/json2.js"></script>
<script type="text/javascript" src="js/admin/admin_main.js"></script>
<script type="text/javascript" src="js/admin/objects/api.js"></script>
<script type="text/javascript" src="js/admin/objects/skill.js"></script>
<script type="text/javascript" src="js/admin/objects/team_member.js"></script>
<script type="text/javascript" src="js/admin/objects/team.js"></script>
<script type="text/javascript" src="js/admin/objects/phase.js"></script>
<style>
.listBox {
width: 250px;
height: 300px;
}
.subSkills {
margin-left: 10px;
}
.assigned {
color : green;
}
.notassigned {
color : red;
}
</style>
</head>
<body>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Skills</a></li>
<li><a href="#tabs-2">Teams</a></li>
<li><a href="#tabs-3">Achievments</a></li>
<li><a href="#tabs-4">Lottery</a></li>
<li><a href="#tabs-5">Team Points</a></li>
<li><a href="#tabs-6">Phases</a></li>
</ul>
<div id="tabs-1"> <!-- Skills tab -->
<div id="skillCreation">
<label for="skillName">Skill name:</label>
<br />
<input id="skillName" type="text" />
<br />
<label for="masterSkillForSkill">MasterSkill:</label>
<br />
<select id="masterSkillForSkill">
</select>
<br />
<label for="skillDescription">Description:</label>
<br />
<textarea id="skillDescription" rows="5" cols="30"></textarea>
<br />
<label for="skillLevel">Skill Level:</label>
<br />
<input id="skillLevel" type="text" />
<br />
<input id="addSkillButton" type="button" value="Add Skill" />
<hr />
<div id="skillList" class="listBox">
<!--ListBox-->
</div>
<input type="hidden" id="skillListHidden" />
<br />
<div id="skillTextDescription"></div>
</div>
</div>
<div id="tabs-2"> <!-- Teams Tab -->
<div id="teamCreation">
<!-- New member registration -->
<label for="memberName">Member name:</label>
<br />
<input id="memberName" type="text" />
<br />
<input id="addMemberButton" type="button" value="Register member" />
<br />
<hr />
<!--New team registration-->
<label for="teamName">Team name:</label>
<br />
<input id="teamName" type="text" />
<br />
Имената на играчите:
<br />
<strong>#1</strong> : <input class="teamMembers" type="text" />
<br />
<strong>#2</strong> : <input class="teamMembers" type="text" />
<br />
<strong>#3</strong> : <input class="teamMembers" type="text" />
<br />
<strong>#4</strong> : <input class="teamMembers" type="text" />
<br />
<input id="addTeamButton" type="button" value="Add Team" />
<hr />
<div id="userList" class="listBox"></div>
<input type="hidden" id="userListHidden" />
<div id="skillPlace">
</div>
</div>
</div>
<div id="tabs-3"><!-- Achievments Tab -->
<div id="achievmentCreation">
<label for="achievmentName">Achievment name:</label>
<br />
<input id="achievmentName" type="text" />
<br />
<label for="masterSkillForAchievment">MasterSkill:</label>
<br />
<select id="masterSkillForAchievment">
</select>
<br />
<label for="achievmentDescription">Description:</label>
<br />
<textarea id="achievmentDescription" rows="5" cols="30"></textarea>
<br />
<label for="teamPointsReward">Team Points Reward?</label>
<br />
<input type="text" id="teamPointsReward" value="15" />
<br />
<input id="addAchievmentButton" type="button" value="Add Achievment" />
<hr />
<div id="achievementList" class="listBox"></div>
<input type="hidden" id="achievementListHidden" />
<br />
<label for="achievementAssignMemberName">Име:</label>
<br />
<input type="text" id="achievementAssignMemberName" class="membersAutocomplete" />
<br />
<input type="button" value="Assign" id="assignAchievement" />
</div>
</div>
<div id="tabs-4">
<a href="lottery.php" target="_blank">Click to go to the Lottery :)</a>
</div>
<div id="tabs-5">
<div id="teamListBox" class="listBox">
</div>
<input id="teamListBoxHidden" type="hidden" />
<br />
<p id="totalTeamPoints"></p>
<label for="teamPoints">Team Points:</label>
<br />
<input type="number" id="teamPoints" />
<br />
<input id="addTeamPointsButton" type="button" value="Add Team Points" />
<br />
<input id="payLotteryFeeButton" type="button" value="Pay Lottery Fee (10%)" />
</div>
<div id="tabs-6">
<p>Points that are given by the jury at the end of each phase:</p>
<div id="teamJuryPointsContainer">
</div>
<br />
<input type="button" id="endCurrentPhase" value="End current phase" />
<br />
<input type="button" id="nextPhase" value="Next phase" />
<br />
<input id="hardResetButton" type="button" value="Hard Reset" />
</div>
</div>
</body>
</html>