Demo
Click here to reload the Sample
Console
Download
Click here to download the lastest version.
Installation
1) Create a table in your database
DROP TABLE IF EXISTS ic_category; CREATE TABLE `ic_category` ( `category_id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `position` int(11) NOT NULL, `user_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`category_id`), KEY `category_id` (`category_id`,`parent_id`,`name`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
2) Copy the files
3) Config the route of the files in the next files:
protreeview/js/protreeview.js
protreeview/php/protreeview.php
4) Add the link to Prototype and Protreeview.js in your html page
<script language="JavaScript" src="js/prototype.js" ></script> <script language="JavaScript" src="js/protreeview.js" ></script> <ul id="protreeview"></ul>
Change Log
0.2 First release
License
Open Software License (“OSL”) v. 3.0
http://opensource.org/licenses/osl-3.0.php