<?php 
$jsondata = file_get_contents("./api/main.json");
$data = json_decode($jsondata, true);
$json = $data['app'];
$message = '<div class="alert alert-success" id="flash-msg"><h4></i>Items Updated!</h4></div>';
if(isset($_POST['submit_support'])){
$jsonData = file_get_contents("./api/main.json");  
$arrayData = json_decode($jsonData, true);
if(empty($_POST["announcement_enabled"]    )){$announcement_enabled       = 'no';}else { $announcement_enabled          = $_POST["announcement_enabled"]    ;}
if(empty($_POST["message_enabled"]   )){$message_enabled      = 'no';}else { $message_enabled       					= $_POST["message_enabled"]   ;}
if(empty($_POST["updateuserinfo_enabled"]   )){$updateuserinfo_enabled      = 'no';}else { $updateuserinfo_enabled      = $_POST["updateuserinfo_enabled"]   ;}
if(empty($_POST["btn_login_account"]   )){$btn_login_account      = 'no';}else { $btn_login_account      = $_POST["btn_login_account"]   ;}



$replacementData = array('app' => array(
	'announcement_enabled' => $announcement_enabled,
	'message_enabled' 	=> $message_enabled,
	'updateuserinfo_enabled' => $updateuserinfo_enabled,
        'appname'			=>	$_POST['appname'],
        'customerid'		=>	$_POST["customerid"],
        'expire'		=>	$_POST["expire"],  
	'support_email'		=>	$_POST["support_email"],  
	'support_phone'		=>	$_POST["support_phone"],
        'btn_signup'		=>	$_POST["btn_signup"],
        'btn_login_account'		=>	$_POST["btn_login_account"]
	 ));
$newArrayData = array_replace_recursive($arrayData, $replacementData);
$newJsonData = json_encode($newArrayData, JSON_PRETTY_PRINT);
file_put_contents("./api/main.json", $newJsonData);
header("Location: app.php?message=$message");
		}
if(isset($_POST['submit'])){
$jsonData = file_get_contents("./api/main.json");  
$arrayData = json_decode($jsonData, true);
$replacementData = array('app' => array(

	'portal'		=>	$_POST['portal'],
	'portal2'		=>	$_POST["portal2"],  
	'portal3'		=>	$_POST["portal3"],  
	'portal_name'		=>	$_POST["portal_name"],
	'portal2_name'		=>	$_POST["portal2_name"],  
	'portal3_name'		=>	$_POST["portal3_name"], 
	'portal_vod'	=>	$_POST["portal_vod"], 
	'portal_series'	=>	$_POST["portal_series"],
	'epg_url'	=>	$_POST["epg_url"],
	'ovpn_url'	=>	$_POST["ovpn_url"],
	"stream_type" => $_POST["stream_type"]
         ));
$newArrayData = array_replace_recursive($arrayData, $replacementData);
$newJsonData = json_encode($newArrayData, JSON_PRETTY_PRINT);
file_put_contents("./api/main.json", $newJsonData);
header("Location: app.php?message=$message");
		}
		
