Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $content = "<div id='votepoints'><b>Welcome, " . $_SESSION['username'] . "</b><br />Balance: $" . $this->GetVotePoints($_SESSION['user_id']) . "</div><table id='shoplist'><tr><td><b>Package</b></td><td><b>Cost</b></td><td></td></tr>";
- if($rows != 0) {
- while($get = @mysql_fetch_array($sql)) {
- $content .= "<tr><td class=\"items\">";
- if($get['item_ids'] != "") {
- $item_array = explode(" ", $get['item_ids']);
- foreach($item_array as $item) {
- $data = explode("|", $item);
- $content .= $data[1] . "x" . " " . $data[0] . $data[2] . "</a><br />";
- }
- }
- $content .= "</td><td> $" . $get['cost'] . "</td><td>";
- if($get2['balance'] >= $get['cost']) {
- $content .= "<a class=\"buy\" href=\"index.php?do=senditemfinal&id=" . $get['id'] . "\">Buy</a></td></tr>";
- } else {
- $content .= "<a class=\"hidden\" href=\"javascript:\">Buy</a></td></tr>";
- }
- }
- } else {
- $content .= "<tr><td colspan=\"3\"><i>No items found in the shop</i></td></tr>";
- }
- return $content . "</table>";
Advertisement
Add Comment
Please, Sign In to add comment