<!doctype html>

<title>直播源修改插件-HFtalk</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="/code/doc/docs.css">
<link rel="stylesheet" href="/code/doc/ziyong1.css">
<link rel="stylesheet" href="/code/lib/codemirror.css">
<link rel="stylesheet" href="/code/addon/dialog/dialog.css">


<article>
    <h1 id=top>KODI在线直播源</h1>

    <div>
        <form action="/upload/{{filename}}" method="post" enctype="multipart/form-data" style="width:300px;height:30px;padding-left: 70%;">       	  
            <input type="submit" name="upload" />
            <input type="file" name="upload_img" accept="image/*" required />
        </form>
    </div>

    <body class='git-project'>
        <div class='twelve wide column'>
            <div class='git-project-content' id='git-project-content'>
                <div class='row column tree-holder' id='tree-holder'>
                    <div class='tree-content-holder' id='tree-content-holder'>
                        <div class='ui flat nopadding segment tree-content' style="background: #d3d2d2">
                            <div class='git-project-recent-commit' id='git-project-info'>
                                <div class='recent-commit'>
                                    <h2 id="mulu" style="width: 75%;">
                                        <img class="avatar circular ui image 20 mini" width="20" alt="" />
                                        频道图片(文件夹：{{filename}})
                                        <span ></span>
                                    <a href="/"  style="padding-left: 90%;" ><i class='iconfont icon-commit'></i>返回</a>
                                    </h2>
                                    
                                </div>
                            </div>
                            <div class='git-project-recent-commit' id='git-project-info' style='height: 40px;'>
                                <div class='recent-commit'>
                                	 <div class='five wide column tree-item-file-name tree-list-item' style="width: 97%">
                                        <i class="iconfont icon-file"></i>
                                        <p style="width: 7%; margin-top: 12px;"><b>序号</b></p>
                                        <p class="intro" style="width: 38%; margin-top: 12px"><b>文件名</b></p>
                                        <a  target="_blank"><img
                                                 height="50" /></a>
                                        <p style="width: 47%; margin-top: 12px;"><b>图像</b></p>
                                        <p style="margin-top: 12px;"><b>操作</b></p>
                                    </div>
                                    
                                </div>
                            </div>
%number = 1
%for file in files : 
	                
                            <div class='recent-commit'>
                                <div class='row tree-item'>
                                    <div class='five wide column tree-item-file-name tree-list-item' style="width: 92%">
                                        <i class="iconfont icon-file"></i>
                                        <p style="width: 5%; margin-top: 12px;"><b>{{number}}</b></p>
                                        <p class="intro" style="width: 40%; margin-top: 12px"><b>{{file}}</b></p>
                                        <a href="/{{filename}}/{{file}}" target="_blank"><img
                                                src="/{{filename}}/{{file}}" height="50" /></a>
                                    </div>
                                    <button onclick="Delete('{{filename}}','{{file}}')">
                                            删除
                                        </button>
                                </div>
                            </div>
%number += 1
%end                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <br>


</article>

<div id="footer" style="text-align:center;">
    技术小白 BUG难免 介意勿用 ——韩风Talk <br><br>
    <a href="https://space.bilibili.com/472755599" target="_blank">
<img border="0" src="/code/doc/logos/Bilibili_logo.png" style="height: 20px;" />
</a>&emsp;&emsp;&emsp;
<a href="https://www.ixigua.com/home/106895204214" target="_blank">
<img border="0" src="/code/doc/logos/xigua.png" style="height: 20px;" />
</a>&emsp;&emsp;&emsp;
<a href="https://www.youtube.com/channel/UCNvrWFnraM8H1Zh8ASKyiqg" target="_blank">
<img border="0" src="/code/doc/logos/YouTube_Logo.png" style="height: 20px;" />
</a>
</div>
<script>
function Delete(x, y) {
var folderName =  "http://" + location.hostname + ":" + location.port + "/" + x ;
del = "/delete/" + x + "/" + y ;
	if (confirm("确定删除？")){
		
		var xhttp = new XMLHttpRequest();
		xhttp.onreadystatechange = function() {
 			if (this.readyState == 4 && xhttp.status == 200) {
 				alert("删除成功");
 				location.replace(folderName);
 				}
			};
	 	xhttp.open("POST", del, true);
		xhttp.send();
    }else{
	 }; 
}
</script>