lib('post');
$categories = array(); // 검색 카테고리. 전체
$search['r'] = GRADE_PUBLIC; // 공개 글만 리스트한다.
$search['r cond'] = '='; //
$limit['fromNumber'] = 0; // 첨부터
$limit['toNumber'] = 10; // 10개를 리스트한다.
$orderby['dateTime'] = 'DESC'; // 날짜 순으로 맨 마지막에 기록된게 위로 오게한다.
$posts = searchPost($categories, $search, $limit, $orderby);
if ( faultCode($posts) ) javascriptAlert("검색에 문제가 있습니다.");
?>
foreach ($posts as $post) { ?>
>=$post[title]?>
=$post[name]?>
=dt($post[dateTime])?>
} ?>
lib('post');
lib('user');
$categories = array(); // 검색 카테고리. 전체
$limit['toNumber'] = 3; // 3개를 추출
$orderby['dateTime'] = 'DESC'; // 날짜 순 최근 글이 위로가게한다.
$search['idx_user'] = getUserIdx("mini"); // 사용자'mini' 가 쓴 글을 추출한다.
$posts = searchPost($categories, $search, $limit, $orderby);
?>
foreach ($posts as $post) { ?>
>=$post[title]?>
=$post[name]?>
=dt($post[dateTime])?>
} ?>
unset($search); unset($categories); unset($limit);
lib('post');
$categories[] = 'talk2'; // 검색 카테고리. 자유게시판
$limit['toNumber'] = 5; // 5개를 추출
$orderby['dateTime'] = 'DESC'; // 날짜 순 최근 글이 위로가게한다.
$search['dateTime'] = date("Ymd000000");
$search['dateTime cond'] = '>';
$posts = searchPost($categories, $search, $limit, $orderby);
?>
foreach ($posts as $post) { ?>
>=$post[title]?>
=$post[name]?>
=dt($post[dateTime])?>
} ?>
lib('post');
$categories = array(); // 검색 카테고리. 전체
$search['r'] = GRADE_PUBLIC; // 공개 글만 리스트한다.
$search['r cond'] = '='; //
$search['title'] = '안녕';
$limit['fromNumber'] = 0; // 첨부터
$limit['toNumber'] = 10; // 10개를 리스트한다.
$orderby['dateTime'] = 'DESC'; // 날짜 순으로 맨 마지막에 기록된게 위로
$posts = searchPost($categories, $search, $limit, $orderby);
if ( faultCode($posts) ) javascriptAlert("검색에 문제가 있습니다.");
?>
foreach ($posts as $post) { ?>
>=$post[title]?>
=$post[name]?>
=dt($post[dateTime])?>
} ?>
/logo.jpg>