本文整理汇总了PHP中get_currency_symbol函数的典型用法代码示例。如果您正苦于以下问题:PHP get_currency_symbol函数的具体用法?PHP get_currency_symbol怎么用?PHP get_currency_symbol使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_currency_symbol函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:empotix,项目名称:travelo,代码行数:101,代码来源:search.php
示例2: currency_format
function currency_format($number)
{
$currencySymbol = get_currency_symbol();
return $currencySymbol . number_format($number, 2, '.', ',');
}
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:5,代码来源:currency_helper.php
示例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);
?>
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_myreservation.php
示例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) . '"}';
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:5,代码来源:search.php
示例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 {
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_dashboard.php
示例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.");
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_booking.php
示例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;
}
}
}
?>
开发者ID:arp19690,项目名称:newtravel,代码行数:31,代码来源:trip-list.php
示例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;
开发者ID:arp19690,项目名称:newtravel,代码行数:31,代码来源:post-right-sidebar.php
示例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
开发者ID:arp19690,项目名称:newtravel,代码行数:31,代码来源:get-featured-sidebar.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">
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:ajax_transaction.php
示例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);
}
开发者ID:arp19690,项目名称:newtravel,代码行数:101,代码来源:email_model.php
示例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) {
?>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:request.php
示例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++;
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_calendar_single.php
示例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.");
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_booking.php
示例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');
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:request.php
示例16: get_currency_symbol
<br><br><span class="endcap"><b><?php
echo get_currency_symbol($list_id) . " " . get_currency_value1($list_id, $price);
?>
</b></span>
</td>
<?php
} else {
$full_date = $next_month . '/' . $day_nextmonth . '/' . $next_year;
$pre_schedules = '<td id="day_' . $i . '" class="realday available">
<span class="dom">' . $day_nextmonth . '</span><br><br><span class="endcap"><b>' . get_currency_symbol($list_id) . ' ' . get_currency_value1($list_id, $price) . '</b></span>
</td>';
foreach ($result as $row) {
if (get_gmt_time(strtotime($full_date)) == $row->booked_days) {
$pre_schedules = '<td id="day_' . $i . '" class="realday unavailable">
<span class="dom">' . $day_nextmonth . '</span><br><br><span class="endcap"><b>' . get_currency_symbol($list_id) . ' ' . get_currency_value1($list_id, $price) . '</b></span>
</td>';
}
}
echo $pre_schedules;
}
$day_count++;
$day_nextmonth++;
$i++;
$j++;
if ($k == 7) {
$k = 0;
echo '</tr>';
}
$k++;
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_calendar_tab.php
示例17: site_url
?>
review</p>
</div>
<div class="Sub_Most_View_Rgt clsFloatRight">
<p><a title="<?php
echo $row->title;
?>
" href="<?php
echo site_url() . "rooms/" . $row->id;
?>
"><?php
echo substr($row->title, 0, 25);
?>
</a></p>
<p> <?php
echo get_currency_symbol($row->id) . get_currency_value1($row->id, $row->price) . ' per night';
?>
</p>
<p><img src="<?php
echo $profpic;
?>
" height='30' width="30" alt="Thump" /></p>
</div>
</div>
<?php
}
} else {
?>
<p> <?php
echo translate("Sorry! No records found.");
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_most.php
示例18: translate
echo '+';
}
?>
</option>
<?php
}
?>
</select>
</span> </li>
<li>
<label for="hosting_extras_price_native"><?php
echo translate("Cleaning Fees");
?>
</label>
<span class="currency_symbol"><?php
echo get_currency_symbol($room_id);
?>
</span>
<input id="hosting_extras_price_native" name="cleaning" size="30" maxlength="3" type="text" value=<?php
if ($list_price->cleaning) {
echo get_currency_value1($room_id, $list_price->cleaning);
} else {
echo '""';
}
?>
/>
</li>
</ul>
</div>
</div>
<button style="margin: 10px 0px 0px;" class="btn green gotomsg" type="submit"><span><span><?php
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_edit_price.php
示例19: to_currency
function to_currency($price, $currency = DEFAULT_CURRENCY)
{
return sprintf('%1$s%2$s', get_currency_symbol($currency), number_format($price, 0));
}
开发者ID:creativelittledots,项目名称:wp-kit-core,代码行数:4,代码来源:helpers.php
示例20: get_currency_symbol
echo $query["id"];
?>
"><?php
echo $query["title"];
?>
</a></div>
<?php
//echo $query["user_id"];
?>
</td>
<div class="wish_address"><?php
echo $query["address"];
?>
</div>
<div class="wish_address"><?php
echo get_currency_symbol($query["id"]) . get_currency_value1($query["id"], $query["price"]);
?>
</div>
<div class="wish_remove">
<a title="Remove My Wishlist" href="<?php
echo base_url() . 'account/remove_my_shortlist/' . $query["id"];
?>
" onclick="return confirm('Are you sure to Remove your Wish list?');">
<img src="<?php
echo base_url();
?>
/images/Delete.png" alt="Remove My Wishlist" title="Remove My Wishlist" /></a>
</div> </div>
<?php
} else {
echo '<div class="no_wishlist" style="padding:50px;text-align:center;">' . translate("No Wishlist") . '</div>';
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_wishlist.php
注:本文中的get_currency_symbol函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论