PARAMETER_NO, 'show' => PARAMETER_Y, 'del' => PARAMETER_N); //======================================== // Search Query //======================================== $addPath = "&sc=$sc&sd=$sd&st=$st&sf=$sf&sk=$sk&sb=$sb"; $orderINS = "reg_date DESC, no DESC"; //======================================== // Data Load //======================================== $tags = $Db->query("SELECT distinct(tag) FROM $TABLE_SSTV WHERE tag != '' AND no > :no AND d_show = :show AND del = :del ", $param); $i = 0; foreach($tags as $key => $val){ $keyword_explode = explode(',',$val['tag']); foreach($keyword_explode as $v){ if($v){ $keyword[$i] = $v; $i++; } } } //$keyword = explode("|", $Db->single("SELECT keyword FROM $TABLE_KEYWORD WHERE code = :code", array('code' => "I"))); $nTagArr=array('홍보','홍보영상');//홍보영상 태그들 $mTagArr=array('후기','후기영상');//후기영상 태그들 if($sk){ if($sf){ $param['keyword'] = $Db->likeify($sk); } else { $param = array_merge($param, array( 'keyword_title' => $Db->likeify($sk), 'keyword_content' => $Db->likeify($sk), 'keyword_tag' => $Db->likeify($sk), )); } $searchINS .= ($sf) ? " AND $sf LIKE :keyword" : " AND (title LIKE :keyword_title OR content LIKE :keyword_content OR tag LIKE :keyword_tag)"; } if($st){ if($st=='N'){ //코질환 태그 for($nt=0; $ntlikeify($nTagArr[$nt]); if($nt==0){ $searchINS .= " AND ("; }else{ $searchINS .= " OR "; } $searchINS .= "tag LIKE '%".$value."%'"; if($nt==(count($nTagArr)-1)){ $searchINS .= ")"; } } //코성형 태그 빼기 for($mt=0; $mtlikeify($mTagArr[$mt]); if($mt==0){ $searchINS .= " AND ("; }else{ $searchINS .= " AND "; } $searchINS .= "tag NOT LIKE '%".$value."%'"; if($mt==(count($mTagArr)-1)){ $searchINS .= ")"; } } }else if($st=='M'){ //코성형 태그하나라도 있을시에! for($mt=0; $mtlikeify($mTagArr[$mt]); if($mt==0){ $searchINS .= " AND ("; }else{ $searchINS .= " OR "; } $searchINS .= "tag LIKE '%".$value."%'"; if($mt==(count($mTagArr)-1)){ $searchINS .= ")"; } } }else{ $param['tag'] = $Db->likeify($st); $searchINS .= " AND tag LIKE :tag"; } } $totalCount = $Db->single("SELECT COUNT(*) FROM $TABLE_SSTV WHERE no > :no AND d_show = :show AND del = :del $searchINS", $param); $totalPages = ceil($totalCount / $rowCount); $param = array_merge($param, array('startNum' => $startNum, 'rowCount' => $rowCount)); $list = $Db->query("SELECT no, best, store, title, content, hit, youtube, likes, tag FROM $TABLE_SSTV WHERE no > :no AND d_show = :show AND del = :del $searchINS ORDER BY $orderINS LIMIT :startNum, :rowCount", $param); $Db->CloseConnection; for($i=0; $i<4; $i++){ $countCut[$i] = mb_substr(sprintf("%04d", $totalCount), $i, 1); } //======================================== // header Include //======================================== include PATH_INCLUDE."header.php"; //======================================== // SNS Auth //======================================== require PATH_LIB."naverLogin.php"; require PATH_LIB."kakaoLogin2.php"; require PATH_LIB."googleLogin.php"; require PATH_LIB."facebookLogin.php"; $gogoUrl='sstv_list'; $naver = new Naver(array( "CLIENT_ID" => NAVER_LOGIN_ID, // (*필수)클라이언트 ID "CLIENT_SECRET" => NAVER_LOGIN_SECRET, // (*필수)클라이언트 시크릿 "RETURN_URL" => NAVER_LOGIN_REDIRECT_URL, // (*필수)콜백 URL "AUTO_CLOSE" => true, // 인증 완료후 팝업 자동으로 닫힘 여부 설정 (추가 정보 기재등 추가행동 필요시 false 설정 후 추가) "SHOW_LOGOUT" => false // 인증 후에 네이버 로그아웃 버튼 표시/ 또는 표시안함 ) ); $kakao = new Kakao(array( "Rcode" => $returnCode, "CLIENT_ID" => KAKAO_CLIENT_ID, // (*필수)클라이언트 ID "RETURN_URL" => KAKAO_CALLBACK_URL, "AUTO_CLOSE" => true, // 인증 완료후 팝업 자동으로 닫힘 여부 설정 (추가 정보 기재등 추가행동 필요시 false 설정 후 추가) "SHOW_LOGOUT" => false // 인증 후에 네이버 로그아웃 버튼 표시/ 또는 표시안함 ) ); ?>
HOME  >  ".$metaNav[4]."  > "; } if($metaNav[3]){ echo "".$metaNav[3]."  > "; } if($metaNav[2]){ echo "".$metaNav[2]."  > "; } if($metaNav[1]){ echo "".$metaNav[1]."  > "; } echo "".$metaNav[0].""; ?>
0) Pageing($totalPages, $blockCount, $page, $addPath); ?>

삼성드림TV 모아보기

    $val){ ?>