예제 #1
0
<form action="<?php 
echo WoW::GetWoWPath();
?>
/filter=items" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">

<div class="rightpanel">
<div style="float: left">Quality: </div><small><a href="javascript:;" onclick="document.forms['fi'].elements['qu[]'].selectedIndex = -1; return false" onmousedown="return false">clear</a></small>
<div class="clear"></div>
<?php 
$select_info = array('form' => array('name' => 'qu[]', 'size' => '8', 'multiple' => 'multiple', 'class' => 'rightselect', 'style' => 'background-color: #181818'), 'filter' => array('filter_key' => 'qu'), 'options' => array('data' => array(0, 1, 2, 3, 4, 5, 6, 7), 'class' => 'q%d'), 'locale' => array('string_key' => 'template_item_quality_%d'));
echo WoW_Template::GetSelectForm($select_info);
?>
</div>

<?php 
if (WoW_Items::GetCategory() === false || in_array(WoW_Items::GetCategory(), array(2, 4))) {
    ?>
<div class="rightpanel2">
<div style="float: left">Slot: </div><small><a href="javascript:;" onclick="document.forms['fi'].elements['sl[]'].selectedIndex = -1; return false" onmousedown="return false">clear</a></small>
<div class="clear"></div>
<?php 
    $select_info = array('form' => array('name' => 'sl[]', 'size' => '7', 'multiple' => 'multiple', 'class' => 'rightselect'), 'filter' => array('filter_key' => 'sl'), 'options' => array('data' => array(16, 18, 5, 8, 11, 10, 1, 23, 7, 21, 2, 22, 23, 24, 15, 28, 14, 4, 3, 19, 25, 12, 17, 6, 9)), 'locale' => array('string_key' => 'template_item_invtype_%d'));
    echo WoW_Template::GetSelectForm($select_info);
    ?>
</div>
<?php 
}
?>

<table>
<tr>