Login   Register  
PHP Classes
elePHPant
Icontem

File: ListFiles/top_lf.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Site Tools  >  ListFiles/top_lf.php  >  Download  
File: ListFiles/top_lf.php
Role: Auxiliary script
Content type: text/plain
Description: Used to list all files in the specified directory
Class: Site Tools
Search, list and view files from a directory
Author: By
Last change:
Date: 7 years ago
Size: 1,189 bytes
 

Contents

Class file image Download

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Top</title>
</head>

<body>
<br />
<br />
<div align="center">Search Path : 
  <input type="text" name="search_path" id="search_path" value="<?=getcwd().'/'?>"/>
  Search Sub Dirs
  <select name="search_sub_dirs" id="search_sub_dirs">
    <option value="1">1</option>
    <option value="0">0</option>
  </select>
  Display Directories Only
  <select name="display_dirs_only" id="display_dirs_only">
    <option value="0">0</option>
    <option value="1">1</option>
  </select>
  <input type="submit" name="display_files" value="DisplayFiles" onclick="DisplayFileNames();"/>
</div>
</body>
<script>
function DisplayFileNames()
    {        
        parent.mainFrame.location.href="bottom_lf.php?search_path="+document.getElementById('search_path').value+"&search_sub_dir="+document.getElementById('search_sub_dirs').value+"&directories_only="+document.getElementById('display_dirs_only').value;
    }
</script>
</html>