<div>
	<div class="page-hd" style="background-image: url(<?php print $site_url; ?>images/recovery.png)">
		<div class="bd-c">
			<h2 class="pre-social"><?php print $lang['redeem-codes']; ?></h2>
		</div>
	</div>
	<div class="content-body">
		<?php if($received>=0) { ?>
		<div class="alert alert-<?php if(!$received || $received==4) print 'danger'; else print 'success'; ?> alert-dismissible fade in" role="alert">
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<?php
				if(!$received)
					print $lang['incorrect-redeem'];
				else if($received==1 || $received==2)
				{
					print $lang['collected_md'].' '.$coins.' '; 
					if($received==1)
						print $lang['md'].' (MD)';
					else print $lang['jd'].' (JD)';
					print '.';
				} else if($received==3)
					print $lang['successfully_added'];
				else
					print $lang['no_space'];
			?>
		</div>
		<?php } ?>
			
		<form action="" method="POST">
			<div class="input-group">
				<input style="margin: 0;" type="text" class="form-control form-control-lg" value="" name="code" required>
				<span class="input-group-btn">
					<button style="height: 41px;" class="btn-custom btn-content" type="submit" data-placement="button">
						<i class="fa fa-check" aria-hidden="true"></i> <?php print $lang['redeem-my-code']; ?>
					</button>
				</span>
			</div>
		</form>
	</div>
</div>