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

PHP get_currency_value1函数代码示例

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

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



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

示例1: 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


示例2: 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) . '&amp;checkout=' . urlencode($checkout) . '&amp;guests=' . $nof_guest . '&amp;location=' . urlencode($location) . '&amp;min_bathrooms=' . $min_bathrooms . '&amp;min_bedrooms=' . $min_bedrooms . '&amp;min_beds=' . $min_beds . '&amp;min_bed_type=' . $min_bed_type . '&amp;per_page=' . $per_page . '&amp;search_view=1&amp;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 . ' &ndash; ' . $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


示例3: 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


示例4: get_currency_symbol

                          isMonthly: false,
                          nameLocked: false,
						  staggeredPrice: "<?php 
echo get_currency_symbol($room_id) . get_currency_value1($room_id, $Mprice);
?>
",
                          nightlyPrice: "<?php 
echo get_currency_symbol($room_id) . get_currency_value1($room_id, $price);
?>
",
                          weeklyPrice: "<?php 
echo get_currency_symbol($room_id) . get_currency_value1($room_id, $Wprice);
?>
",
                          monthlyPrice: "<?php 
echo get_currency_symbol($room_id) . get_currency_value1($room_id, $Mprice);
?>
"});

        page3Slideshow.enableKeypressListener();
								
							<?php 
