方便维护下拉框数据的UI设计

1 后台下拉框列表显示
方便维护下拉框数据的UI设计

点击编辑后:注意数据维护(方便批量维护,分行入库存储)
方便维护下拉框数据的UI设计

 

Java代码  方便维护下拉框数据的UI设计
  1. $problemArr=array_unique(array_filter(explode("\n", trim($getProblem))));  
  2. if (!empty($problemArr)) {  
  3.     try{  
  4.         $this->Problem->deleteAll();  
  5.         foreach ($problemArr as $value) {  
  6.             $this->Problem->save($value);  
  7.         }  
  8.     }catch(\Exception $e) {  
  9.   
  10.     }  
  11. }  

2 前台页面显示的效果如下
方便维护下拉框数据的UI设计