コード例 #1
0
echo "<a href=\"?auction=Blackwater\" style=\"Text-decoration: none; color:gold;\">&nbsp;{$lang['Blackwater']}&nbsp;</a>";
echo "<img src=\"images/gold.gif\">";
echo "</td></tr>";
if ($rows) {
    echo "<tr><td colspan=4 class=head>{$number} {$lang['items']}</td></tr>";
    echo "<tr>";
    echo "<th width=1px></th>";
    echo "<th width=50%>" . $lang['auction_seller'] . "</th>";
    echo "<th width=25%>" . $lang['auction_cost'] . "</th>";
    echo "<th width=25%>" . $lang['auction_bye'] . "</th>";
    echo "</tr>\n";
    foreach ($rows as $auc_data) {
        $item_data = explode(' ', $auc_data['data']);
        echo "<tr>";
        echo "<td>";
        show_item_by_data($item_data, 'auction');
        echo "</td>";
        if ($auc_data['itemowner'] == 0) {
            echo "<td align=center><font color=#ff0000>" . $lang['auctionbot'] . "</font></td>";
        } else {
            echo "<td><a href=?player={$auc_data['itemowner']}>" . getCharacterName($auc_data['itemowner']) . "</a></td>";
        }
        echo "<td align=center>" . money($auc_data['startbid']) . "</td>";
        echo "<td align=center>" . money($auc_data['buyoutprice']) . "</td>";
        echo "</tr>\n";
    }
    generatePage($number, $page, "<a href=\"?auction={$type}&page=%d\">%d </a>", 4);
} else {
    echo "<tr><td colspan=4 align=center>{$lang['empty']}</td></tr>";
}
echo "</tbody></table>";
コード例 #2
0
function show_item_from_char($id, $guid, $style = 'item', $posx = 0, $posy = 0, $empty_item)
{
    global $cDB;
    if ($id != 0) {
        $item_data = $cDB->selectCell("SELECT `guid` FROM `item_instance` WHERE `owner_guid`=?d AND (SUBSTRING_INDEX( SUBSTRING_INDEX(`data` , ' ' , 9) , ' ' , -1 )+0)=?d AND (SUBSTRING_INDEX( SUBSTRING_INDEX(`data` , ' ' , 4) , ' ' , -1 )+0)={$id}", $guid, $guid, $id);
        if ($item_data = getItemData($item_data)) {
            show_item_by_data($item_data, $style, $posx, $posy);
        }
    } else {
        empty_show_item_from_char($style, $posx, $posy, $empty_item);
    }
}
コード例 #3
0
function r_plItem($data)
{
    show_item_by_data(explode(' ', $data['item_data']));
}