<!DOCTYPE html>
<html>

<head>
<style>
.mybutton {
display:inline-block;
min-width: 50px;
width: 180px;
height: 40px;
padding:5px 10px;

}
</style>
</head>

<?php 

$linkProtocol = "";

$showText = "Use the App";
$hrefName = "#";
$imageName = "";

if($expenseType == "1"){
	$linkProtocol = "expensecountge://";
} else if($expenseType == "2"){
	$linkProtocol = "expensecountme://";
} else if($expenseType == "3"){
	$linkProtocol = "expensecountfe://";
}


if($device == "android"){ 
	$showText = "Use the Android App";
	$alt = "google play";
	
	if($expenseType == "1"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
	} else if($expenseType == "2"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
	} else if($expenseType == "3"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
	} 
	
	$imageName = CDN_URL."images/google_play.png";
} else if($device == "iphone"){ 
	$showText = "Use the iOS App";
	$alt = "iPhone App";
	if($expenseType == "1"){
		$hrefName = "https://itunes.apple.com/us/app/groupexpense/id1150902475?mt=8";
	} else if($expenseType == "2"){
		$hrefName = "https://itunes.apple.com/us/app/messexpense/id1179871989?mt=8";
	} else if($expenseType == "3"){
		$hrefName = "https://itunes.apple.com/us/app/familyexpense/id1193007779?mt=8";
	} 
	$imageName = CDN_URL."images/iphone.jpg";
} else if($device == "windows"){ 
	$showText = "Use the Windows App";
	$alt = "Windows Store";
	if($expenseType == "1"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.groupExpense";
	} else if($expenseType == "2"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.messExpense";
	} else if($expenseType == "3"){
		$hrefName = "https://play.google.com/store/apps/details?id=com.expensecount.familyExpense";
	} 
	
	$imageName = CDN_URL."images/Windows-Store.png";
}





?>


<!-- Head -->
<head>

	<title>ExpenseCount - <?php echo __("LBL_WEBSITE_TITLE");?></title>

	<!-- For-Mobile-Apps -->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="description" content="The solution for managing Group, Mess and Personal Expenses" />
		<meta name="keywords" content="WeXpense, We Xpense, GroupXpense, Group Xpense, ExpenseCount, expensecount.com, expcount, expense count, split expenses, split bills, SplitWise, Spid, MyXpense, My Xpense, My Expense, personal expense tracker, personal budgeting app, shared room expenses, roommates cost sharing, MessXpense, Mess Xpense, Room Xpense, mess expense app, hostel expense manager, group expense manager, shared expense, group trip organizer, travel expense tracker, friends expenses, roommates expenses, Manage Group Expense, Track Expense, expenditure tracking, group activity expenses, bill splitting app, group budgeting, expense sheet, expense report, group expense report, household expense tracker, finance organizer, daily expense manager, monthly expense tracker, We Expense Manager, We Expense Calculator, organize expenses, accounting, tally expenses, split cost app, shared budgeting, organize travel costs, manage expenses, group activities, expense sharing app" />
		<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
	<!-- //For-Mobile-Apps -->

	<!-- Style --> <link rel="stylesheet" href="mobile/css/style.css" type="text/css" media="all">

	<!-- Web-Fonts -->
		<link href='//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800' rel='stylesheet' type='text/css'>
		<link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
	<!-- //Web-Fonts -->

</head>
<!-- //Head -->

<!-- Body -->
<body>

	 

	<div >

		<div>

			<div> 
					

				<br/>	 
				<p>The Solution for organizing group, mess and personal expenses</p>
					 
				 
				<br/>	<br/>	 
				 
				
				<p> Want to open as mobile application?</p><br/>	
					 
				 <p><center><a href="<?php echo $linkProtocol;?>expensecount.com/<?php echo $unique_url;?>" style="padding: 10px"><input type="button"  class="mybutton"  name="useAndroid"  value="<?php echo $showText;?>" /></a></center></p>
					 <br/>
					 
				<p> Want to open in mobile browser?</p><br/>
				 
				 <p style="padding-top:5px"><center><a style="padding: 10px" href="<?php echo $this->webroot;?>Mobile/loadWeb/<?php echo $unique_url;?>"><input type="submit"  class="mybutton"  style="color:white"  name="useAndroid"  value="Continue on the website" /></a></center></p>
					
				
					 <?php if(!empty($imageName)){ ?>
					 <br/><br/><p> Don't have installed yet? Please tap the image below to download the app:</p><br/>
				<center><a href="<?php echo $hrefName;?>"> <img src="<?php echo $imageName;?>" alt="<?php echo $alt;?>"></a></center><br/>
            	<?php } ?>
				 
			 
			</div>

		 

		</div>

	</div>

	 

	<!-- Custom-JavaScript-File-Links -->
		<!-- Default-JavaScript --> <script src="<?php echo CDN_URL; ?>mobile/js/jquery.min.js"></script>
		<!-- Tabs-JavaScript -->    <script src="<?php echo CDN_URL; ?>mobile/js/tabs.js"></script>
	<!-- //Custom-JavaScript-File-Links -->

</body>
<!-- //Body -->

</html>