if(isset($_POST['submit_app_custom'])){
$jsonData = file_get_contents("./api/main.json");  
$arrayData = json_decode($jsonData, true);

if(empty($_POST["btn_live"]    )){$btn_live       = 'No';}else { $btn_live        = $_POST["btn_live"]    ;}
if(empty($_POST["btn_live2"]   )){$btn_live2      = 'No';}else { $btn_live2       = $_POST["btn_live2"]   ;}
if(empty($_POST["btn_live3"]   )){$btn_live3      = 'No';}else { $btn_live3       = $_POST["btn_live3"]   ;}
if(empty($_POST["btn_vod"]     )){$btn_vod        = 'No';}else { $btn_vod         = $_POST["btn_vod"]     ;}
if(empty($_POST["btn_vod2"]    )){$btn_vod2       = 'No';}else { $btn_vod2        = $_POST["btn_vod2"]    ;}
if(empty($_POST["btn_vod3"]    )){$btn_vod3       = 'No';}else { $btn_vod3        = $_POST["btn_vod3"]    ;}
if(empty($_POST["btn_epg"]     )){$btn_epg        = 'No';}else { $btn_epg         = $_POST["btn_epg"]     ;}
if(empty($_POST["btn_epg2"]    )){$btn_epg2       = 'No';}else { $btn_epg2        = $_POST["btn_epg2"]    ;}
if(empty($_POST["btn_epg3"]    )){$btn_epg3       = 'No';}else { $btn_epg3        = $_POST["btn_epg3"]    ;}
if(empty($_POST["btn_series"]  )){$btn_series     = 'No';}else { $btn_series      = $_POST["btn_series"]  ;}
if(empty($_POST["btn_series2"] )){$btn_series2    = 'No';}else { $btn_series2     = $_POST["btn_series2"] ;}
if(empty($_POST["btn_series3"] )){$btn_series3    = 'No';}else { $btn_series3     = $_POST["btn_series3"] ;}
if(empty($_POST["btn_radio"]   )){$btn_radio      = 'No';}else { $btn_radio       = $_POST["btn_radio"]   ;}
if(empty($_POST["btn_radio2"]  )){$btn_radio2     = 'No';}else { $btn_radio2      = $_POST["btn_radio2"]  ;}
if(empty($_POST["btn_radio3"]  )){$btn_radio3     = 'No';}else { $btn_radio3      = $_POST["btn_radio3"]  ;}
if(empty($_POST["btn_catchup"] )){$btn_catchup    = 'No';}else { $btn_catchup     = $_POST["btn_catchup"] ;}
if(empty($_POST["btn_catchup2"])){$btn_catchup2   = 'No';}else { $btn_catchup2    = $_POST["btn_catchup2"];}
if(empty($_POST["btn_catchup3"])){$btn_catchup3   = 'No';}else { $btn_catchup3    = $_POST["btn_catchup3"];}
if(empty($_POST["btn_account"] )){$btn_account    = 'no';}else { $btn_account     = $_POST["btn_account"] ;}
if(empty($_POST["btn_account2"])){$btn_account2   = 'no';}else { $btn_account2    = $_POST["btn_account2"];}
if(empty($_POST["btn_account3"])){$btn_account3   = 'no';}else { $btn_account3    = $_POST["btn_account3"];}
if(empty($_POST["ms"]          )){$ms             = 'no';}else { $ms              = $_POST["ms"]          ;}
if(empty($_POST["ms2"]         )){$ms2            = 'no';}else { $ms2             = $_POST["ms2"]         ;}
if(empty($_POST["ms3"]         )){$ms3            = 'no';}else { $ms3             = $_POST["ms3"]         ;}
if(empty($_POST["btn_fav"]     )){$btn_fav        = 'no';}else { $btn_fav         = $_POST["btn_fav"]     ;}
if(empty($_POST["btn_fav2"]    )){$btn_fav2       = 'no';}else { $btn_fav2        = $_POST["btn_fav2"]    ;}
if(empty($_POST["btn_fav3"]    )){$btn_fav3       = 'no';}else { $btn_fav3        = $_POST["btn_fav3"]    ;}
if(empty($_POST["stream_type"] )){$stream_type    = 'ts';}else { $stream_type     = $_POST["stream_type"] ;}

$replacementData = array('app' => array(
        "btn_live"         =>	$btn_live      ,
        "btn_live2"        =>	$btn_live2     ,
        "btn_live3"        =>	$btn_live3     ,
        "btn_vod"          =>	$btn_vod       ,
        "btn_vod2"         =>	$btn_vod2      ,
        "btn_vod3"         =>	$btn_vod3      ,
        "btn_epg"          =>	$btn_epg       ,
        "btn_epg2"         =>	$btn_epg2      ,
        "btn_epg3"         =>	$btn_epg3      ,
        "btn_series"       =>	$btn_series    ,
        "btn_series2"      =>	$btn_series2   ,
        "btn_series3"      =>	$btn_series3   ,
        "btn_radio"        =>	$btn_radio     ,
        "btn_radio2"       =>	$btn_radio2    ,
        "btn_radio3"       =>	$btn_radio3    ,
        "btn_catchup"      =>	$btn_catchup   ,
        "btn_catchup2"     =>	$btn_catchup2  ,
        "btn_catchup3"     =>	$btn_catchup3  ,
        "btn_account"      =>	$btn_account   ,
        "btn_account2"     =>	$btn_account2  ,
        "btn_account3"     =>	$btn_account3  ,
        "ms"               =>	$ms            ,
        "ms2"              =>	$ms2           ,
        "ms3"              =>	$ms3           ,
        "btn_fav"          =>	$btn_fav       ,
        "btn_fav2"         =>	$btn_fav2      ,
        "btn_fav3"         =>	$btn_fav3      ,
        "stream_type"      =>   $stream_type ));
$newArrayData = array_replace_recursive($arrayData, $replacementData);
$newJsonData = json_encode($newArrayData, JSON_PRETTY_PRINT);
file_put_contents("./api/main.json", $newJsonData);
header("Location: app.php?message=$message");
		}
