Kaynağa Gözat

Merge branch 'Dev' of http://10.1.1.202:3030/steve07s/BIM-Monitor into Dev

manto07m 3 yıl önce
ebeveyn
işleme
20f656ab65
1 değiştirilmiş dosya ile 1 ekleme ve 28 silme
  1. 1 28
      script/php/video/getDir.php

+ 1 - 28
script/php/video/getDir.php

@@ -2,7 +2,6 @@
 if (isset($_POST["dir"])) {
     include("../connectSQL_Component.php");
 
-    $tables = [];
     $file_tables = [];
     $dir_tables = [];
     $dir = $_POST["dir"];
@@ -29,30 +28,4 @@ if (isset($_POST["dir"])) {
     echo json_encode($array);
 
     sqlsrv_close($conn);
-}
-
-/*
-    foreach($tables as $table){
-
-            $rootpath = $rootpath."/".$table["dir_name"];
-            $sql = "IF EXISTS(SELECT * FROM [BIMComponents].[dbo].[Video_Table] WHERE dir_name = '".$table["dir_name"]."')
-            BEGIN
-                SELECT * FROM [BIMComponents].[dbo].[Video_Table] WHERE dir_name = '".$table["dir_name"]."'
-            END
-            ELSE
-            BEGIN
-                SELECT * FROM [BIMComponents].[dbo].[Video_Node] WHERE parent = '".$table["dir_name"]."'
-            END";
-            $fetchResult = sqlsrv_query($conn, $sql);
-            while ($row = sqlsrv_fetch_array($fetchResult)) {
-                if(isset($row["file_path"])){
-                    echo "video listing"."<br>";
-                    echo json_encode($row["file_path"],JSON_UNESCAPED_UNICODE)."<br>";
-                }else{
-                    echo "<p>";
-                    echo "<a href='#'><i class='fa fa-folder'></i>" . $row["title"] . "</a>";
-                    echo "</p>";
-                }
-            }
-    }
-*/
+}