コード例 #1
0
ファイル: shoprealestatelist.php プロジェクト: ng2k12/MercInc
}
?>
		//var path = '<?php 
echo $serverRoot;
?>
backend/blackmarket.php?update_diamond=true'+"&diamonds="+diamondToAdd;
			//window.location.href = path;
		//exit;
	}

   function purchaseDiamonds(pageURL)
    {
	  <?php 
global $user;
$requiredDiamonds = $diamondsArr['numDiamonds'] - $user->getDiamonds();
$diamonCost = getPurchasedNumDiamondsCost($requiredDiamonds);
?>
	  
	  <?php 
if (strtolower($_SESSION['device_os']) != 'android') {
    ?>
	
	  
	  $('#inline1').html('<h5 class="popupweaponheader">Purchase Diamonds</h5><br/><p>You don\'t have enough Diamonds </p><p>Buy <?php 
    echo $diamonCost['numberOfDiamonds'];
    ?>
 diamonds for $<?php 
    echo $diamonCost['costOfDiamonds'];
    ?>
 only</p><div class="popupbuy"  style="margin:10px auto 0 auto;width:80%;"> <a href="javascript:" onClick="purchase(\''+pageURL+'\');" class="blackbutton popupbuybutton">Buy</a><a href="javascript:" onClick="closePopUp()" class="blackbutton popupbuybutton">Cancel</a> </div>');
	  
コード例 #2
0
ファイル: equipment.php プロジェクト: ng2k12/MercInc
    $diamonCost = getPurchasedNumDiamondsCost($diamondsArr['numDiamonds']);
    ?>
		$('#inline1').html('<h5 class="popupweaponheader">Purchase Diamonds</h5><br/><p>You don\'t have enough Diamonds </p><p>Buy <?php 
    echo $diamonCost['numberOfDiamonds'];
    ?>
 diamonds for only $<?php 
    echo $diamonCost['costOfDiamonds'];
    ?>
!</p><div class="popupbuy"  style="margin:10px auto 0 auto;width:80%;"> <a href="javascript:" onClick="purchase(\''+pageURL+'\');" class="blackbutton popupbuybutton">Buy</a><a href="javascript:" onClick="closePopUp()" class="blackbutton popupbuybutton">Cancel</a> </div>');
	//	<a href="javascript:" onClick="closePopUp()" class="blackbutton popupbuybutton">Cancel</a> 
			//alert('You did not enter a deposit amount.');
	<?php 
} else {
    ?>
	<?php 
    $diamonCost = getPurchasedNumDiamondsCost($diamondsArr['numDiamonds']);
    ?>
		$('#inline1').html('<h5 class="popupweaponheader">Purchase Diamonds</h5><br/><p>You don\'t have enough Diamonds </p><p>Buy <?php 
    echo $diamonCost['numberOfDiamonds'];
    ?>
 diamonds for only $<?php 
    echo $diamonCost['costOfDiamonds'];
    ?>
!</p><div class="popupbuy"  style="margin:10px auto 0 auto;width:80%;"> <a href="<?php 
    echo $serverRoot . 'googlecheckout/checkout_redirect.php';
    ?>
?item_name=<?php 
    echo $diamonCost['numberOfDiamonds'] . ' Diamonds ';
    ?>
&item_description=<?php 
    echo 'Buy ' . $diamonCost['numberOfDiamonds'] . ' Diamonds for ' . $diamonCost['costOfDiamonds'];