shish 3 лет назад
Родитель
Сommit
79b0cb4994
1 измененных файлов с 40 добавлено и 0 удалено
  1. 40 0
      app-pt/controllers/ljhController.php

+ 40 - 0
app-pt/controllers/ljhController.php

@@ -0,0 +1,40 @@
+<?php
+
+namespace pt\controllers;
+
+use bizHd\ljh\classes\LjhApplyClass;
+use common\components\util;
+use Yii;
+
+
+class LjhController extends BaseController
+{
+
+    public $guestAccess = ['list'];
+
+    //申请列表
+    public function actionList()
+    {
+        ini_set('memory_limit', '2045M');
+        set_time_limit(0);
+        $list = LjhApplyClass::getAllByCondition(['status' => 2], 'payTime DESC', '*');
+        if (empty($list)) {
+            echo '暂无报名';
+        }
+        echo "<table>";
+        echo "<tr><th>花店名称</th><th>姓名</th><th>手机号</th><th>头像</th><th>报名费</th><th>地址</th></tr>";
+        foreach ($list as $custom) {
+            $shopName = $custom['name'] ?? '';
+            $adminName = $custom['adminName'] ?? '';
+            $mobile = $custom['mobile'] ?? '';
+            $cover = $custom['cover'] ?? '';
+            $actPrice = $custom['actPrice'] ?? 0;
+            $address = $custom['address'] ?? '';
+            echo "<tr>";
+            echo "<td>{$shopName}</td><td>{$adminName}</td><td>{$mobile}</td><td>{$cover}</td><td>{$actPrice}</td><td>{$address}</td>";
+            echo "</tr>";
+        }
+        echo "</table>";
+    }
+
+}