?>
</option>
                                                <?php 
}
?>
                                              </select>
                                              <span class="input-group-btn">
                                                <button name="btn_submit" value="slct_cat" class="btn btn-primary" type="submit">Go!</button>
                                              </span>
                                          </div>
                                        </div>
                                        <div class="form-group">
                                          <select name="subcategory_pt" class="form-control" id="sel2">
                                            <option>--- select subcategory</option>
                                            <?php 
$subcats = selectSubcategory($catpt_value);
foreach ($subcats as $option) {
    ?>
                                              <option><?php 
    echo $option['subcategory_name'];
    ?>
</option>
                                            <?php 
}
?>
                                          </select>
                                        </div>
                                        <div class="form-group">
                                          <input name="product_type" type="text" class="form-control" id="" placeholder="Product Type"  value="<?php 
echo $value_pt;
?>
예제 #2
0
foreach ($catsql as $cat) {
    ?>
			              <li class="dropdown-submenu">
			                <a tabindex="-1" href="<?php 
    echo $search_action_loc;
    ?>
search_product.php?cat_id=<?php 
    echo $cat['category_id'];
    ?>
"><?php 
    echo $cat['category_name'];
    ?>
</a>
			                <ul class="dropdown-menu">
			                	<?php 
    $scatsql = selectSubcategory($cat['category_name']);
    foreach ($scatsql as $scat) {
        ?>
				                  <li class="dropdown-submenu">
				                    <a tabindex="-1" href="<?php 
        echo $search_action_loc;
        ?>
search_product.php?scat_id=<?php 
        echo $scat['subcategory_id'];
        ?>
"><?php 
        echo $scat['subcategory_name'];
        ?>
</a>
				                    <ul class="dropdown-menu">
				                    	<?php 
                                      <span class="input-group-btn">
                                        <button name="btn_submit" value="slct_cat" class="btn btn-primary" type="submit">Go!</button>
                                      </span>
                                    </div>
                                  </div>

                                  <div class="form-group">
                                    <label for="sel2">Subcategory:</label>
                                    <div class="input-group ">
                                      <select name="subcategory" class="form-control" id="sel2">
                                        <option><?php 
echo $subcategory;
?>
</option>
                                        <?php 
$subcats = selectSubcategory($category);
foreach ($subcats as $option) {
    ?>
                                            <option><?php 
    echo $option['subcategory_name'];
    ?>
</option>
                                        <?php 
}
?>
                                      </select>
                                      <span class="input-group-btn">
                                        <button name="btn_submit" value="slct_scat" class="btn btn-primary" type="submit">Go!</button>
                                      </span>
                                    </div>
                                  </div>