<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<script type="text/javascript" src="../jscolor/jscolor.js"></script>
<script type="text/javascript">
		function myfunction(){
		localStorage.clear();
		window.location.reload();
		}
		</script>
</head>
<?php include '../config.php';?>
<body>
<form action="write1.php" method="post">
<div style="width:100%;"> <!-- Main Div -->
<div style="float:left; width:50%;">
    Your Name:  <input type="text" value="<?php echo $yourname ?>" name="YN" /><br />
	Server Address:  <input type="text" value="<?php echo $base ?>" name="YB" /><br />
	<br />
	Username:  <input type="text" value="<?php echo $user ?>" name="user" /><br />
	Password:  <input type="text" value="<?php echo $pass ?>" name="pass" /><br />
	<br />
	Custom Background Colour:<input class="color" name="backgroundcolor" value="<?php echo $custombackground ?>"</td>
	<br />
	Widget Header Colour:<input class="color" name="widgetcolor" value="<?php echo $widgetcolour ?>"</td>
	<br />
	<br />
	KWorld Enabled:  <input name="kworldenabled" id="id" type="checkbox" <?php if($KWorldEnabled > "0")  echo "checked=checked; "; ?> /><br />
	<br />
	Services Widget Enabled:  <input name="servicesvisible" id="id" type="checkbox" <?php if($servicesvisible > "0")  echo "checked=checked; "; ?> /><br />
	Clock Widget Enabled:  <input name="clockvisible" id="id" type="checkbox" <?php if($clockvisible > "0")  echo "checked=checked; "; ?> /><br />
	KKnowledge Widget Enabled:  <input name="kknowledgefeedvisible" id="id" type="checkbox" <?php if($kknowledgefeedvisible > "0")  echo "checked=checked; "; ?> /><br />
	Klips Widget Enabled:  <input name="webclipfeedvisible" id="id" type="checkbox" <?php if($webclipfeedvisible > "0")  echo "checked=checked; "; ?> /><br /><br />
	</div>
<div style="float:right; width:50%; ">	
	Konvos Chatbox Enabled:  <input name="konvoschat" id="id" type="checkbox" <?php if($konvoschat > "0")  echo "checked=checked; "; ?> /><br />
	Konvos Widget Enabled:  <input name="konvosvisible" id="id" type="checkbox" <?php if($konvosvisible > "0")  echo "checked=checked; "; ?> /><br />
	<br />
	Enable Kodi (MovieLib):  <input name="kodivisible" id="id" type="checkbox" <?php if($kodivisible > "0")  echo "checked=checked; "; ?> /><br />
	<br />
	Show Version	:  <input name="showversion" id="id" type="checkbox" <?php if($showversion > "0")  echo "checked=checked; "; ?> /> (<?php echo $localversion ?>)<br />
	<br />
	Icon Background:  <input name="widgetvisible" id="id" type="checkbox" <?php if($widgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
	Custom Icon Background:  <input name="customwidget" id="id" type="checkbox" <?php if($customwidgetbackgroud > "0")  echo "checked=checked; "; ?> /><br />
	Custom Icon Background Colour: <input class="color" name="widgetbackgroudcolour" value="<?php echo $widgetbackgroudcolour ?>"</td>
	<br />
	Reset Icon Positions	:  <input id="def_button" type="button" value="Set to Default" onclick="myfunction()"><br />
	<br />
   <input type="submit"  name="submit" value="Update" />
</form>
</div>
</body>