Esempio n. 1
0
function generateItemTable($item, $item_data = 0)
{
    echo '<table class=border cellspacing=0 cellpadding=0><tbody>';
    echo '<tr><td class=btopl></td><td class=btop></td><td class=btopr></td></tr>';
    echo '<tr><td class=bl></td><td class=bbody>';
    noBorderItemTable($item, $item_data);
    echo '</td><td class=br></td></tr>';
    echo '<tr><td class=bbottoml></td><td class=bbottom></td><td class=bbottomr></td></tr>';
    echo '</tbody></table>';
}
Esempio n. 2
0
$entry = intval(substr($str, 1, 10));
switch ($tip) {
    // Показ вещи
    case "i":
        if (substr($str, 1, 1) == 'g') {
            $entry = intval(substr($str, 2, 10));
            if ($item_data = getItemData($entry)) {
                if ($item = getItem($item_data[ITEM_FIELD_ENTRY])) {
                    noBorderItemTable($item, $item_data);
                }
            } else {
                echo "Error item guid {$entry}";
            }
        } else {
            if ($item = getItem($entry)) {
                noBorderItemTable($item, 0, 0);
            } else {
                echo "Error item {$entry}";
            }
        }
        break;
        // Показ  Существа
    // Показ  Существа
    case "c":
        if ($creature = getCreature($entry)) {
            include_once "include/creature_table.php";
            noBorderCreatureTable($creature);
        } else {
            echo "Error creature {$entry}";
        }
        break;