• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_fee函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_fee函数的典型用法代码示例。如果您正苦于以下问题:PHP get_fee函数的具体用法?PHP get_fee怎么用?PHP get_fee使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_fee函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: stripslashes

                    $fee_min_bid = $row['value'] / 100 * $minimum_bid;
                }
            }
            if ($row['type'] == 'buyout_fee' && $buy_now_price > 0) {
                $fee_bn = $row['value'];
            }
            if ($row['type'] == 'rp_fee' && $reserve_price > 0) {
                $fee_rp = $row['value'];
            }
            if ($row['type'] == 'subtitle_fee' && strlen($subtitle) > 0) {
                $subtitle_fee = $row['value'];
            }
            if ($row['type'] == 'relist_fee' && strlen($relist) > 0) {
                $relist_fee = $row['value'];
            }
        }
        $fee_javascript .= 'var current_fee = ' . (isset($_SESSION['SELL_current_fee']) ? $_SESSION['SELL_current_fee'] : '0') . ';';
        $relist_options = '<select name="autorelist" id="autorelist">';
        for ($i = 0; $i <= $system->SETTINGS['autorelist_max']; $i++) {
            $relist_options .= '<option value="' . $i . '"' . ($relist == $i ? ' selected="selected"' : '') . '>' . $i . '</option>';
        }
        $relist_options .= '</select>';
        $template->assign_vars(array('TITLE' => $MSG['028'], 'ERROR' => $ERR == 'ERR_' ? '' : ${$ERR}, 'CAT_LIST1' => $category_string1, 'CAT_LIST2' => $category_string2, 'ATYPE' => $TPL_auction_type, 'ATYPE_PLAIN' => $atype, 'CURRENCY' => $system->SETTINGS['currency'], 'DURATIONS' => $TPL_durations_list, 'PAYMENTS' => $payment_methods, 'PAGE' => 0, 'MINTEXT' => $atype == 2 ? $MSG['038'] : $MSG['020'], 'FEE_JS' => $fee_javascript, 'AUC_TITLE' => $title, 'AUC_SUBTITLE' => $subtitle, 'AUC_DESCRIPTION' => $CKEditor->editor('sdescription', stripslashes($sdescription)), 'ITEMQTY' => $iquantity, 'MIN_BID' => $system->print_money_nosymbol($minimum_bid, false), 'BN_ONLY' => $buy_now_only == 'y' ? 'disabled' : '', 'SHIPPING_COST' => $system->print_money_nosymbol($shipping_cost, false), 'ADDITIONAL_SHIPPING_COST' => $system->print_money_nosymbol($additional_shipping_cost, false), 'RESERVE_Y' => $with_reserve == 'yes' ? 'checked' : '', 'RESERVE_N' => $with_reserve == 'yes' ? '' : 'checked', 'RESERVE' => $system->print_money_nosymbol($reserve_price, false), 'START_TIME' => $TPL_start_date, 'BN_ONLY_Y' => $buy_now_only == 'y' ? 'checked' : '', 'BN_ONLY_N' => $buy_now_only == 'y' ? '' : 'checked', 'BN_Y' => $buy_now == 'yes' ? 'checked' : '', 'BN_N' => $buy_now == 'yes' ? '' : 'checked', 'BN_PRICE' => $system->print_money_nosymbol($buy_now_price, false), 'INCREMENTS1' => $increments == 1 || empty($increments) ? 'checked' : '', 'INCREMENTS2' => $increments == 2 ? 'checked' : '', 'CUSTOM_INC' => $customincrement > 0 ? $system->print_money_nosymbol($customincrement, false) : '', 'SHIPPING1' => intval($shipping) == 1 ? 'checked' : '', 'SHIPPING2' => intval($shipping) == 2 || empty($shipping) ? 'checked' : '', 'SHIPPING3' => intval($shipping) == 3 ? 'checked' : '', 'INTERNATIONAL' => !empty($international) ? 'checked' : '', 'SHIPPING_TERMS' => $shipping_terms, 'ITEMQTYD' => $atype == 2 || $buy_now_only == 'y' ? '' : 'disabled', 'START_NOW' => !empty($start_now) ? 'checked' : '', 'IS_BOLD' => $is_bold == 'y' ? 'checked' : '', 'IS_HIGHLIGHTED' => $is_highlighted == 'y' ? 'checked' : '', 'IS_FEATURED' => $is_featured == 'y' ? 'checked' : '', 'NUMIMAGES' => count($_SESSION['UPLOADED_PICTURES']), 'RELIST' => $relist_options, 'MAXRELIST' => $system->SETTINGS['autorelist_max'], 'TAX_Y' => $is_taxed == 'y' ? 'checked' : '', 'TAX_N' => $is_taxed == 'n' ? 'checked' : '', 'TAXINC_Y' => $tax_included == 'y' ? 'checked' : '', 'TAXINC_N' => $tax_included == 'n' ? 'checked' : '', 'MAXPICS' => sprintf($MSG['673'], $system->SETTINGS['maxpictures'], $system->SETTINGS['maxuploadsize'] / 1024), 'FEE_VALUE' => get_fee($minimum_bid), 'FEE_VALUE_F' => number_format(get_fee($minimum_bid), $system->SETTINGS['moneydecimals']), 'FEE_MIN_BID' => $fee_min_bid, 'FEE_BN' => $fee_bn, 'FEE_RP' => $fee_rp, 'FEE_SUBTITLE' => $subtitle_fee, 'FEE_RELIST' => $relist_fee, 'FEE_DECIMALS' => $system->SETTINGS['moneydecimals'], 'B_CAN_TAX' => $can_tax, 'B_GALLERY' => $system->SETTINGS['picturesgallery'] == 1, 'B_BN_ONLY' => $system->SETTINGS['buy_now'] == 2 && $system->SETTINGS['bn_only'] == 'y' && ($system->SETTINGS['bn_only_disable'] == 'y' && $user->user_data['bn_only'] == 'y' || $system->SETTINGS['bn_only_disable'] == 'n'), 'B_BN' => $system->SETTINGS['buy_now'] == 2, 'B_EDITING' => $_SESSION['SELL_action'] == 'edit', 'B_CUSINC' => $system->SETTINGS['cust_increment'] == 1, 'B_EDIT_STARTTIME' => $system->SETTINGS['edit_starttime'] == 1, 'B_MKFEATURED' => $system->SETTINGS['ao_hpf_enabled'] == 'y', 'B_MKBOLD' => $system->SETTINGS['ao_bi_enabled'] == 'y', 'B_MKHIGHLIGHT' => $system->SETTINGS['ao_hi_enabled'] == 'y', 'B_FEES' => $system->SETTINGS['fees'] == 'y', 'B_SHIPPING' => $system->SETTINGS['shipping'] == 1, 'B_SUBTITLE' => $system->SETTINGS['subtitle'] == 'y', 'B_AUTORELIST' => $system->SETTINGS['autorelist'] == 'y'));
        break;
}
include 'header.php';
$template->set_filenames(array('body' => 'sell.tpl'));
$template->display('body');
include 'footer.php';
//if ($_SESSION['action'] != 3)
makesessions();
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:sell.php


