'1' )"; if($key_type || $key_word){ if($key_type=="b_sub_cont" || !$key_type){ $where = $where." and (b_subject like :key_word or b_content like :key_word) "; }else{ $where = $where." and $key_type like :key_word "; } $bindParam[] = array('key_word', $key_word,'like'); } if($cate){ $where = $where." and b_cate=:b_cate "; $bindParam[] = array('b_cate', $cate,'='); } $orderby = "order by regdate desc,b_parent desc,depth asc,idx desc"; $list_result = get_list($where,$bindParam,"gh_board_".$bo_table,$orderby,$pg,6); while($d=$list_result['result']->fetch(PDO::FETCH_ASSOC)) { $d = array_map('stripslashes',$d); $regdate= date("Y.m.d",strtotime(substr($d['regdate'],0,10))); $reply = ""; if(strlen($d['depth']) >0){ for($i=0;$i
'; $i++;} if($i==0){ $result = "nodata"; } $_json_array = array( "result" => $result, "list_data" => $list_data, //"ea" => urlencode($c_ea), //"field" => urlencode($field), //"period" => urlencode($c_period), ); echo urldecode(json_encode($_json_array)); include_once($gh_path."include/common/dbclose.php"); ?>