Title1

Title2

Title3

18-6 op_show樣板

{* 商品管理 顯示單筆 *}
    {if $WEB.file_name == "prod.php" and $op == "op_show"}
      <div class="container" style="margin-top:20px;">
        <div style="margin:10px 0;">
          <button onclick="window.location.href='{$smarty.session.CurrentUrl}'" type="button" class="btn btn-warning">返回</button>
          <button onclick="window.location.href='?op=op_form&sn={$DBV.sn}'" type="button" class="btn btn-success">編輯</button>
        </div>
        <div class="panel panel-primary">
          <div class="panel-heading">
            <h3 class="panel-title">顯示單筆</h3>
          </div>
          <div class="panel-body">

              <div class="row">
                <div class="col-md-6">
                  <div class="form-group">
                    <label>標題</label>
                    <div class="form-control">{$DBV.title}</div>
                  </div>
                </div>
                <div class="col-md-2">
                  <div class="form-group">
                    <label style="display:block;">啟用狀態</label>
                    <div class="form-control">{$DBV.enable}</div>
                  </div>
                </div>
                <div class="col-md-2">
                  <div class="form-group">
                    <label>排序</label>
                    <div class="form-control">{$DBV.sort}</div>
                  </div>
                </div>
              </div>

              <div class="row">
                <div class="col-md-3">
                  <div class="form-group">
                    <label>類別</label>
                    <div class="form-control">{$DBV['kind']}</div>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <label>日期</label>
                    <div class="form-control">{$DBV['date']}</div>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <label>價格</label>
                    <div class="form-control">{$DBV['price']}</div>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <div class="form-group">
                    <label>摘要</label>
                    <div class="alert alert-success">{$DBV['summary']}</div>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-md-12">
                  <label>內容</label>
                  <div class="alert alert-info">{$DBV['content']}</div>
                </div>
              </div>

              <div class="row">
                {if $DBV.file_name}
                  <div class="col-md-3">
                    <img src="{$DBV['file_name']}" alt="{$DBV.title}" class="img-responsive">
                  </div>
                {/if}
              </div>

          </div>
        </div>
      </div>
    {/if}