示例2: timetodate

$editdate = timetodate($edittime, 3);
if ($voteid) {
    $voteid = explode(' ', $voteid);
}
if ($fromurl) {
    $fromurl = fix_link($fromurl);
}
$fileurl = $linkurl;
$linkurl = $MOD['linkurl'] . $linkurl;
$titles = array();
if ($subtitle) {
    $titles = explode("\n", $subtitle);
    $titles = array_map('trim', $titles);
}
$keytags = $tag ? explode(' ', $tag) : array();
$fee = get_fee($item['fee'], $MOD['fee_view']);
if ($fee) {
    $description = get_description($content, $MOD['pre_view']);
    $user_status = 4;
} else {
    $user_status = 3;
}
$pages = '';
$total = 1;
$subtitles = count($titles);
if (strpos($content, '[pagebreak]') !== false) {
    $contents = explode('[pagebreak]', $content);
    $total = count($contents);
    if ($total < $subtitles) {
        $subtitles = $total;
    }
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:show.htm.php


示例3: load

} else {
    include load('404.inc');
}
$content = $db->get_one("SELECT content FROM {$table_data} WHERE itemid={$itemid}");
$content = $content['content'];
$print = isset($print) ? 1 : 0;
$CAT = get_cat($catid);
if (!check_group($_groupid, $MOD['group_show_resume']) || !check_group($_groupid, $CAT['group_show'])) {
    include load('403.inc');
}
$parentid = $CATEGORY[$catid]['parentid'] ? $CATEGORY[$catid]['parentid'] : $catid;
$adddate = timetodate($addtime, 3);
$editdate = timetodate($edittime, 3);
$linkurl = $MOD['linkurl'] . $linkurl;
$user_status = 4;
$fee = get_fee($item['fee'], $MOD['fee_view_resume']);
$currency = $MOD['fee_currency'];
$unit = $currency == 'money' ? $DT['money_unit'] : $DT['credit_unit'];
$name = $currency == 'money' ? $DT['money_name'] : $DT['credit_name'];
if (check_group($_groupid, $MOD['group_contact_resume'])) {
    if ($MG['fee_mode'] && $MOD['fee_mode']) {
        $user_status = 3;
    } else {
        if ($fee) {
            $mid = -$moduleid;
            if ($_userid) {
                if (check_pay($mid, $itemid)) {
                    $user_status = 3;
                } else {
                    $user_status = 2;
                    $item['title'] = lang($L['resume_title'], array($truename));
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:resume.inc.php


示例4: _

</span><br/>
				        <strong><?php 
        echo _('Fee per recipient');
        ?>
</strong>: <?php 
        echo get_fee('currency');
        ?>
 $<span id="recipient_fee"><?php 
        echo get_fee('cost_per_recipient');
        ?>
</span><br/><br/>
				        <span class="grand_total"><strong><?php 
        echo _('Grand total');
        ?>
</strong>: <?php 
        echo get_fee('currency');
        ?>
 $<span id="grand_total">0</span></span>
			        </div>
			        <button type="submit" class="btn btn-inverse btn-large" id="pay-btn" <?php 
        echo $send_newsletter_now;
        ?>
><i class="icon-arrow-right icon-white"></i> <?php 
        echo _('Proceed to pay for campaign');
        ?>
</button>
			        <p style="margin-top:10px; text-decoration:underline;">
			        	<?php 
        if ($cron) {
            ?>
			        	<a href="javascript:void(0)" id="send-later-btn"><?php 
开发者ID:narareddy,项目名称:sendy,代码行数:31,代码来源:send-to.php


示例5: get_cat

$CAT = get_cat($catid);
if (!check_group($_groupid, $CAT['group_show'])) {
    include load('403.inc');
}
if ($open < 3) {
    $_key = $open == 2 ? $password : $answer;
    $str = get_cookie('photo_' . $itemid);
    $pass = $str == md5(md5($DT_IP . $open . $_key . DT_KEY));
    if ($_username && $_username == $username) {
        $pass = true;
    }
} else {
    $pass = true;
}
$pass or dheader($MOD['linkurl'] . 'private.php?itemid=' . $itemid);
if (get_fee($item['fee'], $MOD['fee_view'])) {
    if ($MG['fee_mode'] && $MOD['fee_mode']) {
        $user_status = 3;
    } else {
        if ($_userid && check_pay($moduleid, $itemid)) {
            $user_status = 3;
        } else {
            $user_status = 0;
        }
    }
} else {
    $user_status = 3;
}
$user_status == 3 or dheader($linkurl);
$adddate = timetodate($addtime, 3);
$editdate = timetodate($edittime, 3);
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:view.inc.php


示例6: get_fee

                }
            }
            if ($row['type'] == 'buynow_fee' && $buy_now_price > 0) {
                $fee_bn = $row['value'];
            }
            if ($row['type'] == 'reserve_fee' && $reserve_price > 0) {
                $fee_rp = $row['value'];
            }
            if ($row['type'] == 'subtitle_fee' && strlen($subtitle) > 0) {
                $subtitle_fee = $row['value'];
            }
            if ($row['type'] == 'relist_fee' && strlen($relist) > 0) {
                $relist_fee = $row['value'];
            }
        }
        $fee_javascript .= 'var current_fee = ' . (isset($_SESSION['SELL_current_fee']) ? $_SESSION['SELL_current_fee'] : '0') . ';';
        $relist_options = '<select name="autorelist" id="autorelist">';
        for ($i = 0; $i <= $system->SETTINGS['autorelist_max']; $i++) {
            $relist_options .= '<option value="' . $i . '"' . ($relist == $i ? ' selected="selected"' : '') . '>' . $i . '</option>';
        }
        $relist_options .= '</select>';
        $fee_value = get_fee($minimum_bid);
        $template->assign_vars(array('TITLE' => $MSG['028'], 'ERROR' => $ERR == 'ERR_' ? '' : ${$ERR}, 'CAT_LIST1' => $category_string1, 'CAT_LIST2' => $category_string2, 'ATYPE' => $TPL_auction_type, 'ATYPE_PLAIN' => $atype, 'CURRENCY' => $system->SETTINGS['currency'], 'DURATIONS' => $TPL_durations_list, 'PAYMENTS' => $payment_methods, 'PAGE' => 0, 'MINTEXT' => $atype == 2 ? $MSG['038'] : $MSG['020'], 'FEE_JS' => $fee_javascript, 'AUC_TITLE' => htmlspecialchars($title), 'AUC_SUBTITLE' => htmlspecialchars($subtitle), 'AUC_DESCRIPTION' => $CKEditor->editor('sdescription', $sdescription), 'ITEMQTY' => $iquantity, 'MIN_BID' => $system->print_money_nosymbol($minimum_bid, false), 'BN_ONLY' => $buy_now_only ? 'disabled' : '', 'SHIPPING_COST' => $system->print_money_nosymbol($shipping_cost, false), 'ADDITIONAL_SHIPPING_COST' => $system->print_money_nosymbol($additional_shipping_cost, false), 'RESERVE_Y' => $with_reserve == 'yes' ? 'checked' : '', 'RESERVE_N' => $with_reserve == 'yes' ? '' : 'checked', 'RESERVE' => $system->print_money_nosymbol($reserve_price, false), 'START_TIME' => $dt->formatDate($TPL_start_date), 'END_TIME' => $dt->formatDate($TPL_end_date), 'CUSTOM_END' => !empty($custom_end) ? 'checked' : '', 'BN_ONLY_Y' => $buy_now_only ? 'checked' : '', 'BN_ONLY_N' => $buy_now_only ? '' : 'checked', 'BN_Y' => $buy_now == 'yes' ? 'checked' : '', 'BN_N' => $buy_now == 'yes' ? '' : 'checked', 'BN_PRICE' => $system->print_money_nosymbol($buy_now_price, false), 'INCREMENTS1' => $increments == 1 || empty($increments) ? 'checked' : '', 'INCREMENTS2' => $increments == 2 ? 'checked' : '', 'CUSTOM_INC' => $customincrement > 0 ? $system->print_money_nosymbol($customincrement, false) : '', 'SHIPPING1' => intval($shipping) == 1 ? 'checked' : '', 'SHIPPING2' => intval($shipping) == 2 || empty($shipping) ? 'checked' : '', 'SHIPPING3' => intval($shipping) == 3 ? 'checked' : '', 'INTERNATIONAL' => !empty($international) ? 'checked' : '', 'SHIPPING_TERMS' => htmlspecialchars($shipping_terms), 'ITEMQTYD' => $atype == 2 || $buy_now_only ? '' : 'disabled', 'START_NOW' => !empty($start_now) ? 'checked' : '', 'IS_BOLD' => $is_bold ? 'checked' : '', 'IS_HIGHLIGHTED' => $is_highlighted ? 'checked' : '', 'IS_FEATURED' => $is_featured ? 'checked' : '', 'NUMIMAGES' => count($_SESSION['UPLOADED_PICTURES']), 'RELIST' => $relist_options, 'MAXRELIST' => $system->SETTINGS['autorelist_max'], 'TAX_Y' => $is_taxed == 1 ? 'checked' : '', 'TAX_N' => $is_taxed == 0 ? 'checked' : '', 'TAXINC_Y' => $tax_included == 1 ? 'checked' : '', 'TAXINC_N' => $tax_included == 0 ? 'checked' : '', 'MAXPICS' => sprintf($MSG['673'], $system->SETTINGS['maxpictures'], $system->SETTINGS['maxuploadsize'] / 1024), 'FEE_VALUE' => $fee_value, 'FEE_VALUE_F' => number_format($fee_value, $system->SETTINGS['moneydecimals']), 'FEE_MIN_BID' => $fee_min_bid, 'FEE_BN' => $fee_bn, 'FEE_RP' => $fee_rp, 'FEE_SUBTITLE' => $subtitle_fee, 'FEE_RELIST' => $relist_fee, 'FEE_DECIMALS' => $system->SETTINGS['moneydecimals'], 'B_CAN_TAX' => $can_tax, 'B_GALLERY' => $system->SETTINGS['picturesgallery'] == 1, 'B_BN_ONLY' => $system->SETTINGS['buy_now'] == 2 && $system->SETTINGS['bn_only'] && ($system->SETTINGS['bn_only_disable'] == 'y' && $user->user_data['bn_only'] || $system->SETTINGS['bn_only_disable'] == 'n'), 'B_BN' => $system->SETTINGS['buy_now'] == 2, 'B_EDITING' => $_SESSION['SELL_action'] == 'edit', 'B_CANEDITSTARTDATE' => $caneditstartdate, 'B_CUSINC' => $system->SETTINGS['cust_increment'] == 1, 'B_EDIT_STARTTIME' => $system->SETTINGS['edit_starttime'] == 1, 'B_EDIT_ENDTIME' => $system->SETTINGS['edit_endtime'] == 1, 'B_MKFEATURED' => $system->SETTINGS['ao_hpf_enabled'] == 'y', 'B_MKBOLD' => $system->SETTINGS['ao_bi_enabled'] == 'y', 'B_MKHIGHLIGHT' => $system->SETTINGS['ao_hi_enabled'] == 'y', 'B_FEES' => $system->SETTINGS['fees'] == 'y', 'B_SHIPPING' => $system->SETTINGS['shipping'] == 'y', 'B_SUBTITLE' => $system->SETTINGS['subtitle'] == 'y', 'B_AUTORELIST' => $system->SETTINGS['autorelist'] == 'y'));
        break;
}
include 'header.php';
$template->set_filenames(array('body' => 'sell.tpl'));
$template->display('body');
include 'footer.php';
//if ($_SESSION['action'] != 3)
makesessions();
开发者ID:Nozlaf,项目名称:WeBid,代码行数:31,代码来源:sell.php



注:本文中的get_fee函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_feed_access_key函数代码示例发布时间:2022-05-15
下一篇:
PHP get_features函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap