forked from gogo40/XManager0_public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
createRoomForm.php
executable file
·68 lines (55 loc) · 2.36 KB
/
createRoomForm.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
<style type="text/css">
.CriaSalaTitulo {
color: #FFC;
background-color: #000;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
}
.CriarSalaCorpo {
text-align: center;
font-family: Georgia, "Times New Roman", Times, serif;
color: #000;
font-size: 12px;
font-weight: bold;
background-color: #333;
}
.CriarSalaCorpo {
font-weight: bold;
color: #FFF;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
}
</style>
<body>
<form name="form1" method="post" action="index.php">
<table width="280" border="0">
<tr>
<th colspan="12" class="CriaSalaTitulo" scope="col">Dê o nome da nova sala</th>
</tr>
<tr>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">Nome </td>
<td width="180" bgcolor="#333333"><input name="RoomName" type="text" id="RoomName" size="40" maxlength="40"></td>
<?php if ($_SESSION["usrpriv"] > 0) { ?>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">Duração </td>
<td width="140" bgcolor="#333333"> <input name="RoomDuraSco" type="number" id="RoomDuraSco" value="3600" min="300" max="10000000" required="required"/></td>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">No slots </td>
<td width="140" bgcolor="#333333"> <input name="RoomNSLOTS" type="number" id="RoomNSLOTS" value="10" min="2" max="10000000" required="required"/></td>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">Peso </td>
<td width="140" bgcolor="#333333"> <input name="RoomWeight" type="number" id="RoomWeight" value="10" min="2" max="10000000" required="required"/></td>
<?php } ?>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">No rodadas </td>
<td width="140" bgcolor="#333333"> <input name="RoomDuraRo" type="number" id="RoomDuraRo" value="4" min="4" max="10000" required="required"/></td>
<td width="70" bgcolor="#FFFFCC" class="CriarSalaCorpo">Tipo cenario </td>
<?php
echo '<td width="140" bgcolor="#333333"> <input name="RoomTipo" type="number" id="RoomTipo" value="4" min="1" max="' . $GLOBALS['NumCenarios'] . '" required="required"/></td>';
?>
</tr>
<tr>
<td colspan="12" bgcolor="#333333" class="CriarSalaCorpo">
<input type="hidden" name="f" value="CriarSala">
<input type="submit" name="Criar sala" id="Criar sala" value="Criar sala">
</td>
</tr>
</table>
</form>
</body>