From: <tr...@us...> - 2012-12-26 18:55:24
|
Revision: 10564 http://sourceforge.net/p/xoops/svn/10564 Author: trabis Date: 2012-12-26 18:55:19 +0000 (Wed, 26 Dec 2012) Log Message: ----------- Adding first version of menus module. It is not finished yet. Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/builder.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/helper.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/menus.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/class/plugin/interface.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/constant/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/default/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/dynamic/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/decorator.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/decorators/smarty/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/changelog.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/credits.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/readme.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/skins.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/docs/usage.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/+.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/0.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/about_kde.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/add.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/add_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/asc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/attach.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/back2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/bookmark.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/bookmark_add.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/button_cancel.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/button_ok.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/cd.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/compfile.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/configure.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/contents.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/decrypted.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/desc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/down.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/down_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edit.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editcopy.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editcut.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editdelete.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editdelete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/editpaste.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/edittrash.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/encrypted.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/exit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileclose.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filefind.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filenew.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filenew2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileopen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileprint.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/fileprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filequickprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesave.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesave2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesaveas.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/filesaveas2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/find.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/folder.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/folder_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/forward2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/frameprint.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/gohome.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/help.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/klipper_dock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/klipper_dock2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/locationbar_erase.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/lock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_delete.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_delete2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_find.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_find2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_forward.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_forward2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_generic.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_generic2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_get.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_get2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_new3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replay.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replayall.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_reply.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_reply2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replyall.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replyall2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replylist.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_replylist2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/mail_send2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/make_kdevelop.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/message_reply.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/misc.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/next.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/openterm.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/people.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/personal.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/previous.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/project_open.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/queue.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/rebuild.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/redo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload3.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/reload_page.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/run.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/show_clips.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/signature.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/stop.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/thumbnail.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/toggle_log.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/undo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/unlock.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up2.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/up_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_choose.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_detailed.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_icon.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_left_right.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_multicolumn.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_remove.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_right.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_sidetree.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_text.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_top_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/view_tree.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag+.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag-.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmag1.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/viewmagfit.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_fullscreen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_new.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/window_nofullscreen.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/actions/wizard.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/delete_med.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/edit_med.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/left_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/right_both.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/view_big.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/images/view_big_off.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/hoverIntent.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/jquery-1.3.2.min.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/jquery.bgiframe.min.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/superfish.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/js/supersubs.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/help.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/help/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_separator.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/bc_separator_end.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/home.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/default/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/style.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/breadcrumb/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_down_purple.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_down_white.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/arrow_over.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/navbar-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/pro_dropdown_3.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/stuHover.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/default/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/mainmenu/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/arrow.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/arrow_over.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/pro_dropdown_3.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/stuHover.js XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_0.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_0a.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_1.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/multiblack/three_1a.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish-navbar.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish-vertical.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/css/superfish.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/arrows-ffffff.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/images/shadow.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/superfish_navbar/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_left.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_mid.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/menu_right.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/nav-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/split.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/images/submenu_top.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_blue/tw_blue.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_left.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_mid.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/menu_right.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/nav-bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/split.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_bg.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_bottom.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/images/submenu_top.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/skin_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/templates/template.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/skins/tw_red/tw_red.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/mysql.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/sql/sql2.sql XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/menu.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/admin/menus.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/blocks/menus_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/xoops_version.php Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,27 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Comments + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +$aboutAdmin = new XoopsModuleAdmin(); +$aboutAdmin->displayNavigation('about.php'); +$aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', true); +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,392 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$helper = Menus::getInstance(); +$menus_handler = $helper->getHandlerMenus(); +$criteria = new CriteriaCompo(); +$criteria->setSort('title'); +$criteria->setOrder('ASC'); +$menus_list = $menus_handler->getList($criteria); + +$indexAdmin = new XoopsModuleAdmin(); + +if (empty($menus_list)) { + $xoops->redirect('admin_menus.php', 1, _AM_MENUS_MSG_NOMENUS); +} + +if (isset($_REQUEST['menu_id']) && in_array($_REQUEST['menu_id'], array_keys($menus_list))) { + $menu_id = $_REQUEST['menu_id']; + $menu_title = $menus_list[$menu_id]; +} else { + $keys = array_keys($menus_list); + $menu_id = $keys[0]; + $menu_title = $menus_list[$menu_id]; +} + +$tpl = new XoopsTpl(); +$tpl->assign('menu_id', $menu_id); +$tpl->assign('menu_title', $menu_title); +$tpl->assign('menus_list', $menus_list); + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); + +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); +$pid = isset($_GET['pid']) ? intval($_GET['pid']) : (isset($_POST['pid']) ? intval($_POST['pid']) : null); + +$weight = isset($_GET['weight']) ? intval($_GET['weight']) : (isset($_POST['weight']) ? intval($_POST['weight']) : 0); +$visible = isset($_GET['visible']) ? intval($_GET['visible']) : (isset($_POST['visible']) ? intval($_POST['visible']) : 0); + +switch ($op) { + case 'add': + menus_admin_add(); + break; + case 'form': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_form(null, $pid); + $xoops->footer(); + break; + case 'edit': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_form($id); + $xoops->footer(); + break; + case 'editok': + menus_admin_edit($id); + break; + case 'del': + menus_admin_confirmdel($id); + break; + case 'delok': + menus_admin_del($id); + break; + case 'delall': + menus_admin_confirmdel(null, 'delallok'); + break; + case 'delallok': + menus_admin_delall(); + break; + case 'move': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + menus_admin_move($id, $weight); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; + case 'toggle': + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + menus_admin_toggle($id, $visible); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; + case 'list': + default: + $xoops->header(); + $indexAdmin->displayNavigation('admin_menu.php'); + echo menus_admin_list($menu_id, $tpl); + $xoops->footer(); + break; +} + +function menus_admin_list($menu_id, XoopsTpl $tpl) +{ + $helper = Menus::getInstance(); + + $this_handler = $helper->getHandlerMenu(); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + $count = $this_handler->getCount($criteria); + $tpl->assign('count', $count); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + if ($count > 0) { + $array = array(); + $menus = $this_handler->getObjects($criteria); + /* @var $menu MenusMenu */ + foreach ($menus as $menu) { + $array[] = $menu->getValues(); + } + $builder = new MenusBuilder($array); + $menusArray = $builder->render(); + $tpl->assign('menus', $menusArray); + } + + $tpl->assign('addform', menus_admin_form()); + + return $tpl->fetch($helper->path('templates/admin/menu.html')); +} + +function menus_admin_del($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + if ($id <= 0) { + $helper->redirect('admin/admin_menu.php', 1); + } + + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + $helper->redirect('admin/admin_menu.php', 1); + } + + if (!$this_handler->delete($obj)) { + $xoops->header(); + $xoops->error(_AM_MENUS_MSG_ERROR, $obj->getVar('id')); + $xoops->footer(); + } + + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_delall() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + + if (!$this_handler->deleteAll()) { + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_ERROR); + } + + $helper->redirect('admin/admin_menu.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_confirmdel($id = null, $op = 'delok') +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + + $xoops->header(); + $xoops->confirm($arr, $helper->url('admin/admin_menu.php'), _AM_MENUS_MSG_AYS); + $xoops->footer(); +} + +function menus_admin_add() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + $criteria = new CriteriaCompo(new Criteria('mid', $_POST['mid'])); + $criteria->setSort('weight'); + $criteria->setOrder('DESC'); + $criteria->setLimit(1); + $menus = $this_handler->getObjects($criteria); + $weight = 1; + if (isset($menus[0]) && is_object($menus[0])) { + $weight = $menus[0]->getVar('weight') + 1; + } + + $obj = $this_handler->create(); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + $obj->setVar('weight', $weight); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $this_handler->update_weights($obj); + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menu.php?op=list&menu_id=' . $obj->getVar('mid'), 2, $msg); +} + +function menus_admin_edit($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menu.php', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $this_handler = $helper->getHandlerMenu(); + $obj = $this_handler->get($id); + if (!isset($_POST['hooks'])) { + $_POST['hooks'] = array(); + } + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menu.php?op=list', 2, $msg); +} + +function menus_admin_form($id = null, $pid = null) +{ + global $menu_id; + + $helper = Menus::getInstance(); + $decorators = MenusDecorator::getAvailableDecorators(); + /* @var $decorator MenusDecoratorInterface */ + + $this_handler = $helper->getHandlerMenu(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + if (isset($pid)) { + $objArray['pid'] = $pid; + } + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $helper->url('admin/admin_menu.php'), "post", true); + $formtitle = new XoopsFormText(_AM_MENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']); + $formalttitle = new XoopsFormText(_AM_MENUS_MENU_ALTTITLE, 'alt_title', 50, 255, $objArray['alt_title']); + + $formlink = new XoopsFormText(_AM_MENUS_MENU_LINK, 'link', 50, 255, $objArray['link']); + + $formimage = new XoopsFormText(_AM_MENUS_MENU_IMAGE, 'image', 50, 255, $objArray['image']); + + $criteria = new CriteriaCompo(new Criteria('mid', $menu_id)); + $criteria->add(new Criteria('id', $id, '<>')); + $criteria->setSort('weight'); + $criteria->setOrder('ASC'); + + $results = $this_handler->getAll($criteria, array('title', 'id', 'pid') /*, false, false*/); + + $parent_tree = new XoopsObjectTree($results, 'id', 'pid'); + $parent_select = $parent_tree->makeSelBox('pid', 'title', '-- ', $objArray['pid'], true); + $formparent = new XoopsFormLabel(_AM_MENUS_MENU_PARENT, $parent_select); + + $formvis = new XoopsFormSelect(_AM_MENUS_MENU_VISIBLE, "visible", $objArray['visible']); + $formvis->addOption("0", _NO); + $formvis->addOption("1", _YES); + //---------------mamba + /* + global $xoopsModule; + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + + $statontxt + = " <img src=". $pathIcon16 .'/1.png'.' '. "alt='" ._YES . "' /> " . _YES + . " "; + $statofftxt + = " <img src=". $pathIcon16 .'/0.png' .' '."alt='" . _NO . "' /> " + . _NO . " "; + $formvis = new XoopsFormRadioYN(_AM_MENUS_MENU_VISIBLE, 'visible', $objArray['visible'], $statontxt, $statofftxt); + //---------------mamba + */ + $formtarget = new XoopsFormSelect(_AM_MENUS_MENU_TARGET, "target", $objArray['target']); + $formtarget->addOption("_self", _AM_MENUS_MENU_TARG_SELF); + $formtarget->addOption("_blank", _AM_MENUS_MENU_TARG_BLANK); + $formtarget->addOption("_parent", _AM_MENUS_MENU_TARG_PARENT); + $formtarget->addOption("_top", _AM_MENUS_MENU_TARG_TOP); + + $formgroups = new XoopsFormSelectGroup(_AM_MENUS_MENU_GROUPS, "groups", true, $objArray['groups'], 5, true); + $formgroups->setDescription(_AM_MENUS_MENU_GROUPS_HELP); + + $formhooks = new XoopsFormSelect(_AM_MENUS_MENU_ACCESS_FILTER, "hooks", $objArray['hooks'], 5, true); + + $accessFilter = array(); + foreach ($decorators as $decorator) { + $decorator->accessFilter($accessFilter); + } + + foreach ($accessFilter as $result) { + $formhooks->addOption($result['method'], $result['name']); + } + $formcss = new XoopsFormText(_AM_MENUS_MENU_CSS, 'css', 50, 255, $objArray['css']); + + $form->addElement($formtitle, true); + $form->addElement($formalttitle); + $form->addElement($formlink); + $form->addElement($formimage); + $form->addElement($formparent); + $form->addElement($formvis); + $form->addElement($formtarget); + $form->addElement($formgroups); + $form->addElement($formhooks); + $form->addElement($formcss); + + $tray = new XoopsFormElementTray('', ''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)) { + $btn->setExtra('onclick="document.location.href=\'admin_menu.php?op=list&menu_id=' . $menu_id . ' \'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + $form->addElement(new XoopsFormHidden('mid', $menu_id)); + + return $form->render(); +} + +function menus_admin_move($id, $weight) +{ + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + $obj->setVar('weight', $weight); + $this_handler->insert($obj); + $this_handler->update_weights($obj); +} + +function menus_admin_toggle($id, $visible) +{ + $visible = ($visible == 1) ? 0 : 1; + $this_handler = Menus::getInstance()->getHandlerMenu(); + $obj = $this_handler->get($id); + $obj->setVar('visible', $visible); + $this_handler->insert($obj); +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,257 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include_once dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$helper = Menus::getInstance(); + +$op = isset($_GET['op']) ? trim($_GET['op']) : (isset($_POST['op']) ? trim($_POST['op']) : 'list'); +$id = isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : null); +$limit = isset($_GET['limit']) ? intval($_GET['limit']) : (isset($_POST['limit']) ? intval($_POST['limit']) : 15); +$start = isset($_GET['start']) ? intval($_GET['start']) : (isset($_POST['start']) ? intval($_POST['start']) : 0); + +$indexAdmin = new XoopsModuleAdmin(); + +switch ($op) { + case 'add': + menus_admin_add(); + break; + case 'edit': + xoops_cp_header(); + $indexAdmin->displayNavigation('admin_menus.php'); + echo menus_admin_form($id); + $xoops->footer(); + break; + case 'editok': + menus_admin_edit($id); + break; + case 'del': + menus_admin_confirmdel($id); + break; + case 'delok': + menus_admin_del($id); + break; + case 'delall': + menus_admin_confirmdel(null, 'delallok'); + break; + case 'delallok': + menus_admin_delall(); + break; + case 'list': + default: + $xoops->header(); + $indexAdmin->displayNavigation('admin_menus.php'); + echo menus_admin_list($start, $limit); + $xoops->footer(); + break; +} + +function menus_admin_list($start = 0, $limit = 0) +{ + $tpl = new XoopsTpl(); + + $myts = MyTextSanitizer::getInstance(); + $helper = Menus::getInstance(); + + $this_handler = $helper->getHandlerMenus(); + + $query = isset($_POST['query']) ? $_POST['query'] : null; + $tpl->assign('query', $query); + + $criteria = new CriteriaCompo(); + if (!is_null($query)) { + $crit = new CriteriaCompo(new Criteria('title', $myts->addSlashes($query) . '%', 'LIKE')); + $criteria->add($crit); + } + + $count = $this_handler->getCount($criteria); + $tpl->assign('count', $count); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('id'); + $criteria->setOrder('ASC'); + + if ($count > 0) { + if ($count > $limit) { + $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); + $tpl->assign('pag', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); + } else { + $tpl->assign('pag', ''); + } + + $objs = $this_handler->getObjects($criteria); + /* @var $obj MenusMenus */ + foreach ($objs as $obj) { + $tpl->append('objs', $obj->getValues()); + } + } + + $tpl->assign('addform', menus_admin_form()); + return $tpl->fetch($helper->path('templates/admin/menus.html')); +} + +function menus_admin_del($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + if ($id <= 0) { + $helper->redirect('admin/admin_menus.php', 1); + } + + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->get($id); + if (!is_object($obj)) { + $helper->redirect('admin/admin_menus.php', 1); + } + + if (!$this_handler->delete($obj)) { + $xoops->header(); + $xoops->error(_AM_MENUS_MSG_ERROR, $obj->getVar('id')); + $xoops->footer(); + exit(); + } + + $this_handler = $helper->getHandlerMenu(); + $criteria = new Criteria('mid', $id); + $this_handler->deleteAll($criteria); + unset($criteria); + + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_delall() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 1, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenus(); + + if (!$this_handler->deleteAll()) { + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_ERROR); + } + + $helper->redirect('admin/admin_menus.php', 2, _AM_MENUS_MSG_SUCCESS); +} + +function menus_admin_confirmdel($id = null, $op = 'delok') +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + $arr = array(); + $arr['op'] = $op; + $arr['id'] = $id; + $xoops->header(); + $xoops->confirm($arr, $helper->url('admin/admin_menus.php'), _AM_MENUS_MSG_AYS); + $xoops->footer(); +} + +function menus_admin_add() +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->create(); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menus.php' . '?op=list', 2, $msg); +} + +function menus_admin_edit($id) +{ + $xoops = Xoops::getInstance(); + $helper = Menus::getInstance(); + if (!$xoops->security()->check()) { + $helper->redirect('admin/admin_menus.php', 3, implode('<br />', $xoops->security()->getErrors())); + } + $this_handler = $helper->getHandlerMenus(); + $obj = $this_handler->get($id); + $obj->setVars($_POST); + + if (!$this_handler->insert($obj)) { + $msg = _AM_MENUS_MSG_ERROR; + } else { + $msg = _AM_MENUS_MSG_SUCCESS; + } + + $helper->redirect('admin/admin_menus.php' . '?op=list', 2, $msg); +} + +function menus_admin_form($id = null) +{ + $helper = Menus::getInstance(); + $this_handler = $helper->getHandlerMenus(); + + if (isset($id)) { + $ftitle = _EDIT; + $obj = $this_handler->get($id); + $objArray = $obj->getValues(); + } else { + $ftitle = _ADD; + $obj = $this_handler->create(); + $objArray = $obj->getValues(); + } + + $form = new XoopsThemeForm($ftitle, 'admin_form', $helper->url('admin/admin_menus.php'), "post", true); + $form->addElement(new XoopsFormText(_AM_MENUS_MENU_TITLE, 'title', 50, 255, $objArray['title']), true); + + $tray = new XoopsFormElementTray('', ''); + $tray->addElement(new XoopsFormButton('', 'submit_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + + if (isset($id)) { + $btn->setExtra('onclick="document.location.href=\'' . $GLOBALS['menus_adminpage'] . '?op=list\'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'addform\').style.display = \'none\'; return false;"'); + } + + $tray->addElement($btn); + $form->addElement($tray); + + if (isset($id)) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('id', $id)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + return $form->render(); +} Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/admin_menus.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,21 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.html 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,29 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Menus + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(__FILE__) . '/header.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); + +$indexAdmin = new XoopsModuleAdmin(); +$indexAdmin->displayNavigation('index.php'); +$indexAdmin->displayIndex(); + +$xoops->footer(); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,41 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + + +$i = -1; +$i++; +$adminmenu[$i]["title"] = _MI_MENUS_ADMMENU0; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = 'home.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_MENUSMANAGER; +$adminmenu[$i]['link'] = "admin/admin_menus.php"; +$adminmenu[$i]["icon"] = 'manage.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_MENUMANAGER; +$adminmenu[$i]['link'] = "admin/admin_menu.php"; +$adminmenu[$i]["icon"] = 'insert_table_row.png'; +$i++; +$adminmenu[$i]['title'] = _MI_MENUS_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]["icon"] = 'about.png'; + Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/index.html 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/menus/blocks/menus_block.php 2012-12-26 18:55:19 UTC (rev 10564) @@ -0,0 +1,197 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package Menus + * @since 1.0 + * @author trabis <lusopoemas@gmai... [truncated message content] |