From: <txm...@us...> - 2015-04-19 20:33:41
|
Revision: 13039 http://sourceforge.net/p/xoops/svn/13039 Author: txmodxoops Date: 2015-04-19 20:33:25 +0000 (Sun, 19 Apr 2015) Log Message: ----------- Updated Fixed bugs Modified Paths: -------------- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/about.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/building.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/menu.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/modules.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/admin/style.css XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/style.css XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logo.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/fields.js XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/functions.js XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/TDMCreateAutoload.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/TDMCreateSession.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/building.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fieldattributes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fieldelements.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fieldkey.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fieldnull.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields_copy.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fieldtype.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateAbstract.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateArchitecture.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateFile.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateHtmlSmartyCodes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateStructure.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/TDMCreateTableFields.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminAbout.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminFooter.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminHeader.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminIndex.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminMenu.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminObjects.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminPages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/AdminPermissions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/blocks/BlocksFiles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/ClassFiles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/ClassFormElements.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/ClassHelper.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/css/CssStyles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/docs/DocsChangelog.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/docs/DocsFiles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeCommentFunctions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeComments.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeCommon.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeFunctions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeInstall.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeJquery.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeNotifications.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeSearch.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/IncludeUpdate.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageAdmin.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageBlocks.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageDefines.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageHelp.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageMailTpl.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageMain.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/LanguageModinfo.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/sql/SqlFile.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminAbout.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminFooter.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminHeader.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminIndex.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminPages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/TemplatesAdminPermissions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/blocks/TemplatesBlocks.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/TemplatesUserFooter.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/TemplatesUserHeader.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/TemplatesUserIndex.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/TemplatesUserPages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserFooter.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserHeader.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserIndex.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserNotificationUpdate.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserObjects.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserPages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserPrint.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserRss.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserSubmit.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/UserXoopsVersion.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/form/TDMCreateThemeForm.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/TDMCreateFormLabel.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/logoGenerator.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/modules.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/request.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/tables.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/changelog.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/credits.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/install.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/lang_diff.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/license.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/docs/readme.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/include/common.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/include/functions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/include/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/include/install.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/include/update.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/admin.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/help/help.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/help/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/modinfo.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.0 to 1.1.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.1 to 1.15.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.1 to 1.37.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.15 to 1.37.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.37 to 1.38.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/update language 1.38 to 1.39.txt XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_about.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_building.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_footer.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_header.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_index.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_modules.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/xoops_version.php Added Paths: ----------- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/includes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/repository.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/arrow.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/blocks.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/drag.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/editfields.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/fields.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/left_right.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/nb_fields.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/spinner.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/submenu.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/tables.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/16/toggle.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/addmodule.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/addtable.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/brokenlink.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/builder.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/category.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/dashboard.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/download.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/edittable.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/fields.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/plugin.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/32/stats.png XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/blank.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/icons/loading.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/txmodxoops_logo.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/txmodxoops_logo.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/xoopsdevelopmentteam_logo.gif XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/TDMCreateHelper.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/autoloader.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields_class.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields_database.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/abstract.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/abstractfiles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/about.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/menu.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/objects.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/pages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/permissions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/admin/templates.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/architecture.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/blocks/blocks.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/blocks/templates.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/class/classes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/class/formelements.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/class/index.html XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/classes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/formelements.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/classes/helper.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/css/styles.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/docs/changelog.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/docs/docs.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/file.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/form_elements.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/htmlsmartycodes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/comment_functions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/comments.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/common.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/functions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/install.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/jquery.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/notifications.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/search.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/include/update.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/admin.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/blocks.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/defines.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/help.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/mail.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/main.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/language/modinfo.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/sql/mysql.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/sql_file.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/structure.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/tablefields.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/tables_fields.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/TDMCreateHtmlSmartyCodes.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/about.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/pages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/admin/permissions.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/blocks/blocks.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/blocks/templates.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/pages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/pages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/templates/user/templates.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/footer.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/header.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/index.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/notification_update.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/objects.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/pages.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/print.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/rss.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/submit.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/templates.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/files/user/xoopsversion.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/form/TDMCreateFormRadio.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/form/TDMCreateFormRadioCopia.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/form/simpleform.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/form/themeform.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/helper.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/html.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/htmlform.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/htmltable.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/htmltag.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/html/simplelabel.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/session.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/simplelabel.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/about.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/building.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/fields.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/footer.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/header.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/index.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/modules.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/repository.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tables.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/about.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/about.php 2015-04-18 20:46:15 UTC (rev 13038) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/about.php 2015-04-19 20:33:25 UTC (rev 13039) @@ -1,25 +1,25 @@ -<?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. - */ -/** - * tdmcreate module - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package tdmcreate - * @since 2.5.0 - * @author Txmod Xoops http://www.txmodxoops.org - * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $ - */ -include 'header.php'; -$template_main = 'tdmcreate_about.tpl'; -$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('about.php')); -$GLOBALS['xoopsTpl']->assign('about', $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false)); +<?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. + */ +/** + * tdmcreate module + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package tdmcreate + * @since 2.5.0 + * @author Txmod Xoops http://www.txmodxoops.org + * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include 'header.php'; +$template_main = 'tdmcreate_about.tpl'; +$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('about.php')); +$GLOBALS['xoopsTpl']->assign('about', $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false)); include 'footer.php'; \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/building.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/building.php 2015-04-18 20:46:15 UTC (rev 13038) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/building.php 2015-04-19 20:33:25 UTC (rev 13039) @@ -1,97 +1,97 @@ -<?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. - */ -/** - * tdmcreate module - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package tdmcreate - * @since 2.5.0 - * @author Txmod Xoops http://www.txmodxoops.org - * @version $Id: building.php 12258 2014-01-02 09:33:29Z timgno $ - */ -include 'header.php'; -$op = XoopsRequest::getString('op', 'default'); -$mid = XoopsRequest::getInt('mod_id'); -$moduleObj = $tdmcreate->getHandler('modules')->get( $mid ); -// Switch option -switch ($op) { - case 'build': - $template_main = 'tdmcreate_building.tpl'; - $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php')); - // Get var module dirname - $moduleDirname = $moduleObj->getVar('mod_dirname'); - // Directories for copy from to - $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.strtolower($moduleDirname); - $toDir = XOOPS_ROOT_PATH.'/modules/'.strtolower($moduleDirname); - if(isset($moduleDirname)) { - // Clear this module if it's in repository - if(is_dir($fromDir)) { - TDMCreate_clearDir($fromDir); - } - // Clear this module if it's in root/modules - if(is_dir($toDir)) { - TDMCreate_clearDir($toDir); - } - } - // Structure - include_once TDMC_PATH . '/class/files/TDMCreateArchitecture.php'; - $handler = TDMCreateArchitecture::getInstance(); - $handler->getPath( TDMC_PATH ); - $handler->getUploadPath( TDMC_UPLOAD_PATH ); - // Creation of the structure of folders and files - $base_architecture = $handler->createBaseFoldersFiles( $moduleObj ); - if($base_architecture !== false) { - $GLOBALS['xoopsTpl']->assign('base_architecture', true); - } else { - $GLOBALS['xoopsTpl']->assign('base_architecture', false); - } - // Get files - $build = array(); - $files = $handler->createFilesToBuilding( $moduleObj ); - foreach($files as $file) { - if($file) { - $build['list'] = $file; - } - $GLOBALS['xoopsTpl']->append('builds', $build); - } - unset($build); - // Directory to saved all files - $GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname)); - // Copy this module in root modules - if( $moduleObj->getVar('mod_inroot_copy') == 1 ) { - TDMCreate_copyr($fromDir, $toDir); - } - break; - - case 'default': - default: - $template_main = 'tdmcreate_building.tpl'; - $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php')); - // Redirect if there aren't modules - $nbModules = $tdmcreate->getHandler('modules')->getCount(); - if( $nbModules == 0 ) { - redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES ); - } - unset($nbModules); - // Redirect if there aren't tables - /*$nbTables = $tdmcreate->getHandler('tables')->getCount(); - if($nbTables == 0) { - redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES ); - } - unset($nbTables);*/ - include_once TDMC_PATH . '/class/building.php'; - $handler = TDMCreateBuilding::getInstance(); - $form = $handler->getForm(); - $GLOBALS['xoopsTpl']->assign('form', $form->render()); - break; -} -include 'footer.php'; \ No newline at end of file +<?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. + */ +/** + * tdmcreate module + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package tdmcreate + * @since 2.5.0 + * @author Txmod Xoops http://www.txmodxoops.org + * @version $Id: building.php 12258 2014-01-02 09:33:29Z timgno $ + */ +include __DIR__ . DIRECTORY_SEPARATOR . 'header.php'; +$op = XoopsRequest::getString('op', 'default'); +$mid = XoopsRequest::getInt('mod_id'); +$moduleObj = $tdmcreate->getHandler('modules')->get( $mid ); +// Switch option +switch ($op) { + case 'build': + $template_main = 'tdmcreate_building.tpl'; + $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php')); + // Get var module dirname + $moduleDirname = $moduleObj->getVar('mod_dirname'); + // Directories for copy from to + $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.strtolower($moduleDirname); + $toDir = XOOPS_ROOT_PATH.'/modules/'.strtolower($moduleDirname); + if(isset($moduleDirname)) { + // Clear this module if it's in repository + if(is_dir($fromDir)) { + TDMCreate_clearDir($fromDir); + } + // Clear this module if it's in root/modules + if(is_dir($toDir)) { + TDMCreate_clearDir($toDir); + } + } + // Structure + include_once TDMC_PATH . '/class/files/TDMCreateArchitecture.php'; + $handler = TDMCreateArchitecture::getInstance(); + $handler->createPath(TDMC_PATH); + $handler->createUploadPath(TDMC_UPLOAD_PATH); + // Creation of the structure of folders and files + $base_architecture = $handler->createBaseFoldersFiles( $moduleObj ); + if(false !== $base_architecture) { + $GLOBALS['xoopsTpl']->assign('base_architecture', true); + } else { + $GLOBALS['xoopsTpl']->assign('base_architecture', false); + } + // Get files + $build = array(); + $files = $handler->createFilesToBuilding( $moduleObj ); + foreach($files as $file) { + if($file) { + $build['list'] = $file; + } + $GLOBALS['xoopsTpl']->append('builds', $build); + } + unset($build); + // Directory to saved all files + $GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname)); + // Copy this module in root modules + if( $moduleObj->getVar('mod_inroot_copy') == 1 ) { + TDMCreate_copyr($fromDir, $toDir); + } + break; + + case 'default': + default: + $template_main = 'tdmcreate_building.tpl'; + $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php')); + // Redirect if there aren't modules + $nbModules = $tdmcreate->getHandler('modules')->getCount(); + if( $nbModules == 0 ) { + redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES ); + } + unset($nbModules); + // Redirect if there aren't tables + /*$nbTables = $tdmcreate->getHandler('tables')->getCount(); + if($nbTables == 0) { + redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES ); + } + unset($nbTables);*/ + include_once TDMC_PATH . '/class/building.php'; + $handler = TDMCreateBuilding::getInstance(); + $form = $handler->getForm(); + $GLOBALS['xoopsTpl']->assign('form', $form->render()); + break; +} +include __DIR__ . DIRECTORY_SEPARATOR . 'footer.php'; \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-18 20:46:15 UTC (rev 13038) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-19 20:33:25 UTC (rev 13039) @@ -1,320 +1,288 @@ -<?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. - */ -/** - * tdmcreate module - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package tdmcreate - * @since 2.5.0 - * @author Txmod Xoops http://www.txmodxoops.org - * @version $Id: 1.91 fields.php 12258 2014-01-02 09:33:29Z timgno $ - */ -include 'header.php'; -// Recovered value of arguments op in the URL $ -$op = XoopsRequest::getString('op', 'list'); -// Get fields Variables -/*$fieldMid = TDMCreate_CleanVars($_REQUEST, 'field_mid'); -$fieldTid = TDMCreate_CleanVars($_REQUEST, 'field_tid'); -$fieldNumb = TDMCreate_CleanVars($_REQUEST, 'field_numb'); -$fieldName = TDMCreate_CleanVars($_REQUEST, 'field_name', '', 'string');*/ -$fieldMid = XoopsRequest::getInt('field_mid'); -$fieldTid = XoopsRequest::getInt('field_tid'); -$fieldNumb = XoopsRequest::getInt('field_numb'); -$fieldName = XoopsRequest::getString('field_name'); /**/ -// -switch ($op) -{ - case 'list': - default: - $start = XoopsRequest::getInt('start', 0); - $limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('tables_adminpager')); - // Define main template - $template_main = 'tdmcreate_fields.tpl'; - $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' ); - $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js'); - $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js'); - $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php')); - $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); - $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton()); - $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL); - $GLOBALS['xoopsTpl']->assign('tdmc_icons_url', TDMC_ICONS_URL); - $GLOBALS['xoopsTpl']->assign('tdmc_upload_url', TDMC_UPLOAD_URL); - $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgtab_url', TDMC_UPLOAD_IMGTAB_URL); - $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16); - $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32); - //var_dump($sysPathIcon32); - // Redirect if there aren't modules - $countModules = $tdmcreate->getHandler('modules')->getCount(); - if ( $countModules == 0 ) { - redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES ); - } - unset($countModules); - // Redirect if there aren't tables - $countTables = $tdmcreate->getHandler('tables')->getCount(); - if ($countTables == 0) { - redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES ); - } - unset($countTables); - // Get the list of tables - $criteria = new CriteriaCompo(); - $criteria->setSort('table_id ASC, table_name'); - $criteria->setOrder('ASC'); - $countTables = $tdmcreate->getHandler('tables')->getCount($criteria); - $tablesAll = $tdmcreate->getHandler('tables')->getAll($criteria); - unset($criteria); - if ($countTables > 0) - { - foreach (array_keys($tablesAll) as $tid) - { - // Display tables list - $table['id'] = $tid; - $table['mid'] = $tablesAll[$tid]->getVar('table_mid'); - $table['name'] = ucfirst($tablesAll[$tid]->getVar('table_name')); - $table['image'] = $tablesAll[$tid]->getVar('table_image'); - $table['nbfields'] = $tablesAll[$tid]->getVar('table_nbfields'); - $table['autoincrement'] = $tablesAll[$tid]->getVar('table_autoincrement'); - $table['blocks'] = $tablesAll[$tid]->getVar('table_blocks'); - $table['admin'] = $tablesAll[$tid]->getVar('table_admin'); - $table['user'] = $tablesAll[$tid]->getVar('table_user'); - $table['search'] = $tablesAll[$tid]->getVar('table_search'); - // Get the list of fields - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria('field_mid', $table['mid'])); - $criteria->add(new Criteria('field_tid', $tid)); - $criteria->setSort('field_id ASC, field_name'); - $criteria->setOrder('ASC'); - $countFields = $tdmcreate->getHandler('fields')->getCount($criteria); - $fieldsAll = $tdmcreate->getHandler('fields')->getObjects($criteria); - unset($criteria); - // Display fields list - $fields = array(); - $lid = 1; - if ( $countFields > 0 ) - { - foreach (array_keys($fieldsAll) as $fid) - { - $field['id'] = $fid; - $field['lid'] = $lid; - $field['name'] = str_replace('_', ' ', ucfirst($fieldsAll[$fid]->getVar('field_name'))); - $field['parent'] = $fieldsAll[$fid]->getVar('field_parent'); - $field['inlist'] = $fieldsAll[$fid]->getVar('field_inlist'); - $field['inform'] = $fieldsAll[$fid]->getVar('field_inform'); - $field['admin'] = $fieldsAll[$fid]->getVar('field_admin'); - $field['user'] = $fieldsAll[$fid]->getVar('field_user'); - $field['block'] = $fieldsAll[$fid]->getVar('field_block'); - $field['main'] = $fieldsAll[$fid]->getVar('field_main'); - $field['search'] = $fieldsAll[$fid]->getVar('field_search'); - $field['required'] = $fieldsAll[$fid]->getVar('field_required'); - $fields[] = $field; - unset($field); - $lid++; - } - } - unset($lid); - $table['fields'] = $fields; - $GLOBALS['xoopsTpl']->append('tables_list', $table); - unset($table); - } - if ( $countTables > $limit ) { - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; - $pagenav = new XoopsPageNav($countTables, $limit, $start, 'start', 'op=list&limit=' . $limit); - $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); - } - } else { - $GLOBALS['xoopsTpl']->assign('error', _AM_TDMCREATE_THEREARENT_FIELDS); - } - var_dump($fieldMid); - var_dump($fieldTid); - var_dump($fieldNumb); - var_dump($fieldName); - break; - - case 'new': - // Define main template - $template_main = 'tdmcreate_fields.tpl'; - $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' ); - $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js'); - $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php')); - $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list'); - $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list'); - $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton()); - // Form Add - $fieldsObj =& $tdmcreate->getHandler('fields')->create(); - $form = $fieldsObj->getFormNew($fieldMid, $fieldTid, $fieldNumb, $fieldName); - $GLOBALS['xoopsTpl']->assign('form', $form->render()); - // Test -> Will be removed - var_dump($fieldMid); - var_dump($fieldTid); - var_dump($fieldNumb); - var_dump($fieldName); - break; - - case 'save': - // - if ( !$GLOBALS['xoopsSecurity']->check() ) { - redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); - } - $fieldId = XoopsRequest::getInt('field_id'); - // Fields Handler - $fields = $tdmcreate->getHandler('fields'); - // Set Variables - foreach($_POST['field_id'] as $key => $value) - { - switch($value){ - case 'new': - $fieldsObj =& $fields->create(); - break; - default: - $fieldsObj =& $fields->get($value); - break; - } - if (isset($fieldMid) && isset($fieldTid) && !empty($_POST['field_name'][$key])) { - // Set Data - $fieldsObj->setVar( 'field_mid', $fieldMid ); - $fieldsObj->setVar( 'field_tid', $fieldTid ); - $fieldsObj->setVar( 'field_numb', $fieldNumb ); - $fieldsObj->setVar( 'field_name', (isset($_POST['field_name'][$key]) ? $_POST['field_name'][$key] : '') ); - $fieldsObj->setVar( 'field_type', (isset($_POST['field_type'][$key]) ? $_POST['field_type'][$key] : '') ); - $fieldsObj->setVar( 'field_value', (isset($_POST['field_value'][$key]) ? $_POST['field_value'][$key] : '') ); - $fieldsObj->setVar( 'field_attribute', (isset($_POST['field_attribute'][$key]) ? $_POST['field_attribute'][$key] : '') ); - $fieldsObj->setVar( 'field_null', (isset($_POST['field_null'][$key]) ? $_POST['field_null'][$key] : '') ); - $fieldsObj->setVar( 'field_default', (isset($_POST['field_default'][$key]) ? $_POST['field_default'][$key] : '') ); - $fieldsObj->setVar( 'field_key', (isset($_POST['field_key'][$key]) ? $_POST['field_key'][$key] : '') ); - $fieldsObj->setVar( 'field_element', (isset($_POST['field_element'][$key]) ? $_POST['field_element'][$key] : '') ); - $fieldsObj->setVar( 'field_parent', ((isset($_REQUEST['field_parent'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_inlist', ((isset($_REQUEST['field_inlist'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_inform', ((isset($_REQUEST['field_inform'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_admin', ((isset($_REQUEST['field_admin'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_user', ((isset($_REQUEST['field_user'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_block', ((isset($_REQUEST['field_block'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_main', (($key == isset($_REQUEST['field_main'][$key])) ? 1 : 0) ); - $fieldsObj->setVar( 'field_search', ((isset($_REQUEST['field_search'][$key]) == 1) ? 1 : 0) ); - $fieldsObj->setVar( 'field_required', ((isset($_REQUEST['field_required'][$key]) == 1) ? 1 : 0) ); - // Insert Data - $tdmcreate->getHandler('fields')->insert($fieldsObj); - } - } - // Get table name from field table id - $tables =& $tdmcreate->getHandler('tables')->get($fieldTid); - $table_name = $tables->getVar('table_name'); - // Set field elements - if ($fieldsObj->isNew()) { - // Fields Elements Handler - $fieldelementObj =& $tdmcreate->getHandler('fieldelements')->create(); - $fieldelementObj->setVar( 'fieldelement_mid', $fieldMid ); - $fieldelementObj->setVar( 'fieldelement_tid', $fieldTid ); - $fieldelementObj->setVar( 'fieldelement_name', 'Table : '.ucfirst($table_name) ); - $fieldelementObj->setVar( 'fieldelement_value', 'XoopsFormTables-'.ucfirst($table_name) ); - // Insert new field element id for table name - if (!$tdmcreate->getHandler('fieldelements')->insert($fieldelementObj) ) { - $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element'); - } - redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_SAVED_OK, $table_name)); - } else { - redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_UPDATED_OK, $table_name)); - } - // - $GLOBALS['xoopsTpl']->assign('error', $fieldsObj->getHtmlErrors()); - $form = $fieldsObj->getForm(null, $fieldTid); - $GLOBALS['xoopsTpl']->assign('form', $form->render()); - break; - - case 'edit': - // Define main template - $template_main = 'tdmcreate_fields.tpl'; - $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php')); - $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); - $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list'); - $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list'); - $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton()); - // Form Edit - $fieldId = XoopsRequest::getInt('field_id'); - $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId ); - $form = $fieldsObj->getFormEdit($fieldMid, $fieldTid); - $GLOBALS['xoopsTpl']->assign('form', $form->render()); - // Test -> Will be removed - var_dump($fieldTid); - break; - - case 'drag': - $side = TDMCreate_CleanVars( $_POST, 'field_id', 0, 'int' ); - $fieldId = XoopsRequest::getInt('field_id'); - if ( $fieldId > 0 ) { - $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId ); - $fieldsObj->setVar('field_id', $side); - if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) { - redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_SIDE_ERROR); - } - } - break; - - case 'order': - if ( isset($_POST['field_id'] ) ) { - $i = 0; - foreach($_POST['field_id'] as $order) { - if( $order > 0 ) { - $fieldsObj = $tdmcreate->getHandler('fields')->get( $order ); - $fieldsObj->setVar('field_id', $i); - if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) { - redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_ORDER_ERROR); - } - $i++; - } - } - unset($i); - } - exit; - break; - - case 'display': - // - $fields = $tdmcreate->getHandler('fields'); - // Fields Handler - foreach($_REQUEST['field_id'] as $key => $value) - { - /*$fieldId = XoopsRequest::getInt('field_id'); - $fieldParent = XoopsRequest::getInt('field_parent'); - $fieldInlist = XoopsRequest::getInt('field_inlist'); - $fieldInform = XoopsRequest::getInt('field_inform'); - $fieldAdmin = XoopsRequest::getInt('field_admin'); - $fieldUser = XoopsRequest::getInt('field_user'); - $fieldBlock = XoopsRequest::getInt('field_block'); - $fieldMain = XoopsRequest::getInt('field_main'); - $fieldSearch = XoopsRequest::getInt('field_search'); - $fieldRequired = XoopsRequest::getInt('field_required');*/ - - $fieldsObj =& $fields->get($value); - /*$fieldsObj->setVar('field_parent', $fieldParent); - $fieldsObj->setVar('field_inlist', $fieldInlist); - $fieldsObj->setVar('field_inform', $fieldInform); - $fieldsObj->setVar('field_admin', $fieldAdmin); - $fieldsObj->setVar('field_user', $fieldUser); - $fieldsObj->setVar('field_block', $fieldBlock); - $fieldsObj->setVar('field_main', $fieldMain); - $fieldsObj->setVar('field_search', $fieldSearch); - $fieldsObj->setVar('field_required', $fieldRequired);*/ - $fieldsObj->setVar( 'field_parent', $_POST['field_parent'][$key]); - $fieldsObj->setVar( 'field_inlist', $_POST['field_inlist'][$key]); - $fieldsObj->setVar( 'field_inform', $_POST['field_inform'][$key]); - $fieldsObj->setVar( 'field_admin', $_POST['field_admin'][$key]); - $fieldsObj->setVar( 'field_user', $_POST['field_user'][$key]); - $fieldsObj->setVar( 'field_block', $_POST['field_block'][$key]); - $fieldsObj->setVar( 'field_main', $_POST['field_main'][$key]); - $fieldsObj->setVar( 'field_search', $_POST['field_search'][$key]); - $fieldsObj->setVar( 'field_required', $_POST['field_required'][$key]); - // - $fields->insert($fieldsObj, true); - } - redirect_header('fields.php', 3, _AM_TDMCREATE_TOGGLE_SUCCESS); - break; -} -include 'footer.php'; \ No newline at end of file +<?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. + */ +/** + * tdmcreate module + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package tdmcreate + * @since 2.5.0 + * @author Txmod Xoops http://www.txmodxoops.org + * @version $Id: 1.91 fields.php 12258 2014-01-02 09:33:29Z timgno $ + */ +include __DIR__ . DIRECTORY_SEPARATOR . 'header.php'; +// Recovered value of arguments op in the URL $ +$op = XoopsRequest::getString('op', 'list'); +// Get fields Variables +$fieldMid = XoopsRequest::getInt('field_mid'); +$fieldTid = XoopsRequest::getInt('field_tid'); +$fieldNumb = XoopsRequest::getInt('field_numb'); +$fieldName = XoopsRequest::getString('field_name', ''); +// switch op +switch ($op) +{ + case 'list': + default: + $start = XoopsRequest::getInt('start', 0); + $limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('tables_adminpager')); + // Define main template + $template_main = 'tdmcreate_fields.tpl'; + $GLOBALS['xoTheme']->addStylesheet( 'modules/tdmcreate/assets/css/admin/style.css' ); + $GLOBALS['xoTheme']->addScript('modules/tdmcreate/assets/js/functions.js'); + $GLOBALS['xoTheme']->addScript('modules/tdmcreate/assets/js/fields.js'); + $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php')); + $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add'); + $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton()); + $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL); + $GLOBALS['xoopsTpl']->assign('tdmc_icons_url', TDMC_ICONS_URL); + $GLOBALS['xoopsTpl']->assign('tdmc_upload_url', TDMC_UPLOAD_URL); + $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgtab_url', TDMC_UPLOAD_IMGTAB_URL); + $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16); + $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32); + // Redirect if there aren't modules + $countModules = $tdmcreate->getHandler('modules')->getCount(); + if ( $countModules == 0 ) { + redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES ); + } + unset($countModules); + // Redirect if there aren't tables + $countTables = $tdmcreate->getHandler('tables')->getCount(); + if ($countTables == 0) { + redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES ); + } + unset($countTables); + // Get the list of tables + $criteria = new CriteriaCompo(); + $criteria->setSort('table_id ASC, table_name'); + $criteria->setOrder('ASC'); + $countTables = $tdmcreate->getHandler('tables')->getCount($criteria); + $tablesAll = $tdmcreate->getHandler('tables')->getAll($criteria); + unset($criteria); + if ($countTables > 0) + { + foreach (array_keys($tablesAll) as $tid) + { + // Display tables list + $table['id'] = $tid; + $table['mid'] = $tablesAll[$tid]->getVar('table_mid'); + $table['name'] = ucfirst($tablesAll[$tid]->getVar('table_name')); + $table['image'] = $tablesAll[$tid]->getVar('table_image'); + $table['nbfields'] = $tablesAll[$tid]->getVar('table_nbfields'); + $table['autoincrement'] = $tablesAll[$tid]->getVar('table_autoincrement'); + $table['blocks'] = $tablesAll[$tid]->getVar('table_blocks'); + $table['admin'] = $tablesAll[$tid]->getVar('table_admin'); + $table['user'] = $tablesAll[$tid]->getVar('table_user'); + $table['search'] = $tablesAll[$tid]->getVar('table_search'); + // Get the list of fields + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('field_mid', $table['mid'])); + $criteria->add(new Criteria('field_tid', $tid)); + $criteria->setSort('field_id ASC, field_name'); + $criteria->setOrder('ASC'); + $countFields = $tdmcreate->getHandler('fields')->getCount($criteria); + $fieldsAll = $tdmcreate->getHandler('fields')->getObjects($criteria); + unset($criteria); + // Display fields list + $fields = array(); + $lid = 1; + if ( $countFields > 0 ) + { + foreach (array_keys($fieldsAll) as $fid) + { + $field['id'] = $fid; + $field['lid'] = $lid; + $field['order'] = $fieldsAll[$fid]->getVar('field_order'); + $field['name'] = str_replace('_', ' ', ucfirst($fieldsAll[$fid]->getVar('field_name'))); + $field['parent'] = $fieldsAll[$fid]->getVar('field_parent'); + $field['inlist'] = $fieldsAll[$fid]->getVar('field_inlist'); + $field['inform'] = $fieldsAll[$fid]->getVar('field_inform'); + $field['admin'] = $fieldsAll[$fid]->getVar('field_admin'); + $field['user'] = $fieldsAll[$fid]->getVar('field_user'); + $field['block'] = $fieldsAll[$fid]->getVar('field_block'); + $field['main'] = $fieldsAll[$fid]->getVar('field_main'); + $field['search'] = $fieldsAll[$fid]->getVar('field_search'); + $field['required'] = $fieldsAll[$fid]->getVar('field_required'); + $fields[] = $field; + unset($field); + $lid++; + } + } + unset($lid); + $table['fields'] = $fields; + $GLOBALS['xoopsTpl']->append('tables_list', $table); + unset($table); + } + unset($fields); + if ( $countTables > $limit ) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $pagenav = new XoopsPageNav($countTables, $limit, $start, 'start', 'op=list&limit=' . $limit); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); + } + } else { + $GLOBALS['xoopsTpl']->assign('error', _AM_TDMCREATE_THEREARENT_FIELDS); + } + break; + + case 'new': + // Define main template + $template_main = 'tdmcreate_fields.tpl'; + $GLOBALS['xoTheme']->addStylesheet( 'modules/tdmcreate/assets/css/admin/style.css' ); + $GLOBALS['xoTheme']->addScript('modules/tdmcreate/assets/js/fields.js'); + $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php')); + $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list'); + $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list'); + $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton()); + // Form Add + $fieldsObj =& $tdmcreate->getHandler('fields')->create(); + $form = $fieldsObj->getFormNew($fieldMid, $fieldTid, $fieldNumb, $fieldName); + $GLOBALS['xoopsTpl']->assign('form', $form->render()); + break; + + case 'save': + // + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + $fieldId = XoopsRequest::getInt('field_id'); + // Fields Handler + $fields = $tdmcreate->getHandler('fields'); + $orderId = 1; + // Set Variables + foreach($_POST['field_id'] as $key => $value) + { + if(isset($value)){ + $fieldsObj =& $fields->get($value); + } else { + $fieldsObj =& $fields->create(); + } + if (isset($fieldMid) && isset($fieldTid) && !empty($_POST['field_name'][$key])) { + // Set Data + $fieldsObj->setVar( 'field_mid', $fieldMid ); + $fieldsObj->setVar( 'field_tid', $fieldTid ); + $fieldsObj->setVar( 'field_numb', $fieldNumb ); + $fieldsObj->setVar( 'field_order', (isset($_POST['field_order'][$key]) ? $_POST['field_order'][$key] : $orderId) ); + $fieldsObj->setVar( 'field_name', (isset($_POST['field_name'][$key]) ? $_POST['field_name'][$key] : '') ); + $fieldsObj->setVar( 'field_type', (isset($_POST['field_type'][$key]) ? $_POST['field_type'][$key] : '') ); + $fieldsObj->setVar( 'field_value', (isset($_POST['field_value'][$key]) ? $_POST['field_value'][$key] : '') ); + $fieldsObj->setVar( 'field_attribute', (isset($_POST['field_attribute'][$key]) ? $_POST['field_attribute'][$key] : '') ); + $fieldsObj->setVar( 'field_null', (isset($_POST['field_null'][$key]) ? $_POST['field_null'][$key] : '') ); + $fieldsObj->setVar( 'field_default', (isset($_POST['field_default'][$key]) ? $_POST['field_default'][$key] : '') ); + $fieldsObj->setVar( 'field_key', (isset($_POST['field_key'][$key]) ? $_POST['field_key'][$key] : '') ); + $fieldsObj->setVar( 'field_element', (isset($_POST['field_element'][$key]) ? $_POST['field_element'][$key] : '') ); + $fieldsObj->setVar( 'field_parent', ((isset($_REQUEST['field_parent'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_inlist', ((isset($_REQUEST['field_inlist'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_inform', ((isset($_REQUEST['field_inform'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_admin', ((isset($_REQUEST['field_admin'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_user', ((isset($_REQUEST['field_user'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_block', ((isset($_REQUEST['field_block'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_main', (($key == $_REQUEST['field_main']) ? 1 : 0) ); + $fieldsObj->setVar( 'field_search', ((isset($_REQUEST['field_search'][$key]) == 1) ? 1 : 0) ); + $fieldsObj->setVar( 'field_required', ((isset($_REQUEST['field_required'][$key]) == 1) ? 1 : 0) ); + // Insert Data + $tdmcreate->getHandler('fields')->insert($fieldsObj); + } + $orderId++; + ... [truncated message content] |