<var id="bd95f"></var>
<ins id="bd95f"></ins>
<ins id="bd95f"></ins>
<var id="bd95f"><noframes id="bd95f">
<ins id="bd95f"><span id="bd95f"></span></ins>
<ins id="bd95f"></ins>
<ins id="bd95f"></ins>
ҳ > > վŻ >

thinkphpɸѡ

վ༭ 2020-03-09 20:12 / /
  1. function Filter(a, b) { 
  2.     var $ = function(e) { 
  3.         return document.getElementById(e); 
  4.     } 
  5.     var ipts = $('filterForm').getElementsByTagName('input'), result = []; 
  6.     for (var i = 0, l = ipts.length; i < l; i++) { 
  7.         if (ipts[i].getAttribute('to') == 'filter') { 
  8.             result.push(ipts[i]); 
  9.         } 
  10.     } 
  11.     if ($(a)) { 
  12.         $(a).value = b; 
  13.         for (var j = 0, len = result.length; j < len; j++) { 
  14.  
  15.             if (result[j].value == '' || result[j].value == '0') { 
  16.                 result[j].parentNode.removeChild(result[j]); 
  17.             } 
  18.         } 
  19.         document.forms['filterForm'].submit(); 
  20.     } 
  21.     return false; 
  22. }
  23. thinkphpɸѡ  

    ɸѡʵܼȷ   ɸѡ    url

    ó˵ȷ $where    $cidͿ

    Ӣ٣

    Ϸʽɸ1. ģѯ20 ѡ12ͨ3δͨ3״̬Ϊ1

    ״̬Ϊ1.Ϊ“ѡ”ʱʾȫ

    £

        public function index(){

            $Store = M('store');

            $condition = '';

            $store_name =I('post.store_name');//

            $audit =intval(I('post.audit'));//״̬

            /*ɸѡж*/

            if($store_name){

                $map['store_name'] =array('like',"%".$store_name."%");//like ж

            }

            if($audit){

                $map['is_audit'] =$audit;//״̬

            }

            $map['store_state'] = 1;//ѡ

    $storelist =$Store->where($map)->select();//ɸѡ

    $this->assign('storelist',$storelist);// ֵݼ

    }

    ʹ$mapĺôǵһΪʱֱӲѯ൱ SQL ֶ is nullifжdz




ۺɫͼƬ,18videosexŷ69,ְֵĴҵĴѽ,ӡȷʸëbbw