Commit Graph

9 Commits

Author SHA1 Message Date
Sebastian Grewe
91d225e340 Adding wallet information in Admin panel
Fixes #63 and adds proper wallet information:

* Wallet balance
* Locked balance for users
* Liquid assets available to pool owner
2013-06-04 14:03:46 +02:00
Sebastian Grewe
b19473ff42 sorting does not work with number_format 2013-06-04 13:23:00 +02:00
Sebastian Grewe
d85ded7c5c Moving from user to statistics class
* This fetches all users and joins with shares table

Should speed up things a fair bit.
2013-06-04 13:14:25 +02:00
Sebastian Grewe
4fa3089655 fixing JS crash when table has no content 2013-06-04 12:13:38 +02:00
Sebastian Grewe
43772f439b fixing sort arrows showing behind text 2013-06-04 12:10:43 +02:00
Sebastian Grewe
38a66b917f adding number format to admin user query table 2013-06-04 12:01:16 +02:00
Sebastian Grewe
60789b9332 adding user ID to table 2013-06-04 11:55:36 +02:00
Sebastian Grewe
065f5e6d16 Adding working user admin panel to query user DB
* Users are all fetched from the DB
* Each user is assigned special stats
 * Hashrate
 * Shares
 * Balance
 * Est. Payout
 * Est. Donation
* Display in sortable and paginated table

This is not well optimized. Each user stats are grabbed individually
via the stats and transaction classes. It would probably make sense to
expand the statistics class to list a full user list with all statistics
available instead to cover this in a single SQL query.
2013-06-04 11:34:22 +02:00
Sebastian Grewe
ed0853202b Initial file import for admin panel
* Added isAdmin to user class
 * Run isAdmin on EACH page to ensure admin status hasn't changed
* Added main page with no content
* Added user query page with basic form, no content
2013-06-04 09:15:55 +02:00