예제 #1
0
파일: list.skin.php 프로젝트: peb317/gbamn
						</div>
					<?php 
    }
    ?>
					<div class="item-name">
						<a href="<?php 
    echo $list[$i]['href'];
    ?>
">
							<b><?php 
    echo $list[$i]['it_name'];
    ?>
</b>
							<div class="item-text">
								<?php 
    echo $list[$i]['it_basic'] ? $list[$i]['it_basic'] : apms_cut_text($list[$i]['it_explan'], 120);
    ?>
							</div>
						</a>
					</div>
					<div class="item-price en">
						<?php 
    if ($list[$i]['it_tel_inq']) {
        ?>
							<b>Call</b>
						<?php 
    } else {
        ?>
							<?php 
        echo $cur_price;
        ?>
예제 #2
0
파일: apms.lib.php 프로젝트: peb317/gbamn
function thema_widget_write_list($type, $bo_table, $row, $new = 24, $thumb_width = 0, $thumb_height = 0, $is_create = false, $is_crop = true, $crop_mode = 'center', $is_sharpen = true, $um_value = '80/0.5/3')
{
    global $g5, $is_admin;
    // 배열전체를 복사
    $list = $row;
    unset($row);
    $list['bo_table'] = $bo_table;
    $list['update'] = 0;
    if ($type == 'tag') {
        $list['new'] = $list['lastdate'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
        $list['date'] = strtotime($list['lastdate']);
        $list['name'] = $list['tag'];
        $list['href'] = G5_BBS_URL . '/tag.php?q=' . urlencode($list['tag']);
        $list['comment'] = $list['cnt'];
    } else {
        if ($type == 'response') {
            $list['subject'] = get_text($list['wr_subject']);
            $list['new'] = $list['regdate'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
            $list['date'] = strtotime($list['regdate']);
            $list['name'] = $list['my_name'];
            $list['href'] = G5_BBS_URL . '/response.php?id=' . $list['id'];
            $list['photo'] = apms_photo_url($list['my_id']);
            //회원사진
            $list['comment'] = $list['reply_cnt'] + $list['comment_cnt'] + $list['comment_reply_cnt'] + $list['use_cnt'] + $list['qa_cnt'] + $list['good_cnt'] + $list['nogood_cnt'];
        } else {
            if ($type == 'qa') {
                $list['subject'] = get_text($list['qa_subject']);
                $list['new'] = $list['qa_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
                $list['date'] = strtotime($list['qa_datetime']);
                $list['name'] = $list['qa_name'];
                $list['href'] = G5_BBS_URL . '/qaview.php?qa_id=' . $list['qa_id'];
                $list['photo'] = apms_photo_url($list['mb_id']);
                //회원사진
                $list['category'] = $list['qa_category'];
                $list['comment'] = $list['qa_status'] ? 1 : 0;
            } else {
                $list['new'] = $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
                $list['secret'] = strstr($list['wr_option'], "secret") ? true : false;
                $list['date'] = strtotime($list['wr_datetime']);
                $list['photo'] = apms_photo_url($list['mb_id']);
                //회원사진
                $list['name'] = $list['wr_name'];
                $list['category'] = $list['ca_name'];
                $list['hit'] = $list['wr_hit'];
                $list['good'] = $list['wr_good'];
                $list['nogood'] = $list['wr_nogood'];
                $list['is_lock'] = $list['as_shingo'] < 0 ? true : false;
                if ($type == 'comment') {
                    $list['reply_name'] = $list['wr_comment_reply'] && $list['as_re_name'] ? $list['as_re_name'] : '';
                    $list['comment'] = $list['wr_comment'] = 0;
                    if (!$list['secret']) {
                        $tmp_write_table = $g5['write_prefix'] . $bo_table;
                        $post = sql_fetch(" select wr_option from {$tmp_write_table} where wr_id = '{$list['wr_parent']}' ", false);
                        //원글 글옵션
                        $list['secret'] = strstr($post['wr_option'], "secret") ? true : false;
                    }
                    if ($list['secret']) {
                        $list['subject'] = $list['wr_subject'] = $list['wr_content'] = '비밀댓글입니다.';
                    } else {
                        if ($list['is_lock']) {
                            $list['subject'] = $list['wr_subject'] = $list['wr_content'] = '잠긴댓글입니다.';
                        } else {
                            $list['subject'] = apms_cut_text($list['wr_content'], 60);
                        }
                    }
                    $list['href'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $list['wr_parent'] . '#c_' . $list['wr_id'];
                } else {
                    if ($type == 'post') {
                        $list['update'] = strtotime($list['as_update']);
                        $list['subject'] = get_text($list['wr_subject']);
                        $list['reply'] = strlen($list['wr_reply']);
                        $list['reply_name'] = $list['reply'] && $list['as_re_name'] ? $list['as_re_name'] : '';
                        $list['href'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $list['wr_parent'];
                        $list['comment'] = $list['wr_comment'];
                        // 링크
                        for ($i = 1; $i <= G5_LINK_COUNT; $i++) {
                            $list['link'][$i] = set_http(get_text($list["wr_link{$i}"]));
                            $list['link_href'][$i] = G5_BBS_URL . "/link.php?bo_table=" . $bo_table . "&amp;wr_id=" . $list['wr_id'] . "&amp;no=" . $i;
                            $list['link_hit'][$i] = (int) $list["wr_link{$i}_hit"];
                        }
                        if ($list['secret']) {
                            $list['wr_content'] = '비밀글입니다.';
                        } else {
                            if ($list['is_lock']) {
                                $list['wr_content'] = '잠긴글입니다.';
                            }
                        }
                        if (!$list['secret'] && !$list['is_lock'] && $thumb_width > 0) {
                            $list['img'] = apms_wr_thumbnail($bo_table, $list, $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
                        }
                    }
                }
                $list['content'] = $list['wr_content'];
                $list['wr_content'] = '';
            }
        }
    }
    return $list;
}
예제 #3
0
    ?>
					<?php 
    echo apms_datetime($list[$i]['date'], 'Y.m.d');
    ?>
				</div>
				<?php 
    if ($cut) {
        ?>
					<div class="item-cont text-left">
						<a href="<?php 
        echo $list[$i]['href'];
        ?>
">
							<span class="text-muted">
								<?php 
        echo apms_cut_text($list[$i]['content'], $cut, '… 더보기');
        ?>
							</span>
						</a>
					</div>
				<?php 
    }
    ?>
				<div class="item-read en">
					<div class="pull-left text-muted">
						<i class="fa fa-comment"></i>
						<?php 
    echo $list[$i]['comment'] ? '<span class="red">' . number_format($list[$i]['comment']) . '</span>' : 0;
    ?>
						&nbsp;
						<i class="fa fa-eye"></i>
예제 #4
0
    echo $is_modal_js;
    echo $target;
    ?>
>
								<?php 
    echo $wr_icon;
    ?>
								<?php 
    echo $img[$i]['subject'];
    ?>
								<?php 
    if ($is_cont) {
        ?>
									<div class="post-text">
										<?php 
        echo apms_cut_text($img[$i]['content'], 100);
        ?>
									</div>
								<?php 
    }
    ?>
							</a>
						</div>
						<div class="post-text post-ko txt-short ellipsis<?php 
    echo $is_center;
    ?>
">
							<?php 
    echo $img[$i]['name'];
    ?>
							<?php 
예제 #5
0
파일: index.php 프로젝트: peb317/gbamn
}
if ($tid) {
    $where .= " and it_type{$tid} = '1'";
}
if ($cid) {
    $where .= " and (ca_id like '{$cid}%' or ca_id2 like '{$cid}%' or ca_id3 like '{$cid}%')";
}
$result = sql_query(" select * from `{$g5['g5_shop_item_table']}` where {$where} order by {$order_by} limit 0, {$rss_rows} ");
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    // 링크
    $link = G5_SHOP_URL . '/item.php?it_id=' . $row['it_id'];
    // 이미지
    $img = apms_it_thumbnail($row, 600, 0, false, true);
    $rss_img = $img['src'] ? '<p><img src="' . $img['src'] . '" alt="' . $img['alt'] . '" border=0></p>' : '';
    // 내용
    $rss_content = apms_cut_text($row['it_explan'], 300);
    if (!$row['pt_id'] || $row['pt_id'] == $config['cf_admin']) {
        $author['mb_nick'] = $cf_author['mb_nick'];
    } else {
        $author = get_member($row['pt_id'], 'mb_nick');
    }
    $date = $row['pt_num'] ? $row['pt_num'] : strtotime($row['it_time']);
    // rss 리더 스킨으로 호출하면 날짜가 제대로 표시되지 않음
    //$date = substr($date,0,10) . "T" . substr($date,11,8) . "+09:00";
    $date = date('r', $date);
    ?>
	<item>
	<title><?php 
    echo specialchars_replace(apms_get_text($row['it_name']));
    ?>
</title>
예제 #6
0
					</span>
				<?php 
    }
    ?>
			</div>
			<?php 
    if ($cont_len > 0) {
        ?>
				<div class="cont">
					<a href="<?php 
        echo $list[$i]['href'];
        ?>
">
						<span class="text-muted">
							<?php 
        echo apms_cut_text($list[$i]['content'], $cont_len, '… <span class="font-11">더보기</span>');
        ?>
						</span>
					</a>
				</div>
			<?php 
    }
    ?>
		</div>
		<div class="clearfix"></div>
	</div>
</li>
<?php 
}
if (!$list_cnt) {
    ?>
예제 #7
0
    echo $is_modal_js;
    echo $target;
    ?>
>
						<?php 
    echo $wr_icon;
    ?>
						<?php 
    echo $list[$i]['subject'];
    ?>
						<?php 
    if ($is_cont) {
        ?>
							<div class="post-text">
								<?php 
        echo apms_cut_text($list[$i]['content'], 80);
        ?>
							</div>
						<?php 
    }
    ?>
					</a>
				</div>
				<div class="post-text post-ko txt-short ellipsis<?php 
    echo $is_center;
    ?>
">
					<?php 
    echo $list[$i]['name'];
    ?>
					<?php 
예제 #8
0
					<a href="#" onclick="more_is('more_iq_<?php 
    echo $i;
    ?>
'); return false;">
						<?php 
    if ($list[$i]['iq_secret']) {
        ?>
							<img src="<?php 
        echo $item_skin_url;
        ?>
/img/icon_secret.gif" alt="">
						<?php 
    }
    ?>
						<span class="text-muted"><?php 
    echo apms_cut_text($list[$i]['iq_question'], $wset['qcont'], '… <span class="font-11 text-muted">더보기</span>');
    ?>
</span>
					</a>
				</div>
			</div>
			<div class="clearfix" id="more_iq_<?php 
    echo $i;
    ?>
" style="display:none;">
				<div class="media-content">
					<?php 
    echo get_view_thumbnail($list[$i]['iq_question'], $default['pt_img_width']);
    // 문의 내용
    ?>
					<?php 
예제 #9
0
						<?php 
    echo $shadow_outer;
    ?>
						<?php 
    if (!$wset['caption']) {
        ?>
							<div class="item-subj text-center">
								<a href="<?php 
        echo $img[$i]['href'];
        ?>
"<?php 
        echo $target;
        ?>
>
									<?php 
        echo $is_subj ? apms_cut_text($img[$i]['subject'], $wset['scut']) : $img[$i]['subject'];
        ?>
									<?php 
        if ($img[$i]['comment']) {
            ?>
										<span class="count red"><?php 
            echo number_format($img[$i]['comment']);
            ?>
</span>
									<?php 
        }
        ?>
								</a>
							</div>
						<?php 
    }
예제 #10
0
     $seometa['img'] = apms_it_thumbnail($it, 0, 0, false, true);
 } else {
     if ($is_seometa == 'iqa') {
         //상품문의
         $seometa['subject'] = apms_get_text($view['iq_subject']);
         $seometa['description'] = apms_cut_text($view['iq_content'], 200);
         $seometa['creator'] = apms_get_text($view['iq_name']);
         $seometa['keyword'] = apms_seo_keyword($view['pt_tag']);
         $seometa['type'] = 'article';
         $seometa['url'] = G5_SHOP_URL . '/itemqaview.php?iq_id=' . $iq_id;
         $seometa['img'] = apms_it_write_thumbnail($view['it_id'], $view['iq_content'], 0, 0);
     } else {
         if ($is_seometa == 'iuse') {
             //상품후기
             $seometa['subject'] = apms_get_text($view['is_subject']);
             $seometa['description'] = apms_cut_text($view['is_content'], 200);
             $seometa['creator'] = apms_get_text($view['is_name']);
             $seometa['keyword'] = apms_seo_keyword($view['pt_tag']);
             $seometa['type'] = 'article';
             $seometa['url'] = G5_SHOP_URL . '/itemuseview.php?is_id=' . $is_id;
             $seometa['img'] = apms_it_write_thumbnail($view['it_id'], $view['is_content'], 0, 0);
         } else {
             if ($is_seometa == 'page' || $is_seometa == 'content') {
                 // 페이지
                 $seometa['subject'] = $at['subject'];
                 $seometa['description'] = $seo_page_desc;
                 $seometa['creator'] = $config['cf_title'];
                 $seometa['keyword'] = '';
                 $seometa['type'] = 'website';
                 $seometa['url'] = $is_seometa == 'content' ? G5_BBS_URL . '/content.php?co_id=' . $co_id : G5_BBS_URL . '/page.php?hid=' . $hid . $qstr;
                 $seometa['img']['src'] = $seo_page_img;
예제 #11
0
						<time datetime="<?php 
    echo date('Y-m-d\\TH:i:s+09:00', $list[$i]['is_time']);
    ?>
"><?php 
    echo apms_datetime($list[$i]['is_time'], 'Y.m.d H:i');
    ?>
</time>
					</span>
				</div>
				<div class="media-desc">
					<a href="#" onclick="more_is('more_is_<?php 
    echo $i;
    ?>
'); return false;">
						<span class="text-muted"><?php 
    echo apms_cut_text($list[$i]['is_content'], $wset['ucont'], '… <span class="font-11 text-muted">더보기</span>');
    ?>
</span>
					</a>
				</div>
			</div>
			<div class="clearfix media-content" id="more_is_<?php 
    echo $i;
    ?>
" style="display:none;">
				<?php 
    echo get_view_thumbnail($list[$i]['is_content'], $default['pt_img_width']);
    // 후기 내용
    ?>
				<?php 
    if ($list[$i]['is_btn']) {
예제 #12
0
"<?php 
    echo $target;
    ?>
>
					<img src="<?php 
    echo $list[$i]['img']['src'];
    ?>
" alt="<?php 
    echo str_replace("\"", "'", $list[$i]['subject']);
    ?>
">
					<?php 
    if ($wset['caption']) {
        //캡션
        if ($wset['scut']) {
            $list[$i]['subject'] = apms_cut_text($list[$i]['subject'], $wset['scut']);
        }
        // 제목
        ?>
						<div class="in-<?php 
        echo $wset['caption'];
        ?>
 <?php 
        echo $wset['bg'];
        ?>
">
							<?php 
        echo $list[$i]['subject'];
        ?>
							<?php 
        if ($list[$i]['comment']) {
예제 #13
0
파일: tag.php 프로젝트: peb317/gbamn
            $list[$i]['href'] = G5_SHOP_URL . '/item.php?it_id=' . $row['it_id'];
            $list[$i]['subject'] = apms_get_text($post['it_name']);
            $list[$i]['content'] = apms_cut_text($post['it_explan'], 300);
            $list[$i]['hit'] = $post['it_hit'];
            $list[$i]['date'] = strtotime($post['it_time']);
            $list[$i]['comment'] = $post['pt_comment'];
            $list[$i]['img'] = apms_it_thumbnail($post, 0, 0);
        } else {
            $post = sql_fetch(" select * from {$g5['write_prefix']}{$row['bo_table']} where wr_id = '{$row['wr_id']}' ", false);
            $list[$i]['href'] = G5_BBS_URL . '/board.php?bo_table=' . $row['bo_table'] . '&amp;wr_id=' . $row['wr_id'];
            $list[$i]['subject'] = apms_get_text($post['wr_subject']);
            // 비밀글은 검색 불가
            if (strstr($post['wr_option'], 'secret')) {
                $post['wr_content'] = '[비밀글 입니다.]';
            }
            $list[$i]['content'] = apms_cut_text($post['wr_content'], 300);
            $list[$i]['img'] = apms_wr_thumbnail($row['bo_table'], $post, 0, 0);
            $list[$i]['hit'] = $post['wr_hit'];
            $list[$i]['comment'] = $post['wr_comment'];
            $list[$i]['date'] = strtotime($post['wr_datetime']);
        }
    }
    $write_page_rows = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'];
    $list_page = $_SERVER['PHP_SELF'] . '?q=' . urlencode($q) . '&amp;eq=' . $eq . '&amp;page=';
    $skin_file = $skin_path . '/tag.search.skin.php';
} else {
    $rank = 10;
    //랭킹묶음
    $trow = 100;
    //페이지당 출력 태그수
    //등록태그 현황
예제 #14
0
파일: page.php 프로젝트: peb317/gbamn
            $page_url = str_replace(G5_PATH, G5_URL, $page_path);
            if (is_file($page_file)) {
                include_once $page_file;
            } else {
                echo '<br><br><p align="center">준비중 입니다.</p><br><br>';
            }
        } else {
            echo '<br><br><p align="center">존재하지 않는 페이지입니다.</p><br><br>';
        }
    }
    $page_content = ob_get_contents();
    ob_end_clean();
    $page_content = str_replace("./", $page_url . "/", $page_content);
}
// SEO
$seo_page_desc = apms_cut_text($page_content, 200);
$matches = get_editor_image($page_content, false);
$seo_page_img = $matches[1][0];
// 페이지스킨
$page_skin = $at['pskin'];
$page_skin_path = G5_SKIN_PATH . '/page/' . $page_skin;
$page_skin_url = G5_SKIN_URL . '/page/' . $page_skin;
include_once './_head.php';
if (G5_IS_MOBILE) {
    echo '<div class="page-wrap font-14">' . PHP_EOL;
} else {
    echo '<div class="page-wrap">' . PHP_EOL;
}
if ($page_skin && is_file($page_skin_path . '/page.skin.php')) {
    include_once $page_skin_path . '/page.skin.php';
} else {
예제 #15
0
			<div class="media-body">
				<a href="#" onclick="win_memo('<?php 
        echo $list[$i]['href'];
        ?>
');">
					<b><?php 
        echo $list[$i]['mb_nick'] ? $list[$i]['mb_nick'] : '정보없음';
        ?>
</b>
					<span class="text-muted"><?php 
        echo apms_datetime($list[$i]['date']);
        ?>
</span>
					<div class="text-muted">
						<?php 
        echo apms_cut_text($list[$i]['me_memo'], 26, '… <span class="font-11">더보기</span>');
        ?>
					</div>
				</a>
			</div>
		</div>
	<?php 
    }
} else {
    ?>
	<p class="text-muted">
		새로온 쪽지가 없습니다.
	</p>
<?php 
}
?>
예제 #16
0
function thema_widget_item_list($type, $ca_id, $it, $new = 24, $thumb_width = 0, $thumb_height = 0, $is_create = false, $is_crop = true, $crop_mode = 'center', $is_sharpen = true, $um_value = '80/0.5/3')
{
    global $g5, $config, $is_admin;
    // 배열전체를 복사
    $list = $it;
    unset($it);
    if ($type == "item") {
        $mb_id = $list['pt_id'] ? $list['pt_id'] : $config['cf_admin'];
        $list['new'] = $list['pt_num'] >= G5_SERVER_TIME - $new * 3600 ? true : false;
        $list['date'] = $list['pt_num'];
        $list['photo'] = apms_photo_url($mb_id);
        //회원사진
        $list['subject'] = $list['it_name'];
        $list['comment'] = $list['pt_comment'];
        $list['content'] = $list['it_explan'];
        $list['category'] = $list['ca_name'];
        $list['hit'] = $list['it_hit'];
        $list['good'] = $list['pt_good'];
        $list['nogood'] = $list['pt_nogood'];
        if ($thumb_width > 0) {
            $list['img'] = apms_it_thumbnail($list, $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
        }
        $list['href'] = G5_SHOP_URL . '/item.php?it_id=' . $list['it_id'];
        if ($ca_id) {
            $list['href'] .= '&amp;ca_id=' . $ca_id;
        }
    } else {
        if ($type == "itemcomment") {
            $list['reply_name'] = $list['wr_comment_reply'] && $list['wr_re_name'] ? $list['wr_re_name'] : '';
            $list['new'] = $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
            $list['photo'] = apms_photo_url($list['mb_id']);
            //회원사진
            $list['name'] = $list['wr_name'];
            $list['date'] = strtotime($list['wr_datetime']);
            $list['secret'] = strstr($list['wr_option'], "secret") ? true : false;
            if ($list['secret']) {
                $list['subject'] = $list['wr_subject'] = $list['wr_content'] = '비밀댓글입니다.';
            } else {
                $list['subject'] = apms_cut_text($list['wr_content'], 60);
            }
            $list['content'] = $list['wr_content'];
            $list['wr_content'] = '';
            if ($thumb_width > 0) {
                $list['img'] = apms_it_write_thumbnail($list['it_id'], $list['wr_content'], $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
            }
            $list['href'] = G5_SHOP_URL . '/item.php?it_id=' . $list['it_id'];
            if ($ca_id) {
                $list['href'] .= '&amp;ca_id=' . $ca_id;
            }
            $list['href'] .= '#icv';
        } else {
            if ($type == "itemqa") {
                $list['new'] = $list['iq_time'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
                $list['photo'] = apms_photo_url($list['mb_id']);
                //회원사진
                $list['name'] = $list['iq_name'];
                $list['date'] = strtotime($list['iq_time']);
                $list['secret'] = $list['iq_secret'] ? true : false;
                if ($list['secret']) {
                    $list['subject'] = $list['iq_subject'] = $list['iq_question'] = '비밀글로 보호된 문의입니다.';
                    if ($thumb_width > 0) {
                        $list['img'] = apms_it_write_thumbnail($list['it_id'], $list['iq_question'], $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
                    }
                } else {
                    $list['subject'] = $list['iq_subject'];
                }
                $list['content'] = $list['iq_question'];
                $list['iq_question'] = '';
                $list['answer'] = $list['iq_answer'] ? true : false;
                $list['href'] = G5_SHOP_URL . '/itemqaview.php?iq_id=' . $list['iq_id'];
                if ($ca_id) {
                    $list['href'] .= '&amp;ca_id=' . $ca_id;
                }
            } else {
                if ($type == "itemuse") {
                    $list['new'] = $list['is_time'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - $new * 3600) ? true : false;
                    $list['photo'] = apms_photo_url($list['mb_id']);
                    //회원사진
                    $list['name'] = $list['is_name'];
                    $list['date'] = strtotime($list['is_time']);
                    $list['subject'] = $list['is_subject'];
                    $list['content'] = $list['is_content'];
                    $list['is_content'] = '';
                    $list['star'] = apms_get_star($list['is_score']);
                    if ($thumb_width > 0) {
                        $list['img'] = apms_it_write_thumbnail($list['it_id'], $list['is_content'], $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);
                    }
                    $list['href'] = G5_SHOP_URL . '/itemuseview.php?is_id=' . $list['is_id'];
                    if ($ca_id) {
                        $list['href'] .= '&amp;ca_id=' . $ca_id;
                    }
                }
            }
        }
    }
    return $list;
}
예제 #17
0
						<?php 
    if ($list[$i]['comment']) {
        ?>
							<span class="count red"><?php 
        echo number_format($list[$i]['comment']);
        ?>
</span>
						<?php 
    }
    ?>
					</span>
					<?php 
    if ($cut) {
        ?>
						<p><?php 
        echo apms_cut_text($list[$i]['content'], $cut, '… <span class="font-11 text-muted">더보기</span>');
        ?>
</p>
					<?php 
    }
    ?>
				</a>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
<?php 
}
// end for
if (!$list_cnt) {
    ?>
예제 #18
0
파일: search.php 프로젝트: peb317/gbamn
     $row2 = sql_fetch($sql2);
     //$row['wr_subject'] = $row2['wr_subject'];
     $row['wr_subject'] = get_text($row2['wr_subject']);
 }
 // 비밀글은 검색 불가
 if (strstr($row['wr_option'] . $row2['wr_option'], 'secret')) {
     $row['wr_content'] = '[비밀글 입니다.]';
 }
 $subject = apms_get_text($row['wr_subject']);
 if (strstr($sfl, 'wr_subject')) {
     $subject = search_font($stx, $subject);
 }
 if ($read_level[$idx] <= $member['mb_level']) {
     //$content = cut_str(get_text(strip_tags($row['wr_content'])), 300, "…");
     //$content = strip_tags($row['wr_content']);
     $content = apms_cut_text($row['wr_content'], 300);
     //$content = strip_tags($content);
     $content = str_replace('&nbsp;', '', $content);
     //$content = cut_str($content, 300, "…");
     if (strstr($sfl, 'wr_content')) {
         $content = search_font($stx, $content);
     }
 } else {
     $content = '';
 }
 $list[$idx][$i]['bo_table'] = $search_table[$idx];
 $list[$idx][$i]['subject'] = $subject;
 $list[$idx][$i]['content'] = $content;
 $list[$idx][$i]['name'] = apms_sideview($row['mb_id'], get_text(cut_str($row['wr_name'], $config['cf_cut_name'])), $row['wr_email'], $row['wr_homepage'], $row['as_level']);
 $list[$idx][$i]['date'] = strtotime($row['wr_datetime']);
 $k++;