本文整理汇总了PHP中display_price函数的典型用法代码示例。如果您正苦于以下问题:PHP display_price函数的具体用法?PHP display_price怎么用?PHP display_price使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_price函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_price_null
function display_price_null($number)
{
if (empty($number)) {
return '';
}
return display_price($number);
}
示例2: display_price
?>
)</td>
<td class="text-center"><?php
echo $list[$i]['od_cart_count'];
?>
</td>
<td class="text-right"><?php
echo display_price($list[$i]['od_total_price']);
?>
</td>
<td class="text-right"><?php
echo display_price($list[$i]['od_receipt_price']);
?>
</td>
<td class="text-right"><?php
echo display_price($list[$i]['od_misu']);
?>
</td>
<td class="text-center"><?php
echo $list[$i]['od_status'];
?>
</td>
</tr>
<?php
}
?>
<?php
if ($i == 0) {
?>
<tr><td colspan="7" class="text-center">주문 내역이 없습니다.</td></tr>
<?php
示例3: round
echo "<div class=\"sct_cost\">\n";
//150824 나진수 시중 가격 없을때는 특별가로 처리
if ($row['it_cust_price']) {
echo "<div class=\"sct_sale\">" . round((1 - get_price($row) / $row['it_cust_price']) * 100, 0) . "% </div>\n";
} else {
echo "<div class=\"sct_no_sale\" style=\"font-size\">특별가</div>\n";
}
if ($this->view_it_cust_price && $row['it_cust_price']) {
echo "<strike>" . display_price($row['it_cust_price']) . "</strike>\n";
}
if ($this->view_it_price) {
//150824 나진수 시중 가격 없을때는 특별가로 처리
if ($row['it_cust_price']) {
echo "<div class=\"it_tel_inq\">" . display_price(get_price($row), $row['it_tel_inq']) . "</div>\n";
} else {
echo "<div class=\"it_tel_no_inq\">" . display_price(get_price($row), $row['it_tel_inq']) . "</div>\n";
}
}
echo "</div>\n";
}
if ($this->view_sns) {
$sns_top = $this->img_height + 10;
$sns_url = G5_SHOP_URL . '/item.php?it_id=' . $row['it_id'];
$sns_title = get_text($row['it_name']) . ' | ' . get_text($config['cf_title']);
echo "<div class=\"sct_sns\" style=\"top:{$sns_top}px\">";
echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL . '/img/sns_fb_s.png');
echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL . '/img/sns_twt_s.png');
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL . '/img/sns_goo_s.png');
echo "</div>\n";
}
echo "</li></a>\n";
示例4: display_price
회원 탈퇴는 언제든지 가능하며 일정기간이 지난 후, 회원님의 정보는 삭제하고 있습니다.<br>
감사합니다.
</p>
<?php
if ($default['de_member_reg_coupon_use'] && get_session('ss_member_reg_coupon') == 1) {
?>
<p id="result_coupon">
<?php
echo $mb['mb_name'];
?>
님께 주문시 사용하실 수 있는 <strong><?php
echo display_price($default['de_member_reg_coupon_price']);
?>
할인<?php
echo $default['de_member_reg_coupon_minimum'] ? '(주문금액 ' . display_price($default['de_member_reg_coupon_minimum']) . '이상)' : '';
?>
쿠폰</strong>이 발행됐습니다.<br>
발행된 할인 쿠폰 내역은 마이페이지에서 확인하실 수 있습니다.
</p>
<?php
}
?>
<div class="btn_confirm">
<a href="<?php
echo G5_URL;
?>
/" class="btn02">메인으로</a>
</div>
示例5: get_text
" style="width:<?php
echo $img_width;
?>
px">
<div class="sct_img"><a href="<?php
echo $href;
?>
" class="sct_a"><img src="<?php
echo G5_SHOP_SKIN_URL;
?>
/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php
echo $href;
?>
" class="sct_a"><?php
echo get_text($row['pp_name']) . '님 개인결제';
?>
</a></div>
<div class="sct_cost"><?php
echo display_price($row['pp_price']);
?>
</div>
</li>
<?php
}
if ($i > 1) {
echo "</ul>\n";
}
if ($i == 1) {
echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
}
示例6: display_price
<section id="sod_fin_tot">
<h2>결제합계</h2>
<ul>
<li>
총 구매액
<strong><?php
echo display_price($tot_price);
?>
</strong>
</li>
<?php
if ($misu_price > 0) {
echo '<li>';
echo '미결제액' . PHP_EOL;
echo '<strong>' . display_price($misu_price) . '</strong>';
echo '</li>';
}
?>
<li id="alrdy">
결제액
<strong><?php
echo $wanbul;
?>
</strong>
</li>
</ul>
</section>
<section id="sod_fin_cancel">
<h2>주문취소</h2>
示例7: relation_item
function relation_item($it_id, $width, $height, $rows = 3)
{
global $g5;
$str = '';
if (!$it_id) {
return $str;
}
$sql = " select b.it_id, b.it_name, b.it_price, b.it_tel_inq from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id2 = b.it_id ) where a.it_id = '{$it_id}' order by ir_no asc limit 0, {$rows} ";
$result = sql_query($sql);
for ($i = 0; $row = sql_fetch_array($result); $i++) {
if ($i == 0) {
$str .= '<span class="sound_only">관련 상품 시작</span>';
$str .= '<ul class="sct_rel_ul">';
}
$it_name = get_text($row['it_name']);
// 상품명
$it_price = get_price($row);
// 상품가격
if (!$row['it_tel_inq']) {
$it_price = display_price($it_price);
}
$img = get_it_image($row['it_id'], $width, $height);
$str .= '<li class="sct_rel_li"><a href="' . G5_SHOP_URL . '/item.php?it_id=' . $row['it_id'] . '" class="sct_rel_a">' . $img . '</a></li>';
}
if ($i > 0) {
$str .= '</ul><span class="sound_only">관련 상품 끝</span>';
}
return $str;
}
示例8: display_price
<tr>
<th scope="row"><label for="od_send_cost">배송비</label></th>
<td>
<input type="text" name="od_send_cost" value="<?php
echo $od['od_send_cost'];
?>
" id="od_send_cost" class="frm_input" size="10"> 원
</td>
</tr>
<?php
if ($od['od_send_coupon']) {
?>
<tr>
<th scope="row">배송비할인</th>
<td><?php
echo display_price($od['od_send_coupon']);
?>
</td>
</tr>
<?php
}
?>
<tr>
<th scope="row"><label for="od_send_cost2">추가배송비</label></th>
<td>
<input type="text" name="od_send_cost2" value="<?php
echo $od['od_send_cost2'];
?>
" id="od_send_cost2" class="frm_input" size="10"> 원
</td>
</tr>
示例9: stripslashes
echo '</a><span class="best_icon">베스트상품</span></div>' . PHP_EOL;
}
if ($this->view_it_id) {
echo '<div class="sct_id"><' . stripslashes($row['it_id']) . '></div>' . PHP_EOL;
}
if ($this->href) {
echo '<div class="sct_txt"><a href="' . $this->href . $row['it_id'] . '" class="sct_a">' . PHP_EOL;
}
if ($this->view_it_name) {
echo stripslashes($row['it_name']) . PHP_EOL;
}
if ($this->href) {
echo '</a></div>' . PHP_EOL;
}
if ($this->view_it_price) {
echo '<div class="sct_cost">' . display_price(get_price($row), $row['it_tel_inq']) . '</div>' . PHP_EOL;
}
echo '</li>' . PHP_EOL;
}
if ($i > 0) {
echo '</ul>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo '<div class="bst_silde_btn">' . $slide_btn . '</div>' . PHP_EOL;
echo '</div>' . PHP_EOL;
echo '</section>' . PHP_EOL;
}
?>
<script>
(function($) {
$.fn.BestSlide = function(option)
示例10: substr
echo $row['od_id'];
?>
</a>
<span class="idtime_time">주문일자 <?php
echo substr($row['od_time'], 2, 8);
?>
</span>
</div>
<div class="inquiry_name">
<?php
echo $ct_name;
?>
</div>
<div class="inquiry_price">
<?php
echo display_price($row['od_cart_price'] + $row['od_send_cost'] + $row['od_send_cost2']);
?>
<span>/ <?php
echo $row['od_settle_case'];
?>
</span>
</div>
<div class="inquiry_inv">
<span class="inv_status" <?php
if ($od_status == '주문취소') {
?>
style="color:#ff455b;"<?php
}
?>
><?php
echo $od_status;
示例11: display_price
$cart_list[$j]['ct_qty'] = $ct['ct_qty'];
}
/*
** 입금정보
*/
$is_receipt = false;
// 신용카드 입금
if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '신용카드') {
$card_list['od_receipt_time'] = $od['od_receipt_time'];
$card_list['od_receipt_price'] = display_price($od['od_receipt_price']);
$is_receipt = true;
}
// 무통장 입금
if ($od['od_receipt_price'] > 0 && $od['od_settle_case'] == '무통장') {
$bank_list['od_receipt_time'] = $od['od_receipt_time'];
$bank_list['od_receipt_price'] = display_price($od['od_receipt_price']);
$bank_list['od_deposit_name'] = $od['od_deposit_name'];
$is_receipt = true;
}
// 포인트 입금
if ($od['od_receipt_point'] > 0) {
$point_list['od_time'] = $od['od_time'];
$point_list['od_receipt_point'] = display_point($od['od_receipt_point']);
$is_receipt = true;
}
// 배송정보
$is_delivery = false;
if ($od['od_delivery_company'] && $od['od_invoice']) {
$delivery_list['dl_company'] = $od['od_delivery_company'];
$delivery_list['od_invoice'] = $od['od_invoice'];
$delivery_list['od_invoice_time'] = $od['od_invoice_time'];
示例12: display_price
?>
</span> <?php
echo $list[$i]['it_name'];
?>
</a></td>
</tr>
<tr>
<th scope="row" style="<?php
echo $th_st;
?>
">판매가격</th>
<td style="<?php
echo $td_st;
?>
"><?php
echo display_price($list[$i]['ct_price']);
?>
</td>
</tr>
<tr>
<th scope="row" style="<?php
echo $th_st;
?>
">선택옵션 </th>
<td style="<?php
echo $td_st;
?>
"><?php
echo $list[$i]['it_opt'];
?>
</td>
示例13: display_price
} else {
echo '<script language="JavaScript" src="http://pgweb.uplus.co.kr/WEB_SERVER/js/receipt_link.js"></script>' . PHP_EOL;
}
}
$misu = true;
if ($pp['pp_price'] == $pp['pp_receipt_price']) {
$wanbul = " (완불)";
$misu = false;
// 미수금 없음
} else {
$wanbul = display_price($pp['pp_receipt_price']);
}
$misu_price = $pp['pp_price'] - $pp['pp_receipt_price'];
// 결제정보처리
if ($pp['pp_receipt_price'] > 0) {
$pp_receipt_price = display_price($pp['pp_receipt_price']);
} else {
$pp_receipt_price = '아직 입금되지 않았거나 입금정보를 입력하지 못하였습니다.';
}
$app_no_subj = '';
$disp_bank = true;
$disp_receipt = false;
if ($pp['pp_settle_case'] == '신용카드') {
$app_no_subj = '승인번호';
$app_no = $pp['pp_app_no'];
$disp_bank = false;
$disp_receipt = true;
} else {
if ($pp['pp_settle_case'] == '휴대폰') {
$app_no_subj = '휴대폰번호';
$app_no = $pp['pp_bank_account'];
示例14: while
while ($row2 = sql_fetch_array($res2)) {
if ($row2['io_type']) {
$it_price = $row2['io_price'];
$row2_tot_price = $row2['io_price'] * $row2['ct_qty'];
} else {
$it_price = $row2['ct_price'] + $row2['io_price'];
$row2_tot_price = ($row2['ct_price'] + $row2['io_price']) * $row2['ct_qty'];
}
$sub_tot_qty += $row2['ct_qty'];
$sub_tot_price += $row2_tot_price;
$it_name = stripslashes($row2['it_name']);
$price_plus = '';
if ($row2['io_price'] >= 0) {
$price_plus = '+';
}
$it_name = "{$it_name} ({$row2['ct_option']} " . $price_plus . display_price($row2['io_price']) . ")";
if ($save_it_id != $row2['it_id']) {
switch ($row2['ct_send_cost']) {
case 1:
$ct_send_cost = '착불';
break;
case 2:
$ct_send_cost = '무료';
break;
default:
$ct_send_cost = '선불';
break;
}
// 합계금액 계산
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,\r\n SUM(ct_qty) as qty\r\n from {$g5['g5_shop_cart_table']}\r\n where it_id = '{$row2['it_id']}'\r\n and od_id = '{$row2['od_id']}' ";
$sum = sql_fetch($sql);
示例15: alert_close
if (!$od['od_id']) {
alert_close('주문정보가 존재하지 않습니다.');
}
if ($od['od_settle_case'] == '계좌이체' && substr($od['od_receipt_time'], 0, 10) >= G5_TIME_YMD) {
alert_close('실시간 계좌이체건의 부분취소 요청은 결제일 익일에 가능합니다.');
}
// 금액비교
$od_misu = abs($od['od_misu']);
if ($tax_mny && $free_mny && $tax_mny + $free_mny > $od_misu) {
alert('과세, 비과세 취소금액의 합을 ' . display_price($od_misu) . ' 이하로 입력해 주십시오.');
}
if ($tax_mny && $tax_mny > $od_misu) {
alert('과세 취소금액을 ' . display_price($od_misu) . ' 이하로 입력해 주십시오.');
}
if ($free_mny && $free_mny > $od_misu) {
alert('비과세 취소금액을 ' . display_price($od_misu) . ' 이하로 입력해 주십시오.');
}
// PG사별 부분취소 실행
include_once G5_SHOP_PATH . '/' . $od['od_pg'] . '/orderpartcancel.inc.php';
include_once G5_PATH . '/head.sub.php';
?>
<script>
alert("<?php
echo $od['od_settle_case'];
?>
부분취소 처리됐습니다.");
opener.document.location.reload();
self.close();
</script>