Ejemplo n.º 1
0
function Noiddelete($fd_cat_id)
{
    $db = new DB_test();
    moves($fd_cat_id);
    //调用回收旧数据函数
    $query = "delete from tb_category_list  where fd_cat_id='{$fd_cat_id}'";
    $db->query($query);
    die("<script>alert('删除成功');window.close();</script>");
}
Ejemplo n.º 2
0
     echo '<div class="title">' . $title . '</div>';
     if (isset($_POST['submit']) && isset($_POST['is_action'])) {
         echo '<div class="notice_failure">';
         if (empty($_POST['path'])) {
             echo 'Chưa nhập đầy đủ thông tin';
         } else {
             if ($dir == processDirectory($_POST['path'])) {
                 echo 'Đường dẫn mới phải khác đường dẫn hiện tại';
             } else {
                 if (!is_dir($_POST['path'])) {
                     echo 'Đường dẫn mới không tồn tại';
                 } else {
                     if (isPathNotPermission(processDirectory($_POST['path']))) {
                         echo 'Bạn không thể di chuyển tới đường dẫn của File Manager';
                     } else {
                         if (!moves($entry, $dir, processDirectory($_POST['path']))) {
                             echo 'Di chuyển thất bại';
                         } else {
                             goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
                         }
                     }
                 }
             }
         }
         echo '</div>';
     }
     echo $entryHtmlList;
     echo '<div class="list">
 <span>' . printPath($dir, true) . '</span><hr/>
 <form action="action.php?dir=' . $dirEncode . $pages['paramater_1'] . '" method="post">
     <span class="bull">&bull;</span>Đường dẫn tập tin mới:<br/>