<table border="1"> <tr> <th>Date</th> <th>Rating</th> <th>Easiness</th> <th>Helpfulness</th> <th>Clarity</th> <th>Rater Interest</th> <th>Comment</th> </tr> <?php for ($i = 0; $i < $count; $i++) { echo "<tr>"; echo "<td>" . $rdate[$i] . "</td>"; echo "<td>" . getQuality($helpfulness[$i], $clarity[$i]) . "</td>"; echo "<td>" . $easiness[$i] . "</td>"; echo "<td>" . $helpfulness[$i] . "</td>"; echo "<td>" . $clarity[$i] . "</td>"; echo "<td>" . $interest[$i] . "</td>"; echo "<td>" . $comment[$i] . "</td>"; echo "</tr>"; } ?> </table> <?php } else { //no ratings for this PI echo "There are 0 ratings for this PI. Add one."; } echo "<br />Add a <a href=\"addrating.php?pid=" . $pid . "\">rating<a> for this PI.";
$name = getItemName($schema_items, $defindex, $image_url); $level = $backpack_items['level']; $quantity = $backpack_items['quantity']; $origin = $backpack_items['origin']; $origin = getOrigin($origin); $flag_cannot_trade = array_key_exists('flag_cannot_trade', $backpack_items) ? $backpack_items['flag_cannot_trade'] : false; $flag_cannot_craft = array_key_exists('flag_cannot_craft', $backpack_items) ? $backpack_items['flag_cannot_craft'] : false; $inventory = $backpack_items['inventory']; // The inventory value is stored just like all of the others $position = $inventory & 65535; // You can directly perform bitwise operations on the value. PHP understands that you mean this to be a number $equipped = array_key_exists('equipped', $backpack_items); //$equipped = ($inventory >> 16) & 1023; // More bitwise operations to get the equipped number //$equippedString = getEquipped($equipped); // Convert the equipped number into a string $quality = $backpack_items['quality']; $quality = getQuality($quality); $qualidade = $quality[0]; $cor1 = $quality[1]; $cor2 = $quality[2]; if ($qualidade == "Unusual") { $att = $backpack_items['attributes']; foreach ($att as $ind => $att) { if ($att['defindex'] == 134) { $imageEffect = $att['float_value']; $effect = getUnusualName($schema_items, $imageEffect); } } } $item = "<img src={$image_url} "; if ($flag_cannot_trade == 1) { $item .= "title='NÃO TROCÁVEL " . mb_strtoupper($name, 'UTF-8');