Example #1
0
    }
    if ($wset['rank']) {
        $rank_txt = $rank < 4 ? 'Top' . $rank : $rank . 'th';
        $item_label = '<div class="label-cap bg-' . $wset['rank'] . '">' . $rank_txt . '</div>';
        $rank++;
    } else {
        if ($dc || $list[$i]['it_type5']) {
            $item_label = '<div class="label-cap bg-red">DC</div>';
        } else {
            if ($list[$i]['pt_num'] >= G5_SERVER_TIME - $new_item * 3600) {
                $item_label = '<div class="label-cap bg-' . $wset['new'] . '">New</div>';
            }
        }
    }
    // 이미지
    $img = apms_it_thumbnail($list[$i], $thumb_w, $thumb_h, false, true);
    // 아이콘
    $item_icon = item_icon($list[$i]);
    $item_icon = $item_icon ? '<div class="label-tack">' . $item_icon . '</div>' : '';
    ?>
	<div class="item-row">
		<div class="media item-list">

			<div class="media-img pull-<?php 
    echo $is_media;
    ?>
">
				<?php 
    if ($thumb_h) {
        // 이미지 높이값이 있을 경우
        ?>
Example #2
0
	<tr class="bg-black">
		<th class="text-center" scope="col">번호</th>
		<th class="text-center" scope="col">판매일</th>
		<th width="60" class="text-center" scope="col">이미지</th>
		<th class="text-center" scope="col">아이템/옵션</th>
		<th class="text-center" scope="col">판매량</th>
		<th class="text-center" scope="col">판매액(VAT포함)</th>
		<th class="text-center" scope="col">판매액(VAT제외)</th>
		<th class="text-center" scope="col">순수익(적립)액</th>
		<th class="text-center" scope="col">인센티브</th>
		<th class="text-center" scope="col">총수익(적립)액</th>
		<th class="text-center" scope="col">수익(적립)율</th>
	</tr>
	<?php 
for ($i = 0; $i < count($list); $i++) {
    $list[$i]['img'] = apms_it_thumbnail(apms_it($list[$i]['it_id']), 40, 40, false, true);
    ?>
	<tr>
		<td class="text-center">
			<?php 
    echo $list[$i]['num'];
    ?>
		</td>
		<td class="text-center">
			<?php 
    echo str_replace("-", "/", $list[$i]['date']);
    ?>
			<div class="text-muted" style="margin-top:4px;">
				<?php 
    echo $list[$i]['buyer'];
    ?>
Example #3
0
echo $mode;
?>
&ca_id=' + encodeURIComponent(this.value);" class="form-control input-sm">
			<option value="">전체보기</option>
			<?php 
echo apms_category($ca_id);
?>
		</select>
	</div>
</div>

<section class="mypost-media">
	<?php 
$cmt_cnt = count($list);
for ($i = 0; $i < $cmt_cnt; $i++) {
    $list[$i]['img'] = apms_it_thumbnail($list[$i], 80, 80, false, true);
    ?>
		<div class="media">
			<div class="photo pull-left">
				<?php 
    if ($list[$i]['img']['src']) {
        ?>
					<img src="<?php 
        echo $list[$i]['img']['src'];
        ?>
" alt="<?php 
        echo $list[$i]['img']['alt'];
        ?>
">
				<?php 
    } else {
Example #4
0
$where = "it_use = '1'";
if ($id) {
    $where .= $sql_where;
}
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 
Example #5
0
function apms_today_rows($arr = '')
{
    global $g5;
    $list = array();
    // 정리
    $thumb_w = isset($arr['thumb_w']) && $arr['thumb_w'] > 0 ? $arr['thumb_w'] : 50;
    $thumb_h = isset($arr['thumb_h']) && $arr['thumb_h'] > 0 ? $arr['thumb_h'] : 50;
    $no_img = isset($arr['no_img']) && $arr['no_img'] ? $arr['no_img'] : '';
    $tv_idx = get_session("ss_tv_idx");
    $i = 0;
    for ($k = 1; $k <= $tv_idx; $k++) {
        $tv_it_idx = $tv_idx - ($k - 1);
        $tv_it_id = get_session("ss_tv[{$tv_it_idx}]");
        $row = sql_fetch(" select * from {$g5['g5_shop_item_table']} where it_id = '{$tv_it_id}' ");
        if (!$row['it_id']) {
            continue;
        }
        $list[$i] = $row;
        $list[$i]['href'] = G5_SHOP_URL . '/item.php?it_id=' . $row['it_id'];
        $list[$i]['alt'] = get_text($row['it_name']);
        $img = apms_it_thumbnail($row, $thumb_w, $thumb_h, false, true);
        if (!$img['src'] && $no_img) {
            $img = apms_thumbnail($no_img, $thumb_w, $thumb_h, false, true);
            // no-image
        }
        $list[$i]['img'] = $img['src'];
        $i++;
    }
    return $list;
}
Example #6
0
<?php

if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $skin_url . '/style.css" media="screen">', 0);
// 헤더 출력
if ($header_skin) {
    include_once './header.php';
}
$img = apms_it_thumbnail($view, 80, 80, false, true);
$it_price = $view['it_tel_inq'] ? '전화문의' : number_format(get_price($view));
?>

<div class="view-wrap<?php 
echo G5_IS_MOBILE ? ' view-mobile font-14' : '';
?>
">
	<h1><?php 
if ($view['is_photo']) {
    ?>
<img src="<?php 
    echo $view['is_photo'];
    ?>
" class="photo" alt=""><?php 
}
echo $view['is_subject'];
?>
</h1>
Example #7
0
    $seometa['creator'] = apms_get_text($write['wr_name']);
    $seometa['keyword'] = apms_seo_keyword($write['as_tag'], $write['ca_name']);
    $seometa['type'] = 'article';
    $seometa['url'] = G5_BBS_URL . '/board.php?bo_table=' . $bo_table . '&amp;wr_id=' . $wr_id;
    $seometa['img'] = apms_wr_thumbnail($bo_table, $write, 0, 0);
    // 썸네일
} else {
    if ($is_seometa == 'it') {
        // 상품
        $seometa['subject'] = apms_get_text($it['it_name']);
        $seometa['description'] = $it['it_basic'] ? apms_get_text($it['it_basic']) : apms_cut_text($it['it_explan'], 200);
        $seometa['creator'] = $author['mb_nick'] ? $author['mb_nick'] : $seometa['publisher'];
        $seometa['keyword'] = apms_seo_keyword($it['pt_tag']);
        $seometa['type'] = 'product';
        $seometa['url'] = G5_SHOP_URL . '/item.php?it_id=' . $it['it_id'];
        $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);
Example #8
0
File: tag.php Project: peb317/gbamn
 // 전체 페이지 계산
 $page = $page > 1 ? $page : 1;
 // 페이지가 없으면 첫 페이지 (1 페이지)
 $start_rows = ($page - 1) * $rows;
 // 시작 열을 구함
 $result = sql_query(" select * {$sql_common} order by id desc limit {$start_rows}, {$rows} ", false);
 for ($i = 0; $row = sql_fetch_array($result); $i++) {
     if (IS_YC && $row['it_id']) {
         $post = sql_fetch(" select * from {$g5['g5_shop_item_table']} where it_id = '{$row['it_id']}' ", false);
         $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']);
     }
 }
Example #9
0
		    <?php 
}
?>
		</p>

		<?php 
echo $iq['iq_question'];
?>
	</div>
	<div class="list-group">
		<a href="./item.php?it_id=<?php 
echo $it['it_id'];
?>
" target="_blank" class="list-group-item">
			<?php 
$img = apms_it_thumbnail($it, 40, 40, false, true);
?>
			<?php 
if ($img['src']) {
    ?>
				<img src="<?php 
    echo $img['src'];
    ?>
" alt="<?php 
    echo $img['alt'];
    ?>
">
			<?php 
}
?>
			<?php