Example #1
0
	}
	if ($search_baby_name)
		$query_txt	.= " AND mb_baby_name like '%".$search_baby_name."%'";
?>
          <div class="inner_list clearfix">
<?
	if(isset($pg) == false) $pg = 1;	// $pg가 없으면 1로 생성
	$page_size = 20;	// 한 페이지에 나타날 개수
	$block_size = 10;	// 한 화면에 나타낼 페이지 번호 개수

	$nominees_count_query = "SELECT count(*) FROM ".$_gl['member_info_table']." WHERE mb_upload_url is not null ".$query_txt."";

	list($nominees_count) = @mysqli_fetch_array(mysqli_query($my_db, $nominees_count_query));
	$PAGE_CLASS = new Page($pg,$nominees_count,$page_size,$block_size);

	$BLOCK_LIST = $PAGE_CLASS->blockList5();
	$PAGE_UNCOUNT = $PAGE_CLASS->page_uncount;

	$nominees_query		= "SELECT * FROM ".$_gl['member_info_table']." WHERE mb_upload_url is not null ".$query_txt." ".$order_txt." LIMIT $PAGE_CLASS->page_start, $page_size";
	$nominees_result		= mysqli_query($my_db, $nominees_query);

	while ($nominees_data = mysqli_fetch_array($nominees_result))
	{
		if ($nominees_data['mb_upload_flag'] == "P")
		{
			if(@file($nominees_data['mb_thumb_url']) === false)
			{
				$nominees_data['mb_thumb_url']	= $nominees_data['mb_upload_url'];
			}else{
				$nominees_data['mb_thumb_url']	= $nominees_data['mb_thumb_url'];
			}