예제 #1
0
        $ask_price = $output["asking_price"];
        $info = fetch_item_additional_info(array('id' => $item_id, 'type' => $item_type, 'number' => 1), $character);
        $description = $info['description'];
        $sell_price = $info['sell_price'];
        $image_path = $info['image_path'];
        $skill_req = $info['skill_req'];
        $damage_mess = @$info['damage_mess'];
        $skill_need = $info['skill_need'];
        $effect = $info['effect'];
        $skill_type = $info['skill_type'];
        // start outputting a row
        print "<tr>";
        print "<td align=center valign=top><b>{$output['itemcount']}</b>x</td>";
        ?>
<td align=center valign=top><?php 
        echo makeImg($image_path);
        ?>
</td><?php 
        print "<td>" . ucwords($description) . "&nbsp;<br>";
        if ($item_type != "potion") {
            print "<font color={$skill_need}>" . $lang_shop["req"] . $skill_req . " " . $skill_type . "</font>";
        }
        print "</td><td align=center valign=top>{$effect}&nbsp;</td>";
        if ($item_type == "potion") {
            print "<td valign=top><input type='button' onClick=\"parent.location='character.php?item_id={$item_id}&id={$id}&drink_potion=Y'\" value='{$lang_char['drink']}'></td>";
            //print "<td valign=top>&nbsp;<a href='character.php?item_id=$item_id&id=$id&drink_potion=Y'>".$lang_char["drink"]."</a>&nbsp;</td>";
        } elseif ($item_type == "spell_items") {
            print "<td valign=top>&nbsp;</td>";
        } else {
            print "<td align=center valign=top>&nbsp;";
            if (!$character->equipped($item_type, $item_id)) {
예제 #2
0
파일: town.php 프로젝트: renlok/PhaosRPG
if (count($ground_items) > 0) {
    ?>
<tr><td><center><hr width="50%"><table><?php 
    ?>
<tr><th colspan="4"><?php 
    echo $lang_town["u_find"];
    ?>
</th></tr><?php 
    foreach ($ground_items as $item) {
        $info = fetch_item_additional_info($item, $character);
        $info['number'] = $info['number'] > 1 ? $info['number'] . " " : "";
        ?>
<tr><?php 
        ?>
<td><?php 
        echo makeImg($info['image_path']);
        ?>
</td><?php 
        ?>
<td style="color:<?php 
        echo $info['skill_need'];
        ?>
;"><?php 
        echo $info['number'] . $info['description'];
        ?>
</td><?php 
        ?>
<td><?php 
        actionButton($lang_town['pickup'], $_SERVER['PHP_SELF'], array('pickup_id[]' => $item['id'], 'pickup_type[]' => $item['type'], 'pickup_number[]' => 1));
        ?>
</td><?php