-
Notifications
You must be signed in to change notification settings - Fork 1
/
inventoryConfirm.php
executable file
·193 lines (160 loc) · 5.38 KB
/
inventoryConfirm.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
<?php
/*
* UWS - Universal Wealth System
* inventoryConfirm.php
* GPL license
* author: Fabio Barone
* date: 30. Nov. 2009
*
* When an inventorization takes place, a number of values get changed
* in the database: the inventory totals (physical and inventory units),
* but also the member's balance get changed with an amount implicitely
* calculated according to the UWS formula in service units.
*
* In order for the user to see what happens, a short summary of changed
* values is shown. Currently, only if the inventorization is not a donation
* this summary is shown.
*/
session_start();
include "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
terrafirma1.0 by nodethirtythree design
http://www.nodethirtythree.com
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Universal Wealth System UWS - <?php echo translate("uws:confirm_inventory") ?></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="default.css" />
</head>
<body>
<div id="outer">
<div id="upbg"></div>
<div id="inner">
<?php include "header.php" ?>
<h3><?php echo translate("uws:confirm_inventory") ?></h3>
<div class="date">
<?php
echo date('d F Y') ?></div> <!-- div date -->
</div><!-- div header -->
<div class="content">
<?php
$asset = $_GET['asset'];
$user = $_GET['user'];
$donate = $_GET['donate'];
$physical = $_GET['physical'];
$inventory = $_GET['inventory'];
$balance = $_GET['balance'];
$old_balance = $_GET['old_balance'];
$su = $_GET['su'];
echo translate("uws:confirm_text");
?>
<table class="formtable" width="470" cellspacing="0" cellpadding="0">
<tr>
<td width="150" class="text"><?php echo translate("uws:asset")?>:</td>
<td width="10"> </td>
<td><span class="text">
<input name="asset" type="text" id="asset" value="<?php echo $asset?>" size="40" readonly/>
</span>
</td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:user") ?></td>
<td width="10"> </td>
<td><span class="text"><input name="user" type="text" id="user" value="<?php echo $user ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:physical")?>:</td>
<td width="5"> </td>
<td><span class="text"><input name="physical" type="text" id="physical" value="<?php echo $physical ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:inventory") ?></td>
<td width="10"> </td>
<td><span class="text"><input name="inventory" type="text" id="inventory" value="<?php echo $inventory ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:old_balance") ?></td>
<td width="10"> </td>
<td><span class="text"><input name="old_balance" type="text" id="old_balance" value="<?php echo $old_balance ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:service_units") ?></td>
<td width="10"> </td>
<td><span class="text"><input name="service_units" type="text" id="service_units" value="<?php echo $su ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
<tr>
<td width="150" class="text"><?php echo translate("uws:balance") ?></td>
<td width="10"> </td>
<td><span class="text"><input name="balance" type="text" id="balance" value="<?php echo $balance ?>" size="40" readonly/>
</span></td>
</tr>
<tr>
<td width="150" height="5"></td>
<td height="5"></td>
<td></td>
</tr>
</table>
<br><br>
</div>
<div class="footer">
<ul>
<li class="printerfriendly"><a href="#">Printer Friendly</a></li>
<li class="readmore"><a href="#">Read more</a></li>
</ul>
</div>
</div>
</div>
<div id="secondarycontent">
<!-- Displaying lists links -->
<?php include "lists.php" ?>
<!-- Displaying action links -->
<?php include "actions.php" ?>
<!-- secondary content end -->
</div>
<div id="footer">
© UWS. </a>.
</div>
</div>
</div>
</body>
</html>