|
From: <txm...@us...> - 2013-03-24 11:59:30
|
Revision: 11298
http://sourceforge.net/p/xoops/svn/11298
Author: txmodxoops
Date: 2013-03-24 11:59:23 +0000 (Sun, 24 Mar 2013)
Log Message:
-----------
Updated
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldelements.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldkey.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldnull.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields_elements.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldtype.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_htmltable.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_modules.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_structures.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_tables.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_themeform.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_language.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_menu.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_pages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_permissions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_architecture.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_blocks.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_blocks_language.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_blocks_templates.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_changelog.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_class.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_css_style.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_help_language.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_comments_functions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_coms.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_configs.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_functions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_install.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_jquery.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_notification.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_search.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_js_jquery.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_languages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_main_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_main_index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_main_language.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_modinfo_language.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_sql.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_admin_about.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_admin_help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_pages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_comments.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_pages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/common.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/functions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/functions_const.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/install.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 about.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
echo $adminMenu->addNavigation("about.php");
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,34 +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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 admin_footer.php 11297 2013-03-24 10:58:10Z timgno $
*/
$fsname = $GLOBALS['xoopsModule']->getInfo('forum_site_name');
echo "<div align='center'><a href='http://www.xoops.org' target='_blank'>
<img src='".$pathIcon32."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
echo "<div class='center pad5'>" . sprintf(_AM_TDMCREATE_MAINTAINEDBY, $GLOBALS['xoopsModule']->getVar('dirname'), $GLOBALS['xoopsModule']->getInfo('forum_site_url'), $fsname, $fsname) . "</div>";
-xoops_cp_footer();
+xoops_cp_footer();
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 admin_header.php 11297 2013-03-24 10:58:10Z timgno $
*/
include_once dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php';
$dirname = $GLOBALS['xoopsModule']->getVar('dirname');
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 building.php 11297 2013-03-24 10:58:10Z timgno $
*/
include 'admin_header.php';
// Define Stylesheet
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 fields.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
// Recovered the value of the argument op in the URL $
@@ -44,6 +35,7 @@
$adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=add', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
+ echo '<div class="center errorMsg">Add, Edit or List View in Tables</div><br />';
break;
case "add":
@@ -63,7 +55,7 @@
$obj =& $fieldsHandler->create();
}
//Form fields
- $obj->setVars(array('field_mid' => $table_mid, 'field_tid' => $table_id, 'field_name' => $table_fieldname,
+ $obj->setVars(array('field_mid' => $table_mid, 'field_tid' => $table_id, 'field_name' => $_POST['field_name'],
'field_numb' => $table_nbfields, 'field_type' => $_POST['field_type'],
'field_value' => $_POST['field_value'], 'field_attribute' => $_POST['field_attribute'],
'field_null' => $_POST['field_null'], 'field_default' => $_POST['field_default'],
@@ -79,7 +71,7 @@
redirect_header('tables.php', 2, _AM_TDMCREATE_FORMOK);
}
echo $obj->getHtmlErrors();
- $form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
+ $form = $obj->getForm();
$form->display();
break;
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,21 +1,22 @@
<?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 By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.xoops.org)
+ * tdmcreate module
*
- * 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.
- *
- * @license TDM GPL license
- * @author TDM TEAM DEV MODULE
- *
- * Version : 1.38 Thu 2012/04/12 14:04:25 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 includes.php 11297 2013-03-24 10:58:10Z timgno $
*/
include '../../../include/cp_header.php';
include_once("../include/functions.php");
@@ -36,7 +37,6 @@
include_once $cPath.'/const_blocks_templates.php';
include_once $cPath.'/const_class.php';
include_once $cPath.'/const_js_jquery.php';
-
include_once $cPath.'/const_admin_header.php';
include_once $cPath.'/const_admin_footer.php';
include_once $cPath.'/const_admin_menu.php';
@@ -58,6 +58,4 @@
include_once $cPath.'/const_templates_pages.php';
include_once $cPath.'/const_templates_footer.php';
include_once $cPath.'/const_templates_admin_about.php';
-include_once $cPath.'/const_templates_admin_help.php';
-
-?>
\ No newline at end of file
+include_once $cPath.'/const_templates_admin_help.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 index.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
//count "total modules"
@@ -39,5 +30,4 @@
$adminMenu->addInfoBoxLine(_AM_TDMCREATE_STATISTICS,_AM_TDMCREATE_THEREARE_NUMTABLES, $count_tbls, ($count_tbls == 0) ? $r : $g);
echo $adminMenu->addNavigation("index.php");
echo $adminMenu->renderIndex();// Render Index
-include "admin_footer.php";
-?>
\ No newline at end of file
+include "admin_footer.php";
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/menu.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/menu.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,54 +1,44 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 menu.php 11297 2013-03-24 10:58:10Z timgno $
*/
$dirname = basename( dirname( dirname( __FILE__ ) ) ) ;
-$module_handler =& xoops_gethandler("module");
+$module_handler =& xoops_gethandler('module');
$xoopsModule =& XoopsModule::getByDirname($dirname);
-$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
-$pathImageAdmin = $moduleInfo->getInfo("icons32");
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageAdmin = $moduleInfo->getInfo('icons32');
$adminmenu = array(); $i = 1;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU1;
-$adminmenu[$i]["link"] = "admin/index.php";
-$adminmenu[$i]["icon"] = "images/32/dashboard.png"; $i++;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU2;
-$adminmenu[$i]["link"] = "admin/modules.php";
-$adminmenu[$i]["icon"] = "images/32/addmodule.png"; $i++;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU3;
-$adminmenu[$i]["link"] = "admin/tables.php";
-$adminmenu[$i]["icon"] = "images/32/addtable.png"; $i++;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU4;
-$adminmenu[$i]["link"] = "admin/fields.php";
-$adminmenu[$i]["icon"] = "images/32/fields.png"; $i++;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU5;
-$adminmenu[$i]["link"] = "admin/building.php";
-$adminmenu[$i]["icon"] = "images/32/builder.png"; $i++;
-$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU6;
-$adminmenu[$i]["link"] = "admin/about.php";
-$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; unset( $i );
-?>
\ No newline at end of file
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU1;
+$adminmenu[$i]['link'] = 'admin/index.php';
+$adminmenu[$i]['icon'] = 'images/icons/32/dashboard.png'; $i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU2;
+$adminmenu[$i]['link'] = 'admin/modules.php';
+$adminmenu[$i]['icon'] = 'images/icons/32/addmodule.png'; $i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU3;
+$adminmenu[$i]['link'] = 'admin/tables.php';
+$adminmenu[$i]['icon'] = 'images/icons/32/addtable.png'; $i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU4;
+$adminmenu[$i]['link'] = 'admin/fields.php';
+$adminmenu[$i]['icon'] = 'images/icons/32/fields.png'; $i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU5;
+$adminmenu[$i]['link'] = 'admin/building.php';
+$adminmenu[$i]['icon'] = 'images/icons/32/builder.png'; $i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU6;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = '../../'.$pathImageAdmin.'/about.png'; unset( $i );
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
// Recovered the value of the argument op in the URL $
@@ -35,11 +26,11 @@
case "list":
default:
echo $adminMenu->addNavigation('modules.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=add', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
echo $adminMenu->renderButton();
$criteria = new CriteriaCompo();
- $criteria->setSort("module_id ASC, module_name");
- $criteria->setOrder("ASC");
+ $criteria->setSort('mod_id ASC, mod_name');
+ $criteria->setOrder('ASC');
$numrows = $modulesHandler->getCount();
if (isset($_REQUEST['limit'])) {
$criteria->setLimit($_REQUEST['limit']);
@@ -66,8 +57,8 @@
//Display modules list
if ($numrows>0)
{
- $yes = "<img src='../images/16/green.png' alt='"._YES."' title='"._YES."' />";
- $no = "<img src='../images/16/red.png' alt='"._NO."' title='"._NO."' />";
+ $yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
+ $no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
echo "<table width='100%' cellspacing='1' class='outer'>
<tr>
<th class='center'>"._AM_TDMCREATE_MODULE_ID."</th>
@@ -90,28 +81,28 @@
echo "<tr class='".$class."'>";
$class = ($class == "even") ? "odd" : "even";
echo "<td class='center'>".$i."</td>";
- echo "<td class='center'>".$mods_arr[$i]->getVar('module_name')."</td>";
- echo "<td class='center'>".$mods_arr[$i]->getVar('module_version')."</td>";
- echo "<td class='center'><img src='".TDMC_UPLOAD_URL."/images/modules/".$mods_arr[$i]->getVar('module_image')."' height='30px' title='module_image' alt='module_image'></td>";
- echo "<td class='center'>".$mods_arr[$i]->getVar('module_release')."</td>";
- echo "<td class='center'>".$mods_arr[$i]->getVar('module_status')."</td>";
+ echo "<td class='center'>".$mods_arr[$i]->getVar('mod_name')."</td>";
+ echo "<td class='center'>".$mods_arr[$i]->getVar('mod_version')."</td>";
+ echo "<td class='center'><img src='".TDMC_UPLOAD_URL."/images/modules/".$mods_arr[$i]->getVar('mod_image')."' height='30px' title='mod_image' alt='mod_image'></td>";
+ echo "<td class='center'>".$mods_arr[$i]->getVar('mod_release')."</td>";
+ echo "<td class='center'>".$mods_arr[$i]->getVar('mod_status')."</td>";
- $verif_module_admin = ( $mods_arr[$i]->getVar('module_admin') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_admin."</td>";
- $verif_module_user = ( $mods_arr[$i]->getVar('module_user') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_user."</td>";
- $verif_module_submenu = ( $mods_arr[$i]->getVar('module_submenu') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_submenu."</td>";
- $verif_module_search = ( $mods_arr[$i]->getVar('module_search') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_search."</td>";
- $verif_module_comments = ( $mods_arr[$i]->getVar('module_comments') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_comments."</td>";
- $verif_module_notifications = ( $mods_arr[$i]->getVar('module_notifications') == 1 ) ? $yes : $no;
- echo "<td class='center'>".$verif_module_notifications."</td>";
+ $verif_mod_admin = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_admin."</td>";
+ $verif_mod_user = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_user."</td>";
+ $verif_mod_submenu = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_submenu."</td>";
+ $verif_mod_search = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_search."</td>";
+ $verif_mod_comments = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_comments."</td>";
+ $verif_mod_notifications = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $yes : $no;
+ echo "<td class='center'>".$verif_mod_notifications."</td>";
echo "<td class='center' width='5%'>
- <a href='modules.php?op=edit&module_id=".$i."'><img src='".$pathIcon16."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
- <a href='modules.php?op=delete&module_id=".$i."'><img src='".$pathIcon16."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
+ <a href='modules.php?op=edit&mod_id=".$i."'><img src='".$pathIcon16."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
+ <a href='modules.php?op=delete&mod_id=".$i."'><img src='".$pathIcon16."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
</td>";
echo "</tr>";
}
@@ -137,7 +128,7 @@
}
break;
- case "add":
+ case "new":
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
echo $adminMenu->renderButton();
@@ -151,53 +142,53 @@
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
- if (isset($_REQUEST['module_id'])) {
- $obj =& $modulesHandler->get($_REQUEST['module_id']);
+ if (isset($_REQUEST['mod_id'])) {
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
} else {
$obj =& $modulesHandler->create();
}
//Form module save
- $obj->setVars(array('module_name' => $_POST['module_name'], 'module_version' => $_POST['module_version'],
- 'module_description' => $_POST['module_description'], 'module_author' => $_POST['module_author'], 'module_author_mail' => $_POST['module_author_mail'],
- 'module_author_website_url' => $_POST['module_author_website_url'],
- 'module_author_website_name' => $_POST['module_author_website_name'],
- 'module_credits' => $_POST['module_credits'], 'module_license' => $_POST['module_license'],
- 'module_release_info' => $_POST['module_release_info'],
- 'module_release_file' => $_POST['module_release_file'],
- 'module_manual' => $_POST['module_manual'], 'module_manual_file' => $_POST['module_manual_file']));
- //Form module_image
+ $obj->setVars(array('mod_name' => $_POST['mod_name'], 'mod_version' => $_POST['mod_version'],
+ 'mod_description' => $_POST['mod_description'], 'mod_author' => $_POST['mod_author'], 'mod_author_mail' => $_POST['mod_author_mail'],
+ 'mod_author_website_url' => $_POST['mod_author_website_url'],
+ 'mod_author_website_name' => $_POST['mod_author_website_name'],
+ 'mod_credits' => $_POST['mod_credits'], 'mod_license' => $_POST['mod_license'],
+ 'mod_release_info' => $_POST['mod_release_info'],
+ 'mod_release_file' => $_POST['mod_release_file'],
+ 'mod_manual' => $_POST['mod_manual'], 'mod_manual_file' => $_POST['mod_manual_file']));
+ //Form mod_image
include_once XOOPS_ROOT_PATH . '/class/uploader.php';
$uploaddir = TDMC_UPLOAD_PATH.'/images/modules/';
$uploader = new XoopsMediaUploader($uploaddir, $GLOBALS['xoopsModuleConfig']['mimetypes'],
$GLOBALS['xoopsModuleConfig']['maxsize'], null, null);
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
- $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['module_image']['name']);
- $name_img = $_GET['module_name'].'_slogo.'.$extension;
+ $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['mod_image']['name']);
+ $name_img = $_GET['mod_name'].'_slogo.'.$extension;
$uploader->setPrefix($name_img);
$uploader->fetchMedia($_POST['xoops_upload_file'][0]);
if (!$uploader->upload()) {
$errors = $uploader->getErrors();
redirect_header('javascript:history.go(-1)',3, $errors);
} else {
- $obj->setVar('module_image', $uploader->getSavedFileName());
+ $obj->setVar('mod_image', $uploader->getSavedFileName());
}
} else {
- $obj->setVar('module_image', $_POST['module_image']);
+ $obj->setVar('mod_image', $_POST['mod_image']);
}
//Form module save
- $obj->setVars(array('module_demo_site_url' => $_POST['module_demo_site_url'],
- 'module_demo_site_name' => $_POST['module_demo_site_name'],
- 'module_forum_site_url' => $_POST['module_forum_site_url'],
- 'module_forum_site_name' => $_POST['module_forum_site_name'],
- 'module_website_url' => $_POST['module_website_url'],
- 'module_website_name' => $_POST['module_website_name'],
- 'module_release' => $_POST['module_release'], 'module_status' => $_POST['module_status'],
- 'module_admin' => (($_REQUEST['module_admin'] == 1) ? '1' : '0'),
- 'module_user' => (($_REQUEST['module_user'] == 1) ? '1' : '0'),
- 'module_submenu' => (($_REQUEST['module_submenu'] == 1) ? '1' : '0'),
- 'module_search' => (($_REQUEST['module_search'] == 1) ? '1' : '0'),
- 'module_comments' => (($_REQUEST['module_comments'] == 1) ? '1' : '0'),
- 'module_notifications' => (($_REQUEST['module_notifications'] == 1) ? '1' : '0')));
+ $obj->setVars(array('mod_demo_site_url' => $_POST['mod_demo_site_url'],
+ 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
+ 'mod_support_url' => $_POST['mod_support_url'],
+ 'mod_support_name' => $_POST['mod_support_name'],
+ 'mod_website_url' => $_POST['mod_website_url'],
+ 'mod_website_name' => $_POST['mod_website_name'],
+ 'mod_release' => $_POST['mod_release'], 'mod_status' => $_POST['mod_status'],
+ 'mod_admin' => (($_REQUEST['mod_admin'] == 1) ? '1' : '0'),
+ 'mod_user' => (($_REQUEST['mod_user'] == 1) ? '1' : '0'),
+ 'mod_submenu' => (($_REQUEST['mod_submenu'] == 1) ? '1' : '0'),
+ 'mod_search' => (($_REQUEST['mod_search'] == 1) ? '1' : '0'),
+ 'mod_comments' => (($_REQUEST['mod_comments'] == 1) ? '1' : '0'),
+ 'mod_notifications' => (($_REQUEST['mod_notifications'] == 1) ? '1' : '0')));
if ($modulesHandler->insert($obj)) {
redirect_header('modules.php?op=list', 2, _AM_TDMCREATE_FORMOK);
@@ -210,16 +201,16 @@
case "edit":
echo $adminMenu->addNavigation('modules.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=add', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
echo $adminMenu->renderButton();
- $obj = $modulesHandler->get($_REQUEST['module_id']);
+ $obj = $modulesHandler->get($_REQUEST['mod_id']);
$form = $obj->getForm();
$form->display();
break;
case "delete":
- $obj =& $modulesHandler->get($_REQUEST['module_id']);
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
@@ -230,9 +221,8 @@
echo $obj->getHtmlErrors();
}
} else {
- xoops_confirm(array('ok' => 1, 'module_id' => $_REQUEST['module_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('module_name')));
+ xoops_confirm(array('ok' => 1, 'mod_id' => $_REQUEST['mod_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('mod_name')));
}
break;
}
-include "admin_footer.php";
-?>
\ No newline at end of file
+include "admin_footer.php";
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * tdmcreate module
*
- * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
- * ****************************************************************************
+ * @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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tables.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
// Recovered the value of the argument op in the URL $
@@ -35,11 +26,11 @@
case "list":
default:
echo $adminMenu->addNavigation('tables.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=add', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
echo $adminMenu->renderButton();
// Get the list of modules
$criteria = new CriteriaCompo();
- $criteria->setSort('module_id ASC, module_name');
+ $criteria->setSort('mod_id ASC, mod_name');
$criteria->setOrder('ASC');
$numrows_modules = $modulesHandler->getCount();
// Redirect if there aren't modules
@@ -73,8 +64,8 @@
// Display the list of modules
if ( $numrows_modules > 0 )
{
- $_yes = "<img src='../images/16/yellow.png' alt='"._YES."' title='"._YES."' />";
- $_no = "<img src='../images/16/red.png' alt='"._NO."' title='"._NO."' />";
+ $_yes = "<img src='../images/icons/16/yellow.png' alt='"._YES."' title='"._YES."' />";
+ $_no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
echo "<table width='100%' cellspacing='1' class='outer'>
<tr>
<th class='center'>"._AM_TDMCREATE_MODULE_ID."</th>
@@ -92,38 +83,40 @@
</tr>";
foreach (array_keys($mods_arr) as $m)
{
- $mods_name = $mods_arr[$m]->getVar('module_name');
- $mods_image = $mods_arr[$m]->getVar('module_image');
- $mods_admin = $mods_arr[$m]->getVar('module_admin');
- $mods_user = $mods_arr[$m]->getVar('module_user');
- $mods_submenu = $mods_arr[$m]->getVar('module_submenu');
- $mods_search = $mods_arr[$m]->getVar('module_search');
- $mods_comments = $mods_arr[$m]->getVar('module_comments');
- $mods_notifications = $mods_arr[$m]->getVar('module_notifications');
+ $mods_id = $mods_arr[$m]->getVar('mod_id');
+ $mods_name = $mods_arr[$m]->getVar('mod_name');
+ $mods_image = $mods_arr[$m]->getVar('mod_image');
+ $mods_admin = $mods_arr[$m]->getVar('mod_admin');
+ $mods_user = $mods_arr[$m]->getVar('mod_user');
+ $mods_submenu = $mods_arr[$m]->getVar('mod_submenu');
+ $mods_search = $mods_arr[$m]->getVar('mod_search');
+ $mods_comments = $mods_arr[$m]->getVar('mod_comments');
+ $mods_notifications = $mods_arr[$m]->getVar('mod_notifications');
$mods_admin = ($mods_admin == 1) ? $_yes : $_no;
$mods_user = ($mods_user == 1) ? $_yes : $_no;
$mods_submenu = ($mods_submenu == 1) ? $_yes : $_no;
$mods_search = ($mods_search == 1) ? $_yes : $_no;
$mods_comments = ($mods_comments == 1) ? $_yes : $_no;
$mods_notifications = ($mods_notifications == 1) ? $_yes : $_no;
- echo "<tr class='odd center'>";
- echo "<td>".$m."</td>";
+ echo "<tr class='odd'>";
+ echo "<td class='center'>".$m."</td>";
echo "<td class='left'><img src='../images/icons/arrow.gif' /> <b>".$mods_name."</b></td>";
- echo "<td><img src='".TDMC_UPLOAD_URL."/images/modules/".$mods_image."' height='30px'></td>";
- echo "<td><img src='../images/16/nb_fields.png' /></td>";
- echo "<td><img src='../images/16/blocks.png' /></td>";
- echo "<td>".$mods_admin."</td>";
- echo "<td>".$mods_user."</td>";
- echo "<td>".$mods_submenu."</td>";
- echo "<td>".$mods_search."</td>";
- echo "<td>".$mods_comments."</td>";
- echo "<td>".$mods_notifications."</td>";
- echo "<td>";
- echo "<a href='modules.php?op=edit&module_id=".$m."'><img src='". $pathIcon16 ."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a> <a href='modules.php?op=delete&module_id=".$m."'><img src='". $pathIcon16 ."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>";
+ echo "<td class='center'><img src='".TDMC_UPLOAD_URL."/images/modules/".$mods_image."' height='30px'></td>";
+ echo "<td class='center'><img src='../images/icons/16/nb_fields.png' /></td>";
+ echo "<td class='center'><img src='../images/icons/16/blocks.png' /></td>";
+ echo "<td class='center'>".$mods_admin."</td>";
+ echo "<td class='center'>".$mods_user."</td>";
+ echo "<td class='center'>".$mods_submenu."</td>";
+ echo "<td class='center'>".$mods_search."</td>";
+ echo "<td class='center'>".$mods_comments."</td>";
+ echo "<td class='center'>".$mods_notifications."</td>";
+ echo "<td class='center'>";
+ echo "<a href='modules.php?op=edit&mod_id=".$m."'><img src='". $pathIcon16 ."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a> <a href='modules.php?op=delete&mod_id=".$m."'><img src='". $pathIcon16 ."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>";
echo "</td>";
echo "</tr>";
// Get the list of tables
$criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('table_mid', $mods_id));
$criteria->setSort('table_id ASC, table_name');
$criteria->setOrder('ASC');
$numrows_tables = $tablesHandler->getCount();
@@ -132,12 +125,12 @@
// Display the list of tables
if ( $numrows_tables > 0 )
{
- $_yes = "<img src='../images/16/green.png' alt='"._YES."' title='"._YES."' />";
+ $_yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
foreach (array_keys($tables_arr) as $t)
{
- echo "<tr class='even center'>";
+ echo "<tr class='even'>";
echo "<td class='center'>".$t."</td>";
- echo "<td class='center'><img src='../images/icons/arrow.gif' /> ".$tables_arr[$t]->getVar('table_name')."</td>";
+ echo "<td class='left'><img src='../images/icons/arrow.gif' /> ".$tables_arr[$t]->getVar('table_name')."</td>";
$table_image = $tables_arr[$t]->getVar('table_image');
if(!is_dir($pathIcon32)){
echo "<td class='center'><img src='".$pathIcon32."/".$table_image."' height='20px'></td>";
@@ -163,7 +156,7 @@
echo "<td class='center' width='8%'>
<a href='tables.php?op=edit&table_id=".$t."'><img src='".$pathIcon16."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
- <a href='fields.php?op=edit&field_tid=".$t."'><img src='../images/16/editfields.png' alt='"._AM_TDMCREATE_FIELD_EDIT."' title='"._AM_TDMCREATE_FIELD_EDIT."'></a>
+ <a href='fields.php?op=edit&field_tid=".$t."'><img src='../images/icons/16/editfields.png' alt='"._AM_TDMCREATE_FIELD_EDIT."' title='"._AM_TDMCREATE_FIELD_EDIT."'></a>
<a href='tables.php?op=delete&table_id=".$t."'><img src='".$pathIcon16."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
</td>";
echo "</tr>";
@@ -191,7 +184,7 @@
}
break;
- case "add":
+ case "new":
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
@@ -264,7 +257,7 @@
case "edit":
echo $adminMenu->addNavigation('tables.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=add', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
$obj = $tablesHandler->get($_REQUEST['table_id']);
@@ -288,5 +281,4 @@
}
break;
}
-include "admin_footer.php";
-?>
\ No newline at end of file
+include "admin_footer.php";
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -31,7 +31,7 @@
die('XOOPS root path not defined');
}
-class TDMCreateStructureFile extends XoopsFileHandler
+class TDMCreateStructure
{
/*
*
@@ -69,7 +69,7 @@
* @pubblic function class
* @param string $path
*/
- function TDMCreateStructureFile($path)
+ function TDMCreateStructure($path)
{
$this->__construct($path);
}
@@ -81,8 +81,8 @@
{
$this->path = $path;
if(!is_dir($this->path)) {
- mkdir($this->path, 0705);
- chmod($this->path, 0705);
+ mkdir($this->path, 0755);
+ chmod($this->path, 0755);
}
}
/*
@@ -92,10 +92,10 @@
function makeDirInModule($folder_name)
{
$this->folder_name = $folder_name;
- $fname = $this->path . "/" .$this->module_name. "/" .$this->folder_name;
+ $fname = $this->path . '/' .$this->module_name. '/' .$this->folder_name;
if(!is_dir($fname)) {
- mkdir($fname, 0705);
- chmod($fname, 0705);
+ mkdir($fname, 0755);
+ chmod($fname, 0755);
}
}
/*
@@ -109,10 +109,10 @@
$this->file_name = $file;
$this->folder_name = $folder_name;
$this->copyFile = $copyFile;
- $fname = $this->path . "/" .$this->module_name. "/" .$this->folder_name;
+ $fname = $this->path . '/' .$this->module_name. '/' .$this->folder_name;
if(!is_dir($fname)) {
- mkdir($fname, 0705);
- chmod($fname, 0705);
+ mkdir($fname, 0755);
+ chmod($fname, 0755);
$this->copyFile($this->folder_name, $this->copyFile, $this->file_name);
} else {
$this->copyFile($this->folder_name, $this->copyFile, $this->file_name);
@@ -129,8 +129,8 @@
$this->file_name = $file;
$this->folder_name = $folder_name;
$this->copyFile = $copyFile;
- $fname = $this->path . "/" .$this->module_name. "/" .$this->folder_name. "/". $this->file_name;
- if(file_exists($fname)) {
+ $fname = $this->path . '/' .$this->module_name. '/' .$this->folder_name. '/'. $this->file_name;
+ if(is_readable($fname)) {
copy($this->copyFile, $fname);
} else {
chmod($fname, 0777);
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php 2013-03-23 22:25:26 UTC (rev 11297)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php 2013-03-24 11:59:23 UTC (rev 11298)
@@ -27,9 +27,7 @@
* Version : 1.39 Thu 2012/05/31 14:10:39 : Timgno Exp $
* ****************************************************************************
*/
-if (!defined("XOOPS_ROOT_PATH")) {
- die("XOOPS root path not defined");
-}
+if (!de...
[truncated message content] |