Pārlūkot izejas kodu

添加消息模板的状态

lvhao 2 nedēļas atpakaļ
vecāks
revīzija
9a0ca85f0a
2 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 4 0
      core/CoreApp/controllers/Notice.php
  2. 7 0
      template/erp/notice.html

+ 4 - 0
core/CoreApp/controllers/Notice.php

@@ -82,11 +82,15 @@ class Notice extends Start_Controller {
 			$ordertatus = $this->input->post('ordertatus',true);
 			$ordertatus = $this->input->post('ordertatus',true);
 			$arg = $this->input->post('arg',true);
 			$arg = $this->input->post('arg',true);
 			$logisticstatus = $this->input->post('logisticstatus',true);
 			$logisticstatus = $this->input->post('logisticstatus',true);
+			$state = $this->input->post('state',true);
 			$where = "1=1 and (".rtrim($fgshop,'or').")";
 			$where = "1=1 and (".rtrim($fgshop,'or').")";
 			if($shop)
 			if($shop)
             {
             {
                 $where  .= " and shop = '$shop'";
                 $where  .= " and shop = '$shop'";
             }
             }
+			if($state){
+				$where  .= " and state = '$state'";
+			}
 			if($type)
 			if($type)
             {
             {
                 $where  .= " and type = '$type'";
                 $where  .= " and type = '$type'";

+ 7 - 0
template/erp/notice.html

@@ -24,6 +24,13 @@
 <option value="6">已签收</option>
 <option value="6">已签收</option>
 <option value="1">派送异常</option>
 <option value="1">派送异常</option>
 </select></li>
 </select></li>
+
+<li>使用状态:<select name="state" class="select">
+    <option value="">请选择</option>
+    <option value="1">启用</option>
+    <option value="2">未启用</option>
+    </select></li>
+
 <input id="arg" name="arg" type="hidden" value="{$arg}">
 <input id="arg" name="arg" type="hidden" value="{$arg}">
 <li><span>确 定</span></li>
 <li><span>确 定</span></li>
 </ul>
 </ul>