示例#1
0
																?>
															</tr>
														</table>
													</span>
													</td>
												</tr>
												<?
													$total = $total + $price;
													}
												?>
											<? if($cart_rows > 0){ 
													$price = dollar2($visitor->price);
													$tax = dollar2($visitor->tax);
													$shipping = dollar2($visitor->shipping);
													$savings = dollar2($visitor->savings);
													$grand = dollar2($price + $tax + $shipping - $savings);
													
													if($currency->code == "JPY"){
														$price = $visitor->price;
														$tax = $visitor->tax;
														$shipping = $visitor->shipping;
														$savings = $visitor->savings;
														$grand = $total + $shipping + $tax - $savings;
														$price = round($price);
														$tax = round($tax);
														$shipping = round($shipping);
														$savings = round($savings);
														$grand = round($grand);
													}	
											?>
												<tr>
示例#2
0
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Photos:</b> <? echo $photo2_rows; ?></td>
									</tr>
										<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Photographers Photos:</b> <? echo $photo3_rows; ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Photographers:</b> <? echo $photog_rows; ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Members:</b> <?echo $member2_rows; ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Sales Orders:</b> <? echo $sales2_rows; ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Sales Price:</b> <? echo $currency->sign . dollar2($price); ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Views:</b> <? echo $view; ?></td>
									</tr>
									<tr>
										<td bgcolor="#5E85CA" class="data_box"><font color="#ffffff" style="font-size: 11;" width="150"><b>Total Visitors:</b> <? echo $visit_rows; ?></td>
									</tr>
										<tr>
										<td colspan="2"><hr width="100%" align="left"></td>
									</tr>
					<table width="95%">
						<tr>
					</tr>
				</table>
				</td>
示例#3
0
													
															$tax1 = $setting->tax1;
															$tax2 = $setting->tax2;
															$year_price = $setting->sub_price;
															$month_price = $setting->sub_price_month;
															
															if($tax1 > 0){
																$year_tax1 = $year_price * ($tax1 / 100);
																$month_tax1 = $month_price * ($tax1 / 100);
															}
															if($tax2 > 0){
																$year_tax2 = $year_price * ($tax2 / 100);
																$month_tax2 = $month_price * ($tax2 / 100);
															}
																$tax_amount_year = dollar2($year_tax1 + $year_tax2);
																$tax_amount_month = dollar2($month_tax1 + $month_tax2);
																
												?>
													<input type="hidden" name="tax_amount_year" value="<? echo $tax_amount_year; ?>">
													<input type="hidden" name="tax_amount_month" value="<? echo $tax_amount_month; ?>">
												<tr>
													<td>
												  <? if($message != "cart"){ ?>
													<b><? echo $form_billing; ?>:</b><br>
													<? if($setting->allow_subs_month == 1 && $message != "cart"){ ?>
														<input type="radio" name="cycle_time" value="month" <?php 
if ($cycle_time == "m") {
    echo "checked";
}
?>
> <? echo $currency->sign; ?><? echo $setting->sub_price_month; ?><? if($tax_amount_month > 0){ ?> + Tax: (<? echo $tax_amount_month; ?>)<? } ?><?php 
示例#4
0
	unset($_SESSION['pub_pid']);
	
		
	$currency_result = mysql_query("SELECT sign,code FROM currency where active = '1'", $db);
	$currency = mysql_fetch_object($currency_result);
	
	$visitor_result = mysql_query("SELECT visitor_id,status,price,tax,shipping,savings,payment_method,done,coupon_id,added,paypal_email,ups,fedex,dhl,track FROM visitors where order_num = '" . $order . "'", $db);
	$visitor_rows = mysql_num_rows($visitor_result);
	$visitor = mysql_fetch_object($visitor_result);
	
	if($visitor_rows > 0){
	$total = dollar2($visitor->price);
	$tax = dollar2($visitor->tax);
	$shipping = dollar2($visitor->shipping);
	$savings = dollar2($visitor->savings);
	$grand = dollar2($total + $shipping + $tax - $savings);
	$coupon_id = $visitor->coupon_id;
	$odate = $visitor->added;
	$email = $visitor->paypal_email;
	$method = $visitor->payment_method;
	$order_num = $_GET['order'];
	
	if($visitor->done == 0){
		$pending = $cmo_process_order_message;
	} else {
		$pending = $cmo_completed_order_message;
	}
	
	$coupon_result = mysql_query("SELECT type FROM coupon where id = '$coupon_id'", $db);
	$coupon_rows = mysql_num_rows($coupon_result);
	$coupon = mysql_fetch_object($coupon_result);