|
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);
-$moduleInf...
[truncated message content] |
|
From: <txm...@us...> - 2013-03-24 19:34:48
|
Revision: 11299
http://sourceforge.net/p/xoops/svn/11299
Author: txmodxoops
Date: 2013-03-24 19:34:43 +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/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/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_fieldtype.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_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_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_sql.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_pages.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/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/sql/mysql.sql
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/modules/
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,7 +18,7 @@
* @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");
+include 'admin_header.php';
+echo $adminMenu->addNavigation('about.php');
echo $adminMenu->renderAbout('YDRUY5QZQHAHS', false);
-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/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -19,33 +19,60 @@
* @version $Id: 1.59 building.php 11297 2013-03-24 10:58:10Z timgno $
*/
include 'admin_header.php';
-// Define Stylesheet
-//$xoTheme->addStylesheet( $sysjquistyle );
-// Define scripts
-//$xoTheme->addScript( $js );
-// Recovered the value of the argument op in the URL $
-$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
+$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
+$table_id = TDMCreate_CleanVars( $_REQUEST, 'table_id', 0 );
+$table_name = TDMCreate_CleanVars( $_REQUEST, 'table_name', '', 'string' );
+$table_fieldname = TDMCreate_CleanVars( $_REQUEST, 'table_fieldname', '', 'string' );
+$table_blocks = TDMCreate_CleanVars( $_REQUEST, 'table_blocks', '', 'string' );
+$table_submenu = TDMCreate_CleanVars( $_REQUEST, 'table_submenu', '', 'string' );
+$table_search = TDMCreate_CleanVars( $_REQUEST, 'table_search', '', 'string' );
+$table_comments = TDMCreate_CleanVars( $_REQUEST, 'table_comments', '', 'string' );
+$mod_id = TDMCreate_CleanVars( $_REQUEST, 'mod_id', 0 );
+$mod_name = TDMCreate_CleanVars( $_REQUEST, 'mod_name', '', 'string' );
+
+if (isset($mod_name)) {
+ $modules =& $modulesHandler->get($mod_name);
+} else {
+ $modules =& $modulesHandler;
+}
+/*
+$table_name =& $tablesHandler->get($table_name);
+$table_fieldname =& $tablesHandler->get($table_fieldname);
+$table_blocks =& $tablesHandler->get($table_blocks);
+$table_submenu =& $tablesHandler->get($table_submenu);
+$table_search =& $tablesHandler->get($table_search);
+$table_comments =& $tablesHandler->get($table_comments);*/
+
+$mod_name = $modules->getVar('mod_name');
+$mod_desc = $modules->getVar('mod_description');
+$mod_author_website_name = $modules->getVar('mod_author_website_name');
+$mod_author_website_url = $modules->getVar('mod_author_website_url');
+$mod_image = $modules->getVar('mod_image');
+$mod_active_search = $modules->getVar('mod_search');
+$mod_active_comments = $modules->getVar('mod_comments');
+$mod_active_notifications = $modules->getVar('mod_notifications');
+$mod_paypal_button = $modules->getVar('mod_donations');
+$mod_subversion = $modules->getVar('mod_subversion');
+
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('table_mid', $mod_name));
+$nb_tables = $tablesHandler->getCount($criteria);
+$tables_arr = $tablesHandler->getAll($criteria);
+unset($criteria);
+
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('field_mid', $mod_id));
+$criteria->add(new Criteria('field_tid', $table_id));
+$nb_fields = $fieldsHandler->getCount($criteria);
+$fields_arr = $fieldsHandler->getAll($criteria);
+unset($criteria);
+
echo $adminMenu->addNavigation('building.php');
switch ($op) {
- case "creation":
- $mods =& $modulesHandler->get($_REQUEST['module_name']);
- $mods_name = $mods->getVar('module_name');
- //$mods_fname = $mods->getVar('module_fname');
- $mods_desc = $mods->getVar('module_description');
- $mods_a_w_name = $mods->getVar('module_author_website_name');
- $mods_a_w_url = $mods->getVar('module_author_website_url');
- $mods_image = $mods->getVar('module_image');
- $mods_display_admin = $mods->getVar('module_display_admin');
- $mods_display_user = $mods->getVar('module_display_user');
- $mods_display_submenu = $mods->getVar('module_display_submenu');
+ case 'build':
+
//Remove the new module directory if it exists
- TDMCreate_clearDir($modPath.'/modules/'.$mods_name);
-
- //Nom des tables et combien de tables
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria('table_module', $_REQUEST['module_name']));
- $nb_tables = $tablesHandler->getCount($criteria);
- $tbls_arr = $tablesHandler->getall($criteria);
+ TDMCreate_clearDir($modPath.'/repository/'.$mod_name);
//Debut
OpenTable();
@@ -53,152 +80,134 @@
/*Structure*/
/************************************************/
//Creation de l'architecture
- const_architecture($mods_name, $mods_image);
+ const_architecture($mod_name, $mod_image);
//Creation du changelog.txt
- const_changelog($mods, $mods_name);
+ const_changelog($modules, $mod_name);
// Files cicles
- foreach (array_keys($tbls_arr) as $i)
+ foreach (array_keys($tables_arr) as $i)
{
//Variables
- $tbls_id = $tbls_arr[$i]->getVar('table_id');
- $tbls_name = $tbls_arr[$i]->getVar('table_name');
- $tbls_module = $tbls_arr[$i]->getVar('table_module');
- $tbls_field = $tbls_arr[$i]->getVar('table_field');
- $tbls_img = $tbls_arr[$i]->getVar('table_img');
- $tbls_nbfields = $tbls_arr[$i]->getVar('table_nbfields');
- $tbls_blocks = $tbls_arr[$i]->getVar('table_blocks');
- $tbls_display_admin = $tbls_arr[$i]->getVar('table_display_admin');
- $tbls_display_user = $tbls_arr[$i]->getVar('table_display_user');
- $tbls_online = $tbls_arr[$i]->getVar('table_online');
- $tbls_submenu = $tbls_arr[$i]->getVar('table_submenu');
- $tbls_search = $tbls_arr[$i]->getVar('table_search');
- $tbls_coms = $tbls_arr[$i]->getVar('table_coms');
+ $table_id = $tables_arr[$i]->getVar('table_id');
+ $table_mid = $tables_arr[$i]->getVar('table_mid');
+ $table_name = $tables_arr[$i]->getVar('table_name');
+ $table_fieldname = $tables_arr[$i]->getVar('table_fieldname');
+ $table_image = $tables_arr[$i]->getVar('table_image');
+ $table_nbfields = $tables_arr[$i]->getVar('table_nbfields');
+ $table_blocks = $tables_arr[$i]->getVar('table_blocks');
+ $table_admin = $tables_arr[$i]->getVar('table_admin');
+ $table_user = $tables_arr[$i]->getVar('table_user');
+ $table_online = $tables_arr[$i]->getVar('table_online');
+ $table_submenu = $tables_arr[$i]->getVar('table_submenu');
+ $table_search = $tables_arr[$i]->getVar('table_search');
+ $table_coms = $tables_arr[$i]->getVar('table_comments');
//Creation of the file mysql.sql
- const_sql($mods_name, $tbls_module_table, $tbls_name, $tbls_champs);
- $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables")." WHERE table_name = ".$mods_name."'_topic'");
- list( $topic ) = $xoopsDB->fetchRow($result);
-
- //Fabrication
+ const_sql($mod_name, $table_name, $table_fieldname, $fields_arr);
//Copie of images tables
- $tbls_img1 = $modPath."/images/uploads/tables/".$tbls_img;
- if (file_exists($tbls_img1)) {
- copy($tbls_img1, $modPath."/modules/".$mods_name."/images/deco/".$tbls_img);
+ $table_img1 = $modPath.'/images/uploads/tables/'.$table_image;
+ if (file_exists($table_img1)) {
+ copy($table_img1, $modPath.'/modules/'.$mod_name.'/images/icons/32/'.$table_image);
}
//Creation des classes
- const_class($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres);
+ const_class($modules, $mod_name, $table_name, $table_fieldname, $fields_arr);
//Creation of pages admin
- if ( $mods_display_admin == 1 ) {
- const_admin_pages($mods, $mods_name, $tbls_id, $tbls_module_table, $tbls_name, $tbls_img, $tbls_champs, $tbls_parametres, $topic);
+ if ( $mod_admin == 1 ) {
+ const_admin_pages($modules, $mod_name, $table_id, $table_name, $table_fieldname, $table_image, $fields_arr, $topic);
}
//Creation of pages and templates user
- if ( $mods_display_user == 1 ) {
- const_user_pages($mods, $mods_name, $tbls_name, $tbls_champs, $tbls_parametres, $topic);
+ if ( $mod_user == 1 ) {
+ const_user_pages($modules, $mod_name, $table_fieldname, $fields_arr, $topic);
// Creation of templates pages
- const_templates_pages($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_templates_pages($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
}
//Creation of search
- if ( $tbls_search == 1 ) {
- const_include_search($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres, $tbls_img);
+ if ( $table_search == 1 ) {
+ const_include_search($modules, $mod_name, $table_fieldname, $table_name, $fields_arr, $table_img);
}
//Creation of the comments
- if ( $tbls_coms == 1 ) {
- const_user_comments($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ if ( $table_coms == 1 ) {
+ const_user_comments($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
}
//Creation of the blocks
- if ( $tbls_blocks != 1 ) {
- const_blocks($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres, $topic);
+ if ( $table_blocks != 1 ) {
+ const_blocks($modules, $mod_name, $table_name, $table_fieldname, $fields_arr, $topic);
//Creation of template blocks
- const_blocks_templates($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_blocks_templates($mod_name, $table_name, $table_fieldname, $fields_arr);
}
}
- //Variables
- $tbls_id = $tablesHandler->getVar('table_id');
- $tbls_name = $tablesHandler->getVar('table_name');
- $tbls_module_table = $tablesHandler->getVar('table_module_table');
- $tbls_img = $tablesHandler->getVar('table_img');
- $tbls_champs = $tablesHandler->getVar('table_champ');
- $tbls_parametres = $tablesHandler->getVar('table_parametres');
- $tbls_blocks = $tablesHandler->getVar('table_blocks');
- $tbls_display_admin = $tablesHandler->getVar('table_display_admin');
- $tbls_display_user = $tablesHandler->getVar('table_display_user');
- $tbls_online = $tablesHandler->getVar('table_online');
- $tbls_submenu = $tablesHandler->getVar('table_submenu');
- $tbls_search = $tablesHandler->getVar('table_search');
- $tbls_coms = $tablesHandler->getVar('table_coms');
- //Creation of xoopsversion.php file
+
//Xoops version set to integrate the end of the block, etc.
- const_xoopsversion($mods, $mods_name, $tbls_arr, $tbls_module_table, $tbls_blocks, $tbls_submenu, $tbls_search, $tbls_coms);
- if($mods_display_user == 1){
+ const_xoopsversion($modules, $mod_name, $tables_arr, $table_name, $table_blocks, $table_submenu, $table_search, $table_comments);
+ if($mod_user == 1){
// Creation of template index
- const_templates_index($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_templates_index($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
// Creation of template header
- const_templates_header($mods, $mods_name, $mods_desc);
+ const_templates_header($modules, $mod_name, $mod_desc);
// Creation of template footer
- const_templates_footer($mods, $mods_name, $tbls_module_table);
+ const_templates_footer($modules, $mod_name, $table_name);
}
//Creation of the file permissions
$topic = 0;
- if ( $topic == 1 || $tbls_module_table != null) { //
- const_admin_permissions($mods, $mods_name, $tbls_name, $topic);
+ if ( $topic == 1 || $table_name != null) {
+ const_admin_permissions($modules, $mod_name, $table_fieldname, $topic);
}
//Include
- const_js_jquery($mods, $mods_name);
+ const_js_jquery($modules, $mod_name);
//Configs
- const_include_configs($mods, $mods_name, $mods_a_w_name, $mods_a_w_url); // a_w = author_website
+ const_include_common($modules, $mod_name, $mod_a_w_name, $mod_a_w_url); // a_w = author_website
//Style
- //const_css_admin($mods, $mods_name);
- const_css_style($mods, $mods_name);
+ //const_css_admin($modules, $mod_name);
+ const_css_style($modules, $mod_name);
//Functions
- const_include_functions($mods, $mods_name);
+ const_include_functions($modules, $mod_name);
//Creation of the install file for uploads
- const_include_install($mods, $mods_name, $tbls_arr);
+ const_include_install($modules, $mod_name, $tables_arr);
//Language
///////////////////////////////////////////////////////////////////////
//Creation of language main.php
- const_main_language($mods, $mods_name, $mods_desc, $tbls_arr);
+ const_language_main($modules, $mod_name, $mod_desc, $tables_arr);
//Creation of language modinfo.php
- const_modinfo_language($mods, $mods_name, $mods_desc, $tbls_arr, $topic);
+ const_language_modinfo($modules, $mod_name, $mod_desc, $tables_arr, $topic);
//Creation of language admin.php
- const_admin_language($mods, $mods_name, $tbls_arr, $topic);
+ const_language_admin($modules, $mod_name, $tables_arr, $topic);
//Creation of language blocks.php
- const_blocks_language($mods, $mods_name, $tbls_arr);
+ const_language_blocks($modules, $mod_name, $tables_arr);
//Creation of language help.php
- const_help_language($mods, $mods_name, $mods_desc);
+ const_language_help($modules, $mod_name, $mod_desc);
//Creation of language
- //const_language($mods, $mods_name);
+ //const_language($modules, $mod_name);
///////////////////////////////////////////////////////////////////////
/************************************************/
/*Admin*/
/************************************************/
- if ( $mods_display_admin == 1 ) {
+ if ( $mod_admin == 1 ) {
//Creation of admin file admin_header.php
- const_admin_header($mods, $mods_name, $tbls_arr);
+ const_admin_header($modules, $mod_name, $tables_arr);
//Creation of admin file admin_footer.php
- const_admin_footer($mods, $mods_name, $tbls_arr);
+ const_admin_footer($modules, $mod_name, $tables_arr);
//Creation of admin file menu.php
- const_admin_menu($mods, $mods_name, $tbls_arr, $topic);
+ const_admin_menu($modules, $mod_name, $tables_arr, $topic);
//Creation of admin file about.php
- const_admin_about($mods, $mods_name);
+ const_admin_about($modules, $mod_name);
//Creation of admin file index.php
- const_admin_index($mods, $mods_name, $tbls_arr);
+ const_admin_index($modules, $mod_name, $tables_arr);
}
/************************************************/
/*User*/
/************************************************/
- if ( $mods_display_user == 1 ) {
- const_user_header($mods, $mods_name, $tbls_arr, $tbls_name, $tbls_module_table);
- const_user_index($mods, $mods_name);
+ if ( $mod_user == 1 ) {
+ const_user_header($modules, $mod_name, $tables_arr, $table_fieldname, $table_name);
+ const_user_index($modules, $mod_name);
}
CloseTable();
break;
- case "default":
+ case 'default':
default:
$mod_arr = $modulesHandler->getall();
$numrowsmod = count( $mod_arr );
@@ -210,15 +219,15 @@
include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
$action = $_SERVER['REQUEST_URI'];
- $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'form_creation', $action, 'post', true);
+ $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'buildform', $action, 'post', true);
- $mods_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'module_name', 'module_name');
- $mods_select->addOptionArray($modulesHandler->getList());
- $form->addElement($mods_select, true);
+ $mod_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'mod_name', 'mod_name');
+ $mod_select->addOptionArray($modulesHandler->getList());
+ $form->addElement($mod_select, true);
- $form->addElement(new XoopsFormHidden('op', 'creation'));
+ $form->addElement(new XoopsFormHidden('op', 'build'));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
$form->display();
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/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -20,7 +20,7 @@
*/
include "admin_header.php";
// Recovered the value of the argument op in the URL $
-$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
+$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
$field_id = TDMCreate_CleanVars($_REQUEST, 'field_id', 0, 'int');
// Get table Variables
$table_id = TDMCreate_CleanVars($_REQUEST, 'field_tid', 0, 'int');
@@ -29,23 +29,23 @@
$table_fieldname = TDMCreate_CleanVars($_REQUEST, 'field_name', '', 'string');
switch ($op)
{
- case "default":
+ case 'list':
default:
echo $adminMenu->addNavigation('fields.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();
echo '<div class="center errorMsg">Add, Edit or List View in Tables</div><br />';
break;
- case "add":
+ case 'new':
echo $adminMenu->addNavigation('fields.php');
$obj =& $fieldsHandler->create();
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -75,12 +75,11 @@
$form->display();
break;
- case "edit":
+ case 'edit':
echo $adminMenu->addNavigation('fields.php');
$obj = $fieldsHandler->get($field_id);
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
$form->display();
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/includes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -24,19 +24,6 @@
$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate';
$cPath = $modPath.'/const';
-include_once $cPath.'/const_architecture.php';
-include_once $cPath.'/const_xoopsversion.php';
-include_once $cPath.'/const_changelog.php';
-include_once $cPath.'/const_include_search.php';
-include_once $cPath.'/const_include_configs.php';
-include_once $cPath.'/const_include_functions.php';
-include_once $cPath.'/const_include_install.php';
-include_once $cPath.'/const_css_style.php';
-include_once $cPath.'/const_sql.php';
-include_once $cPath.'/const_blocks.php';
-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';
@@ -44,18 +31,31 @@
include_once $cPath.'/const_admin_pages.php';
include_once $cPath.'/const_admin_about.php';
include_once $cPath.'/const_admin_permissions.php';
-include_once $cPath.'/const_admin_language.php';
-include_once $cPath.'/const_modinfo_language.php';
-include_once $cPath.'/const_help_language.php';
-include_once $cPath.'/const_blocks_language.php';
-include_once $cPath.'/const_main_language.php';
-include_once $cPath.'/const_user_comments.php';
-include_once $cPath.'/const_user_header.php';
-include_once $cPath.'/const_user_index.php';
-include_once $cPath.'/const_user_pages.php';
+include_once $cPath.'/const_architecture.php';
+include_once $cPath.'/const_blocks.php';
+include_once $cPath.'/const_changelog.php';
+include_once $cPath.'/const_class.php';
+include_once $cPath.'/const_css_style.php';
+include_once $cPath.'/const_include_search.php';
+include_once $cPath.'/const_include_common.php';
+include_once $cPath.'/const_include_functions.php';
+include_once $cPath.'/const_include_install.php';
+include_once $cPath.'/const_js_jquery.php';
+include_once $cPath.'/const_language_admin.php';
+include_once $cPath.'/const_language_modinfo.php';
+include_once $cPath.'/const_language_help.php';
+include_once $cPath.'/const_language_blocks.php';
+include_once $cPath.'/const_language_main.php';
+include_once $cPath.'/const_sql.php';
include_once $cPath.'/const_templates_header.php';
+include_once $cPath.'/const_templates_blocks.php';
include_once $cPath.'/const_templates_index.php';
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';
+include_once $cPath.'/const_user_comments.php';
+include_once $cPath.'/const_user_header.php';
+include_once $cPath.'/const_user_index.php';
+include_once $cPath.'/const_user_pages.php';
+include_once $cPath.'/const_xoopsversion.php';
\ 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-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,12 +18,12 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
switch ($op)
{
- case "list":
+ case 'list':
default:
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
@@ -128,7 +128,7 @@
}
break;
- case "new":
+ case 'new':
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
echo $adminMenu->renderButton();
@@ -138,7 +138,7 @@
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -191,7 +191,7 @@
'mod_notifications' => (($_REQUEST['mod_notifications'] == 1) ? '1' : '0')));
if ($modulesHandler->insert($obj)) {
- redirect_header('modules.php?op=list', 2, _AM_TDMCREATE_FORMOK);
+ redirect_header('modules.php', 2, _AM_TDMCREATE_FORMOK);
}
echo $obj->getHtmlErrors();
@@ -199,7 +199,7 @@
$form->display();
break;
- case "edit":
+ case 'edit':
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
@@ -209,7 +209,7 @@
$form->display();
break;
- case "delete":
+ case 'delete':
$obj =& $modulesHandler->get($_REQUEST['mod_id']);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
if ( !$GLOBALS['xoopsSecurity']->check() ) {
@@ -225,4 +225,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/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,12 +18,12 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 tables.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
switch ($op)
{
- case "list":
+ case 'list':
default:
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
@@ -35,7 +35,7 @@
$numrows_modules = $modulesHandler->getCount();
// Redirect if there aren't modules
if ( $numrows_modules == 0 ) {
- redirect_header('modules.php?op=add_module', 2, _AM_TDMCREATE_NOTMODULES );
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
}
if (isset($_REQUEST['limit'])) {
$criteria->setLimit($_REQUEST['limit']);
@@ -184,7 +184,7 @@
}
break;
- case "new":
+ case 'new':
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
@@ -193,7 +193,7 @@
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -244,7 +244,7 @@
if( $tablesHandler->insert($obj) ) {
if( $obj->isNew() ) {
$tid = $GLOBALS['xoopsDB']->getInsertId();
- ...
[truncated message content] |
|
From: <txm...@us...> - 2013-04-09 19:37:25
|
Revision: 11367
http://sourceforge.net/p/xoops/svn/11367
Author: txmodxoops
Date: 2013-04-09 19:37:20 +0000 (Tue, 09 Apr 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_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/index.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_modules.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/uploads/tables/cat.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/common.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/js/index.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/xoops_version.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/css/style.css
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/16/arrow.gif
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/16/off.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/16/on.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/16/toggle.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/js/functions.js
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_fields.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_header.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_modules.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_tables.html
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/css/admin.css
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/arrow.gif
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/off.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/icons/on.png
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -19,6 +19,7 @@
* @version $Id: 1.59 about.php 11297 2013-03-24 10:58:10Z timgno $
*/
include 'admin_header.php';
+xoops_cp_header();
echo $adminMenu->addNavigation('about.php');
echo $adminMenu->renderAbout('YDRUY5QZQHAHS', false);
include 'admin_footer.php';
\ 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-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -40,7 +40,7 @@
$myts =& MyTextSanitizer::getInstance();
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
- include_once(XOOPS_ROOT_PATH."/class/template.php");
+ include_once(XOOPS_ROOT_PATH . "/class/template.php");
$xoopsTpl = new XoopsTpl();
}
@@ -57,5 +57,4 @@
}else{
redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
}
-xoops_cp_header();
$adminMenu = new ModuleAdmin();
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -67,10 +67,9 @@
$fields_arr = $fieldsHandler->getAll($criteria);
unset($criteria);
-echo $adminMenu->addNavigation('building.php');
switch ($op) {
case 'build':
-
+ xoops_cp_header();
//Remove the new module directory if it exists
TDMCreate_clearDir($modPath.'/repository/'.$mod_name);
@@ -209,6 +208,10 @@
case 'default':
default:
+
+ xoops_cp_header();
+
+ echo $adminMenu->addNavigation('building.php');
$mod_arr = $modulesHandler->getall();
$numrowsmod = count( $mod_arr );
// Redirect if there aren't modules
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -31,14 +31,16 @@
{
case 'list':
default:
+ xoops_cp_header();
echo $adminMenu->addNavigation('fields.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
- $adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
echo '<div class="center errorMsg">Add, Edit or List View in Tables</div><br />';
break;
case 'new':
+ xoops_cp_header();
echo $adminMenu->addNavigation('fields.php');
$obj =& $fieldsHandler->create();
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
@@ -75,7 +77,8 @@
$form->display();
break;
- case 'edit':
+ case 'edit':
+ xoops_cp_header();
echo $adminMenu->addNavigation('fields.php');
$obj = $fieldsHandler->get($field_id);
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -19,6 +19,7 @@
* @version $Id: 1.59 index.php 11297 2013-03-24 10:58:10Z timgno $
*/
include "admin_header.php";
+xoops_cp_header();
//count "total modules"
$count_mods = $modulesHandler->getCount();
//count "total tables"
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -21,121 +21,69 @@
include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
+
switch ($op)
{
case 'list':
- default:
- echo $adminMenu->addNavigation('modules.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
- echo $adminMenu->renderButton();
+ default:
+ $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
+ $start = TDMCreate_CleanVars($_REQUEST, 'start', 0);
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_modules.html';
+ xoops_cp_header();
+ $xoopsTpl->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
+ $xoopsTpl->assign('button_new', $adminMenu->renderButton());
+ $xoopsTpl->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
$criteria = new CriteriaCompo();
$criteria->setSort('mod_id ASC, mod_name');
$criteria->setOrder('ASC');
- $numrows = $modulesHandler->getCount();
- if (isset($_REQUEST['limit'])) {
- $criteria->setLimit($_REQUEST['limit']);
- $limit = $_REQUEST['limit'];
- } else {
- $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']);
- $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
- }
- if (isset($_REQUEST['start'])) {
- $criteria->setStart($_REQUEST['start']);
- $start = $_REQUEST['start'];
- } else {
- $criteria->setStart(0);
- $start = 0;
- }
- $mods_arr = $modulesHandler->getall($criteria);
- if ( $numrows > $limit ) {
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit);
- $pagenav = $pagenav->renderNav(4);
- } else {
- $pagenav = '';
- }
- //Display modules list
+ $numrows = $modulesHandler->getCount();
+ $mods_arr = $modulesHandler->getAll( $criteria );
+ unset($criteria);
+ // Display modules list
if ($numrows>0)
{
$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>
- <th class='center'>"._AM_TDMCREATE_MODULE_NAME."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_VERSION."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_IMAGE."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_RELEASE."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_STATUS."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_ADMIN_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_USER_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SUBMENU_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SEARCH_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_COMMENTS_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST."</th>
- <th class='center' width='5%'>"._AM_TDMCREATE_FORMACTION."</th>
- </tr>";
- $class = "odd";
+ $no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
foreach (array_keys($mods_arr) as $i)
- {
- echo "<tr class='".$class."'>";
- $class = ($class == "even") ? "odd" : "even";
- echo "<td class='center'>".$i."</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_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&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>";
+ {
+ $mod['mod_id'] = $i;
+ $mod['mod_name'] = $mods_arr[$i]->getVar('mod_name');
+ $mod['mod_version'] = $mods_arr[$i]->getVar('mod_version');
+ $mod['mod_image'] = $mods_arr[$i]->getVar('mod_image');
+ $mod['mod_release'] = $mods_arr[$i]->getVar('mod_release');
+ $mod['mod_status'] = $mods_arr[$i]->getVar('mod_status');
+ $mod['mod_admin'] = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $yes : $no;
+ $mod['mod_user'] = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $yes : $no;
+ $mod['mod_submenu'] = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $yes : $no;
+ $mod['mod_search'] = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $yes : $no;
+ $mod['mod_comments'] = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $yes : $no;
+ $mod['mod_notifications'] = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $yes : $no;
+ $xoopsTpl->append('modules_list', $mod);
+ unset($mod);
}
- echo "</table><br><br>";
- echo "<div class='center'>".$pagenav."</div>";
+ if ( $numrows > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $xoopsTpl->assign('pagenav', $pagenav->renderNav(4));
+ }
} else {
- echo "<table width='100%' cellspacing='1' class='outer'>
- <tr>
- <th class='center'>"._AM_TDMCREATE_MODULE_NAME."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_VERSION."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_IMAGE."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_RELEASE."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_STATUS."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_ADMIN_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_USER_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SUBMENU_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SEARCH_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_COMMENTS_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST."</th>
- <th class='center' width='5%'>"._AM_TDMCREATE_FORMACTION."</th>
- </tr><tr><td class='errorMsg' colspan='12'>No Modules</td></tr>";
- echo "</table><br><br>";
- }
+ $xoopsTpl->assign('error', 'There aren\'t modules');
+ }
break;
- case 'new':
- echo $adminMenu->addNavigation('modules.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
- echo $adminMenu->renderButton();
-
+ case 'new':
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_modules.html';
+ xoops_cp_header();
+ $xoopsTpl->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
+ $xoopsTpl->assign('button_list', $adminMenu->renderButton());
+
$obj =& $modulesHandler->create();
- $form = $obj->getForm();
- $form->display();
+ $form = $obj->getForm();
+ $xoopsTpl->assign('form', $form->render());
break;
case 'save':
@@ -162,7 +110,7 @@
$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['mod_image']['name']);
+ $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['attaccedFile']['name']);
$name_img = $_GET['mod_name'].'_slogo.'.$extension;
$uploader->setPrefix($name_img);
$uploader->fetchMedia($_POST['xoops_upload_file'][0]);
@@ -194,19 +142,24 @@
redirect_header('modules.php', 2, _AM_TDMCREATE_FORMOK);
}
- echo $obj->getHtmlErrors();
- $form =& $obj->getForm();
- $form->display();
+ $xoopsTpl->assign('error', $obj->getHtmlErrors());
+ $form =& $obj->getForm();
+ $xoopsTpl->assign('form', $form->render());
break;
- case 'edit':
- echo $adminMenu->addNavigation('modules.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
- $adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
- echo $adminMenu->renderButton();
+ case 'edit':
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_modules.html';
+ xoops_cp_header();
+ $xoopsTpl->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
+ $xoopsTpl->assign('button_new', $adminMenu->renderButton());
+ $xoopsTpl->assign('button_list', $adminMenu->renderButton());
+
$obj = $modulesHandler->get($_REQUEST['mod_id']);
- $form = $obj->getForm();
- $form->display();
+ $form = $obj->getForm();
+ $xoopsTpl->assign('form', $form->render());
break;
case 'delete':
@@ -218,7 +171,7 @@
if ($modulesHandler->delete($obj)) {
redirect_header('modules.php', 3, _AM_TDMCREATE_FORMDELOK);
} else {
- echo $obj->getHtmlErrors();
+ $xoopsTpl->assign('error', $obj->getHtmlErrors());
}
} else {
xoops_confirm(array('ok' => 1, 'mod_id' => $_REQUEST['mod_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('mod_name')));
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-04-09 05:43:02 UTC (rev 11366)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-04-09 19:37:20 UTC (rev 11367)
@@ -21,13 +21,25 @@
include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
+$mod_id = TDMCreate_CleanVars($_REQUEST, 'mod_id', 0);
switch ($op)
{
case 'list':
- default:
- echo $adminMenu->addNavigation('tables.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
- echo $adminMenu->renderButton();
+ default:
+ $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
+ $start = TDMCreate_CleanVars($_REQUEST, 'start', 0);
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_tables.html';
+ xoops_cp_header();
+ $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/css/style.css' );
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
+
+ $xoopsTpl->assign('navigation', $adminMenu->addNavigation('tables.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $xoopsTpl->assign('button_new', $adminMenu->renderButton());
+ $xoopsTpl->assign('tdmc_url', TDMC_URL);
+ $xoopsTpl->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
+ $xoopsTpl->assign('pathIcon32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
// Get the list of modules
$criteria = new CriteriaCompo();
$criteria->setSort('mod_id ASC, mod_name');
@@ -36,161 +48,80 @@
// Redirect if there aren't modules
if ( $numrows_modules == 0 ) {
redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
- }
- if (isset($_REQUEST['limit'])) {
- $criteria->setLimit($_REQUEST['limit']);
- $limit = $_REQUEST['limit'];
- } else {
- $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']);
- $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
- }
- if (isset($_REQUEST['start'])) {
- $criteria->setStart($_REQUEST['start']);
- $start = $_REQUEST['start'];
- } else {
- $criteria->setStart(0);
- $start = 0;
- }
+ }
$mods_arr = $modulesHandler->getAll($criteria);
- unset($criteria);
- $xoopsTpl->assign('numrows_modules', $numrows_modules);
- if ( $numrows_modules > $limit ) {
- include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- $pagenav = new XoopsPageNav($numrows_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
- $pagenav = $pagenav->renderNav(4);
- } else {
- $pagenav = '';
- }
- // Display the list of modules
+ unset($criteria);
+ // Display modules list
if ( $numrows_modules > 0 )
{
$_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>
- <th class='center'>"._AM_TDMCREATE_MODULE_NAME."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_IMAGE."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_NBFIELDS."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_BLOCKS."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_ADMIN_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_USER_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SUBMENU_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_SEARCH_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_COMMENTS_LIST."</th>
- <th class='center'>"._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST."</th>
- <th class='center' width='8%'>"._AM_TDMCREATE_FORMACTION."</th>
- </tr>";
- foreach (array_keys($mods_arr) as $m)
- {
- $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'>";
- echo "<td class='center'>".$m."</td>";
- echo "<td class='left'><img src='../images/icons/arrow.gif' /> <b>".$mods_name."</b></td>";
- 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>";
+ $_no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
+ foreach (array_keys($mods_arr) as $i)
+ {
+ $mod['id'] = $i;
+ $mod['name'] = $mods_arr[$i]->getVar('mod_name');
+ $mod['image'] = $mods_arr[$i]->getVar('mod_image');
+ $mod['admin'] = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $_yes : $_no;
+ $mod['user'] = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $_yes : $_no;
+ $mod['submenu'] = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $_yes : $_no;
+ $mod['search'] = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $_yes : $_no;
+ $mod['comments'] = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $_yes : $_no;
+ $mod['notifications'] = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $_yes : $_no;
+ $xoopsTpl->append_by_ref('modules_list', $mod);
+ unset($mod);
// Get the list of tables
$criteria = new CriteriaCompo();
- $criteria->add(new Criteria('table_mid', $mods_id));
+ $criteria->add(new Criteria('table_mid', $i));
$criteria->setSort('table_id ASC, table_name');
- $criteria->setOrder('ASC');
+ $criteria->setOrder('ASC');
$numrows_tables = $tablesHandler->getCount();
- $tables_arr = $tablesHandler->getall($criteria);
- unset($criteria);
- // Display the list of tables
+ $tables_arr = $tablesHandler->getAll($criteria);
+ unset($criteria);
+ // Display tables list
if ( $numrows_tables > 0 )
{
- $_yes = "<img src='../images/icons/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'>";
- echo "<td class='center'>".$t."</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>";
- }else{
- echo "<td class='center'><img src='".TDMC_UPLOAD_URL."/images/tables/".$table_image."' height='20px'></td>";
- }
- echo "<td class='center'>".$tables_arr[$t]->getVar('table_nbfields')."</td>";
-
- $verif_table_blocks = ( $tables_arr[$t]->getVar('table_blocks') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_blocks."</td>";
- $verif_table_admin = ( $tables_arr[$t]->getVar('table_admin') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_admin."</td>";
- $verif_table_user = ( $tables_arr[$t]->getVar('table_user') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_user."</td>";
- $verif_table_submenu = ( $tables_arr[$t]->getVar('table_submenu') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_submenu."</td>";
- $verif_table_search = ( $tables_arr[$t]->getVar('table_search') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_search."</td>";
- $verif_table_comments = ( $tables_arr[$t]->getVar('table_comments') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_comments."</td>";
- $verif_table_notify = ( $tables_arr[$t]->getVar('table_notifications') == 1 ) ? $_yes : $_no;
- echo "<td class='center'>".$verif_table_notify."</td>";
-
- 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/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>";
+ $table['id'] = $t;
+ $table['mid'] = $tables_arr[$t]->getVar('table_mid');
+ $table['name'] = $tables_arr[$t]->getVar('table_name');
+ $table['image'] = $tables_arr[$t]->getVar('table_image');
+ $table['nbfields'] = $tables_arr[$t]->getVar('table_nbfields');
+ $table['blocks'] = ( $tables_arr[$t]->getVar('table_blocks') == 1 ) ? $_yes : $_no;
+ $table['admin'] = ( $tables_arr[$t]->getVar('mod_admin') == 1 ) ? $_yes : $_no;
+ $table['user'] = ( $tables_arr[$t]->getVar('mod_user') == 1 ) ? $_yes : $_no;
+ $table['submenu'] = ( $tables_arr[$t]->getVar('mod_submenu') == 1 ) ? $_yes : $_no;
+ $table['search'] = ( $tables_arr[$t]->getVar('mod_search') == 1 ) ? $_yes : $_no;
+ $table['comments'] = ( $tables_arr[$t]->getVar('mod_comments') == 1 ) ? $_yes : $_no;
+ $table['notifications'] = ( $tables_arr[$t]->getVar('mod_notifications') == 1 ) ? $_yes : $_no;
+ $xoopsTpl->append_by_ref('tables_list', $table);
+ unset($table);
}
- }
- }
- echo "</table><br /><br />";
- echo "<div class='center'>".$pagenav."</div>";
+ }
+ }
+
+ if ( $numrows_modules > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($numrows_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $xoopsTpl->assign('pagenav', $pagenav->renderNav(4));
+ }
} else {
- echo "<table wid...
[truncated message content] |
|
From: <txm...@us...> - 2013-04-16 15:22:54
|
Revision: 11388
http://sourceforge.net/p/xoops/svn/11388
Author: txmodxoops
Date: 2013-04-16 15:22:50 +0000 (Tue, 16 Apr 2013)
Log Message:
-----------
Updated
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.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_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_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/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_modules.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_tables.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/xoops_version.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-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -18,8 +18,8 @@
* @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');
+$fsname = $GLOBALS['xoopsModule']->getInfo('support_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>";
+ echo "<div class='center pad5'>" . sprintf(_AM_TDMCREATE_MAINTAINEDBY, $GLOBALS['xoopsModule']->getVar('dirname'), $GLOBALS['xoopsModule']->getInfo('support_url'), $fsname, $fsname) . "</div>";
xoops_cp_footer();
\ 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-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -1,74 +1,72 @@
<?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.
+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.
- */
+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.5
- * @author Txmod Xoops <su...@tx...>
- * @version $Id: 1.59 tables.php 11297 2013-03-24 10:58:10Z timgno $
- */
+* 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.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 $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
$mod_id = TDMCreate_CleanVars($_REQUEST, 'mod_id', 0);
switch ($op)
{
- case 'list':
- default:
+ case 'list':
+ default:
$limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
$start = TDMCreate_CleanVars($_REQUEST, 'start', 0);
- // Define main template
- $xoopsOption['template_main'] = 'tdmcreate_tables.html';
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_tables.html';
xoops_cp_header();
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/css/style.css' );
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
-
+
$xoopsTpl->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
$xoopsTpl->assign('button_new', $adminMenu->renderButton());
- $xoopsTpl->assign('tdmc_url', TDMC_URL);
- $xoopsTpl->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
- $xoopsTpl->assign('pathIcon32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
+ $xoopsTpl->assign('tdmc_url', TDMC_URL);
+ $xoopsTpl->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
+ $xoopsTpl->assign('pathIcon32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
// Get the list of modules
- $criteria = new CriteriaCompo();
- $criteria->setSort('mod_id ASC, mod_name');
- $criteria->setOrder('ASC');
- $numrows_modules = $modulesHandler->getCount();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('mod_id ASC, mod_name');
+ $criteria->setOrder('ASC');
+ $numrows_modules = $modulesHandler->getCount();
// Redirect if there aren't modules
- if ( $numrows_modules == 0 ) {
- redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
- }
+ if ( $numrows_modules == 0 ) {
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
+ }
$mods_arr = $modulesHandler->getAll($criteria);
unset($criteria);
// Display modules list
- if ( $numrows_modules > 0 )
+ if ( $numrows_modules > 0 )
{
- $_yes = "<img src='../images/icons/16/yellow.png' alt='"._YES."' title='"._YES."' />";
+ $_yes = "<img src='../images/icons/16/yellow.png' alt='"._YES."' title='"._YES."' />";
$_no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
- foreach (array_keys($mods_arr) as $i)
+ foreach (array_keys($mods_arr) as $i)
{
$mod['id'] = $i;
- $mod['name'] = $mods_arr[$i]->getVar('mod_name');
- $mod['image'] = $mods_arr[$i]->getVar('mod_image');
+ $mod['name'] = $mods_arr[$i]->getVar('mod_name');
+ $mod['image'] = $mods_arr[$i]->getVar('mod_image');
$mod['admin'] = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $_yes : $_no;
$mod['user'] = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $_yes : $_no;
$mod['submenu'] = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $_yes : $_no;
$mod['search'] = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $_yes : $_no;
$mod['comments'] = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $_yes : $_no;
$mod['notifications'] = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $_yes : $_no;
- $xoopsTpl->append_by_ref('modules_list', $mod);
- unset($mod);
// Get the list of tables
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('table_mid', $i));
@@ -78,6 +76,7 @@
$tables_arr = $tablesHandler->getAll($criteria);
unset($criteria);
// Display tables list
+ $tables = array();
if ( $numrows_tables > 0 )
{
$_yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
@@ -89,19 +88,22 @@
$table['image'] = $tables_arr[$t]->getVar('table_image');
$table['nbfields'] = $tables_arr[$t]->getVar('table_nbfields');
$table['blocks'] = ( $tables_arr[$t]->getVar('table_blocks') == 1 ) ? $_yes : $_no;
- $table['admin'] = ( $tables_arr[$t]->getVar('mod_admin') == 1 ) ? $_yes : $_no;
- $table['user'] = ( $tables_arr[$t]->getVar('mod_user') == 1 ) ? $_yes : $_no;
- $table['submenu'] = ( $tables_arr[$t]->getVar('mod_submenu') == 1 ) ? $_yes : $_no;
- $table['search'] = ( $tables_arr[$t]->getVar('mod_search') == 1 ) ? $_yes : $_no;
- $table['comments'] = ( $tables_arr[$t]->getVar('mod_comments') == 1 ) ? $_yes : $_no;
- $table['notifications'] = ( $tables_arr[$t]->getVar('mod_notifications') == 1 ) ? $_yes : $_no;
- $xoopsTpl->append_by_ref('tables_list', $table);
+ $table['admin'] = ( $tables_arr[$t]->getVar('table_admin') == 1 ) ? $_yes : $_no;
+ $table['user'] = ( $tables_arr[$t]->getVar('table_user') == 1 ) ? $_yes : $_no;
+ $table['submenu'] = ( $tables_arr[$t]->getVar('table_submenu') == 1 ) ? $_yes : $_no;
+ $table['search'] = ( $tables_arr[$t]->getVar('table_search') == 1 ) ? $_yes : $_no;
+ $table['comments'] = ( $tables_arr[$t]->getVar('table_comments') == 1 ) ? $_yes : $_no;
+ $table['notifications'] = ( $tables_arr[$t]->getVar('table_notifications') == 1 ) ? $_yes : $_no;
+ $tables[] = $table;
unset($table);
}
- }
+ }
+ $mod['tables'] = $tables;
+ $xoopsTpl->append('modules_list', $mod);
+ unset($mod);
}
-
- if ( $numrows_modules > $limit ) {
+
+ if ( $numrows_modules > $limit ) {
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
$pagenav = new XoopsPageNav($numrows_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
$xoopsTpl->assign('pagenav', $pagenav->renderNav(4));
@@ -109,50 +111,50 @@
} else {
$xoopsTpl->assign('error', 'There aren\'t modules');
}
- break;
+ break;
- case 'new':
- // Define main template
- $xoopsOption['template_main'] = 'tdmcreate_tables.html';
- xoops_cp_header();
+ case 'new':
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_tables.html';
+ xoops_cp_header();
$xoopsTpl->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
$xoopsTpl->assign('button_new', $adminMenu->renderButton());
-
- $obj =& $tablesHandler->create();
- $form = $obj->getForm();
+
+ $obj =& $tablesHandler->create();
+ $form = $obj->getForm();
$xoopsTpl->assign('form', $form->render());
- break;
-
+ break;
+
case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
- redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
- }
+ redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
$table_id = TDMCreate_CleanVars($_REQUEST, 'table_id', 0, 'int');
- if (isset($table_id)) {
- $obj =& $tablesHandler->get($table_id);
- } else {
- $obj =& $tablesHandler->create();
- }
-
+ if (isset($table_id)) {
+ $obj =& $tablesHandler->get($table_id);
+ } else {
+ $obj =& $tablesHandler->create();
+ }
+
$table_mid = intval($_REQUEST['table_mid']);
$table_nbfields = intval($_REQUEST['table_nbfields']);
$table_fieldname = strtolower($_REQUEST['table_fieldname']);
//Form tables
$obj->setVars(array('table_mid' => $table_mid, 'table_name' => $_POST['table_name'],
- 'table_nbfields' => $table_nbfields, 'table_fieldname' => $table_fieldname));
+ 'table_nbfields' => $table_nbfields, 'table_fieldname' => $table_fieldname));
//Form table_image
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
if(is_dir($pathIcon32)){
- $uploaddir = $pathIcon32;
+ $uploaddir = $pathIcon32;
}else{
- $uploaddir = TDMC_UPLOAD_PATH.'/images/tables';
+ $uploaddir = TDMC_UPLOAD_PATH.'/images/tables';
}
$uploader = new XoopsMediaUploader($uploaddir, $GLOBALS['xoopsModuleConfig']['mimetypes'],
- $GLOBALS['xoopsModuleConfig']['maxsize'], null, null);
+ $GLOBALS['xoopsModuleConfig']['maxsize'], null, null);
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
- $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['table_image']['name']);
- $name_img = $_GET['table_name'].'.'.$extension;
+ $extension = preg_replace( '/^.+\.([^.]+)$/sU' , '\\1' , $_FILES['table_image']['name']);
+ $name_img = $_GET['table_name'].'.'.$extension;
$uploader->setPrefix($name_img);
$uploader->fetchMedia($_POST['xoops_upload_file'][0]);
if (!$uploader->upload()) {
@@ -165,42 +167,40 @@
$obj->setVar('table_image', $_POST['table_image']);
}
$obj->setVars(array('table_blocks' => (($_REQUEST['table_blocks'] == 1) ? '1' : '0'),
- 'table_admin' => (($_REQUEST['table_admin'] == 1) ? '1' : '0'),
- 'table_user' => (($_REQUEST['table_user'] == 1) ? '1' : '0'),
- 'table_submenu' => (($_REQUEST['table_submenu'] == 1) ? '1' : '0'),
- 'table_search' => (($_REQUEST['table_search'] == 1) ? '1' : '0'),
- 'table_comments' => (($_REQUEST['table_comments'] == 1) ? '1' : '0'),
- 'table_notifications' => (($_REQUEST['table_notifications'] == 1) ? '1' : '0')));
-
- if( $tablesHandler->insert($obj) ) {
- if( $obj->isNew() ) {
- $tid = $GLOBALS['xoopsDB']->getInsertId();
- redirect_header('fields.php?op=new&field_tid='.$tid.'&field_mid='.$table_mid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname, 3, _AM_TDMCREATE_FORMOK);
+ 'table_admin' => (($_REQUEST['table_admin'] == 1) ? '1' : '0'),
+ 'table_user' => (($_REQUEST['table_user'] == 1) ? '1' : '0'),
+ 'table_submenu' => (($_REQUEST['table_submenu'] == 1) ? '1' : '0'),
+ 'table_search' => (($_REQUEST['table_search'] == 1) ? '1' : '0'),
+ 'table_comments' => (($_REQUEST['table_comments'] == 1) ? '1' : '0'),
+ 'table_notifications' => (($_REQUEST['table_notifications'] == 1) ? '1' : '0')));
+
+ if( $tablesHandler->insert($obj) ) {
+ if( $obj->isNew() ) {
+ $tid = $GLOBALS['xoopsDB']->getInsertId();
+ redirect_header('fields.php?op=new&field_tid='.$tid.'&field_mid='.$table_mid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname, 3, _AM_TDMCREATE_FORMOK);
} else {
- redirect_header('tables.php', 3, _AM_TDMCREATE_FORMOK);
+ redirect_header('tables.php', 3, _AM_TDMCREATE_FORMOK);
}
- }
+ }
- $xoopsTpl->assign('error', $obj->getHtmlErrors());
+ $xoopsTpl->assign('error', $obj->getHtmlErrors());
$form = $obj->getForm();
$xoopsTpl->assign('form', $form->render());
- break;
-
+ break;
+
case 'edit':
- // Define main template
- $xoopsOption['template_main'] = 'tdmcreate_tables.html';
- xoops_cp_header();
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_tables.html';
+ xoops_cp_header();
$xoopsTpl->assign('navigation', $adminMenu->addNavigation('tables.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
- $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
- $xoopsTpl->assign('button_new', $adminMenu->renderButton());
- $xoopsTpl->assign('button_list', $adminMenu->renderButton());
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $xoopsTpl->assign('button_new', $adminMenu->renderButton());
$obj = $tablesHandler->get($_REQUEST['table_id']);
$form = $obj->getForm();
$xoopsTpl->assign('form', $form->render());
- break;
-
+ break;
+
case 'delete':
$obj =& $tablesHandler->get($_REQUEST['table_id']);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
@@ -215,6 +215,6 @@
} else {
xoops_confirm(array('ok' => 1, 'table_id' => $_REQUEST['table_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('table_name')));
}
- break;
+ break;
}
include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php 2013-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -14,21 +14,22 @@
* @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 const_admin_about.php 11297 2013-03-24 10:58:10Z timgno $
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_about($mod, $mod_name)
+function const_admin_about($modules, $modules_name, $paypal_button)
{
$file = 'about.php';
- $path_file = TDM_CREATE_MURL . '/' . $mod_name . '/admin/' . $file;
- $text = '<?php'.const_header($mod, $file).'
-include "admin_header.php";
-echo $adminMenu->addNavigation("about.php");
-echo $adminMenu->renderabout(\'YDRUY5QZQHAHS\', false);
-include "admin_footer.php";';
+ $path_file = TDM_CREATE_MURL.'/'.$modules_name.'/admin/'.$file;
+ $text = '<?php'.const_header($modules, $file).'
+include \'admin_header.php\';
+echo $adminMenu->addNavigation(\'about.php\');
+echo $adminMenu->renderabout(\''.$paypal_button.'\', false);
+include \'admin_footer.php\';';
createFile($path_file, $text,
_AM_TDMCREATE_CONST_OK_ADMINS,
_AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
-}
\ No newline at end of file
+}
+?>
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php 2013-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -14,28 +14,26 @@
* @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 const_admin_footer.php 11297 2013-03-24 10:58:10Z timgno $
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: const_admin_footer.php 11084 2013-02-23 15:44:20Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_footer($modules, $modules_name, $tables_arr)
+function const_admin_footer($modules, $mod_name)
{
+ $language = '_AM_'.strtoupper($mod_name).'_';
$file = 'admin_footer.php';
- $path_file = TDM_CREATE_MURL."/".$modules_name."/admin/".$file;
- $text = '<?php'.const_header($modules, $file).'
-echo "<div class=\'center\'><a href=\'http://www.xoops.org\' target=\'_blank\'>
- <img src=\'".$GLOBALS[\'pathIcon32\']."/xoopsmicrobutton.gif\' alt=\'XOOPS\' title=\'XOOPS\'></a>
- </div>";
-echo "<div class=\'center pad5\'>
- <span class=\'bold\'>".$GLOBALS[\'xoopsModule\']->getVar(\'name\')."</span>
- <span class=\'small italic\'> "._AM_TDMCREATE_MAINTAINEDBY."
- <a href=\''.$modules->getVar("mod_support_url").'\' title=\'Visit '.$modules->getVar("mod_support_name").'\' class=\'tooltip\' rel=\'external\'>'.$modules->getVar("mod_support_name").'</a></span>
- </div>";
+ $path_file = TDM_CREATE_MURL.'/'.$mod_name.'/admin/'.$file;
+ $text = '<?php'.const_header($modules, $file).'
+echo "<div align=\'center\'><a href=\'http://www.xoops.org\' title=\'Visit XOOPS\' target=\'_blank\'>
+ <img src=\'".$pathIcon32."/xoopsmicrobutton.gif\' alt=\'XOOPS\' /></a>
+ <a href=\'http://www.txmodxoops.org\' title=\'Visit TXMod Xoops\' rel=\'external\'>
+ <img src=\'../images/txmodxoops_logo.png\' alt=\'TXMod Xoops\' /></a></div>";
+echo "<div class=\'center smallsmall italic pad5\'>
+ <strong>" . $xoopsModule->getVar(\'name\') . "</strong> ".'.$language.'MAINTAINEDBY."
+ <a href=\''.$modules->getVar("mod_support_url").'\' title=\'Visit '.$modules->getVar("mod_support_name").'\' class=\'tooltip\' rel=\'external\'>'.$modules->getVar("mod_support_name").'</a></div>";
xoops_cp_footer();
';
-//$cf = new TDMCreateStructureFile($path_file);
-//$cf->createFile($text, _AM_TDMCREATE_CONST_OK_ADMINS, _AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
createFile($path_file, $text,
_AM_TDMCREATE_CONST_OK_ADMINS,
_AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php 2013-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -14,58 +14,58 @@
* @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 const_admin_header.php 11297 2013-03-24 10:58:10Z timgno $
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: const_admin_header.php 11084 2013-02-23 15:44:20Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
function const_admin_header($modules, $mod_name, $tables_arr)
{
$file = 'admin_header.php';
- $path_file = TDM_CREATE_MURL."/".$mod_name."/admin/".$file;
- $text = '<?php'.const_header($modules, $file).'
-include_once XOOPS_ROOT_PATH . \'/include/cp_header.php\';
-include_once \'../include/config.php\';
-include_once \'../include/functions.php\';
+ $path_file = TDM_CREATE_MURL . '/' . $mod_name . '/admin/' . $file;
+ $text = '<?php'.const_header($modules, $file).
+<<<'EOD'
+require_once dirname(dirname(dirname(dirname(__FILE__)))). '/include/cp_header.php';
+$thisdir = dirname(dirname(__FILE__));
+include_once $thisdir.'/include/common.php';
+include_once $thisdir.'/include/functions.php';
-$thisDirname = $GLOBALS[\'xoopsModule\']->getVar(\'dirname\');
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
-$pathIcon16 = XOOPS_URL .\'/\'. $GLOBALS[\'xoopsModule\']->getInfo(\'icons16\');
-$pathIcon32 = XOOPS_URL .\'/\'. $GLOBALS[\'xoopsModule\']->getInfo(\'icons32\');
-$pathModuleAdmin = $GLOBALS[\'xoopsModule\']->getInfo(\'dirmoduleadmin\');
+$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
+$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+//load handlers
-//load class
-';
+EOD;
foreach (array_keys($tables_arr) as $i)
{
- $t_name = $tables_arr[$i]->getVar('tables_name');
-$text .= '$'.$t_name.'Handler=& xoops_getModuleHandler(\''.$mod_name.'\'_\''.$t_name.', $thisDirname);
-';
+ $table_name = $tables_arr[$i]->getVar('table_name');
+$text .= '$'.$table_name.'Handler =& xoops_getModuleHandler(\''.$mod_name.'_'.$table_name. '\', $thisDirname);'.PHP_EOL;
}
-$text .= '
+$text .=<<<'EOD'
+
$myts =& MyTextSanitizer::getInstance();
-
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
include_once(XOOPS_ROOT_PATH."/class/template.php");
$xoopsTpl = new XoopsTpl();
}
-$xoopsTpl->assign(\'pathIcon16\', $pathIcon16);
-$xoopsTpl->assign(\'pathIcon32\', $pathIcon32);
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
//Load languages
-xoops_loadLanguage(\'admin\', $thisDirname);
-xoops_loadLanguage(\'modinfo\', $thisDirname);
-xoops_loadLanguage(\'main\', $thisDirname);
-
-// Locad admin menu class
-if ( file_exists($GLOBALS[\'xoops\']->path($pathModuleAdmin.\'/moduleadmin.php\'))){
- include_once $GLOBALS[\'xoops\']->path($pathModuleAdmin.\'/moduleadmin.php\');
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+// Local admin menu class
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
}else{
redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
}
xoops_cp_header();
-$adminMenu = new ModuleAdmin();
-';
+$adminMenu = new ModuleAdmin();
+EOD;
createFile($path_file, $text,
_AM_TDMCREATE_CONST_OK_ADMINS,
_AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php 2013-04-16 15:19:57 UTC (rev 11387)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php 2013-04-16 15:22:50 UTC (rev 11388)
@@ -14,24 +14,20 @@
* @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 const_admin_help.php 11297 2013-03-24 10:58:10Z timgno $
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: const_admin_help.php 11084 2013-02-23 15:44:20Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_help($modules, $mod_name, $menu)
+function const_ad...
[truncated message content] |
|
From: <txm...@us...> - 2013-10-03 07:03:33
|
Revision: 12121
http://sourceforge.net/p/xoops/svn/12121
Author: txmodxoops
Date: 2013-10-03 07:03:28 +0000 (Thu, 03 Oct 2013)
Log Message:
-----------
Updated
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.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/index.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/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_architecture.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_changelog.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_search.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_sql.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_comments.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/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/templates/admin/tdmcreate_fields.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_tables.html
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/xoops_version.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fieldattributes.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fieldelements.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fieldkey.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fieldnull.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/fieldtype.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/htmltable.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/modules.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/structure.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tables.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/themeform.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_comments.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_common.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_functions_comments.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_include_notifications.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_language_admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_language_blocks.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_language_help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_language_main.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_language_modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_templates_blocks.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_waiting.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/templates/admin/tdmcreate_building.html
Removed Paths:
-------------
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/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_languages.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/images/uploads/tables/broken.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/uploads/tables/contact.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/uploads/tables/links.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/uploads/tables/shoutbox.png
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/images/uploads/tables/topic.png
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -18,8 +18,8 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 about.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include 'admin_header.php';
+include 'header.php';
xoops_cp_header();
echo $adminMenu->addNavigation('about.php');
-echo $adminMenu->renderAbout('YDRUY5QZQHAHS', false);
-include 'admin_footer.php';
\ No newline at end of file
+echo $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false);
+include 'footer.php';
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php 2013-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_footer.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -1,25 +0,0 @@
-<?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.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('support_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('support_url'), $fsname, $fsname) . "</div>";
-xoops_cp_footer();
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php 2013-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/admin_header.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -1,60 +0,0 @@
-<?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.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');
-include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/include/common.php');
-include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/include/functions.php');
-include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/admin/includes.php');
-
-$pathIcon16 = XOOPS_URL.'/'.$GLOBALS['xoopsModule']->getInfo('icons16');
-$pathIcon32 = XOOPS_URL.'/'.$GLOBALS['xoopsModule']->getInfo('icons32');
-$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
-
-$modulesHandler=& xoops_getModuleHandler('tdmcreate_modules', $dirname);
-$tablesHandler=& xoops_getModuleHandler('tdmcreate_tables', $dirname);
-$fieldsHandler=& xoops_getModuleHandler('tdmcreate_fields', $dirname);
-$fieldtypeHandler=& xoops_getModuleHandler('tdmcreate_fieldtype', $dirname);
-$fieldattributesHandler=& xoops_getModuleHandler('tdmcreate_fieldattributes', $dirname);
-$fieldnullHandler=& xoops_getModuleHandler('tdmcreate_fieldnull', $dirname);
-$fieldkeyHandler=& xoops_getModuleHandler('tdmcreate_fieldkey', $dirname);
-$fieldelementsHandler=& xoops_getModuleHandler('tdmcreate_fieldelements', $dirname);
-
-$myts =& MyTextSanitizer::getInstance();
-
-if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
- include_once(XOOPS_ROOT_PATH . "/class/template.php");
- $xoopsTpl = new XoopsTpl();
-}
-
-$xoopsTpl->assign('pathIcon16', $pathIcon16);
-$xoopsTpl->assign('pathIcon32', $pathIcon32);
-//Load languages
-xoops_loadLanguage('admin', $dirname);
-xoops_loadLanguage('modinfo', $dirname);
-xoops_loadLanguage('main', $dirname);
-
-// Locad admin menu class
-if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
- include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
-}else{
- redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
-}
-$adminMenu = new ModuleAdmin();
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -18,7 +18,15 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 building.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include 'admin_header.php';
+ /*
+$table_name =& $tablesHandler->get($table_name);
+$table_fieldname =& $tablesHandler->get($table_fieldname);
+$table_blocks =& $tablesHandler->get($table_blocks);
+$table_submenu =& $tablesHandler->get($table_submenu);
+$table_search =& $tablesHandler->get($table_search);
+$table_comments =& $tablesHandler->get($table_comments);*/
+include 'header.php';
+xoops_cp_header();
$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
$table_id = TDMCreate_CleanVars( $_REQUEST, 'table_id', 0 );
$table_name = TDMCreate_CleanVars( $_REQUEST, 'table_name', '', 'string' );
@@ -27,22 +35,17 @@
$table_submenu = TDMCreate_CleanVars( $_REQUEST, 'table_submenu', '', 'string' );
$table_search = TDMCreate_CleanVars( $_REQUEST, 'table_search', '', 'string' );
$table_comments = TDMCreate_CleanVars( $_REQUEST, 'table_comments', '', 'string' );
-$mod_id = TDMCreate_CleanVars( $_REQUEST, 'mod_id', 0 );
-$mod_name = TDMCreate_CleanVars( $_REQUEST, 'mod_name', '', 'string' );
+$mid = TDMCreate_CleanVars( $_REQUEST, 'mod_id', 0 );
+$mname = TDMCreate_CleanVars( $_REQUEST, 'mod_name', null, 'string' );
-if (isset($mod_name)) {
- $modules =& $modulesHandler->get($mod_name);
+/*if (isset($mod_name)) {
+ $modules =& $modulesHandler->get($mname);
} else {
$modules =& $modulesHandler;
}
-/*
-$table_name =& $tablesHandler->get($table_name);
-$table_fieldname =& $tablesHandler->get($table_fieldname);
-$table_blocks =& $tablesHandler->get($table_blocks);
-$table_submenu =& $tablesHandler->get($table_submenu);
-$table_search =& $tablesHandler->get($table_search);
-$table_comments =& $tablesHandler->get($table_comments);*/
+
+$mod_id = $modules->getVar('mod_id');
$mod_name = $modules->getVar('mod_name');
$mod_desc = $modules->getVar('mod_description');
$mod_author_website_name = $modules->getVar('mod_author_website_name');
@@ -61,18 +64,69 @@
unset($criteria);
$criteria = new CriteriaCompo();
-$criteria->add(new Criteria('field_mid', $mod_id));
+$criteria->add(new Criteria('field_mid', $mod_name));
$criteria->add(new Criteria('field_tid', $table_id));
$nb_fields = $fieldsHandler->getCount($criteria);
$fields_arr = $fieldsHandler->getAll($criteria);
+unset($criteria);*/
+
+if (isset($_REQUEST['mod_name'])) {
+ $modules =& $modulesHandler->get($_REQUEST['mod_name']);
+} else {
+ $modules =& $modulesHandler;
+}
+
+$mod_name = strtolower($modules->getVar('mod_name'));
+$mod_desc = $modules->getVar('mod_description');
+$mod_author_website_name = $modules->getVar('mod_author_website_name');
+$mod_author_website_url = $modules->getVar('mod_author_website_url');
+$mod_image = $modules->getVar('mod_image');
+$mod_active_search = $modules->getVar('mod_search');
+$mod_active_comments = $modules->getVar('mod_comments');
+$mod_active_notifications = $modules->getVar('mod_notifications');
+$mod_paypal_button = $modules->getVar('mod_donations');
+$mod_subversion = $modules->getVar('mod_subversion');
+
+if (isset($_REQUEST['table_name'])) {
+ $tables =& $tablesHandler->get(isset($_REQUEST['table_name']));
+} else {
+ $tables =& $tablesHandler;
+}
+
+//Name of tables
+$criteria = new CriteriaCompo();
+if (isset($_REQUEST['mod_name'])) {
+ $criteria->add(new Criteria('table_mid', $_REQUEST['mod_name']));
+} else {
+ $criteria->add(new Criteria('table_mid'));
+}
+
+$nb_tables = $tablesHandler->getCount($criteria);
+$tables_arr = $tablesHandler->getAll($criteria);
unset($criteria);
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('field_mid', $mod_name));
+$criteria->add(new Criteria('field_tid', $table_name));
+$nb_fields = $fieldsHandler->getCount($criteria);
+$fields_arr = $fieldsHandler->getAll($criteria);
+unset($criteria);
+
+$inroot_modules = TDMCreate_CleanVars( $_REQUEST, 'install_inroot', 0);
+$mpath = $modPath.'/repository/'.$mod_name;
+$rmpath = XOOPS_ROOT_PATH.'/modules/'.$mod_name;
+
switch ($op) {
- case 'build':
- xoops_cp_header();
- //Remove the new module directory if it exists
- TDMCreate_clearDir($modPath.'/repository/'.$mod_name);
-
+ case 'build':
+ $inroot = 0;
+ if($inroot_modules == 1) {
+ $inroot = 1;
+ //Remove the new module directory if it exists in root/modules
+ TDMCreate_clearDir($rmpath);
+ }
+ //Remove the new module if it exists in repository directory
+ TDMCreate_clearDir($mpath);
+
//Debut
OpenTable();
/************************************************/
@@ -106,7 +160,7 @@
//Copie of images tables
$table_img1 = $modPath.'/images/uploads/tables/'.$table_image;
if (file_exists($table_img1)) {
- copy($table_img1, $modPath.'/modules/'.$mod_name.'/images/icons/32/'.$table_image);
+ copy($table_img1, $mpath.'/images/icons/32/'.$table_image);
}
//Creation des classes
const_class($modules, $mod_name, $table_name, $table_fieldname, $fields_arr);
@@ -203,20 +257,17 @@
const_user_index($modules, $mod_name);
}
CloseTable();
-
+ var_dump($inroot);
break;
case 'default':
default:
-
- xoops_cp_header();
-
echo $adminMenu->addNavigation('building.php');
$mod_arr = $modulesHandler->getall();
$numrowsmod = count( $mod_arr );
// Redirect if there aren't modules
if ( $numrowsmod == 0 ) {
- redirect_header('modules.php?op=add_module', 3, _AM_TDMCREATE_NOTMODULES );
+ redirect_header('modules.php?op=new', 3, _AM_TDMCREATE_NOTMODULES );
}
include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
@@ -226,11 +277,20 @@
$mod_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'mod_name', 'mod_name');
$mod_select->addOptionArray($modulesHandler->getList());
- $form->addElement($mod_select, true);
+ $form->addElement($mod_select, true);
- $form->addElement(new XoopsFormHidden('op', 'build'));
+ $checked_inroot = 0;
+ $check_install_inroot = new XoopsFormCheckBox(_AM_TDMCREATE_BUILD_INROOT, 'build_inroot', $checked_inroot);
+ $check_install_inroot->setDescription(_AM_TDMCREATE_BUILD_INROOT_DESC);
+ $check_install_inroot->addOption(1, ' ');
+ $form->addElement($check_install_inroot);
+
+ $install_inroot = ($check_inroot == 1) ? 1 : 0;
+
+ $form->addElement(new XoopsFormHidden('install_inroot', $install_inroot));
+ $form->addElement(new XoopsFormHidden('op', 'build'));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
$form->display();
- break;
+ break;
}
-include 'admin_footer.php';
\ No newline at end of file
+include 'footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -18,7 +18,7 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 fields.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
$field_id = TDMCreate_CleanVars($_REQUEST, 'field_id', 0, 'int');
@@ -27,16 +27,62 @@
$table_mid = TDMCreate_CleanVars($_REQUEST, 'field_mid', 0, 'int');
$table_nbfields = TDMCreate_CleanVars($_REQUEST, 'field_numb', 0, 'int');
$table_fieldname = TDMCreate_CleanVars($_REQUEST, 'field_name', '', 'string');
+/*$table_id = $_SESSION['field_tid'];
+$table_mid = $_SESSION['field_mid'];
+$table_nbfields = $_SESSION['field_numb'];
+$table_fieldname = $_SESSION['field_name'];*/
switch ($op)
{
case 'list':
default:
+ $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
+ $start = TDMCreate_CleanVars($_REQUEST, 'start', 0);
+ // Define main template
+ $xoopsOption['template_main'] = 'tdmcreate_fields.html';
xoops_cp_header();
- echo $adminMenu->addNavigation('fields.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
- $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
- echo $adminMenu->renderButton();
- echo '<div class="center errorMsg">Add, Edit or List View in Tables</div><br />';
+ $xoopsTpl->assign('navigation', $adminMenu->addNavigation('fields.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $xoopsTpl->assign('button_new', $adminMenu->renderButton());
+ $xoopsTpl->assign('tdmc_url', TDMC_URL);
+ $xoopsTpl->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
+ $xoopsTpl->assign('pathIcon32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
+ // Get the list of tables
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('table_mid', $_REQUEST['mod_id']));
+ $criteria->setSort('table_id ASC, table_name');
+ $criteria->setOrder('ASC');
+ $nb_tables = $tablesHandler->getCount();
+ $tables_arr = $tablesHandler->getAll($criteria);
+ unset($criteria);
+ if ($nb_tables > 0)
+ {
+ $_yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
+ $_no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
+ foreach (array_keys($tables_arr) as $t)
+ {
+ $table['id'] = $t;
+ $table['mid'] = $tables_arr[$t]->getVar('table_mid');
+ $table['name'] = $tables_arr[$t]->getVar('table_name');
+ $table['image'] = $tables_arr[$t]->getVar('table_image');
+ $table['nbfields'] = $tables_arr[$t]->getVar('table_nbfields');
+ $table['blocks'] = ( $tables_arr[$t]->getVar('table_blocks') == 1 ) ? $_yes : $_no;
+ $table['admin'] = ( $tables_arr[$t]->getVar('table_admin') == 1 ) ? $_yes : $_no;
+ $table['user'] = ( $tables_arr[$t]->getVar('table_user') == 1 ) ? $_yes : $_no;
+ $table['submenu'] = ( $tables_arr[$t]->getVar('table_submenu') == 1 ) ? $_yes : $_no;
+ $table['search'] = ( $tables_arr[$t]->getVar('table_search') == 1 ) ? $_yes : $_no;
+ $table['comments'] = ( $tables_arr[$t]->getVar('table_comments') == 1 ) ? $_yes : $_no;
+ $table['notifications'] = ( $tables_arr[$t]->getVar('table_notifications') == 1 ) ? $_yes : $_no;
+ $xoopsTpl->append('tables_list', $table);
+ unset($mod);
+ }
+ if ( $nb_tables > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($nb_tables, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $xoopsTpl->assign('pagenav', $pagenav->renderNav(4));
+ }
+ } else {
+ $xoopsTpl->assign('error', 'Add, Edit or List View in Tables');
+ }
break;
case 'new':
@@ -85,4 +131,4 @@
$form->display();
break;
}
-include 'admin_footer.php';
\ No newline at end of file
+include 'footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/footer.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/footer.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -0,0 +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.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('support_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('support_url'), $fsname, $fsname) . "</div>";
+xoops_cp_footer();
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/header.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/header.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -0,0 +1,61 @@
+<?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.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');
+include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/include/common.php');
+include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/include/functions.php');
+include_once $GLOBALS['xoops']->path('modules/'.$dirname.'/admin/includes.php');
+
+$pathIcon16 = XOOPS_URL.'/'.$GLOBALS['xoopsModule']->getInfo('icons16');
+$pathIcon32 = XOOPS_URL.'/'.$GLOBALS['xoopsModule']->getInfo('icons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+
+$modulesHandler=& xoops_getModuleHandler('modules', $dirname);
+$tablesHandler=& xoops_getModuleHandler('tables', $dirname);
+$fieldsHandler=& xoops_getModuleHandler('fields', $dirname);
+$fieldtypeHandler=& xoops_getModuleHandler('fieldtype', $dirname);
+$fieldattributesHandler=& xoops_getModuleHandler('fieldattributes', $dirname);
+$fieldnullHandler=& xoops_getModuleHandler('fieldnull', $dirname);
+$fieldkeyHandler=& xoops_getModuleHandler('fieldkey', $dirname);
+$fieldelementsHandler=& xoops_getModuleHandler('fieldelements', $dirname);
+
+$myts =& MyTextSanitizer::getInstance();
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH . "/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
+//Load languages
+xoops_loadLanguage('admin', $dirname);
+xoops_loadLanguage('modinfo', $dirname);
+xoops_loadLanguage('main', $dirname);
+
+// Locad admin menu class
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+}else{
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+$adminMenu = new ModuleAdmin();
\ 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-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/index.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -18,7 +18,7 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 index.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'header.php';
xoops_cp_header();
//count "total modules"
$count_mods = $modulesHandler->getCount();
@@ -29,6 +29,6 @@
$adminMenu->addInfoBox(_AM_TDMCREATE_STATISTICS);
$adminMenu->addInfoBoxLine(_AM_TDMCREATE_STATISTICS,_AM_TDMCREATE_THEREARE_NUMMODULES, $count_mods, ($count_mods == 0) ? $r : $g);
$adminMenu->addInfoBoxLine(_AM_TDMCREATE_STATISTICS,_AM_TDMCREATE_THEREARE_NUMTABLES, $count_tbls, ($count_tbls == 0) ? $r : $g);
- echo $adminMenu->addNavigation("index.php");
+ echo $adminMenu->addNavigation('index.php');
echo $adminMenu->renderIndex();// Render Index
-include "admin_footer.php";
\ No newline at end of file
+include 'footer.php';
\ 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-10-02 16:08:49 UTC (rev 12120)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-10-03 07:03:28 UTC (rev 12121)
@@ -18,7 +18,7 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include 'admin_header.php';
+include 'header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
@@ -30,7 +30,7 @@
$start = T...
[truncated message content] |