| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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 border='1'>";
- 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>";
- }
- }
|