ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯(lián)系官方銷售客服

1835022288

028-61286886

投訴 解決中 / 官方已回 表單查詢,證書或編號(hào)其中任一項(xiàng)可查詢 5 0
迅睿CMS版本:1.0.0 #不能為空

http://www.zbshanke.com/doc/1055.html
這個(gè)是搜索 證書+編號(hào)的代碼

<?php namespace Phpcmf\Controllers;

/**
 * 二次開發(fā)時(shí)可以修改本文件,不影響升級(jí)覆蓋
 */

class Zhengshu extends \Phpcmf\Home\Form
{

    public function index() {
        $this->_Home_List();
    }

    public function show() {
        $this->_Home_Show();
    }

    public function post() {
        $this->_Home_Post();
    }

    public function search() {

        // 接收url傳遞的值
        $title = dr_safe_replace(\Phpcmf\Service::L('input')->get('title'));
        $zsbh = dr_safe_replace(\Phpcmf\Service::L('input')->get('zsbh'));
        if (!$title) {
            $this->_msg(0, '證書名稱不能為空');
        }
        if (!$zsbh) {
            $this->_msg(0, '證書編號(hào)不能為空');
        }

        // 查詢
        $row = \Phpcmf\Service::M()->table($this->init['table'])->where('title', $title)->where('zsbh', $zsbh)->getRow();
        if (!$row) {
            $this->_msg(0, '沒(méi)有查詢到');
        }

        // 查詢到了調(diào)轉(zhuǎn)到表單詳情頁(yè)面
        $url = SITE_URL.'index.php?s=form&c='.$this->form['table'].'&m=show&id='.$row['id'];

        dr_redirect($url);
    }

}


如何改成輸入證書或編號(hào)兩項(xiàng)的其中一項(xiàng)就可以查詢? 謝謝.

解決方案