Selaa lähdekoodia

upload.html to upload.php

manto07m 3 vuotta sitten
vanhempi
commit
e887b33df2
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      Upload.php
  2. 1 1
      edit.html
  3. 2 2
      script/php/importTool/insertExcel.php

+ 1 - 1
Upload.php

@@ -579,7 +579,7 @@ include($_SERVER['DOCUMENT_ROOT']."/Authorization/script/php/permission/check_ri
         var status = url.searchParams.get("status");
         if (status == 'success') {
             alert("匯入成功!");
-            window.location.href = "./upload.html"
+            window.location.href = "./Upload.php"
         }
         getCategory();
         $("#projectId").change(function () {

+ 1 - 1
edit.html

@@ -12,7 +12,7 @@
     <link rel="stylesheet" href="./assets/vendor/font-awesome/css/font-awesome.css" />
     <script src="./assets/vendor/jquery/jquery.js"></script>
 </head>
-<a href="./upload.html" class="go-to-editor" target="_self">進入至匯入工具</a>
+<a href="./Upload.php" class="go-to-editor" target="_self">進入至匯入工具</a>
 <form id="form" method="post" enctype="multipart/form-data" action="./script/php/importTool/updateProject.php">
 
     <h1><strong>MAA</strong> 設計群編輯工具</h1>

+ 2 - 2
script/php/importTool/insertExcel.php

@@ -27,7 +27,7 @@ if (isset($_POST['file'])) {
     $project_name = $_POST['projectName'];
     $category_id = $_POST['categoryId'];
 } else {
-    header("Location: ../../../upload.html#error");
+    header("Location: ../../../Upload.php#error");
 }
 
 $filename = "uploads/{$file}";
@@ -145,4 +145,4 @@ for ($s = 0; $s < $sheetCount; $s++) {
 //             END";
 // $fetchResult = sqlsrv_query($conn, $sql);
 sqlsrv_close($conn);
-header("Location: ../../../upload.html?status=success");
+header("Location: ../../../Upload.php?status=success");