Пример #1
0
if ($keys) {
    ?>
        <tr>
          <td align="center"><strong>Item</strong></td>
          <td width="10%">&nbsp;</td>
        </tr>
<?php 
    foreach ($keys as $key) {
        extract($key);
        ?>
        <tr bgcolor="#<?php 
        echo $x % 2 == 0 ? "BBBBBB" : "AAAAAA";
        ?>
">
          <td align="center"><?php 
        echo item_isNoRent($key['item_id']) == true ? "<img src='images/caution.gif' border='0' width='13' title='This is a No Rent (Temporary) item'>&nbsp;&nbsp;" : "";
        echo get_item_name($key['item_id']);
        ?>
 (<?php 
        echo $key['item_id'];
        ?>
) - [<a href="http://lucy.allakhazam.com/item.html?id=<?php 
        echo $key['item_id'];
        ?>
" target="_blank">Lucy</a>]</td>
          <td align="right"><a href="index.php?editor=keys&playerid=<?php 
        echo $key['char_id'];
        ?>
&item_id=<?php 
        echo $key['item_id'];
        ?>
Пример #2
0
      </div>
      <table class="table_content2" width="100%">
<?
$x = 0;
if ($keys):
?>
        <tr>
          <td align="center"><strong>Item</strong></td>
          <td width="10%">&nbsp;</td>
        </tr>
<?
  foreach ($keys as $key):
    extract($key);
?>
        <tr bgcolor="#<? echo ($x % 2 == 0) ? "BBBBBB" : "AAAAAA";?>">
          <td align="center"><?echo (item_isNoRent($key['item_id']) == true) ? "<img src='images/caution.gif' border='0' width='13' title='This is a No Rent (Temporary) item'>&nbsp;&nbsp;" : ""?><?php 
echo get_item_name($key['item_id']);
?>
 (<?php 
echo $key['item_id'];
?>
) - [<a href="http://lucy.allakhazam.com/item.html?id=<?php 
echo $key['item_id'];
?>
" target="_blank">Lucy</a>]</td>
          <td align="right"><a href="index.php?editor=keys&playerid=<?php 
echo $key['char_id'];
?>
&item_id=<?php 
echo $key['item_id'];
?>