1 Star 0 Fork 0

景蓝/HomeWorkUpload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ov.php 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
景蓝 提交于 2021-08-20 11:27 . 修改了隐私部分
<?php
header("Content-type=text/html;charset=utf-8");
$time1=date("Y年m月d日 H时i分s秒");
$name=array("Error",'学生姓名');
$tupload=array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
for($i=1;$i<=58;$i++)
{
$doc = "./FileServer/VwNAzOx71Aq/".$i." ".$name[$i].".doc";
$docx = "./FileServer/VwNAzOx71Aq/".$i." ".$name[$i].".docx";
if(file_exists($doc) || file_exists($docx))
{
$tupload[$i]=1;
continue;
}
else
{
$tupload[$i]=0;
}
}
echo "<h1 style=\"text-align:center; color: #009940;\">已提交<br></h1><h3 style=\"text-align:center;\">(截止到 ".$time1.")</h3>"."<h2 style=\"text-align:center;\">";
$uploado=0;
for($i=1;$i<=58;$i++)
{
if($tupload[$i]==1)
{
echo $name[$i]."&ensp;&ensp;";
$uploado++;
}
}
if($uploado==0)
echo "暂无";
else
{
if($uploado>0&&$uploado<58)
echo "<br><br>已提交 <span style=\"color: #009940;\">".$uploado."</span> 人";
if($uploado==58)
echo "<br><br>所有人已经完成提交";
}
echo "</h2><br><h1 style=\"text-align:center;color: red\" >未提交<br></h1><h3 style=\"text-align:center;\">(截止到 ".$time1.")</h3>"."<h2 style=\"text-align:center;\">";
$unuploado=0;
for($i=1;$i<=58;$i++)
{
if($tupload[$i]==0)
{
echo $name[$i]."&ensp;&ensp;";
$unuploado++;
}
}
if($unuploado==0)
echo "已全部提交";
else
echo "<br><br>剩余 <span style=\"color: red\">".$unuploado."</span> 人未提交";
echo "</h2>";
echo '<h2 style="text-align:center; color:#FF3030">查看列表:<a href="./list.php">点我</a></h2>';
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yuriik/HomeWorkUpload.git
git@gitee.com:yuriik/HomeWorkUpload.git
yuriik
HomeWorkUpload
HomeWorkUpload
main

搜索帮助