<?php
// INCLUDE HEADER IN PAGE
include('other_header.php');
// GET CURRENT DATE AND TIME
$date = date('Y-m-d H:i:s');
if(isset($_POST['success'])) {
	if($_POST['success'] == 'loggedin') {
	?>
	<div style="margin-top: -80px;" class="alert alert-success" role="alert">
		<strong>Well done!</strong> Successfully logged in.
	</div>
	<?php
	}
}
?>
  <div class="container">
    <div class="text-center">
      <h1><?php echo $title; ?>
      	<small>/
      			<?php
						$accounttypenow = $_SESSION['acctype'];
						if($accounttypenow == 0){//Publisher
					?>
							Active is: Publisher Account
					<?php
						}
						if($accounttypenow == 1){//Advertiser
					?>
							Active is: Advertiser Account
					<?php
						}
					?>
			</small>
		</h1>
 	 </div>
 	 </br>
	
	<div class="col-sm-12">
		<div class="text-center">
      	<h1><small>Widget</small></h1>
 		</div>
 		<h1>How to use?</h1>
 			<p>Every user have his own special widget.</p>
 			<p>To get it to your site is very simple.</p>
 			<p>You just need to copy&paste html code of created iframe, or use widget URL.</p>
 			<p>Scheme:</p>
 			<input style="cursor:copy; opacity: 1;text-align: center;" class="form-control autosize" rows="1" value="<?php echo $mainurl; ?>widget.[USERNAMME]" onmouseover="this.select()" readonly="">
 			<p>Your link:</p>
 			<input style="cursor:copy; opacity: 1;text-align: center;" class="form-control autosize" rows="1" value="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" onmouseover="this.select()" readonly="">
 		<h1>HTML Code</h1>
 			<p>This is only simple HTML code, which contain iframe of your widget link.</p>
 			<p>You can use any width bigger or equal with 370px, but height should be always at 178px.</p>
 			<small>SMALL PACK</small>
 			<textarea style="cursor:copy; opacity: 1;text-align: center;" class="form-control autosize" rows="2" cols="50" onmouseover="this.select()" readonly=""><iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="370" height="178">Browser not supported</iframe></textarea> 
			<center>
 				<iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="370" height="178">Browser not supported</iframe>
 			</center>
 			<small>MEDIUM PACK</small>
 			<textarea style="cursor:copy; opacity: 1;text-align: center;" class="form-control autosize" rows="2" cols="50" onmouseover="this.select()" readonly=""><iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="450" height="178">Browser not supported</iframe></textarea> 
			<center>
 				<iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="500" height="178">Browser not supported</iframe>
 			</center>
 			<small>BIG PACK / FULL WIDTH</small>
 			<textarea style="cursor:copy; opacity: 1;text-align: center;" class="form-control autosize" rows="2" cols="50" onmouseover="this.select()" readonly=""><iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="650" height="178">Browser not supported</iframe></textarea> 
			<center>
 				<iframe src="<?php echo $mainurl; ?>widget.<?php echo $seeP['username']; ?>" scrolling="no" frameBorder="0" width="650" height="178">Browser not supported</iframe>
 			</center>
 	</div>
</div>

<?php
include('other_footer.php');
?>