include ('includes/header.php');
?>

      

<div class="card-body">
<div class="card bg-primary text-white">
  <div class="card-header card-header-warning">                <i class="fa fa-cogs"></i><h2>App Settings</h2></div>
            <div class="card-body">
                <div class="alert alert-primary" role="alert">
                    <div class="row">
                        <div class="col-12">
                                            <strong><h3> Control</h3></strong>
                                        </div>
                                    </label>
                                </div>
                            <form method="post">
                                <div class="form-group ">
                                    <label class="control-label " for="appname">
                                       <strong> App Name</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="appname" name="appname" value="<?=$json['appname']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="customerid">
                                     <strong> Customer Id Number</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" name="customerid"  value="<?=$json['customerid']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="expire">
                                        <strong> App Expiry</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" name="expire"  value="<?=$json['expire']?>" type="text"/>
                                    </div>
                                </div>
				<div class=" ">
                                    <label class="control-label " for="version_code">
                                       <strong> Version Code</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="version_code" name="version_code" value="<?=$json['version_code']?>" disabled>
                                    </div>
                                </div>
 <br>                               
				            <form method="post">
									<div class="form-group ">
                                    <label class="control-label requiredField" for="btn_login_account" >
                                        <strong> Signup Button</strong>
                                    </label>
                                    <select class="select form-control text-primary" id="select" name="btn_login_account">
									    <option value="yes"<?=$json['btn_login_account']=='yes'?'selected':'' ?>>Enabled</option>
                                        <option value="no" <?=$json['btn_login_account']=='no'?'selected':'' ?>>Disabled</option>
									</select>
                                </div>
                               <div class="form-group ">
                                    <label class="control-label " for="btn_signup">
                                       <strong> Signup Url</strong> 
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" name="btn_signup" value="<?=$json['btn_signup'] ?>" type="text"/>
                                    </div>
                               </div>
				<form method="post">
									<div class="form-group ">
                                    <label class="control-label requiredField" for="announcement_enabled" >
                                        <strong> Announcements</strong>
                                    </label>
                                    <select class="select form-control text-primary" id="select" name="announcement_enabled">
									    <option value="yes"<?=$json['announcement_enabled']=='yes'?'selected':'' ?>>Enabled</option>
                                        <option value="no" <?=$json['announcement_enabled']=='no'?'selected':'' ?>>Disabled</option>
									</select>
					                                </div>
				 <form method="post">
									<div class="form-group ">
                                    <label class="control-label requiredField" for="message_enabled" >
                                        <strong> Messages</strong>
                                    </label>
                                    <select class="select form-control text-primary" id="select" name="message_enabled">
									    <option value="yes"<?=$json['message_enabled']=='yes'?'selected':'' ?>>Enabled</option>
                                        <option value="no" <?=$json['message_enabled']=='no'?'selected':'' ?>>Disabled</option>
									</select>
					                                  </div>
					<form method="post">
									<div class="form-group ">
                                    <label class="control-label requiredField" for="updateuserinfo_enabled" >
                                        <strong> Update User Info</strong>
                                    </label>
                                    <select class="select form-control text-primary" id="select" name="updateuserinfo_enabled">
									    <option value="yes"<?=$json['updateuserinfo_enabled']=='yes'?'selected':'' ?>>Enabled</option>
                                        <option value="no" <?=$json['updateuserinfo_enabled']=='no'?'selected':'' ?>>Disabled</option>
									</select>                                </div>
					<form method="post">			
                                <div class="form-group ">
                                    <label class="control-label " for="support_email">
                                       <strong> Developer Name</strong> 
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" name="support_email" value="<?=$json['support_email'] ?>" type="text"/>
                                    </div>
                                </div>
                    <form method="post">
                                <div class="form-group ">
                                    <label class="control-label " for="support_phone">
                                        <strong>Developer Contact</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" name="support_phone"  value="<?=$json['support_phone']?>" type="text"/>
                                    </div>
                                 </div>
								 <div class="form-group ">
                                    <div>
                                        <button class="btn btn-success" name="submit_support" type="submit">
                                            <i class="fa fa-check"></i> <strong> Update Details</strong>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            
      
