PHP Classes

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

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 494 This week: 1All time: 5,864 This week: 42Up
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 (1)  
  • FDTree.PNG
  Files folder image Files (45)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 97%
Total:494
This week:1
All time:5,864
This week:42Up