forked from gogo40/XManager0_public
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfoForm.php
More file actions
executable file
·156 lines (118 loc) · 4.27 KB
/
infoForm.php
File metadata and controls
executable file
·156 lines (118 loc) · 4.27 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.decisionFormNames {
border: 1px solid #777;
font-weight: bold;
background-color: #5A5A5A;
color: #FFFFFF;
font-size: 12px;
font-family: Georgia, "Times New Roman", Times, serif;
}
.decisionFormFields {
border: 1px solid #777;
font-family: Georgia, "Times New Roman", Times, serif;
color: #000000;
font-size: 12px;
background-color: #FFC;
}
.decisionFormTitle {
border: 1px solid #777;
background-color: #B3B3B3;
font-family: Georgia, "Times New Roman", Times, serif;
color: #00000F;
}
.RelatorioField2 {
border: 1px solid #777;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FFF;
background-color: #5F9EFF;
font-size: 14px;
text-align: center;
}
</style>
</head>
<?php
include_once("config.php");
include_once("maniadb.php");
updateInfo();
?>
<body>
<table width="95%" border="0" align="center">
<tr>
<th valign="top" align="center" width="20%"><table >
<tr> <th colspan="2" class="decisionFormTitle"> Parâmetros da sala</th> </tr>
<?php
foreach ($GLOBALS['ParametrosJogo'] as $key => $value) {
echo '<tr>';
echo '<th class="decisionFormNames">'.$value.'</th>';
echo '<th align="center" class="decisionFormFields">'.(number_format($GLOBALS[$key], 2, ',', '.')).'</th>';
echo '</tr>';
}
echo '<tr><th class="decisionFormNames">Matéria prima necessária para a produção de um produto acabado</th>';
echo '<th align="center" class="decisionFormFields">'.$GLOBALS['MPNecessaria'] .'</th></tr>';
?>
</table>
</th>
<th valign="top" align="center" width="20%"><table >
<tr> <th colspan="2" class="decisionFormTitle"> Salários</th> </tr>
<?php
foreach ($GLOBALS['ParametrosJogoSalario'] as $key => $value) {
echo '<tr>';
echo '<th class="decisionFormNames">'.$value.'</th>';
echo '<th align="center" class="decisionFormFields">'.(number_format($GLOBALS[$key], 2, ',', '.')).'</th>';
echo '</tr>';
}
?>
</table>
</th>
<th valign="top" align="center" width="20%"><table >
<tr> <th colspan="2" class="decisionFormTitle"> Taxas</th> </tr>
<?php
foreach ($GLOBALS['ParametrosJogoTaxa'] as $key => $value) {
echo '<tr>';
echo '<th class="decisionFormNames">'.$value.'</th>';
echo '<th align="center" class="decisionFormFields">'.(number_format(100*$GLOBALS[$key], 2, ',', '.')).'%</th>';
echo '</tr>';
}
?>
</table>
</th>
<th valign="top" align="center" width="20%"><table >
<tr> <th colspan="2" class="decisionFormTitle"> Custos</th> </tr>
<?php
foreach ($GLOBALS['ParametrosJogoCustos'] as $key => $value) {
echo '<tr>';
echo '<th class="decisionFormNames">'.$value.'</th>';
echo '<th align="center" class="decisionFormFields">'.(number_format($GLOBALS[$key], 2, ',', '.')).'</th>';
echo '</tr>';
}
?>
<tr><th class="decisionFormTitle" colspan="2"> Sazonalidades <th></tr>
<?php
srand($_SESSION['RoomSeed']);
for ($r = -1; $r < $_SESSION['nRounds']; ++$r) {
echo '<tr><th class="decisionFormNames"> Período '.($r+1)."</th>";
if ($_SESSION['CurrRound'] != $r) {
echo '<th class="decisionFormFields">';
} else {
echo '<th class="RelatorioField2">';
}
$ruido = rand(-20, 20) / 100.0;
if ($r > 0) {
printf("%.0lf %%</th>", 100 * 1* (1 + $ruido));
} else {
printf("%.0lf %%</th>", 100 * 1);
}
echo '</tr>';
}
?>
</table>
</th>
</tr>
</table>
</body>
</html>