Пример #1
0
                                <td>
                                            <select name="ilto" style="width: 100%">
                                            <option>--Item level to--</option>
                                            <?php 
            for ($i = $GLOBALS['maxItemLevel']; $i >= 1; $i--) {
                if ($_GET['ilto'] == $i) {
                    echo "<option selected='selected'>";
                } else {
                    echo "<option>";
                }
                echo $i . "</option>";
            }
            ?>
                                    </select>	
                                </td>
                            </tr>
        </table>
		<?php 
        }
        ?>
        </form><br/>
</center> 
<?php 
        if (isset($_GET['search'])) {
            shop::search($_GET['search_value'], $shopVar, $_GET['q'], $_GET['t'], $_GET['ilfrom'], $_GET['ilto'], $_GET['r'], $_GET['f'], $_GET['c'], $_GET['st']);
        }
    } elseif ($GLOBALS[$shopVar . 'Shop']['shopType'] == 2) {
        //List all items.
        shop::listAll($shopVar);
    }
}