代码拉取完成,页面将自动刷新
<?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]."  ";
$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]."  ";
$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>';
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。