Browse Source

htm

tags/6.1.9
xushubieli 1 year ago
parent
commit
3db0f4315e
3 changed files with 26 additions and 41 deletions
  1. +22
    -24
      src/admin/templets/sys_safetest.htm
  2. +2
    -15
      src/admin/templets/sys_safetest_viewdiff.htm
  3. +2
    -2
      src/admin/templets/update_guide_getlist.htm

+ 22
- 24
src/admin/templets/sys_safetest.htm View File

@@ -15,39 +15,37 @@
var filetype = $Obj('filetype').value;
var info = $Obj('info').value;
$Obj('loaddiv').style.display = 'block';

fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
}).then((d)=>{
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {
console.log(error);
});
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
}).then((d)=>{
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {
console.log(error);
});
}
function LoadCtClear() {
$Obj('loaddiv').style.display = 'block';

fetch('sys_safetest.php?action=clear').then(resp=>{
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
}).then((d)=>{
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {
$DE('messagetd').innerHTML = errMsg;
});
if (resp.ok) {
return resp.text()
}
throw new Error('系统错误,无法获取数据');
}).then((d)=>{
$DE('messagetd').innerHTML = d;
$Obj('loaddiv').style.display = 'none';
}).catch((error) => {
$DE('messagetd').innerHTML = errMsg;
});
}
</script>
</head>
<body>
<div id='loaddiv' style='display:none'>
<p align='center' style='padding-top:200px'><img src='../static/web/img/loadinglit.gif'>请稍后,正在操作中</p>
<div id="loaddiv" style="display:none">
<p align="center" style="padding-top:200px"><img src="../static/web/img/loadinglit.gif">请稍后,正在操作中</p>
</div>
<?php echo $alter; ?>
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">


+ 2
- 15
src/admin/templets/sys_safetest_viewdiff.htm View File

@@ -13,50 +13,40 @@
font-size: 12px;
font-family: Sans-Serif;
}

h2 {
margin: 0.5em 0 0.1em;
text-align: center;
}

.top {
text-align: center;
}

.textInput {
display: block;
width: 50%;
float: left;
}

textarea {
width: 100%;
height: 300px;
}

label:hover {
text-decoration: underline;
cursor: pointer;
}

.spacer {
margin-left: 10px;
}

.viewType {
font-size: 16px;
clear: both;
text-align: center;
padding: 1em;
}

#diffoutput {
width: 100%;
}
</style>

<script type="text/javascript">

function diffUsingJS(viewType) {
"use strict";
var base = difflib.stringAsLines($("#baseText").val()),
@@ -64,10 +54,8 @@
sm = new difflib.SequenceMatcher(base, newtxt),
opcodes = sm.get_opcodes(),
diffoutputdiv = $("#diffoutput");

diffoutputdiv.html("")

diffoutputdiv.html(diffview.buildView({
diffoutputdiv.html("")
diffoutputdiv.html(diffview.buildView({
baseTextLines: base,
newTextLines: newtxt,
opcodes: opcodes,
@@ -76,7 +64,6 @@
viewType: 0
}));
}

</script>
</head>
<body>


+ 2
- 2
src/admin/templets/update_guide_getlist.htm View File

@@ -14,12 +14,12 @@
<td height="26" background="../static/web/img/tbg.gif">
<div style="float:left">自动更新程序::待下载文件列表</div>
<div style="float:right;padding-right:10px">
<a href='index_body.php' class='np coolbg'>返回系统主页</a>
<a href="index_body.php" class="np coolbg">返回系统主页</a>
</div>
</td>
</tr>
<tr>
<td height='350' valign='top' style="padding:6px;">
<td height="360" valign="top" style="padding:6px">
<?php
echo $allFileList;
?>


Loading…
Cancel
Save