Commit 92fb4c40c213e116a2eb85643a36e82fbae71505

Authored by u123231312
1 parent f87f8b2b

no message

@@ -547,20 +547,6 @@ class Template extends Common{ @@ -547,20 +547,6 @@ class Template extends Common{
547 return $result; 547 return $result;
548 } 548 }
549 //模拟菜系 549 //模拟菜系
550 - $arrayCai = array(  
551 - 1 => '川菜',  
552 - 2 => '苏菜',  
553 - 3 => '鄂菜',  
554 - 4 => '湘菜',  
555 - 5 => '鲁菜',  
556 - 6 => '闽菜',  
557 - 7 => '浙菜',  
558 - 8 => '徽菜',  
559 - 9 => '京菜',  
560 - 10 => '豫菜',  
561 - 11 => '东北菜',  
562 - );  
563 - $this->assign ('arrayCai',$arrayCai);  
564 $this->assign ( 'title','菜品库' ); 550 $this->assign ( 'title','菜品库' );
565 return $this->fetch(); 551 return $this->fetch();
566 } 552 }
@@ -603,21 +589,6 @@ class Template extends Common{ @@ -603,21 +589,6 @@ class Template extends Common{
603 } 589 }
604 return $result; 590 return $result;
605 } 591 }
606 - //模拟菜系  
607 - $arrayCai = array(  
608 - 1 => '川菜',  
609 - 2 => '苏菜',  
610 - 3 => '鄂菜',  
611 - 4 => '湘菜',  
612 - 5 => '鲁菜',  
613 - 6 => '闽菜',  
614 - 7 => '浙菜',  
615 - 8 => '徽菜',  
616 - 9 => '京菜',  
617 - 10 => '豫菜',  
618 - 11 => '东北菜',  
619 - );  
620 - $this->assign ('arrayCai',$arrayCai);  
621 $this->assign ('list',$arr); 592 $this->assign ('list',$arr);
622 return $this->fetch(); 593 return $this->fetch();
623 } 594 }
@@ -75,7 +75,19 @@ return [ @@ -75,7 +75,19 @@ return [
75 75
76 76
77 'Super administrator cannot be deleted'=>'超级管理员不可删除!', 77 'Super administrator cannot be deleted'=>'超级管理员不可删除!',
78 - 'Are you sure you want to delete it'=>'你确定要删除吗?'  
79 - 78 + 'Are you sure you want to delete it'=>'你确定要删除吗?',
80 79
  80 + 'cuisine'=>array(
  81 + 1 => '川菜',
  82 + 2 => '苏菜',
  83 + 3 => '鄂菜',
  84 + 4 => '湘菜',
  85 + 5 => '鲁菜',
  86 + 6 => '闽菜',
  87 + 7 => '浙菜',
  88 + 8 => '徽菜',
  89 + 9 => '京菜',
  90 + 10 => '豫菜',
  91 + 11 => '东北菜',
  92 + )
81 ]; 93 ];
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 <td> 23 <td>
24 <select name="class{$vo}" id="class{$vo}" lay-filter="myselect{$vo}"> 24 <select name="class{$vo}" id="class{$vo}" lay-filter="myselect{$vo}">
25 <option value="0">同上</option> 25 <option value="0">同上</option>
26 - {volist name="arrayCai" id="item"} 26 + {volist name=":lang('cuisine')" id="item"}
27 <option value="{$key}">{$item}</option> 27 <option value="{$key}">{$item}</option>
28 {/volist} 28 {/volist}
29 </select> 29 </select>
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <label class="layui-form-label">菜系</label> 24 <label class="layui-form-label">菜系</label>
25 <div class="layui-input-1"> 25 <div class="layui-input-1">
26 <select name="class" id="class" lay-filter="myselect"> 26 <select name="class" id="class" lay-filter="myselect">
27 - {volist name="arrayCai" id="item"} 27 + {volist name=":lang('cuisine')" id="item"}
28 <option value="{$key}">{$item}</option> 28 <option value="{$key}">{$item}</option>
29 {/volist} 29 {/volist}
30 </select> 30 </select>