-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbidList.php
executable file
·147 lines (120 loc) · 3.82 KB
/
bidList.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
<?php
/*
* UWS - Universal Wealth System
* bidList.php
* GPL license
* author: Fabio Barone
* date: 30. Nov. 2009
*
* The original UWS design foresees auctions in order to manage
* offer and demand of goods and assets in the system. This file was
* meant to display the list of running auctions. As auctions are disabled
* resp. not designed in the system, the file is currently superflous,
* but kept here for future development.
*/
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:bid_list") ?></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="default.css" />
</head>
<body>
<div id="outer" width="100%">
<div id="upbg"></div>
<div id="inner">
<?php include "header.php" ?>
<h3><?php echo translate("uws:bid_list") ?></h3>
<div class="date">
<?php
echo date('d F Y') ?></div> <!-- div date -->
</div><!-- div header -->
<div class="content">
<table class="nicetable" cellspacing="0">
<tr>
<th class="small" scope="col" abbr="Date"><?php echo translate("uws:date") ?></th>
<th class="small" scope="col" abbr="User"><?php echo translate("uws:user") ?></th>
<th class="small" scope="col" abbr="Unit"><?php echo translate("uws:unit") ?></th>
<th class="small" scope="col" abbr="Amount"><?php echo translate("uws:bid_amount") ?></th>
<th class="small" scope="col" abbr="Price"><?php echo translate("uws:price") ?></th>
<th class="small" scope="col" abbr="Factor"><?php echo translate("uws:factor") ?></th>
<th class="small" scope="col" abbr="Action"></th>
</tr>
<?php
$sql = "SELECT * from bid";
$query = mysql_query($sql);
$cnt=0;
$tdnorm = '<td class="specsmall">';
$tdalt = '<td class="specaltsmall">';
$td = $tdnorm;
while ($result = mysql_fetch_array($query))
{
if ($cnt%2 == 0)
{
$td = $tdnorm;
} else {
$td = $tdalt;
}
echo "<tr>";
$date = $result['tstamp'];
$user = $result['member_id'];
$asset_id = $result['asset_id'];
$amount = $result['amount'];
$price = $result['price'];
$factor = $result['factor'];
echo $td . date('Y M d H:i:s',$date) . "</td>";
echo $td . get_member_name_from_id($user) . "</td>";
echo $td . get_asset_name_from_id($unit) . "</td>";
echo $td . round($amount,3) . "</td>";
echo $td . round($price,3) . "</td>";
echo $td . round($factor,3) . "</td>";
echo $td;
$unitID = $result['bidID'];
echo '<a href="bidDetail.php?bidID=' . $unitID .
'"><img src="images/bid.png" border="0" alt="' .
translate("uws-bid") . '"></a>';
echo "</td>";
echo "</tr>";
$cnt++;
}
// echo "<tr>";
// echo "<th scope=\"col\" abbr=\"\">Total</th>";
// echo "<th scope=\"col\" abbr=\"\">" . $invsum[0] . "</th>";
// echo "<th></th>";
// echo "<th></th>";
// echo "<th></th>";
// echo "</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>