コード例 #1
0
function final_print_gold($var)
{
    if ($var == '---') {
        echo $var;
    } else {
        print_gold(parse_gold($var));
    }
}
コード例 #2
0
            if ($row['item_number'] != 0) {
                $item_name = $WDB->selectCell("SELECT `name` FROM `item_template` WHERE entry='" . $row['item_number'] . "'");
                if ($item_name == FALSE) {
                    echo "<font color='red'> INVALID ITEM ID!</font>";
                } else {
                    echo "<a href='http://www.wowhead.com/?item=" . $row['item_number'] . "' target='_blank'>" . $item_name . "</a>";
                }
            } else {
                echo "No Item";
            }
            if ($row['itemset'] != 0) {
                echo "<br /><a href='http://www.wowhead.com/?itemset=" . $row['itemset'] . "' target='_blank'>ItemSet # " . $row['itemset'] . "</a>";
            }
            if ($row['gold'] != 0) {
                echo "<br />Gold: ";
                print_gold($row['gold']);
            }
            echo "\t</center></td>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t<td width='10%' align='center'>" . $row['quanity'] . "</td>\r\n\t\t\t\t\t\t\t\t\t<td width='10%' align='center'>" . $row['wp_cost'] . "</a></td>\r\n\t\t\t\t\t\t\t\t\t<td width='15%' align='center'>\r\n\t\t\t\t\t\t\t\t\t";
            if ($row['realms'] == 0) {
                echo "All";
            } else {
                echo $row['realms'];
            }
            echo "\r\n\t\t\t\t\t\t\t\t\t<td width='15%' align='center'><a href='?p=admin&sub=shop&id=" . $row['id'] . "'>Edit / Del</a></td>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t";
        }
    }
    ?>
				</table>
				<div id="pg">
				<?php 
    // If there is going to be more then 1 page, then show page nav at the bottom
コード例 #3
0
    td.rankingHeader { color: #C7C7C7; font-size: 10pt; font-family: arial,helvetica,sans-serif; font-weight: bold; background-color: #2E2D2B; 
	border-style: solid; border-width: 1px; border-color: #5D5D5D #5D5D5D #1E1D1C #1E1D1C; padding: 3px;}
</style>
<br />
<?php 
builddiv_start(1, 'Shop');
echo $lang['shop_desc'] . "<br /><br />";
if ($shop_items != FALSE) {
    foreach ($shop_items as $package) {
        write_metalborder_header();
        echo "\r\n\t\t\t<form action='" . mw_url('shop', 'checkout') . "' method='POST'>\r\n\t\t\t<input type='hidden' name='action' value='step2'>\r\n\t\t\t<input type='hidden' name='id' value='" . $package['id'] . "'>\r\n\t\t\t<table cellpadding='3' cellspacing='0' width='100%'>\r\n\t\t\t\t<tbody>\r\n\t\t\t\t\t<tr> \r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' colspan='3' nowrap='nowrap'>\r\n\t\t\t\t\t\t\tShop Package #" . $package['id'] . " :: <font color='green'>" . $package['desc'] . "</font>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Rewards</td>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Cost</td>\r\n\t\t\t\t\t\t<td class='rankingHeader' align='center' nowrap='nowrap'>Action&nbsp;</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td width='60%' class='serverStatus1' style='text-align: center;'><font size='-1'>";
        if ($package['item_number'] != 0) {
            $items = explode(',', $package['item_number']);
            foreach ($items as $pack) {
                $item_name = $WDB->selectCell("SELECT `name` FROM `item_template` WHERE entry='" . $pack . "'");
                echo "<a href='http://www.wowhead.com/?item=" . $pack . "' target='_blank'>" . $item_name . "</a><br />";
            }
        }
        if ($package['itemset'] != 0) {
            echo "<a href='http://www.wowhead.com/?itemset=" . $package['itemset'] . "' target='_blank'>ItemSet # " . $package['itemset'] . "</a><br />";
        }
        if ($package['gold'] != 0) {
            echo "<font color='darkgreen'><b>Gold</b>: </font>";
            print_gold($package['gold']);
        }
        echo "\t\t</font>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class='serverStatus1' style='text-align: center; font-size: 12px;'>\r\n\t\t\t\t\t\t\t<font color='darkred'><u>" . $package['wp_cost'] . "</u></font> Web Points<br />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class='serverStatus1' style='text-align: center;'><font size='-1'>\r\n\t\t\t\t\t\t\t<input type='submit' value='Select'>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</tbody>\r\n\t\t\t</table>\r\n\t\t\t</form>";
        write_metalborder_footer();
        echo "<br /><br />";
    }
}
builddiv_end();
コード例 #4
0
							</tr>
							<tr>
								<td width="25%" align="right"><?php 
            echo $lang['race'];
            ?>
: </td>
								<td width="25%" align="left"><?php 
            echo $Character->charInfo['race'][$character['race']];
            ?>
</td>
								<td width="25%" align="right"><?php 
            echo $lang['gold'];
            ?>
: </td>
								<td width="25%" align="left"><?php 
            echo print_gold($character['money']);
            ?>
</td>
							</tr>
							<tr>
								<td width="25%" align="right"><?php 
            echo $lang['level'];
            ?>
: </td>
								<td width="25%" align="left"><?php 
            echo $character['level'];
            ?>
</td>
								<td width="25%" align="right"><?php 
            echo $lang['status'];
            ?>