<div class="card-body">
<div class="card bg-primary text-white">
  <div class="card-header card-header-warning">                <i class="fa fa-server"></i><h2>Provider Settings</h2></div>
            <div class="card-body">
                <div class="alert alert-primary" role="alert">
                    <div class="row">
                        <div class="col-12">
                                            <strong><h3> Portals</h3></strong>
                                        </div>
                                    </label>
                                        
                            <form method="post">
                                  </div>
                                  <div class="form-group ">
                                    <label class="control-label " for="portal_name">
                                        <strong>Portal 1 Name</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal_name" name="portal_name" placeholder="Portal 1 Name" value="<?=$json['portal_name']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal">
                                       <strong> Portal 1 Address</strong> 
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal" name="portal" placeholder="Portal Address 1" value="<?=$json['portal']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal2_name">
                                        <strong>Portal 2 Name</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal2_name" name="portal2_name" placeholder="Portal 2 Name" value="<?=$json['portal2_name']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal2">
                                       <strong> Portal 2 Address</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal2" name="portal2" placeholder="Portal Address 2" value="<?=$json['portal2']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal3_name">
                                       <strong> Portal 3 Name</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal3_name" name="portal3_name" placeholder="Portal 3 Name" value="<?=$json['portal3_name']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal3">
                                       <strong> Portal 3 Address</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal3" name="portal3" placeholder="Portal Address 3" value="<?=$json['portal3']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal_vod">
                                        <strong> VOD Portal</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal_vod" name="portal_vod" placeholder="Custom VOD Portal" value="<?=$json['portal_vod']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="portal_series">
                                       <strong> Series Portal</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="portal_series" name="portal_series" placeholder="Custom Series Portal" value="<?=$json['portal_series']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="epg_url">
                                       <strong> Epg Url</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="epg_url" name="epg_url" placeholder="Epg Url" value="<?=$json['epg_url']?>" type="text"/>    
                                        </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="ovpn_url">
                                        <strong> Vpn Config Url</strong>
                                    </label>
                                    <div class="input-group">
                                        <input class="form-control text-primary" id="ovpn_url" name="ovpn_url" placeholder="OpeVpn Config Url" value="<?=$json['ovpn_url']?>" type="text"/>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label requiredField" for="stream_type" >
                                        <strong> Stream Format</strong>
                                    </label>
                                    <select class="select form-control text-primary" id="select" name="stream_type">
									    <option value="ts"<?=$json['stream_type']=='ts'?'selected':'' ?>>MPEGTS</option>
                                        <option value="m3u8" <?=$json['stream_type']=='m3u8'?'selected':'' ?>>HLS</option>
									</select>   
									</div>
                                    
								    <div class="form-group ">
								        
                                    <div>
                                        <button class="btn btn-success" name="submit" type="submit">
                                          <i class="fa fa-check"></i> <strong> Update Portals</strong>
                                        </button>
                                        </div>
                                </div>
                            </div>
                           </form>
                        </div>
                    </div>
               </div>
            <div class="card-body">
      