if ($this->session->userdata('Vcheckin') != '') {
    ?>
							jQuery("#checkin").val('<?php 
    echo $this->session->userdata('Vcheckin');
    ?>
');
							<?php 
}
?>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_edit_confirm.php


示例5: form


//.........这里部分代码省略.........
         $list_id = $this->input->post('hosting_id');
         $coupon_code = $this->input->post('coupon_code');
         $user_id = $this->dx_auth->get_user_id();
         if ($coupon_code != "") {
             $is_list_already = $this->Common_model->getTableData('coupon_users', array('list_id' => $list_id, 'user_id' => $user_id));
             $is_coupon_already = $this->Common_model->getTableData('coupon_users', array('used_coupon_code' => $coupon_code, 'user_id' => $user_id));
             //Check the list is already access with the coupon by the host or not
             /* if($is_list_already->num_rows() != 0)
                {
                $this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error','Sorry! You cannot use coupons for this list'));
                redirect('rooms/'.$list_id, "refresh");
                }
                //Check the host already used the coupon or not
                else */
             if ($is_coupon_already->num_rows() != 0) {
                 $this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error', translate('Sorry! Your coupon is invalid')));
                 redirect('rooms/' . $list_id, "refresh");
             } else {
                 //Coupon Discount calculation
                 foreach ($row as $code) {
                     if ($coupon_code == $code['couponcode']) {
                         //Currecy coversion
                         $is_coupon = 1;
                         $current_currency = get_currency_code();
                         $coupon_currency = $code['currency'];
                         if ($current_currency == $coupon_currency) {
                             $Coupon_amt = $code['coupon_price'];
                         } else {
                             $Coupon_amt = get_currency_value_coupon($code['coupon_price'], $coupon_currency);
                         }
                     }
                 }
                 if ($is_coupon == 1) {
                     if ($Coupon_amt >= get_currency_value1($list_id, $amt)) {
                         $this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error', translate('Sorry! There is equal money or more money in your coupon to book this list.')));
                         redirect('rooms/' . $list_id, "refresh");
                     } else {
                         //Get the result amount & store the coupon informations
                         $amt = $amt - $Coupon_amt;
                         $insertData = array('list_id' => $list_id, 'used_coupon_code' => $coupon_code, 'user_id' => $user_id, 'status' => 0);
                         $this->Common_model->inserTableData('coupon_users', $insertData);
                         $this->db->where('couponcode', $coupon_code)->update('coupon', array('status' => 1));
                         $this->session->set_userdata("total_price_'" . $list_id . "'_'" . $user_id . "'", $amt);
                     }
                 } else {
                     $this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error', translate('Sorry! Your coupon does not match.')));
                     redirect('rooms/' . $list_id, "refresh");
                 }
             }
         } else {
             $this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error', translate('Sorry! Your coupon does not match.')));
             redirect('rooms/' . $list_id, "refresh");
         }
     }
     //Coupon Ends
     $data['subtotal'] = $amt;
     //if($this->session->userdata("total_price_'".$id."'_'".$this->dx_auth->get_user_id()."'") == "")
     //{ echo 'total';exit;
     //redirect('rooms/'.$param, "refresh");
     //	$this->session->set_flashdata('flash_message', $this->Common_model->flash_message('error','Please! Try Again'));
     //}
     //check admin premium condition and apply so for
     $query = $this->Common_model->getTableData('paymode', array('id' => 2));
     $row = $query->row();
     if ($row->is_premium == 1) {
         if ($row->is_fixed == 1) {
开发者ID:empotix,项目名称:travelo,代码行数:67,代码来源:payment.php


示例6: ajax_refresh_subtotal


//.........这里部分代码省略.........
                     $per_night = round($perDay, 2);
                     if ($differNights > 0) {
                         $addAmount = $differNights * $per_night;
                         $finalAmount = $Wprice + $addAmount;
                     }
                     $price = $finalAmount;
                     //Additional guests
                     if ($data['guests'] > $guests) {
                         $diff_days = $data['guests'] - $guests;
                         $price = $price + $days * $xprice->addguests * $diff_days;
                         $extra_guest = 1;
                         $extra_guest_price = $xprice->addguests * $diff_days;
                     }
                 }
             }
             if ($days >= 30) {
                 if (!empty($Mprice)) {
                     $finalAmount = $Mprice;
                     $differNights = $days - 30;
                     $perDay = $Mprice / 30;
                     $per_night = round($perDay, 2);
                     if ($differNights > 0) {
                         $addAmount = $differNights * $per_night;
                         $finalAmount = $Mprice + $addAmount;
                     }
                     $price = $finalAmount;
                     //Additional guests
                     if ($data['guests'] > $guests) {
                         $diff_days = $data['guests'] - $guests;
                         $price = $price + $days * $xprice->addguests * $diff_days;
                         $extra_guest = 1;
                         $extra_guest_price = $xprice->addguests * $diff_days;
                     }
                 }
             }
             if ($row->is_premium == 1) {
                 if ($row->is_fixed == 1) {
                     $fix = $row->fixed_amount;
                     $amt = $price + $fix;
                     $data['commission'] = $fix;
                     $Fprice = $amt;
                 } else {
                     $per = $row->percentage_amount;
                     $camt = floatval($price * $per / 100);
                     $amt = $price + $camt;
                     $data['commission'] = $camt;
                     $Fprice = $amt;
                 }
                 if ($Wprice == 0) {
                     $data['Wprice'] = $price * 7;
                 } else {
                     $data['Wprice'] = $Wprice;
                 }
                 if ($Mprice == 0) {
                     $data['Mprice'] = $price * 30;
                 } else {
                     $data['Mprice'] = $Mprice;
                 }
             }
             $xprice = $this->Common_model->getTableData('list', array('id' => $id))->row();
             if ($cleaning != 0) {
                 $price = $price + $cleaning;
             }
             if ($security != 0) {
                 $price = $price + $security;
             }
             $data['price'] = $price;
         }
     }
     $query = $this->db->query("SELECT id,list_id FROM `calendar` WHERE `list_id` = '" . $id . "' AND (`booked_days` = '" . get_gmt_time(strtotime($checkin)) . "' OR `booked_days` = '" . get_gmt_time(strtotime($checkout)) . "') GROUP BY `list_id`");
     $rows = $query->num_rows();
     $daysexist = $this->db->query("SELECT id,list_id,booked_days FROM `calendar` WHERE `list_id` = '" . $id . "' AND (`booked_days` >= '" . get_gmt_time(strtotime($checkin)) . "' AND `booked_days` <= '" . get_gmt_time(strtotime($checkout)) . "') GROUP BY `list_id`");
     $rowsexist = $daysexist->num_rows();
     if ($rowsexist > 0) {
         if (isset($extra_guest)) {
             if ($extra_guest == 1) {
                 echo '{"available":false,"extra_guest":1,"extra_guest_price":"' . get_currency_symbol($id) . get_currency_value1($id, $extra_guest_price) . '","total_price":' . $data['price'] . ',"reason_message":"Those dates are not available"}';
             }
         } else {
             echo '{"available":false,"total_price":' . $data['price'] . ',"reason_message":"Those dates are not available"}';
         }
     } else {
         if ($data['guests'] > $capacity) {
             echo '{"available":false,"total_price":' . $data['price'] . ',"reason_message":"' . $capacity . ' guest(s) only allowed"}';
         } else {
             $this->session->set_userdata("total_price_'" . $id . "'_'" . $this->dx_auth->get_user_id() . "'", $data['price']);
             $staggered_price = "";
             if ($days >= 30) {
                 $staggered_price = ',"staggered_price":"' . get_currency_symbol($id) . get_currency_value1($id, $data['price']) . '","staggered":false';
             }
             if (isset($extra_guest)) {
                 if ($extra_guest == 1) {
                     echo '{"service_fee":"' . get_currency_symbol($id) . get_currency_value_lys($row->currency, get_currency_code(), $data['commission']) . '","extra_guest_price":"' . get_currency_symbol($id) . get_currency_value1($id, $extra_guest_price) . '","extra_guest":1,"reason_message":"","price_per_night":"' . get_currency_symbol($id) . get_currency_value1($id, $per_night) . '","nights":' . $days . ',"available":true,"can_instant_book":false,"total_price":"' . get_currency_symbol($id) . get_currency_value1($id, $data['price']) . '"' . $staggered_price . '}';
                 }
             } else {
                 echo '{"service_fee":"' . get_currency_symbol($id) . get_currency_value_lys($row->currency, get_currency_code(), $data['commission']) . '","reason_message":"","price_per_night":"' . get_currency_symbol($id) . get_currency_value1($id, $per_night) . '","nights":' . $days . ',"available":true,"can_instant_book":false,"total_price":"' . get_currency_symbol($id) . get_currency_value1($id, $data['price']) . '"' . $staggered_price . '}';
             }
         }
     }
 }
