×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: luobo zw
Added: Apr 29, 2022 3:03 AM
Modified: Apr 29, 2022 4:04 AM
Views: 3
Tags: no tags
  1. <- --------------- ->
  2. <- 编辑页面的 select ->
  3. <- --------------- ->
  4.  
  5. <select id="pro_id" name="info[pro_id]" class="form-control">
  6. <?php
  7.    echo Helper_Form::getSelectHtml(array(
  8.        "preData" => array(
  9.             0 => "- 请选择 -",
  10.         ),
  11.         "data" => $proList,
  12.         "sel"  => $info["pro_id"],
  13.         "isKv" => 1
  14.     ));
  15. ?>
  16.  
  17.  
  18.  
  19. <- --------------- ->
  20. <- 列表页筛选 select ->
  21. <- --------------- ->
  22.  
  23. <label><select id="sel_sku_id" name="sel[sku_id]" class="form-control input-sm">
  24. <?php
  25.    echo Helper_Form::getSelectHtml(array(
  26.        "preData" => array(
  27.             0 => "- 请选择? -",
  28.         ),
  29.         "data" => $skuList,
  30.         "sel"  => $selInfo["sku_id"],
  31.         "isKv" => 1
  32.     ));
  33. ?>