Location: PHPKode > projects > NetLink > netlink_os/egap/file_list.php
<?php
$x=0;
$y=0;
$z=0;
$dir = "../Users/$login/"; 
$tr="#c0c0c0";
$flag = false;
echo "Local File: <select id='file_name' onchange='preview()' onload='preview()' style='width: 200px;'>";
if (is_dir($dir)){
#echo "PASS 1";
  if ($handle = opendir($dir)){
  #echo "PASS 2";
    while (false !== ($file = readdir($handle))) {
    #echo "PASS 3";
      if ($file != "." && $file != "..") {
      #echo "PASS 4";
        if ($file!="www.css"){ 
        #echo "PASS 5";
          echo "<option value='$file'>$file</option>";
        } 
      }
    }
  }
}
echo "</select>&nbsp;<span id='preview'>Preview</span>";
?>
Return current item: NetLink