开发者ID:BersnardC,项目名称:DROPINN,代码行数:101,代码来源:rooms.php


示例7: base_url

    ?>
</a> </span>
</strong>
<br>
<!--<a href="<?php 
    echo base_url() . 'rooms/' . $row->list_id;
    ?>
"><?php 
    echo $city[2] . " - " . get_currency_symbol() . "" . $row->price;
    ?>
</a>
<a href="<?php 
    echo base_url() . 'rooms/' . $row->list_id;
    ?>
"><?php 
    echo $city[2] . " - " . get_currency_symbol($row->list_id) . get_currency_value1($row->list_id, "" . $row->price);
    ?>
</a>
</div>
<span class="thumb_img"> 
<img src="<?php 
    echo $profile_pic;
    ?>
" height="40" width="40" style="border-radius: 50%;" />
</span>
</div> -->
</li>
<?php 
}
?>
</ul>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:view_home1.php


示例8: css_url

<link rel="stylesheet" href="<?php 
echo css_url();
?>
/jquery-ui.css" />
<script src="<?php 
echo base_url();
?>
js/jquery-1.8.3.min.js"></script>
<script src="<?php 
echo base_url();
?>
js/jquery-ui.min.js"></script>
<?php 
$currency_code = $this->Common_model->getTableData('currency', array('status' => 1, 'default' => 1))->row()->currency_code;
$id = $this->Common_model->getTableData('list')->row()->id;
$min_value = get_currency_value1($id, 9);
?>
<script>
$(function() {
$( "#expirein" ).datepicker(
	{
	 minDate: new Date(),
	           dateFormat: "dd/mm/yy",
                maxDate: "+2Y",
                nextText: "",
                prevText: "",
                numberOfMonths: 1,
                showButtonPanel: true
               }
);
});
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:viewcoupon.php


示例9: 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) . '&nbsp' . 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) . '&nbsp' . 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


示例10: get_currency_symbol

<!--<?php 
echo get_currency_symbol($result->list_id) . get_currency_value_lys($result->currency, get_currency_code(), $subtotal);
?>
</span>
</span>-->

</li>

