• <th id="1lizu"><video id="1lizu"></video></th>

      <th id="1lizu"></th>

      <tr id="1lizu"></tr>
      <th id="1lizu"></th>

      1. > „ > >

        thinkphplYx

        Wվ݋ 2020-03-09 20:12 / ھWվO / g
        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. thinkphplYx  

          Yx䌍ܺǴ_   Yxl    url

          óZԁfǴ_ $where    $cidͿ

          Ӣ٣

          ϷʽYx1.Q ģԃ2ķNl0 Ոx12ͨ^3δͨ^3䁠B1_

          Ml䁠B횞1.Q“Ոx”r@ʾȫ

              public function index(){

                  $Store = M('store');

                  $condition = '';

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

                  $audit =intval(I('post.audit'));//ՌˠB

                  /*YxlД*/

                  if($store_name){

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

                  }

                  if($audit){

                      $map['is_audit'] =$audit;//ˠB

                  }

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

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

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

          }

          ʹ$mapĺ̎ǮһlՕrֱӲԃlஔ SQLZ ֶ is nullifZДadz




        Ļ- С˵ ŷ -ȾþóƷĻ-ɫݺĻ