abstract: <a href="index.php?act=cutFolder&path=<?php echo $path;?>&dirname=<?php echo $p; ?>"><img class="small" src="images/cut.png" al
<a href="index.php?act=cutFolder&path=<?php echo $path;?>&dirname=<?php echo $p; ?>"><img class="small" src="images/cut.png" alt="" title="剪切"/></a>
<a href="#" onclick="delFolder('<?php echo $p; ?>','<?php echo $path?>')"><img class="small" src="images/delete.png" alt="" title="删除"/></a>
elseif ($act == "cutFolder") {
$str = <<<HERE
<form action="index.php?act=doCutFolder" method="post">
剪切为:<input type="text" name="newFolderName" placeholder="剪切文件夹到">
<input type="hidden" name="dirname" value="{$dirname}">
<input type="hidden" name="path" value="{$path}">
<input type="submit" value="剪切">
</form>
HERE;
echo $str;
} elseif ($act == "doCutFolder") {
$newFolderName = $_REQUEST['newFolderName'];
$mes = cut_dir($dirname, $path . "/" . $newFolderName);
alertMes($mes, $url);
} elseif ($act == "delFolder") {
$mes = del_folder($dirname);
alertMes($mes, $url);
}
Correcting teacher:天蓬老师Correction time:2019-03-22 10:41:01
Teacher's summary:作业 的目的, 是让学员理解并会应用所学的知识 ,如果你认为作业的布置有待改进的地方, 可以直接与我们联系的, 我们会改进