north 7 年之前
父節點
當前提交
3ded2a4cb7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      www/protected/controllers/HouseKeepingController.php

+ 4 - 4
www/protected/controllers/HouseKeepingController.php

@@ -11,10 +11,10 @@ class HouseKeepingController extends AdminController
 {
 {
     public function actionIndex()
     public function actionIndex()
     {
     {
-        //$tmp = HouseKeeping::model()->findAll();
-        //foreach ($tmp as $k => $v) {
-        //$v->delete();
-       // }
+        $tmp = HouseKeeping::model()->findAll();
+        foreach ($tmp as $k => $v) {
+          $v->delete();
+        }
         $status_option = CommonFn::getComboboxData(HouseKeeping::$status_option, 1, true, 100);
         $status_option = CommonFn::getComboboxData(HouseKeeping::$status_option, 1, true, 100);
         $type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
         $type_option = CommonFn::getComboboxData(HouseKeeping::$type_option, 1, true, 100);
         $cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);
         $cart_options = CommonFn::getComboboxData(HouseKeeping::$cart_options, 1, true, 100);