|
Project Information
Members
Featured
Downloads
Links
|
Editable jquery tree with PHP CodesThis software is a tree structure runs at web browsers and completes its function, like add item, change name, drag & drop and delete item, by using ajax requests. Items in tree view may be in a database table or they may be files or folders in file system. PHP and MySQL(if items are set to be in a database table) softwares are needed to make this software run. This software also uses jquery javascript framework, simple tree plugin. INSTALLSet either DATABASE_PLATFORM or FILE_SYSTEM_PLATFORMto TARGET_PLATFORMmacro in 'includes/config.php' to determine which platform software will run at. for instance: define ("TARGET_PLATFORM", DATABASE_PLATFORM); if TARGET_PLATFORM is set to FILE_SYSTEM_PLATFORM, FILE_ROOT macro must be set to full path of root folder address. for instance: define("FILE_ROOT", "/home/mekya/public_html/test"); Please make sure that web server user has the right to read and write to the folder specified above. if TARGET_PLATFORM is set to DATABASE_PLATFORM, Set your database parameters in 'includes/config.php', also you can change TREE_TABLE_PREFIX macro whose default value is 'tree'. Then create table according to TREE_TABLE_PREFIX macro CREATE TABLE `tree_elements` ( `Id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) NOT NULL, `position` int(10) unsigned NOT NULL default '0', `ownerEl` int(10) unsigned NOT NULL default '0' COMMENT 'parent', `slave` binary(1) NOT NULL default '0', PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; FeaturesAdd item
Enter the new item's name into the text field, then press Enter to send an ajax request to server and complete the operation or press Esc to cancel the operation. Delete item
Change the position of an item (Drag & Drop)
Change the name of an item
Expand/Collapse AllExpand/Collapse All menu items are available under Root context menu. Saving state of the tree in cookiesState of the tree is saved in cookies and restores the state when tree is initialized later, to disable this feature just make "restoreTreeState" false in "js/init.js" file. DemoDemo of editable jquery tree with php codes SupportIf you need support to modify and use this software, We can share all information we have for free, so feel free to contact us LicenseThis software is free. It can be modified and distributed without notification. DisclaimerThis software guarantees nothing, use it with your own risk. No responsilibity is taken for any situation. Project TeamOzan Koroglu - koroglu.ozan@gmail.com ( Any invitation on linkedin.com is welcome http://www.linkedin.com/in/ahmetoguzmermerkaya ) |