開発メモ

開発用のメモです。

EC CUBE Bootstrap レイアウト 検索

<!--{strip}-->
<div class="panel panel-default">
    <div class="panel-heading">
        <span>検索条件</span>
    </div>
    <div class="panel-body">
        <form name="login_form" id="login_form" method="post" action="<!--{$smarty.const.HTTPS_URL}-->frontparts/login_check.php" class="form">
            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
            <div class="block_body">
                <div class="form-group">
                    <label>商品カテゴリから選ぶ</label>
                    <select name="category_id" class="form-control">
                        <option label="全ての商品" value="">全ての商品</option>
                        <!--{html_options options=$arrCatList selected=$category_id}-->
                    </select>
                </div>
                <!--{if $arrMakerList}-->
                <div class="form-group">
                    <label>メーカーから選ぶ</label>
                    <select name="maker_id" class="form-control">
                        <option label="全ての商品" value="">全ての商品</option>
                        <!--{html_options options=$arrMakerList selected=$maker_id}-->
                    </select>
                </div>
                <!--{/if}-->
                <div class="form-group">
                    <label>商品名を入力</label>
                    <input type="text" name="name" class="form-control" maxlength="50" value="<!--{$smarty.get.name|h}-->" />
                </div>
                <input type="image" class="btn btn-primary btn-block" value="検索" name="search" />
            </div>
        </form>
    </div>
</div>
<!--{/strip}-->
Twitter: @asahina_alice