<?php
// INCLUDE HEADER IN PAGE
include('other_header.php');
// GET CURRENT DATE AND TIME
$date = date('Y-m-d H:i:s');
if($_POST['save1']) {
	$newtitle = $_POST['title'];
	$description = $_POST['description'];
	///
	$logourl = $_POST['logourl'];
	$logowidth = $_POST['logowidth'];
	$iconurl = $_POST['iconurl'];
	$showtitle = $_POST['showtitle'];
	$showlogo = $_POST['showlogo'];
	$showicon = $_POST['showicon'];
	///
	$keywords = $_POST['keywords'];
	$mainurl = $_POST['mainurl'];
	$homeblocks = $_POST['homeblocks'];
	$paymentproof = $_POST['paymentproof'];
	$hwmchproofs = $_POST['hwmchproofs'];
	$ppvr = $_POST['ppvr'] / 100;
	$currency = $_POST['currency'];
	$mincashout = $_POST['mincashout'];
	$mindeposit = $_POST['mindeposit'];
	$contactem = $_POST['contactem'];
	$smtphost = $_POST['smtphost'];
	$smtpport = $_POST['smtpport'];
	$smtpauth = $_POST['smtpauth'];
	$smtpusername = $_POST['smtpusername'];
	$smtppass = $_POST['smtppass'];
	$frommail = $_POST['frommail'];
	$replytoemail = $_POST['replytoemail'];
	$countrieslist = mysql_query("SELECT * FROM Web_Currency WHERE active='1' ORDER BY id ASC");
	while($rowc = mysql_fetch_array($countrieslist)) 
	{
		mysql_query("UPDATE Web_Currency SET active='0' WHERE active='1'");
	}
	mysql_query("UPDATE Web_Settings SET paymentproof='$paymentproof',hwmchproofs='$hwmchproofs',title='$newtitle',description='$description',keywords='$keywords',mainurl='$mainurl',homeblocks='$homeblocks',ppvr='$ppvr',mincashout='$mincashout',mindeposit='$mindeposit',contactem='$contactem',smtphost='$smtphost',smtpport='$smtpport',smtpauth='$smtpauth',smtpusername='$smtpusername',smtppass='$smtppass',frommail='$frommail',replytoemail='$replytoemail' WHERE id='1'");
	mysql_query("UPDATE Web_Currency SET active='1' WHERE id='$currency'");
	mysql_query("UPDATE Web_New_data SET data2='$iconurl',data3='$logourl',data4='$logowidth',data5='$showicon',data6='$showlogo',data7='$showtitle' WHERE data1='logourl'");
	echo"<script type='text/javascript'>window.location= 'admin.Settings'</script>";
}
if($_POST['save2']) {
	$smactive = $_POST['smactive'];
	$smckey = $_POST['smckey'];
	$smvkey = $_POST['smvkey'];
	$smhkey = $_POST['smhkey'];
	$rcactive = $_POST['rcactive'];
	$rcsitekey = $_POST['rcsitekey'];
	$rcsecretkey = $_POST['rcsecretkey'];
	mysql_query("UPDATE Web_Settings SET smactive='$smactive',smckey='$smckey',smvkey='$smvkey',smhkey='$smhkey',rcactive='$rcactive',rcsitekey='$rcsitekey',rcsecretkey='$rcsecretkey' WHERE id='1'");
	echo"<script type='text/javascript'>window.location= 'admin.Settings'</script>";
}
if($_POST['save3']) {
	$jsonrates = $_POST['jsonrates'];
	$virustotal = $_POST['virustotal'];
	mysql_query("UPDATE Web_Settings SET jsonrates='$jsonrates',virustotal='$virustotal' WHERE id='1'");
	echo"<script type='text/javascript'>window.location= 'admin.Settings'</script>";
}
if($_POST['save4']) {
	$autocontinue = $_POST['autocontinue'];
	$bandur = $_POST['bandur'];
	$viddur = $_POST['viddur'];
	$intdur = $_POST['intdur'];
	$banneractive = $_POST['banneractive'];
	$videoactive = $_POST['videoactive'];
	$interstitialactive = $_POST['interstitialactive'];
	mysql_query("UPDATE Web_Settings SET autocontinue='$autocontinue',viddur='$viddur',bandur='$bandur',intdur='$intdur',banneractive='$banneractive',videoactive='$videoactive',interstitialactive='$interstitialactive' WHERE id='1'");
	echo"<script type='text/javascript'>window.location= 'admin.Settings'</script>";
}
if($_POST['clearcache']) {
	mysql_query("TRUNCATE TABLE `Web_IPcheck`");
	echo"<script type='text/javascript'>window.location= 'admin.Settings'</script>";
}
?>
  <div class="container">
    <div class="text-center">
      <h1><?php echo $title; ?>
      	<small>/Active is: Admin Account
			</small>
		</h1>
 	 </div>
 	 </br>
 	 <?php
		$keywords = $sa['keywords'];								//***************
		$description = $sa['description'];						//***************
		$mainurl = $sa['mainurl'];									//***************
		$mincashout = $sa['mincashout'];							//***************
		$mindeposit = $sa['mindeposit'];							//***************
		$jsonrates = $sa['jsonrates'];							//***************
		$virustotal = $sa['virustotal'];							//***************
		$homeblocks = $sa['homeblocks'];							//***************
		$paymentproof = $sa['paymentproof'];					//***************
		$hwmchproofs = $sa['hwmchproofs'];						//***************
		$ppvr = 100*$sa['ppvr'];									//***************
		$contactem = $sa['contactem'];							//***************
		$title = $sa['title'];										//***************
		$interstitialactive = $sa['interstitialactive'];	//***************
		$banneractive = $sa['banneractive'];					//***************
		$videoactive = $sa['videoactive'];						//***************
		$intdur = $sa['intdur'];									//***************
		$viddur = $sa['viddur'];									//***************
		$bandur = $sa['bandur'];									//***************
		$autocontinue = $sa['autocontinue'];					//***************
		$smtphost = $sa['smtphost'];								//***************
		$smtpport = $sa['smtpport'];								//***************
		$smtpauth = $sa['smtpauth'];								//***************
		$smtpusername = $sa['smtpusername'];					//***************
		$smtppass = $sa['smtppass'];								//***************
		$replytoemail = $sa['replytoemail'];					//***************
		$frommail = $sa['frommail'];								//***************
		$smactive = $sa['smactive'];								//***************
		$smckey = $sa['smckey'];									//***************
		$smvkey = $sa['smvkey'];									//***************
		$smhkey = $sa['smhkey'];									//***************
		$rcactive = $sa['rcactive'];								//***************
		$rcsitekey = $sa['rcsitekey'];							//***************
		$rcsecretkey = $sa['rcsecretkey'];						//***************
	?>
		<div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="well">
			<div class="row">
				<center>
				<form name="csrf_form" id="campaignform" action="" method="POST">
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<span class="input-group-btn">
								<input value="Clear cache" class="btn btn-default" style="width: 150px;" name="clearcache" type="submit">
							</span>
					</div>
					<input type="hidden" name="csrf_token" value="<?php echo $token; ?>">
				</form>
				</br>
				</center>
			</div>
        </div>
        
        <div class="well">
			<div class="row">
				<center>
				<form name="csrf_form" id="campaignform" action="" method="POST">
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<span class="input-group-btn">
								<input value="Save" class="btn btn-default" style="width: 150px;" name="save1" type="submit">
							</span>
					</div>
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<center>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Title:</span>
               				<input name="title" value="<?php echo $title;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Show Title?</span>
               						<input id="showtitle1" class="toggle toggle-left" name="showtitle" value="1" type="radio" <?php if($showtitle == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showtitle1" class="btn">Show</label>
											<input id="showtitle2" class="toggle toggle-right" name="showtitle" value="0" type="radio" <?php if($showtitle == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showtitle2" class="btn">Hide</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Logo URL:</span>
               				<input name="logourl" value="<?php echo $logourl;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Logo Width %:</span>
               				<input name="logowidth" value="<?php echo $logowidth;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Show Logo?</span>
               						<input id="showlogo1" class="toggle toggle-left" name="showlogo" value="1" type="radio" <?php if($showlogo == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showlogo1" class="btn">Show</label>
											<input id="showlogo2" class="toggle toggle-right" name="showlogo" value="0" type="radio" <?php if($showlogo == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showlogo2" class="btn">Hide</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Icon URL [PNG] [SQUARE SIZE]:</span>
               				<input name="iconurl" value="<?php echo $iconurl;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Show Icon?</span>
               						<input id="showicon1" class="toggle toggle-left" name="showicon" value="1" type="radio" <?php if($showicon == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showicon1" class="btn">Show</label>
											<input id="showicon2" class="toggle toggle-right" name="showicon" value="0" type="radio" <?php if($showicon == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="showicon2" class="btn">Hide</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Description:</span>
               				<input name="description" value="<?php echo $description;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Keywords:</span>
               				<input name="keywords" value="<?php echo $keywords;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Web URL:</span>
               				<input name="mainurl" value="<?php echo $mainurl;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Home Blocks:</span>
               						<input id="hm1" class="toggle toggle-left" name="homeblocks" value="1" type="radio" <?php if($homeblocks == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="hm1" class="btn">Activated</label>
											<input id="hm2" class="toggle toggle-right" name="homeblocks" value="0" type="radio" <?php if($homeblocks == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="hm2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">FrontEnd Payment proofs:</span>
               						<input id="pp1" class="toggle toggle-left" name="paymentproof" value="1" type="radio" <?php if($paymentproof == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="pp1" class="btn">Activated</label>
											<input id="pp2" class="toggle toggle-right" name="paymentproof" value="0" type="radio" <?php if($paymentproof == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="pp2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">How much proofs you want display?:</span>
               						<input name="hwmchproofs" value="<?php echo $hwmchproofs;?>" class="form-control" type="text">
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Referral Percentage:</span>
               				<input name="ppvr" value="<?php echo $ppvr;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Currency:</span>
               				<select style="width:100%" class="form-control" name='currency'>
										<?php
											$countrieslist = mysql_query("SELECT * FROM Web_Currency WHERE active='1' ORDER BY id ASC");
											while($rowc = mysql_fetch_array($countrieslist)) 
											{
												echo"<option value='{$rowc['id']}'>{$rowc['ISO']} - {$rowc['name']}</option>";
											}
										?>
										<?php
											$countrieslist = mysql_query("SELECT * FROM Web_Currency WHERE active='0' ORDER BY id ASC");
											while($rowc = mysql_fetch_array($countrieslist)) 
											{
												echo"<option value='{$rowc['id']}'>{$rowc['ISO']} - {$rowc['name']}</option>";
											}
										?>
									</select>
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Minimal withdraw:</span>
               				<input name="mincashout" value="<?php echo $mincashout;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Minimal deposit:</span>
               				<input name="mindeposit" value="<?php echo $mindeposit;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Contact Email:</span>
               				<input name="contactem" value="<?php echo $contactem;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP Host:</span>
               				<input name="smtphost" value="<?php echo $smtphost;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP Port:</span>
               				<input name="smtpport" value="<?php echo $smtpport;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">SMTP Auth:</span>
               						<input id="smtpauth1" class="toggle toggle-left" name="smtpauth" value="true" type="radio" <?php if($smtpauth == 'true'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="smtpauth1" class="btn">True</label>
											<input id="smtpauth2" class="toggle toggle-right" name="smtpauth" value="false" type="radio" <?php if($smtpauth == 'false'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="smtpauth2" class="btn">False</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP Username:</span>
               				<input name="smtpusername" value="<?php echo $smtpusername;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP Password:</span>
               				<input name="smtppass" value="<?php echo $smtppass;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP From email:</span>
               				<input name="frommail" value="<?php echo $frommail;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SMTP Reply to email:</span>
               				<input name="replytoemail" value="<?php echo $replytoemail;?>" class="form-control" type="text">
       					  	</div>
							</div>
							</center>
					</div>
					<input type="hidden" name="csrf_token" value="<?php echo $token; ?>">
				</form>
				</br>
				</center>
			</div>
        </div>
        
        <div class="well">
			<div class="row">
				<center>
				<form name="csrf_form" id="campaignform" action="" method="POST">
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<span class="input-group-btn">
								<input value="Save" class="btn btn-default" style="width: 150px;" name="save2" type="submit">
							</span>
					</div>					
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<center>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">SolveMedia Active:</span>
               						<input id="solve1" class="toggle toggle-left" name="smactive" value="1" type="radio" <?php if($smactive == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="solve1" class="btn">Activated</label>
											<input id="solve2" class="toggle toggle-right" name="smactive" value="0" type="radio" <?php if($smactive == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="solve2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SolveMedia C-Key:</span>
               				<input name="smckey" value="<?php echo $smckey;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SolveMedia V-Key:</span>
               				<input name="smvkey" value="<?php echo $smvkey;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">SolveMedia H-Key:</span>
               				<input name="smhkey" value="<?php echo $smhkey;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">reCAPTCHA Active:</span>
               						<input id="rcaptcha1" class="toggle toggle-left" name="rcactive" value="1" type="radio" <?php if($rcactive == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="rcaptcha1" class="btn">Activated</label>
											<input id="rcaptcha2" class="toggle toggle-right" name="rcactive" value="0" type="radio" <?php if($rcactive == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="rcaptcha2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">reCAPTCHA Site Key:</span>
               				<input name="rcsitekey" value="<?php echo $rcsitekey;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">reCAPTCHA Secret Key:</span>
               				<input name="rcsecretkey" value="<?php echo $rcsecretkey;?>" class="form-control" type="text">
       					  	</div>
							</div>
							</center>
					</div>
					<input type="hidden" name="csrf_token" value="<?php echo $token; ?>">
				</form>
				</br>
				</center>
			</div>
        </div>
        
        <div class="well">
			<div class="row">
				<center>
				<form name="csrf_form" id="campaignform" action="" method="POST">
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<span class="input-group-btn">
								<input value="Save" class="btn btn-default" style="width: 150px;" name="save3" type="submit">
							</span>
					</div>
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<center>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">JSON Rates API:</span>
               				<input name="jsonrates" value="<?php echo $jsonrates;?>" class="form-control" type="text">
               				<input value="Create one here" onclick="window.open('http://jsonrates.com/')" class="btn btn-default" style="width: 150px;" type="button">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">VirusTotal API:</span>
               				<input name="virustotal" value="<?php echo $virustotal;?>" class="form-control" type="text">
               				<input value="Create one here" onclick="window.open('https://www.virustotal.com/')" class="btn btn-default" style="width: 150px;" type="button">
       					  	</div>
							</div>
							</center>
					</div>
					<input type="hidden" name="csrf_token" value="<?php echo $token; ?>">
				</form>
				</br>
				</center>
			</div>
        </div>
        
        <div class="well">
			<div class="row">
				<center>
				<form name="csrf_form" id="campaignform" action="" method="POST">
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<span class="input-group-btn">
								<input value="Save" class="btn btn-default" style="width: 150px;" name="save4" type="submit">
							</span>
					</div>
					<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
							<center>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Interstitial Active:</span>
               						<input id="interstitialactive1" class="toggle toggle-left" name="interstitialactive" value="1" type="radio" <?php if($interstitialactive == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="interstitialactive1" class="btn">Activated</label>
											<input id="interstitialactive2" class="toggle toggle-right" name="interstitialactive" value="0" type="radio" <?php if($interstitialactive == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="interstitialactive2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Video Active:</span>
               						<input id="videoactive1" class="toggle toggle-left" name="videoactive" value="1" type="radio" <?php if($videoactive == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="videoactive1" class="btn">Activated</label>
											<input id="videoactive2" class="toggle toggle-right" name="videoactive" value="0" type="radio" <?php if($videoactive == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="videoactive2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Banner Active:</span>
               						<input id="banneractive1" class="toggle toggle-left" name="banneractive" value="1" type="radio" <?php if($banneractive == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="banneractive1" class="btn">Activated</label>
											<input id="banneractive2" class="toggle toggle-right" name="banneractive" value="0" type="radio" <?php if($banneractive == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="banneractive2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Interstitial Duration:</span>
               				<input name="intdur" value="<?php echo $intdur;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Video Duration:</span>
               				<input name="viddur" value="<?php echo $viddur;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div class="form-group has-success">
								<div class="input-group">
               				<span class="input-group-addon">Banner Duration:</span>
               				<input name="bandur" value="<?php echo $bandur;?>" class="form-control" type="text">
       					  	</div>
							</div>
							<div data-original-title="Enter your long URL" data-toggle="tooltip" data-placement="top" title="555" class="input-group">
								<center>
									<div class="form-group has-success">
										<div class="input-group">
               						<span class="input-group-addon">Auto continue:</span>
               						<input id="acon1" class="toggle toggle-left" name="autocontinue" value="1" type="radio" <?php if($autocontinue == '1'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="acon1" class="btn">Activated</label>
											<input id="acon2" class="toggle toggle-right" name="autocontinue" value="0" type="radio" <?php if($autocontinue == '0'){echo 'checked';}?>><label style="min-width:30.2%;width:auto" class="btn btn-default" for="acon2" class="btn">Deactivated</label>
           							</div>
									</div>
									</center>					
							</div>
							</center>
					</div>
					<input type="hidden" name="csrf_token" value="<?php echo $token; ?>">
				</form>
				</br>
				</center>
			</div>
        </div>
      </div>
    </div>
</div>

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