当前位置:网站首页>Renrenyue -- renrenyue system development source code sharing

Renrenyue -- renrenyue system development source code sharing

2022-06-25 12:27:00 Procedure 15528175269

Core code sharing of renrenyue system development :

public function create($id = 0)
    {
        if ($id) $vipinfo = \app\admin\model\user\UserArea::get($id);
        $field[] = Form::input('uid', ' user ID', isset($vipinfo) ? $vipinfo->uid : '')->col(Form::col(24))->readonly( $id ? true : false);
        $field[] = Form::number('rate', " The proportion of sharing and moistening (%)", isset($vipinfo) ? $vipinfo->rate : 0)->min(0)->col(24);
        $field[] = Form::cityArea('area', ' Provincial city ', isset($vipinfo) ? $vipinfo->province : '',isset($vipinfo) ? $vipinfo->city : '',isset($vipinfo) ? $vipinfo->district : '');
        $field[] = Form::city('city', ' Provinces ', (isset($vipinfo) && !$vipinfo->district)  ? $vipinfo->province : '',( isset($vipinfo) && !$vipinfo->district) ? $vipinfo->city : '');
        $field[] = Form::radio('status', ' state ', isset($vipinfo) ? $vipinfo->status : 1)->options([['label' => ' Turn on ', 'value' => 1], ['label' => ' close ', 'value' => 0]])->col(24);
        $form = Form::make_post_form(' Add zone proxy ', $field, Url::buildUrl('save', ['id' => $id]), 2);
        $this->assign(compact('form'));
        return $this->fetch('public/form-builder');
    }

原网站

版权声明
本文为[Procedure 15528175269]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200532044976.html