<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ~~~ /** * 新增 * @author 似水星辰 [2630481389@qq.com] * @return mixed */ public function add() { // 保存數據 if ($this->request->isPost()) { // 表單數據 $data = $this->request->post(); // 驗證 $result = $this->validate($data, 'Address'); if (true !== $result) $this->error($result); if ($page = AddressModel::create($data)) { $this->success('新增成功', cookie('__forward__')); } else { $this->error('新增失敗'); } } $fields = [ ['type' => 'text', 'name' => 'user_name', 'title' => '姓名', 'tips' => '', 'attr' => '', 'value' => ''], ['type' => 'text', 'name' => 'user_phone', 'title' => '收貨電話', 'tips' => '', 'attr' => '', 'value' => ''], ['type' => 'text', 'name' => 'user_address', 'title' => '收貨人地址', 'tips' => '', 'attr' => '', 'value' => ''], ['type' => 'radio', 'name' => 'is_default', 'title' => '是否默認', 'tips' => '', 'attr' => '', 'value' => '1'], ['type' => 'text', 'name' => 'uid', 'title' => '會員昵稱', 'tips' => '', 'attr' => '', 'value' => '0'], ]; $this->assign('page_title', '新增會員地址'); $this->assign('form_items', $fields); return $this->fetch('admin@public/add'); } ~~~ 如果創建的是admin模塊的表單,則最后的渲染語句是 ~~~ return $this->fetch('public/add'); ~~~ $fields是手動構建出來的,也可以使用自動的,但是自動的擴展性不強,參照一下代碼 ~~~ $fields = FieldModel::where('model',1)->order('sort asc,id asc')->column(true); foreach ($fields as &$value) { // 解析options if ($value['extra'] != '') { $value['extra'] = parse_attr($value['extra']); } switch ($value['type']) { case 'linkage':// 解析聯動下拉框異步請求地址 if (!empty($value['ajax_url']) && substr($value['ajax_url'], 0, 4) != 'http') { $value['ajax_url'] = url($value['ajax_url']); } break; case 'date': case 'time': case 'datetime': $value['value'] = ''; break; } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看