<!-- <li class="clearfix">
<span class="label"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php 
echo translate("Host fee");
?>
</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 col-md-4 col-sm-5 col-xs-12"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php 
echo translate("Total Payout");
?>
</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 {
开发者ID:BersnardC,项目名称:DROPINN,代码行数:30,代码来源:request.php


示例11: submission_cc


//.........这里部分代码省略.........
                 $admin_commission = get_currency_value_lys($row->currency, get_currency_code(), $fix);
             } else {
                 $to_pay = $amt;
                 $per = $row->percentage_amount;
                 $percentage = $per / 100;
                 $admin_commission = $percentage * $to_pay;
                 /*	$camt             = floatval(($amt * $per) / 100);
                 			$amt              = $amt + $camt;
                 			$amt   = $amt;
                 			
                 			
                 			$admin_commission = $camt+get_currency_value_lys($row->currency,get_currency_code(),$camt);
                           */
                 //  print_r($admin_commission);
             }
         } else {
             $amt = $amt;
             $to_pay = $amt;
             print_r($to_pay);
         }
         $is_travelCretids = md5('No Travel Cretids');
     }
     //echo $amt;exit;
     if ($contact_key != '') {
         $contact_result = $this->db->where('contact_key', $contact_key)->get('contacts')->row();
         $amt = $contact_result->price + $contact_result->admin_commission;
         $this->session->set_userdata('contacts_offer', $contact_result->offer);
     }
     $ref_total1 = $ref_total + 10;
     if ($amt > $ref_total1) {
         if ($this->db->select('referral_amount')->where('id', $user_id)->get('users')->row()->referral_amount != 0) {
             $referral_amount = $this->db->select('referral_amount')->where('id', $user_id)->get('users')->row()->referral_amount;
             if ($referral_amount > $ref_total) {
                 $final_amt = get_currency_value1($id, $amt) - get_currency_value($ref_total);
             } else {
                 $final_amt = $amt - $referral_amount;
             }
             $amt = $final_amt;
         } else {
             $amt = $amt;
         }
     } else {
         $amt = $amt;
     }
     $amount = $amt;
     if ($contact_key == "") {
         $contact_key = "None";
     }
     //Entering it into data variables
     $row = $this->Common_model->getTableData('payment_details', array('code' => 'PAYPAL_ID'))->row();
     $paymode = $this->db->where('payment_name', 'Paypal')->get('payments')->row()->is_live;
     if ($this->session->userdata('final_amount') != '') {
         $amt = $this->session->userdata('final_amount');
         $this->session->unset_userdata('final_amount');
     } else {
         $amt = get_currency_value1($id, $amt) + $admin_commission;
     }
     //seasonal price
     $checkin_time = get_gmt_time(strtotime($checkin));
     $checkout_time = get_gmt_time(strtotime($checkout));
     $travel_dates = array();
     $seasonal_prices = array();
     $total_nights = 1;
     $total_price = 0;
     $is_seasonal = 0;
     $i = $checkin_time;
开发者ID:BersnardC,项目名称:DROPINN,代码行数:67,代码来源:payments.php


示例12: submission


