PHP Classes

File: example_rtl.php

Recommend this page to a friend!
  Classes of Mohammad Keramatifar  >  PHP TreeView  >  example_rtl.php  >  Download  
File: example_rtl.php
Role: Example script
Content type: text/plain
Description: Right To Left example file
Class: PHP TreeView
Display a collapsible tree from a MySQL query
Author: By
Last change:
Date: 6 years ago
Size: 835 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">

 <title>Keramatifar Treeview Right-To-Left Sample</title>
 <link rel="stylesheet" type="text/css" href="rtl.css">
 <script type="text/javascript" src="jquery.js"></script>
 <script type="text/javascript" src="funcs.js"></script>
</head>
<body>

<?php

//include the treeview class
include 'class.treeview_new.php';
//create an instant of Treeview Class
$treeSample = new Treeview('localhost','root','','hk');
//Calling the method to generate tree view and set the queryArray public member for Input Parameter
$treeSample->CreateTreeview('rtl','id','title', 'parent_id', 'perfixForJqueryIDs');
//echo the public member of object names treeResult (Contain the treeview html and jquery codes)
echo $treeSample->treeResult;

?>



</body>
</html>