<!doctype html>
<html lang="en">
    <head>
    </head>

    <body>
        <!-- home -->
        <div id="left-list">
            <div>

                <form action="includes/search_product.php" method="post">
                    <div style="padding:5px" class="controls input-group">
                        <input type="text" name="name" class="form-control" placeholder="">
                        <div class="input-group-addon">
                            <input style="background-color:   transparent;   border:   0px" type="submit" name="submit" value="搜索">
                        </div>
                    </div>
                </form>

                <div class="left-list-home" style="text-align:center;
    padding-left: 10px;
    padding-right: 0px;
">
                    <a href="e-shop.php">
                        <h1 style="background: #a97f71;color: #ffffff;padding-top: 10px;padding-bottom: 10px;">
                            主页
                        </h1>
                    </a>
                </div>
            </div>
            <!-- end home -->

            <!-- ategorie -->
            <ul>
                <li style="text-align:center;">
                    <a style="text-decoration:none" data-toggle="collapse" href="#collapseOne">
                        <h1 style="background: #d99f94;color: #ffffff;padding-top: 10px;padding-bottom: 10px;margin-top: 0px;">
                            饰品
                        </h1>
                    </a>

                    <div id="collapseOne" class="collapse in">
                        <ul>
                            <?php
$sql = "select * from ategories where belong='accessories' and `status` != 'delete'";
$result = mysqli_query($conn, $sql);
if ($result->num_rows > 0) {
	while ($row = $result->fetch_assoc()) {
		echo '<a href="e-shop.php?ategory=' . str_replace(' ', '_', $row["sc_category"]) . '">';
		echo "<li>" . $row['sc_category'] . "</li>";
		echo '</a>';
	}
}
?>
                        </ul>
                    </div>
                </li>




            </ul>
        </div>
        <!-- end ategorie -->
    </body>
</html>