//.........这里部分代码省略.........
                 if ($differNights > 0) {
                     $addAmount = $differNights * $per_night;
                     $finalAmount = $Mprice + $addAmount;
                 }
                 $amt = $finalAmount;
             }
         }
         //Cleaning fee
         if ($cleaning != 0) {
             $amt = $amt + $cleaning;
         }
         if ($security != 0) {
             $amt = $amt + $cleaning;
         } else {
             $amt = $amt;
         }
         $to_pay = 0;
         $admin_commission = 0;
         //Amount from session
         //	$amt=$this->session->userdata("total_price_'".$id."'_'".$this->dx_auth->get_user_id()."'");
         //commission calculation
         $query = $this->Common_model->getTableData('paymode', array('id' => 2));
         $row = $query->row();
         if ($row->is_premium == 1) {
             if ($row->is_fixed == 1) {
                 $to_pay = $amt;
                 $fix = $row->fixed_amount;
                 $amt = $amt + $fix;
                 //$amt = $this->session->userdata('topay');
                 $admin_commission = $fix;
             } else {
                 $to_pay = $amt;
                 $per = $row->percentage_amount;
                 $camt = floatval($amt * $per / 100);
                 $amt = $amt + $camt;
                 $amt = $amt;
                 $admin_commission = $camt;
             }
         } else {
             $amt = $amt;
             $to_pay = $amt;
         }
         $is_travelCretids = md5('No Travel Cretids');
     }
     //echo $amt;exit;
     if ($contact_key != '') {
         $contact_result = $this->db->where('contact_key', $contact_key)->get('contacts')->row();
         $amt = $contact_result->price + $contact_result->admin_commission;
     }
     if ($amt > 110) {
         if ($this->db->select('referral_amount')->where('id', $this->dx_auth->get_user_id())->get('users')->row()->referral_amount != 0) {
             $referral_amount = $this->db->select('referral_amount')->where('id', $this->dx_auth->get_user_id())->get('users')->row()->referral_amount;
             if ($referral_amount > 100) {
                 $final_amt = get_currency_value1($id, $amt) - get_currency_value(100);
             } else {
                 $final_amt = $amt - $referral_amount;
             }
             $amt = $final_amt;
         } else {
             $amt = $amt;
         }
     } else {
         $amt = $amt;
     }
     if ($contact_key == "") {
         $contact_key = "None";
     }
     //Entering it into data variables
     $row = $this->Common_model->getTableData('payment_details', array('code' => 'PAYPAL_ID'))->row();
     $paymode = $this->db->where('payment_name', 'Paypal')->get('payments')->row()->is_live;
     $custom = $id . '@' . $this->dx_auth->get_user_id() . '@' . get_gmt_time(strtotime($checkin)) . '@' . get_gmt_time(strtotime($checkout)) . '@' . $number_of_guests . '@' . $is_travelCretids . '@' . $user_travel_cretids . '@' . get_currency_value1($id, $to_pay) . '@' . get_currency_value1($id, $admin_commission) . '@' . $contact_key . '@' . get_currency_value1($id, $cleaning) . '@' . get_currency_value1($id, $security) . '@' . get_currency_value1($id, $extra_guest_price) . '@' . $guests;
     $this->session->set_userdata('custom', $custom);
     if ($this->session->userdata('final_amount') != '') {
         $amt = $this->session->userdata('final_amount');
         $this->session->unset_userdata('final_amount');
     } else {
         $amt = get_currency_value1($id, $amt);
     }
     $to_buy = array('desc' => 'Purchase from ACME Store', 'currency' => get_currency_code(), 'type' => 'sale', 'return_URL' => site_url('payments/paypal_success'), 'cancel_URL' => site_url('payments/paypal_cancel'), 'shipping_amount' => 0, 'get_shipping' => false);
     // I am just iterating through $this->product from defined
     // above. In a live case, you could be iterating through
     // the content of your shopping cart.
     //foreach($this->product as $p) {
     $temp_product = array('name' => $this->dx_auth->get_site_title() . ' Transaction', 'number' => $placeid, 'quantity' => 1, 'amount' => $amt);
     // add product to main $to_buy array
     $to_buy['products'][] = $temp_product;
     //}
     // enquire Paypal API for token
     $set_ec_return = $this->paypal_ec->set_ec($to_buy);
     if (isset($set_ec_return['ec_status']) && $set_ec_return['ec_status'] === true) {
         // redirect to Paypal
         $this->paypal_ec->redirect_to_paypal($set_ec_return['TOKEN']);
         // You could detect your visitor's browser and redirect to Paypal's mobile checkout
         // if they are on a mobile device. Just add a true as the last parameter. It defaults
         // to false
         // $this->paypal_ec->redirect_to_paypal( $set_ec_return['TOKEN'], true);
     } else {
         $this->_error($set_ec_return);
     }
 }
开发者ID:empotix,项目名称:travelo,代码行数:101,代码来源:payments.php


示例13: get_currency_value1

            <?php 
    $roomtotal = get_currency_value1($id, $subtotal);
    ?>
                <input type="hidden" value=<?php 
    echo $roomtotal;
    ?>
 name="roomtotal" />
        <?php 
    $commission = get_currency_value1($id, $commission);
    ?>
                <input type="hidden" value=<?php 
    echo $commission;
    ?>
 name="commission" />
        <?php 
    $subtotal = get_currency_value1($id, $amt);
    ?>
 
                <input type="hidden" value=<?php 
    echo $subtotal;
    ?>
 name="subtotal" />
        <?php 
    //}
    ?>
 

                <!-- Deepak Security Deposit Amount Ends -->

                <p>
                    <input type="button" name="book_it_button" id="p4_book_it_button" class="btn large blue" value="<?php 
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_booking.php


示例14: translate

echo $nights;
?>
</span></span>
</li>-->
</ul>


<ul id="details_breakdown_1" class="dashed_table_1 clearfix">

<li class="top clearfix">
<span class="label col-md-4 col-sm-5 col-xs-12"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php 
echo translate("Rate") . '( ' . translate("per night") . ' )';
?>
</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_value1($result->list_id, $per_night);
?>
</span></span>
</li>

