本文整理汇总了PHP中get_currency_symbol函数的典型用法代码示例。如果您正苦于以下问题:PHP get_currency_symbol函数的具体用法?PHP get_currency_symbol怎么用?PHP get_currency_symbol使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_currency_symbol函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ajax_get_results
//.........这里部分代码省略.........
}
$i++;
}
if ($constraint == '') {
$data['query'] = $this->db->query("SELECT * FROM (`list`) where {$condition} AND id=0 {$order} LIMIT {$offset},{$per_page}");
$total_rows = 0;
} else {
$data['query'] = $this->db->query("SELECT * FROM (`list`) where {$condition} AND {$constraint} {$order} LIMIT {$offset},{$per_page}");
$total_rows = $this->db->query("SELECT * FROM (`list`) where {$condition} AND {$constraint}")->num_rows();
}
} else {
$data['query'] = $this->db->query("SELECT * FROM (`list`) WHERE {$condition} {$order} LIMIT {$offset},{$per_page}");
$this->session->unset_userdata('query');
$this->session->set_userdata('query', "SELECT * FROM (`list`) WHERE {$condition} ORDER BY id DESC");
$total_rows = $this->db->query("SELECT * FROM (`list`) WHERE {$condition}")->num_rows();
}
$config['base_url'] = site_url('search') . '?checkin=' . urlencode($checkin) . '&checkout=' . urlencode($checkout) . '&guests=' . $nof_guest . '&location=' . urlencode($location) . '&min_bathrooms=' . $min_bathrooms . '&min_bedrooms=' . $min_bedrooms . '&min_beds=' . $min_beds . '&min_bed_type=' . $min_bed_type . '&per_page=' . $per_page . '&search_view=1&sort=' . $sort;
$config['per_page'] = $per_page;
$config['cur_page'] = $start;
$config['total_rows'] = $total_rows;
$this->ajax_pagination->initialize($config);
$pagination = $this->ajax_pagination->create_links(false);
$tCount = $data['query']->num_rows();
$properties = '';
$sno = 1;
foreach ($data['query']->result() as $row) {
//main photo
$url = getListImage($row->id);
//for map slider full list images
$images = $this->Gallery->get_imagesG($row->id);
$picture_ids = '';
foreach ($images->result() as $image) {
$picture_ids .= '"' . $image->list_id . '/' . $image->name . '",';
}
$profile_pic = $this->Gallery->profilepic($row->user_id, 2);
if ($tCount == $sno) {
$comma = '';
} else {
$comma = ',';
}
$neighbor = $row->neighbor;
$final_price = get_currency_value1($row->id, $row->price);
/* Offer price calculate */
if ($checkin != '--' && $checkout != '--' && $checkin != "yy-mm-dd" && $checkout != "yy-mm-dd") {
$daysdiff = (strtotime($checkout) - strtotime($checkin)) / (60 * 60 * 24);
}
//My shortlist
$short_listed = 0;
$cur_user_id = $this->dx_auth->get_user_id();
if ($cur_user_id) {
$shortlist = $this->Common_model->getTableData('users', array('id' => $cur_user_id))->row()->shortlist;
$my = explode(',', $shortlist);
foreach ($my as $list) {
if ($list == $row->id) {
$short_listed = 1;
}
}
}
/* end of offer calculate */
$properties .= '{
"user_thumbnail_url":"' . $profile_pic . '",
"user_is_superhost":false,
"lat":' . $row->lat . ',
"has_video":false,
"recommendation_count":0,
"lng":' . $row->long . ',
"user_id":' . $row->user_id . ',
"user_name":"' . get_user_by_id($row->user_id)->username . '",
"symbol":"' . get_currency_symbol($row->id) . '",
"review_count":' . $row->review . ',
"address":"' . $row->address . '",
"name":"' . $row->title . '",
"picture_ids":[' . substr($picture_ids, 0, -1) . '],
"hosting_thumbnail_url":"' . $url . '",
"id":' . $row->id . ',
"page_viewed":' . $row->page_viewed . ',
"price":' . $final_price . ',
"short_listed":' . $short_listed . '
}' . $comma;
$sno++;
}
$startlist = 1 + $offset;
$endlist = $offset + $per_page;
if ($endlist > $total_rows) {
$endlist = $total_rows;
}
$ajax_result = '{
"results_count_html":"\\n<b>' . $startlist . ' – ' . $endlist . '</b> of <b>' . $total_rows . ' listings</b>",
"results_count_top_html":" ' . $total_rows . ' ' . translate('results') . '\\n",
"view_type":' . $search_view . ',
"results_pagination_html":"' . $pagination . '\\n",
"present_standby_option":false,
"properties":[';
$ajax_result .= $properties;
$ajax_result .= '],
"banner_info":{},
"sort":' . $sort . '
}';
echo $ajax_result;
}
示例2: currency_format
function currency_format($number)
{
$currencySymbol = get_currency_symbol();
return $currencySymbol . number_format($number, 2, '.', ',');
}
示例3: ucfirst
"><?php
echo ucfirst(get_user_by_id($row->userby)->username);
?>
</a>
</span></p>
<p style="margin:5px 0 0 0;"><a class="clsLink2_Bg" href="<?php
echo site_url('trips/send_message/' . $row->userby);
?>
"><?php
echo translate("View") . ' / ' . translate("Send") . ' ' . translate("Message");
?>
</a></p>
</td>
<td width="15%">
<p><?php
echo get_currency_symbol($row->list_id) . get_currency_value1($row->list_id, $row->price);
?>
</p>
<p class="clsBold"><?php
echo anchor('trips/request/' . $row->id, translate("View Confirmation"));
?>
</p>
<?php
if ($row->status < 8 && $row->status != 5 && $row->status != 6 && $row->status != 4 && $row->status != 2) {
?>
<p class="clsBold"><a id="cancellation_<?php
echo $row->id;
?>
" href="<?php
echo site_url('travelling/cancel_travel/' . $row->id . '/' . $row->list_id);
?>
示例4: ajax_get_symbol
function ajax_get_symbol()
{
extract($this->input->get());
echo '{"symbol":"' . get_currency_symbol($id) . '","min_price":"' . get_currency_value1($id, 10) . '","max_price":"' . get_currency_value1($id, 10000) . '"}';
}
示例5: get_currency_symbol
<p> <span><?php
if ($list_staus->num_rows() == 0) {
echo 'List Deletion';
} else {
echo $row->name;
}
?>
</span>
<?php
if (isset($topay) && $topay != '' && $paid != 1) {
if ($hostpaid != 1 && $guestpaid != 1) {
// $topay = get_currency_value2($currency,$topay);
?>
<br>
<span><?php
echo get_currency_symbol($row->list_id) . get_currency_value_lys($currency, get_currency_code(), $topay);
?>
</span>
<?php
}
}
?>
</p>
</div>
<?php
}
?>
</li>
<?php
}
} else {
示例6: translate
?>
.</div>
<?php
} else {
?>
<div class="currency_alert"><?php
echo translate("This payment transacts in");
?>
<?php
echo get_currency_symbol($id) . get_currency_code();
?>
. <?php
echo translate("Your total charge is");
?>
<?php
echo get_currency_symbol($id) . $amt;
?>
.</div>
<?php
}
?>
<p class="payment_method_explanation two_c_explanation"> <span class="paypallogo"><?php
echo translate("Instructions:");
?>
</span> <br>
<?php
echo translate("After clicking 'Book it' you will be redirected to Braintree to complete payment.");
?>
<span class="paypallogo"> <?php
echo translate("You must complete the process or the transaction will not occur.");
示例7: Redisfunctions
$this->load->view('pages/trip/listing/list-header-sort-bar');
?>
<div class="catalog-row">
<?php
$redis_functions = new Redisfunctions();
if (!empty($post_records)) {
foreach ($post_records as $key => $value) {
$value = (array) $value;
$post_url_key = $value['post_url_key'];
$post_details = $redis_functions->get_trip_details($post_url_key);
$post_title = stripslashes($post_details['post_title']);
$post_description = getNWordsFromString(stripslashes($post_details['post_description']), 40);
$post_primary_image = base_url(getImage($post_details['post_primary_image']));
$post_url = getTripUrl($post_details['post_url_key']);
$post_total_cost = get_currency_symbol($post_details['post_currency']) . $post_details['post_total_cost'];
$post_start_end_date_string = '--';
if (!empty($post_details['post_start_date']) && !empty($post_details['post_end_date'])) {
$post_date_format = 'd M Y';
$post_start_end_date_string = date($post_date_format, strtotime($post_details['post_start_date'])) . ' - ' . date($post_date_format, strtotime($post_details['post_end_date']));
}
$post_total_days = number_format($post_details['post_total_days']);
$post_region_cities = array();
if (!empty($post_details['post_regions'])) {
foreach ($post_details['post_regions'] as $region_key => $region_value) {
if (!in_array($region_value->pr_source_city, $post_region_cities)) {
$post_region_cities[] = $region_value->pr_source_city;
}
}
}
?>
示例8: stripslashes
<?php
$post_title = stripslashes($post_records['post_title']);
$post_description = stripslashes($post_records['post_description']);
$post_primary_image = base_url(getImage($post_records['post_primary_image']));
$post_url = getTripUrl($post_records['post_url_key']);
$post_total_cost = get_currency_symbol($post_records['post_currency']) . $post_records['post_total_cost'];
$post_start_end_date_string = '--';
if (!empty($post_records['post_start_date']) && !empty($post_records['post_end_date'])) {
$post_date_format = 'd M Y';
$post_start_end_date_string = date($post_date_format, strtotime($post_records['post_start_date'])) . ' - ' . date($post_date_format, strtotime($post_records['post_end_date']));
}
$post_total_days = number_format($post_records['post_total_days']);
$post_region_cities = array();
if (!empty($post_records['post_regions'])) {
foreach ($post_records['post_regions'] as $region_key => $region_value) {
if (!in_array($region_value->pr_source_city, $post_region_cities)) {
$post_region_cities[] = $region_value->pr_source_city;
}
}
}
?>
<div class="checkout-coll">
<div class="checkout-head">
<div class="checkout-headl" itemscope itemtype="http://schema.org/Event">
<?php
if (!empty($post_records['post_primary_image']) && file_exists($post_records['post_primary_image'])) {
?>
<a itemprop="url" href="<?php
echo $post_url;
示例9: stripslashes
?>
<div class="chk-line">
<span class="chk-l">
<a href="<?php
echo $get_featured_url;
?>
" class="a-no-underline" target="_blank" style="color: #4a90a4;"><?php
echo stripslashes($value['pfm_title']);
?>
:</a>
</span>
<span class="chk-r"><a href="<?php
echo $get_featured_url;
?>
" class="btn" target="_blank"><?php
echo get_currency_symbol($value['pfm_currency']) . ' ' . $value['pfm_amount'];
?>
</a></span>
<div class="clear"></div>
</div>
<?php
}
}
?>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<?php
示例10: get_user_times
echo $created;
?>
</td>
<td><?php
echo $type;
?>
</td>
<td><?php
echo get_user_times($row->checkin, get_user_timezone()) . ' - ' . get_user_times($row->checkout, get_user_timezone()) . '<br>' . $row->title;
?>
</td>
<td><?php
if (is_numeric($row->topay)) {
echo get_currency_symbol($row->list_id) . get_currency_value_lys($row->currency, get_currency_code(), $row->topay);
} else {
echo get_currency_symbol($row->list_id) . $row->topay;
}
?>
</td>
<td><?php
echo $payto;
?>
</tr>
<?php
}
?>
</tbody>
</table>
<div id="results_pagination" class="clsFloatRight">
示例11: invoice_template
//.........这里部分代码省略.........
font-weight:bold;
}
.invoice-box table tr.details td{
padding-bottom:20px;
}
.invoice-box table tr.item td{
border-bottom:1px solid #eee;
}
.invoice-box table tr.item.last td{
border-bottom:none;
}
.invoice-box table tr.total td:nth-child(2){
border-top:2px solid #eee;
font-weight:bold;
}
@media only screen and (max-width: 600px) {
.invoice-box table tr.top table td{
width:100%;
display:block;
text-align:center;
}
.invoice-box table tr.information table td{
width:100%;
display:block;
text-align:center;
}
}
</style>
</head>
<body>
<div class="invoice-box">
<table cellpadding="0" cellspacing="0">
<tr class="top">
<td colspan="2">
<table>
<tr>
<td class="title"><img src="' . IMAGES_PATH . '/logo.png" style="width:100%; max-width:300px;"></td>
<td>
Invoice #: ' . $invoice_data_array['payment_reference_number'] . '<br>
Created: ' . $invoice_data_array['payment_created_on'] . '
</td>
</tr>
</table>
</td>
</tr>
<tr class="information">
<td colspan="2">
<table>
<tr>
<td>' . $redis_functions->get_site_setting('SITE_NAME') . '</td>
<td>' . stripslashes($invoice_data_array['payer_user_fullname']) . '<br>' . $invoice_data_array['payer_user_email'] . '</td>
</tr>
</table>
</td>
</tr>
<tr class="heading">
<td>Payment Method</td>
<td>Transaction #</td>
</tr>
<tr class="details">
<td>Paypal</td>
<td>' . $invoice_data_array['payment_txn_id'] . '</td>
</tr>
<tr class="heading">
<td>
Trip to feature
</td>
<td>
Price
</td>
</tr>
<tr class="item">
<td>' . stripslashes($invoice_data_array['post_title']) . ' <small>(' . $invoice_data_array['pfm_title'] . ')</small></td>
<td>' . get_currency_symbol($invoice_data_array['payment_currency']) . number_format($invoice_data_array['payment_amount'], 2) . '</td>
</tr>
<tr class="total">
<td></td>
<td>Total: ' . get_currency_symbol($invoice_data_array['payment_currency']) . number_format($invoice_data_array['payment_amount'], 2) . '</td>
</tr>
</table>
</div>
</body>
</html>';
return array('email_subject' => $email_subject, 'email_message' => $str);
}
示例12: get_currency_symbol
</span></span>
<span class="data col-md-8 col-sm-7 col-xs-12"><span class="inner"><?php
echo get_currency_symbol($result->list_id) . get_currency_value_lys($result->currency, get_currency_code(), $subtotal);
if ($result->contacts_offer == 1) {
$special_offer = '(Special offer used.)';
} else {
$special_offer = '';
}
?>
<!--<li class="clearfix">
<span class="label"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php
echo translate("Total Payout");
?>
</span></span>
<span class="data"><span class="inner"><?php
echo get_currency_symbol($result->list_id) . get_currency_value_lys($result->currency, get_currency_code(), $subtotal) . $special_offer;
?>
-->
<?php
if ($result->coupon == 1) {
echo ' (Coupon code used)';
}
?>
</span></span>
</li>
<li class="clearfix bottom">
<span class="label col-md-4 col-sm-5 col-xs-12" style="padding:10px 10px 0 10px;" ><span class="inner"><span class="checkout_icon" id="icon_cal"></span>
<?php
if ($result->status == 1) {
?>
示例13: get_currency_symbol
?>
</div>
<div class="line_reg" style="z-index:<?php
echo $j;
?>
;" id="square_<?php
echo $i;
?>
"> <span class="startcap"></span> <span class="content"></span> <span class="endcap"><b><?php
echo get_currency_symbol($list_id) . get_currency_value1($list_id, $price);
?>
</b></span> </div>
<!--Edit calender --->
<?php
echo get_currency_symbol($list_id) . get_currency_value_lys($listcurrency, get_currency_code(), $price);
?>
</b></span> </div>
<!--edit calender -->
</div>
</div>
<?php
}
?>
<?php
$day_count++;
$day_nextmonth++;
$i++;
示例14: translate
?>
.</div>
<?php
} else {
?>
<div class="currency_alert"><?php
echo translate("This payment transacts in");
?>
<?php
echo get_currency_symbol($id) . get_currency_code();
?>
. <?php
echo translate("Your total charge is");
?>
<?php
echo get_currency_symbol($id) . get_currency_value1($id, $amt);
?>
.</div>
<?php
}
?>
<p class="payment_method_explanation paypal_explanation"> <span style="font-weight:bold;"><?php
echo translate("Instructions");
?>
:</span> <br>
<?php
echo translate("After clicking 'Book it' you will be redirected to PayPal to complete payment.");
?>
<span style="font-weight:bold;"> <?php
echo translate("You must complete the process or the transaction will not occur.");
示例15: get_currency_symbol
?>
</span></span>
<span class="data"><span class="inner"><?php
echo get_currency_symbol($result->list_id) . get_currency_value1($result->list_id, $commission);
?>
</span></span>
</li> -->
<li class="clearfix">
<span class="label"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php
echo translate("Total Payout");
?>
</span></span>
<span class="data"><span class="inner"><?php
echo get_currency_symbol($result->list_id) . get_currency_value1($result->list_id, $subtotal);
?>
</span></span>
</li>
<li class="clearfix bottom">
<span class="label" ><span class="inner"><span class="checkout_icon" id="icon_cal"></span>
<?php
if ($result->status == 1) {
?>
<span id="expires_in">
<?php
echo translate("Expires in");
?>
</span>
<div id="expired1" style="display: none"><?php
echo translate('Expired');