<div class="card bg-primary text-white">
  <div class="card-header card-header-warning">                <i class="fa fa-gamepad"></i><h2> Button Control</h2></div>
            <div class="card-body">
                <div class="alert alert-primary" role="alert">
                    <div class="row">
                        <div class="col-12">
                                            <strong><h3> Customisation Options</h3></strong>
                                        </div>
                                    </label>
                                </div>

                    
                        <div class="mr-5">
                            <form method="post">
                                <div class="form-group ">
                                    <label class="control-label " for="btn_live">
                                        Show <strong>Live TV</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_live" id="btn_live" value="Yes" <?=$json['btn_live']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_live">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_live2" id="btn_live2" value="Yes" <?=$json['btn_live2']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_live2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_live3" id="btn_live3" value="Yes" <?=$json['btn_live3']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_live3">Portal 3</label>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="btn_epg">
                                        Show <strong>TV Guide</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_epg" id="btn_epg" value="Yes" <?=$json['btn_epg']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_epg">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_epg2" id="btn_epg2" value="Yes" <?=$json['btn_epg2']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_epg2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_epg3" id="btn_epg3" value="Yes" <?=$json['btn_epg3']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_epg3">Portal 3</label>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="btn_vod">
                                        Show <strong>VOD</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_vod" id="btn_vod" value="Yes" <?=$json['btn_vod']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_vod">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_vod2" id="btn_vod2" value="Yes" <?=$json['btn_vod2']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_vod2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_vod3" id="btn_vod3" value="Yes" <?=$json['btn_vod3']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_vod3">Portal 3</label>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="btn_series">
                                        Show <strong>Series</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_series" id="btn_series" value="Yes" <?=$json['btn_series']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_series">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_series2" id="btn_series2" value="Yes" <?=$json['btn_series2']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_series2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_series3" id="btn_series3" value="Yes" <?=$json['btn_series3']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_series3">Portal 3</label>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="btn_catchup">
                                        Show <strong>Catchup</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_catchup" id="btn_catchup" value="Yes" <?=$json['btn_catchup']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_catchup">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_catchup2" id="btn_catchup2" value="Yes" <?=$json['btn_catchup2']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_catchup2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_catchup3" id="btn_catchup3" value="Yes" <?=$json['btn_catchup3']=='Yes'?'checked':'' ?>>
										<label class="form-check-label" for="btn_catchup3">Portal 3</label>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="control-label " for="btn_radio">
                                        Show <strong>Radio</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_radio" id="btn_radio" value="Yes" <?=$json['btn_radio']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_radio">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_radio2" id="btn_radio2" value="Yes" <?=$json['btn_radio2']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_radio2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_radio3" id="btn_radio3" value="Yes" <?=$json['btn_radio3']=='Yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_radio3">Portal 3</label>
                                    </div>
                                </div>

                                <div class="form-group ">
                                    <label class="control-label " for="ms">
                                        Show <strong>Multi-Screens</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="ms" id="ms" value="yes" <?=$json['ms']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="ms">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="ms2" id="ms2" value="yes" <?=$json['ms2']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="ms2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="ms3" id="ms3" value="yes" <?=$json['ms3']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="ms3">Portal 3</label>
                                    </div>
                                </div>


                                <div class="form-group ">
                                    <label class="control-label " for="btn_fav">
                                        Show <strong>Favorite</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_fav" id="btn_fav" value="yes" <?=$json['btn_fav']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_fav">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_fav2" id="btn_fav2" value="yes" <?=$json['btn_fav2']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_fav2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_fav3" id="btn_fav3" value="yes" <?=$json['btn_fav3']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_fav3">Portal 3</label>
                                    </div>
                                </div>

                                <div class="form-group ">
                                    <label class="control-label " for="btn_account">
                                        Show <strong>Account</strong> Icon?
                                    </label>
                                    <br>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_account" id="btn_account" value="yes" <?=$json['btn_account']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_account">Portal 1</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_account2" id="btn_account2" value="yes" <?=$json['btn_account2']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_account2">Portal 2</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="checkbox" name="btn_account3" id="btn_account3" value="yes" <?=$json['btn_account3']=='yes'?'checked':'' ?>>
                                        <label class="form-check-label" for="btn_account3">Portal 3</label>
                                    </div>
                                        </div>
                                 </br>
                                <div class="form-group">
                                    <div>
                                     <button class="btn btn-success" name="submit_app_custom" type="submit">
                                            <i class="fa fa-check"></i> <strong> Update Icons</strong>
                                        </div>
                                </div>
                            </form>
                        </div>
                    </div>
            
        
    </div>
<?php include ('includes/footer.php');?>
  <script src="js/sb-admin.min.js"></script>
</body>
  <script> 
$(function() {
  $inp = $("#btn_signup");
  $cb = $("#checkbox");
  if ($cb.is(':checked')) {
      $inp.prop('disabled', false);
    } else {
      $inp.prop('disabled', true);
    }

  $cb.on('change', function() {
    if ($cb.is(':checked')) {
      $inp.prop('disabled', false);
    } else {
      $inp.prop('disabled', true);
    }
  });

});



$(document).ready(function () {
    $("#flash-msg").delay(3000).fadeOut("slow");
});
  </script>