<?php 
if ($cleaning != 0) {
    ?>
<li class="clearfix">
<span class="label col-md-4 col-sm-5 col-xs-12"><span class="inner"><span class="checkout_icon" id="icon_cal"></span><?php 
    echo translate("Cleaning Fee");
    ?>
</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(), $cleaning);
    ?>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:request_traveller.php


示例15: request

 public function request($param = '')
 {
     if (isset($param)) {
         $contact_id = $param;
         $conditions = array('contacts.id' => $contact_id, 'contacts.userto' => $this->dx_auth->get_user_id());
         $result = $this->Contacts_model->get_contacts($conditions);
         if ($result->num_rows() == 0) {
             redirect('info');
         }
         $data['result'] = $result->row();
         $list_id = $data['result']->list_id;
         $data['list'] = $this->Common_model->getTableData('list', array('id' => $list_id))->row()->title;
         $no_quest = $data['result']->no_quest;
         $data['no_quest'] = $no_quest;
         $x = $this->Common_model->getTableData('price', array('id' => $list_id));
         $data['per_night'] = $price = $x->row()->night;
         $checkin = $data['result']->checkin;
         $data['checkin'] = $checkin;
         $checkout = $data['result']->checkout;
         $data['checkout'] = $checkout;
         $diff = abs(strtotime($checkout) - strtotime($checkin));
         $data['nights'] = $days = floor($diff / (60 * 60 * 24));
         $amt = $data['subtotal'] = $result->row()->price;
         $data['price_original'] = $result->row()->original_price;
         if ($data['price_original'] == 0) {
             $data['price_original'] = get_currency_value1($list_id, $data['per_night']);
         }
         if ($data['price_original'] == '') {
             $amt = $data['price_original'] = $result->row()->price;
         }
         $data['message'] = $this->Common_model->getTableData('messages', array('contact_id' => $data['result']->id, 'message_type' => '7'))->row()->message;
         $data['commission'] = $result->admin_commission;
         //check admin premium condition and apply so for
         $query = $this->Common_model->getTableData('paymode', array('id' => 2));
         $row = $query->row();
         /*if($row->is_premium == 1)
         		{
         				if($row->is_fixed == 1)
         				{
         							$fix           = $row->fixed_amount; 
         							$amt           = $amt - $fix;
         							$data['commission'] = $amt ;
         				}
         				else
         				{  
         							$per           = $row->percentage_amount; 
         							$camt          = floatval(($amt * $per) / 100);
         							$amt           = $amt - $camt;
         							$data['commission']  = $camt ;
         				}
         		}
         		else
         		{*/
         $amt = $amt;
         //}
         $data['send_date'] = $result->row()->send_date;
         $data['totalprice'] = $result->row()->price;
         $data['subtotal'] = $result->row()->price;
         $data['currency'] = $result->row()->currency;
         $data['per_night'] = $price = $result->row()->price / $days;
         $data['checkin'] = strtotime($data['result']->checkin);
         $data['checkout'] = strtotime($data['result']->checkout);
         $data['title'] = get_meta_details('Contact_Request', 'title');
         $data["meta_keyword"] = get_meta_details('Contact_Request', 'meta_keyword');
         $data["meta_description"] = get_meta_details('Contact_Request', 'meta_description');
         $data['message_element'] = 'contacts/request';
         //print_r($data);
         $this->load->view('template', $data);
     } else {
         redirect('info');
     }
 }
开发者ID:BersnardC,项目名称:DROPINN,代码行数:72,代码来源:contacts.php


示例16: translate

}
?>
                                                </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 
echo translate("Save");
?>
</span></span></button>
                            <p id="show" style="display: none; float: right; color:red;margin-right:300px; "></p>
                            <div>
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_edit_price.php


示例17: translate

        ?>
<sup></sup><span class="optional_usd">
        </span> </span> </span> </li>
        <?php 
    }
    ?>
	
         <?php 
    if (isset($extra_guest_price)) {
        if ($extra_guest_price != 0) {
            ?>
        <li> <span class="label col-md-3 col-sm-3 col-xs-12" > <span class="inner"><span class=&qu 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP get_current函数代码示例发布时间:2022-05-15
下一篇:
PHP get_currency_symbol函数代码示例发布时间: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