我有这几个文件，应该怎么放在thinkphp目录。或者应该怎么修改为适合thinkphp框架的结构，需要给我完整，可运行的代码，一次给不完，可以分多次，通过让我给继续的命令，你继续发。
admin.html

<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="https://cdn.bootcss.com/mui/3.7.1/css/mui.min.css" rel="stylesheet">
	</head>
	<style type="text/css">
		form{
			margin: 20px;
		}
		.title{
			margin-top: 100px;
			text-align: center;
		}
	</style>
	<body>
	<div class="title">
		<h2>编辑后台</h2> 
	</div>
<form action="updata.php" method="post"
enctype="multipart/form-data">
<div class="mui-input-row">
	<label>背景图</label>
	<input type="file" name="background" /> 
</div>

<div class="mui-input-row">
	<label>二维码</label>
	<input type="file"  name="code" /> 
</div>
<div class="mui-input-row">
	<label>当前版本</label>
	<input type="text" placeholder="输入内容" name="group1">
</div>
<div class="mui-input-row">
	<label>下载地址</label>
	<input type="text" placeholder="输入内容" name="group2">
</div>
<div class="mui-input-row">
	<label>微信号</label>
	<input type="text" placeholder="输入内容" name="wechat">
</div>
<div class="mui-input-row">
	<label>交流群号</label>
	<input type="text" placeholder="输入内容" name="zb">
</div>
<div class="mui-input-row">
	<label>后台密码</label>
	<input type="text" placeholder="输入内容" name="password">
</div>
<input type="submit" name="submit" value="提交修改" style="margin-left: 80px; width: 200px;"/>
</form>
	</body>
	<script type="text/javascript">

	</script>
</html>
index.php
<?php
$config = include('config.php');
?>


<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="https://cdn.bootcss.com/mui/3.7.1/css/mui.min.css" rel="stylesheet">
	</head>
	<style type="text/css">
		body {
			/* 加载背景图 */
			background-image: url(background.jpg);
			/* 背景图垂直、水平均居中 */
			background-position: center center;
			/* 背景图不平铺 */
			background-repeat: no-repeat;
			/* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
			background-attachment: fixed;
			/* 让背景图基于容器大小伸缩 */
			background-size: cover;
			/* 设置背景颜色，背景图加载过程中会显示背景色 */
			background-color: #464646;
			color: #fff;
			
		}
		.title{
			width: 50%;
			text-align: right;
		}
		table{
			width: 100%;
		}
		td{
			margin: 15px;
			
			height: 70px;
			text-shadow:#000 1px 1px 8px;
		}
		.ts{
			font-size: 20px;
			
			text-align: center;
			text-shadow:#000 2px 2px 8px;
		}
		.ts1{
			font-size: 40px;
			text-align: center;
			text-shadow:#000 2px 2px 8px;
			
		}
		.bg{
			margin: 80px 20px;
			border-radius: 30px;
			background-color: rgba(255,255,255,0.5);
		}
		
		.code{
			width: 150px;
		}
		.codetitle{
			line-height: 2px !important;
		}
	</style>
	<body>
		<div class="bg">
			<div class="ts1">
						皮卡丘发卡
					</div>
					<table border="0" cellspacing="" cellpadding="">
						<tr><td class="title">当前版本：</td><td><?php echo group1 ?></td></tr>
						<tr><td class="title">下载地址：</td><td><a href="<?php echo group2 ?>">点击下载</a></td></tr>
					</table>
			
		</div>
	</body>
	<script type="text/javascript">

	</script>
</html>
update.php

<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="https://cdn.bootcss.com/mui/3.7.1/css/mui.min.css" rel="stylesheet">
	</head>
	<body>
		
	
<?php

if($_POST["password"] == "cai339911"){//这里的123456789 改成你自己的密码再上传到服务器！！！！
	
if($_FILES["code"]["size"]>0){
	$temp = explode(".", $_FILES["code"]["name"]);
	move_uploaded_file($_FILES["code"]["tmp_name"], "code.jpg");
	echo "二维码上传成功<br>" ;
}
	
if($_FILES["background"]["size"]>0){
	$temp = explode(".", $_FILES["background"]["name"]);
	move_uploaded_file($_FILES["background"]["tmp_name"], "background.jpg");
	echo "背景图上传成功<br>";
}
	
	
	if(!empty($_POST["group1"])){
		writeName('group1',$_POST["group1"]);
		echo "版本号修改成功！<br>"  ;
	}
	
	if(!empty($_POST["group2"])){
		writeName('group2',$_POST["group2"]);
		echo "下载地址修改成功！<br>"  ;
	}
	if(!empty($_POST["wechat"])){
		writeName('wechat',$_POST["wechat"]);
		echo "微信号修改成功！<br>"  ;
	}
	if(!empty($_POST["zb"])){
		writeName('zb',$_POST["zb"]);
		echo "交流群修改成功！<br>"  ;
	}
}else{
	echo "密码错误！";
}

?>


<?php
function writeName($key,$val)
{
   $string=file_get_contents('config.php');
   
      //定义正则来查找内容，这里面的key为form表单里面的name
      $yx="/define\('$key','.*?'\);/";
	   //将内容匹配成对应的key和修改的值
      $re="define('$key','$val');";
	  //替换内容
      $string=preg_replace($yx,$re,$string);
   
   file_put_contents('config.php',$string);
}
?>





</body>
</html>
config.php
<?php
	define('group1','28723');
	define('group2','54646345');
	define('wechat','wechat');
	define('zb','002');
?>