Example #1
0
">
						<?php 
    echo $list[$i]['it_name'];
    ?>
					</a>
				</strong>
				<?php 
    if ($is_info) {
        ?>
					<div class="list-info en font-14 text-muted">
						<?php 
        if ($is_star) {
            ?>
							<span class="list-star">
								<?php 
            echo apms_get_star($list[$i]['it_use_avg'], $wset['star']);
            //평균별점
            ?>
							</span>
						<?php 
        }
        ?>
						<?php 
        if ($is_buy) {
            ?>
							<i class="fa fa-shopping-cart"></i>
							<?php 
            echo number_format($list[$i]['it_sum_qty']);
            ?>
						<?php 
        }
Example #2
0
    echo $author['photo'];
    ?>
" class="photo" alt=""><?php 
}
echo stripslashes($it['it_name']);
?>
</h1>
	<div class="panel panel-default item-details<?php 
echo $attach_list ? '' : ' no-attach';
?>
">
		<div class="panel-heading">
			<div class="panel-title">
				<div class="font-12 text-muted">
					<?php 
echo apms_get_star($it['it_use_avg'], 'fa-lg red');
//평균별점
?>

					<span class="sp"></span>
					<i class="fa fa-user"></i>
					<?php 
echo $author['name'];
//등록자
?>

					<span class="sp"></span>
					<i class="fa fa-comment"></i>
					<?php 
echo $it_comment_cnt;
?>
Example #3
0
// 시작 레코드 구함
if ($from_record < 0) {
    $from_record = 0;
}
$itemuse_list = "./itemuselist.php";
$itemuse_form = "./itemuseform.php?it_id=" . $it_id . '&amp;ca_id=' . $ca_id . '&amp;urows=' . $urows;
$itemuse_formupdate = "./itemuseformupdate.php?it_id=" . $it_id . '&amp;ca_id=' . $ca_id . '&amp;urows=' . $urows . '&amp;page=' . $page;
$list = array();
$sql = "select * {$sql_common} order by is_id desc limit {$from_record}, {$urows} ";
$result = sql_query($sql);
$iuse_num = $total_count - ($page - 1) * $urows;
for ($i = 0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = $row;
    $list[$i]['is_num'] = $iuse_num;
    $list[$i]['is_time'] = strtotime($row['is_time']);
    $list[$i]['is_star'] = apms_get_star($row['is_score']);
    $list[$i]['is_photo'] = apms_photo_url($row['mb_id']);
    $list[$i]['is_href'] = './itemuselist.php?bo_table=itemuse&amp;wr_id=' . $row['wr_id'];
    $list[$i]['is_edit_href'] = $itemuse_form . '&amp;is_id=' . $row['is_id'] . '&amp;page=' . $page . '&amp;w=u';
    $list[$i]['is_edit_self'] = $itemuse_form . '&amp;is_id=' . $row['is_id'] . '&amp;page=' . $page . '&amp;w=u&amp;move=1';
    $list[$i]['is_content'] = apms_content(conv_content($list[$i]['is_content'], 1));
    $hash = md5($row['is_id'] . $row['is_time'] . $row['is_ip']);
    $list[$i]['is_del_href'] = $itemuse_formupdate . '&amp;is_id=' . $row['is_id'] . '&amp;w=d&amp;hash=' . $hash;
    $list[$i]['is_del_return'] = './itemuse.php?it_id=' . $it_id . '&amp;ca_id=' . $ca_id . '&amp;urows=' . $urows . '&amp;page=' . $page;
    $list[$i]['is_btn'] = $is_admin || $row['mb_id'] == $member['mb_id'] ? true : false;
    $iuse_num--;
}
$write_pages = G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'];
$list_page = './itemuse.php?it_id=' . $it_id . '&amp;ca_id=' . $ca_id . '&amp;urows=' . $urows . '&amp;page=';
include_once $item_skin_path . '/itemuse.skin.php';
unset($list);
Example #4
0
function apms_post_star($list, $opt = '')
{
    $score = $cnt = 0;
    if (isset($list['as_star_cnt']) && $list['as_star_cnt'] > 0) {
        $cnt = $list['as_star_cnt'];
        $score = $list['as_star_score'] / $cnt;
    }
    $score = round($score, 1);
    $per = round($score) * 10;
    $star = apms_get_star($score, $opt);
    $arr = array("star" => $star, "score" => $score, "cnt" => $cnt, "per" => $per);
    return $arr;
}
Example #5
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;
}
Example #6
0
		<div class="media">
			<div class="photo pull-left">
				<a href="<?php 
    echo $list[$i]['is_href'];
    ?>
">
					<?php 
    echo $img['src'] ? '<img src="' . $img['src'] . '" alt="' . $img['src'] . '">' : '<i class="fa fa-user"></i>';
    ?>
				</a>
			</div>
			<div class="media-body">
				<div class="media-info text-muted">
					<?php 
    echo apms_get_star($list[$i]['is_score'], 'red font-14');
    //별점
    ?>
					<span class="sp"></span>
					<i class="fa fa-user"></i>
					<?php 
    echo $list[$i]['is_name'];
    ?>
					<span class="hidden-xs">
						<span class="sp"></span>
						<i class="fa fa-clock-o"></i>
						<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');
Example #7
0
					</div>
					<div class="media-body">
						<div class="media-heading">
							<a href="<?php 
echo $view['it_href'];
?>
">
								<b><?php 
echo $view['it_name'];
?>
</b>
							</a>
						</div>
						<div class="media-info text-muted">
							<?php 
echo apms_get_star($view['it_use_avg'], 'red font-14');
//평균별점
?>
							<span class="sp"></span>
							<i class="fa fa-comment"></i> <?php 
echo $view['pt_comment'] ? '<b class="red">' . number_format($view['pt_comment']) . '</b>' : 0;
?>
							<span class="hidden-xs">
								<span class="sp"></span>
								<i class="fa fa-krw"></i> <?php 
echo $it_price;
?>
							</span>
						</div>
					</div>
				</div>
Example #8
0
echo $is_score == 2 ? 'checked="checked"' : '';
?>
>
						<?php 
echo apms_get_star(2);
?>
					</label>
				</div>
				<div class="col-sm-2 text-center">
					<label class="red">
						<input type="radio" name="is_score" value="1" id="is_score1" <?php 
echo $is_score == 1 ? 'checked="checked"' : '';
?>
>
						<?php 
echo apms_get_star(1);
?>
					</label>
				</div>
			</div>

			<br>

			<div class="text-center">
				<button type="submit" class="btn btn-color btn-sm">작성완료</button>
				<?php 
if ($move) {
    ?>
					<button type="button" class="btn btn-black btn-sm" onclick="history.go(-1);">취소</button>
				<?php 
} else {
Example #9
0
					</div>
					<div class="media-body">
						<div class="media-heading">
							<a href="<?php 
echo $view['it_href'];
?>
">
								<b><?php 
echo $view['it_name'];
?>
</b>
							</a>
						</div>
						<div class="media-info text-muted">
							<span class="red font-14"><?php 
echo apms_get_star($view['it_use_avg']);
//평균별점
?>
</span>
							<span class="sp"></span>
							<i class="fa fa-comment"></i> <?php 
echo $view['pt_comment'] ? '<b class="red">' . number_format($view['pt_comment']) . '</b>' : 0;
?>
							<span class="hidden-xs">
								<span class="sp"></span>
								<i class="fa fa-krw"></i> <?php 
echo $it_price;
?>
							</span>
						</div>
					</div>