PHP Classes

PHP AJAX Folder Tree View: Display and manage a tree of nodes stored in MySQL

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (44)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (8 hours ago) RSS 2.0 feedNot enough user ratingsTotal: 478 All time: 5,961 This week: 50Up
Version License PHP version Categories
fdtree 1.11GNU General Publi...5.0HTML, PHP 5, Databases, Content manag..., A...
Description 

Author

This class can display and manage a tree of nodes stored in MySQL.

It can generate HTML and JavaScript to display a tree of nodes stored in a MySQL database table.

The generated tree displays buttons to add, remove and edit the tree nodes using AJAX requests to PHP scripts that update the database table to perform the requested tree node manipulation operations.

Picture of Farzan Dalaee
  Performance   Level  

 

Example

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="Lang" content="en">
        <meta name="author" content="Farzan Dalaee">
        <meta http-equiv="Reply-to" content="farzan.dalaee@gmail.com">
        <meta name="generator" content="PhpED 8.0">
        <meta name="description" content="PHP Tree View Manager (ADD - EDIT - DELETE) is php class for manage tree structures mysql tables using jquery and bootstrap">
        <meta name="keywords" content="FDTree View | TreeView | mysql tree">
        <title>FDTree View</title>
    </head>
    <body>
        <!-- Add jQuery -->
        <script type="text/javascript" src="jquery.js"></script>
        <!-- Add Css File -->
        <link rel="stylesheet" type="text/css" href="FDTree.css">
        <!-- Add Font Awesome -->
        <link rel="stylesheet" type="text/css" href="awesome/css/font-awesome.min.css">
       
        <?php
           
include 'class.FDTree.php';
            include
'config/config.php';

           
$tree = new FDTree('countries','id','title','parent_id','ajaxTree.php','images/','FDTree','Are You Sure To Delete This Node?');
            echo
$tree->tree;
       
?>
</body>
</html>




Details

FDTreeView

PHP Tree View Manager (ADD - EDIT - DELETE) is php class for manage tree structures mysql tables using jquery and FontAwesome

sample example:

<code> $tree = new FDTree('countries','id','title','parent_id','ajaxTree.php','images/','FDTree','Are You Sure?'); echo $tree->tree; </code>


Screenshots  
  • FDTree.PNG
  Files folder image Files  
File Role Description
Files folder imageawesome (4 directories)
Files folder imageconfig (1 file)
Files folder imageimages (2 files)
Accessible without login Plain text file ajaxTree.php Aux. Application script
Plain text file class.FDTree.php Class Class source
Accessible without login Plain text file FDTree.css Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file jquery.js Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Auxiliary data
Accessible without login Plain text file sample.sql Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 97%
Total:478
This week:0
All time:5,961
This week:50Up