|
From: <txm...@us...> - 2014-04-05 13:27:52
|
Revision: 12423
http://sourceforge.net/p/xoops/svn/12423
Author: txmodxoops
Date: 2014-04-05 13:27:49 +0000 (Sat, 05 Apr 2014)
Log Message:
-----------
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.html
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -56,7 +56,7 @@
$template_main = 'tdmcreate_building.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
- include_once(TDMC_PATH . '/class/building.php');
+ include_once TDMC_PATH . '/class/building.php';
$handler = TDMCreateBuilding::getInstance();
$form = $handler->getForm();
$GLOBALS['xoopsTpl']->assign('form', $form->render());
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -45,7 +45,7 @@
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
$GLOBALS['xoopsTpl']->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
$GLOBALS['xoopsTpl']->assign('pathIcon32', $pathIcon32);
@@ -91,8 +91,9 @@
// Define main template
$template_main = 'tdmcreate_fields.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
+ $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj =& $fieldsHandler->create();
$form = $obj->getForm($field_mid, $field_tid, $field_numb, $field_name);
@@ -119,8 +120,8 @@
'field_null' => $_POST['field_null'],
'field_default' => $_POST['field_default'],
'field_key' => $_POST['field_key'],
- 'field_autoincrement' => (($_REQUEST['field_element'] == 1) ? '1' : '0'),
- 'field_element' => $_POST['field_element'],
+ 'field_autoincrement' => (($_REQUEST['field_autoincrement'] == 1) ? '1' : '0'),
+ 'field_element' => $_REQUEST['fieldelement_name'],
'field_inlist' => (($_REQUEST['field_inlist'] == 1) ? '1' : '0'),
'field_inform' => (($_REQUEST['field_inform'] == 1) ? '1' : '0'),
'field_admin' => (($_REQUEST['field_admin'] == 1) ? '1' : '0'),
@@ -144,10 +145,10 @@
// Define main template
$template_main = 'tdmcreate_tables.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
- $GLOBALS['xoopsTpl']->assign('button_tables_list', $adminMenu->renderButton());
- $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
- $GLOBALS['xoopsTpl']->assign('button_fields_list', $adminMenu->renderButton());
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
+ $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj = $fieldsHandler->get($field_id);
$form = $obj->getForm($field_mid, $field_tid, $field_numb, $field_name);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -33,7 +33,7 @@
$GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/css/admin/style.css' );
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
$GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
$criteria = new CriteriaCompo();
@@ -77,7 +77,7 @@
$template_main = 'tdmcreate_modules.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
- $GLOBALS['xoopsTpl']->assign('button_list', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj =& $modulesHandler->create();
$form = $obj->getForm();
@@ -164,8 +164,7 @@
$GLOBALS['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');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
- $GLOBALS['xoopsTpl']->assign('button_list', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj = $modulesHandler->get($mod_id);
$form = $obj->getForm();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -40,7 +40,7 @@
$GLOBALS['xoTheme']->addScript('modules/TDMCreate/js/functions.js');
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
$GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
//$GLOBALS['xoopsTpl']->assign('tdmc_upload_table_url', TDMC_UPLOAD_IMGTAB_URL);
@@ -120,7 +120,7 @@
$template_main = 'tdmcreate_tables.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj =& $tablesHandler->create();
$form = $obj->getForm();
@@ -132,11 +132,23 @@
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
if (isset($table_id)) {
- $obj =& $tablesHandler->get($table_id);
+ $obj =& $tablesHandler->get($table_id);
} else {
$obj =& $tablesHandler->create();
- }
- //Form tables
+ }
+ // Verification if name table exist
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('table_name', $obj->getVar('table_name')));
+ $criteria->add(new Criteria('table_mid', $mod_id), 'AND');
+ $table_name_search = $tablesHandler->getAll($criteria);
+ unset($criteria);
+ foreach (array_keys($table_name_search) as $t)
+ {
+ if ( $_POST['table_name'] === $table_name_search[$t]->getVar('table_name') ) {
+ redirect_header('tables.php?op=new', 5, _AM_TDMCREATE_ERROR_TABLE_NAME_EXIST);
+ }
+ }
+ // Form save tables
$obj->setVars(array('table_mid' => $table_mid,
'table_name' => $_POST['table_name'],
'table_category' => (($_REQUEST['table_category'] == 1) ? '1' : '0'),
@@ -192,8 +204,9 @@
// Define main template
$template_main = 'tdmcreate_tables.html';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('tables.php'));
- $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
- $GLOBALS['xoopsTpl']->assign('button_new', $adminMenu->renderButton());
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php?op=list', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
$obj = $tablesHandler->get($table_id);
$form = $obj->getForm();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -126,7 +126,7 @@
$form->addElement(new TDMCreateFormLabel('<tr class="'.$class.'">'));
// Index ID
$form->addElement(new TDMCreateFormLabel('<td class="center">'.$i.'</td>'));
- $field_name = $this->isNew() ? $table_fieldname : $this->getVar('field_name');
+ $field_name = $this->isNew() ? $table_fieldname . '_' : $this->getVar('field_name');
$field_name = new XoopsFormText(_AM_TDMCREATE_FIELD_NAME, 'field_name', 15, 255, $field_name);
// Field Name
$form->addElement(new TDMCreateFormLabel('<td class="center">'.$field_name->render().'</td>'));
@@ -183,14 +183,14 @@
}
$parameters_tray->addElement($field_elements_select);
- $field_inline = $this->isNew() ? 0 : $this->getVar('field_inline');
- $check_field_inline = new XoopsFormCheckBox(' ', 'field_inline', $field_inline);
- $check_field_inline->addOption(1, _AM_TDMCREATE_FIELD_ADMIN);
- $parameters_tray->addElement($check_field_inline);
+ $field_inlist = $this->isNew() ? 0 : $this->getVar('field_inlist');
+ $check_field_inlist = new XoopsFormCheckBox(' ', 'field_inlist', $field_inlist);
+ $check_field_inlist->addOption(1, _AM_TDMCREATE_FIELD_INLIST);
+ $parameters_tray->addElement($check_field_inlist);
$field_inform = $this->isNew() ? 0 : $this->getVar('field_inform');
$check_field_inform = new XoopsFormCheckBox(' ', 'field_inform', $field_inform);
- $check_field_inform->addOption(1, _AM_TDMCREATE_FIELD_ADMIN);
+ $check_field_inform->addOption(1, _AM_TDMCREATE_FIELD_INFORM);
$parameters_tray->addElement($check_field_inform);
$field_admin = $this->isNew() ? 0 : $this->getVar('field_admin');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -80,30 +80,37 @@
$action = $_SERVER['REQUEST_URI'];
}
- $title = $this->isNew() ? sprintf(_AM_TDMCREATE_TABLE_ADD) : sprintf(_AM_TDMCREATE_TABLE_EDIT);
+ $isNew = $this->isNew(); $table_name = $this->getVar('table_name');
+ $title = $isNew ? sprintf(_AM_TDMCREATE_TABLE_ADD) : sprintf(_AM_TDMCREATE_TABLE_EDIT);
+ //$type = $isNew ? 'new' : 'edit'; $action.'&table_mid='.
xoops_load('xoopsformloader');
$form = new XoopsThemeForm($title, 'tableform', $action, 'post', true);
$form->setExtra('enctype="multipart/form-data"');
- $modulesHandler =& xoops_getModuleHandler('modules', 'TDMCreate');
+ $modulesHandler =& xoops_getModuleHandler('modules');
$mods_select = new XoopsFormSelect(_AM_TDMCREATE_TABLE_MODULES, 'table_mid', $this->getVar('table_mid'));
- $mods_select->addOptionArray($modulesHandler->getList());
- $mods_select->setExtra('onchange="document.forms.tableform.table_name.parentElement.parentElement;"');
+ //$mods_select->setExtra('onchange="window.location=\'\'+this.options[this.selectedIndex].value"');
+ $mods_select->addOption($action, _AM_TDMCREATE_TABLE_MODSELOPT);
+ foreach ($modulesHandler->getList() as $mod_id => $mod_name) {
+ $mods_select->addOption($mod_id, $mod_name);
+ }
+ //$mods_select->addOptionArray();
$form->addElement($mods_select, true);
$table_name = new XoopsFormText(_AM_TDMCREATE_TABLE_NAME, 'table_name', 50, 255, $this->getVar('table_name'));
$table_name->setDescription(_AM_TDMCREATE_TABLE_NAME_DESC);
$form->addElement($table_name, true);
- $tablesHandler =& xoops_getModuleHandler('tables', 'TDMCreate');
+ $tablesHandler =& xoops_getModuleHandler('tables');
$criteria = new CriteriaCompo();
- $criteria->add(new Criteria('table_mid', $this->getVar('table_mid')));
$criteria->add(new Criteria('table_category', 1), 'AND');
+ $criteria->add(new Criteria('table_mid', $this->getVar('table_mid')), 'AND');
+ $criteria->add(new Criteria('table_name', $this->getVar('table_name'), '!='));
$table_category = $tablesHandler->getCount($criteria);
unset($criteria);
- if ( $table_category == 0 ) {
- $radio_category = $this->isNew() ? 0 : $this->getVar('table_category');
+ if ( $table_category == 0 || !$this->getVar('table_name') ) {
+ $radio_category = $isNew ? 0 : $this->getVar('table_category');
$category = new XoopsFormRadioYN(_AM_TDMCREATE_TABLE_CATEGORY, 'table_category', $radio_category);
$category->setDescription(_AM_TDMCREATE_TABLE_CATEGORY_DESC);
$form->addElement($category);
@@ -148,38 +155,46 @@
$form->addElement($imgtray1);
$options_tray = new XoopsFormElementTray(_OPTIONS, '<br />');
- $table_blocks = $this->isNew() ? 0 : $this->getVar('table_blocks');
+ $table_blocks = $isNew ? 0 : $this->getVar('table_blocks');
$check_table_blocks = new XoopsFormCheckBox(' ', 'table_blocks', $table_blocks);
$check_table_blocks->addOption(1, _AM_TDMCREATE_TABLE_BLOCKS);
$options_tray->addElement($check_table_blocks);
- $table_admin = $this->isNew() ? 0 : $this->getVar('table_admin');
+ $table_admin = $isNew ? 0 : $this->getVar('table_admin');
$check_table_admin = new XoopsFormCheckBox(' ', 'table_admin', $table_admin);
$check_table_admin->addOption(1, _AM_TDMCREATE_TABLE_ADMIN);
$options_tray->addElement($check_table_admin);
- $table_user = $this->isNew() ? 0 : $this->getVar('table_user');
+ $table_user = $isNew ? 0 : $this->getVar('table_user');
$check_table_user = new XoopsFormCheckBox(' ', 'table_user', $table_user);
$check_table_user->addOption(1, _AM_TDMCREATE_TABLE_USER);
$options_tray->addElement($check_table_user);
- $table_submenu = $this->isNew() ? 0 : $this->getVar('table_submenu');
+ $table_submenu = $isNew ? 0 : $this->getVar('table_submenu');
$check_table_submenu = new XoopsFormCheckBox(' ', 'table_submenu', $table_submenu);
$check_table_submenu->addOption(1, _AM_TDMCREATE_TABLE_SUBMENU);
$options_tray->addElement($check_table_submenu);
- $table_search = $this->isNew() ? 0 : $this->getVar('table_search');
+ $table_search = $isNew ? 0 : $this->getVar('table_search');
$check_table_search = new XoopsFormCheckBox(' ', 'table_search', $table_search);
$check_table_search->addOption(1, _AM_TDMCREATE_TABLE_SEARCH);
$options_tray->addElement($check_table_search);
- $table_comments = $this->isNew() ? 0 : $this->getVar('table_comments');
+ $table_comments = $isNew ? 0 : $this->getVar('table_comments');
$check_table_comments = new XoopsFormCheckBox(' ', 'table_comments', $table_comments);
$check_table_comments->addOption(1, _AM_TDMCREATE_TABLE_COMMENTS);
$options_tray->addElement($check_table_comments);
- $table_notifications = $this->isNew() ? 0 : $this->getVar('table_notifications');
+ $table_notifications = $isNew ? 0 : $this->getVar('table_notifications');
$check_table_notifications = new XoopsFormCheckBox(' ', 'table_notifications', $table_notifications);
$check_table_notifications->addOption(1, _AM_TDMCREATE_TABLE_NOTIFICATIONS);
$options_tray->addElement($check_table_notifications);
- $table_permissions = $this->isNew() ? 0 : $this->getVar('table_permissions');
- $check_table_permissions = new XoopsFormCheckBox(' ', 'table_permissions', $table_permissions);
- $check_table_permissions->addOption(1, _AM_TDMCREATE_TABLE_PERMISSIONS);
- $options_tray->addElement($check_table_permissions);
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('table_permissions', 1), 'AND');
+ $criteria->add(new Criteria('table_mid', $this->getVar('table_mid')), 'AND');
+ $criteria->add(new Criteria('table_name', $this->getVar('table_name'), '!='));
+ $table_permissions = $tablesHandler->getCount($criteria);
+ unset($criteria);
+ if ( $table_permissions == 0 || !$this->getVar('table_name') ) {
+ $table_permissions = $isNew ? 0 : $this->getVar('table_permissions');
+ $check_table_permissions = new XoopsFormCheckBox(' ', 'table_permissions', $table_permissions);
+ $check_table_permissions->addOption(1, _AM_TDMCREATE_TABLE_PERMISSIONS);
+ $options_tray->addElement($check_table_permissions);
+ }
$options_tray->setDescription(_AM_TDMCREATE_TABLE_OPTIONS_CHECKS_DESC);
$form->addElement($options_tray);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js 2014-04-05 13:27:49 UTC (rev 12423)
@@ -55,4 +55,7 @@
});
$('table#show_rows tr.toggleChild').toggle();
});
+ $('tr.modules').children().css('background-color', '#fdf5f5');
+ $('tr.toggleMain, tr.tables').children().css('background-color', '#f5fdf5');
+ $('tr.toggleMain, tr.fields').children().css('background-color', '#f5f5fd');
});
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -332,4 +332,8 @@
// Added in version 1.91
define('_AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY', "Toggle Change Display");
define('_AM_TDMCREATE_TOGGLE_SUCCESS', "Successfully Changed Display");
-define('_AM_TDMCREATE_TOGGLE_FAILED', "Changing Display Failed");
\ No newline at end of file
+define('_AM_TDMCREATE_TOGGLE_FAILED', "Changing Display Failed");
+define('_AM_TDMCREATE_ERROR_TABLE_NAME_EXIST', "WARNING: This category exists, create a new one with a different name");
+define('_AM_TDMCREATE_FIELD_INLIST', "Admin: Visible in list");
+define('_AM_TDMCREATE_FIELD_INFORM', "Admin: Visible in form");
+define('_AM_TDMCREATE_TABLE_MODSELOPT', "Select a Module");
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php 2014-04-05 13:27:49 UTC (rev 12423)
@@ -78,4 +78,5 @@
define('_MI_TDMCREATE_MODULE_MIN_ADMIN', "Minimum Admin");
define('_MI_TDMCREATE_MODULE_MIN_MYSQL', "Minimum Database");
define('_MI_TDMCREATE_MODULES_ADMINPAGER', "Modules adminpager");
-define('_MI_TDMCREATE_TABLES_ADMINPAGER', "Tables adminpager");
\ No newline at end of file
+define('_MI_TDMCREATE_TABLES_ADMINPAGER', "Tables adminpager");
+define('_MI_TDMCREATE_FIELDS_ADMINPAGER', "Fields adminpager");
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-04-05 13:27:49 UTC (rev 12423)
@@ -66,7 +66,7 @@
) ENGINE=MyISAM;
#
-# Table structure for table `mod_tdmcreate_fields` 19
+# Table structure for table `mod_tdmcreate_fields` 21
#
CREATE TABLE `mod_tdmcreate_fields` (
@@ -200,8 +200,8 @@
`fieldelement_fid` int(5) NOT NULL auto_increment,`fieldelement_name` varchar(100) NOT NULL default '',
`fieldelement_value` varchar(100) NOT NULL default '',
PRIMARY KEY (`fieldelement_fid`),
-KEY `fieldelement_value` (`fieldelement_value`),
-KEY `fieldelement_name` (`fieldelement_name`)
+KEY `fieldelement_name` (`fieldelement_name`),
+KEY `fieldelement_value` (`fieldelement_value`)
) ENGINE=MyISAM;
INSERT INTO `mod_tdmcreate_fieldelements` (`fieldelement_fid`, `fieldelement_name`, `fieldelement_value`) VALUES
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.html 2014-04-05 02:59:29 UTC (rev 12422)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_header.html 2014-04-05 13:27:49 UTC (rev 12423)
@@ -1,4 +1,4 @@
<div class="top">
<span class="left"><{$navigation}></span>
-<{if $button_new}><span class="right"><{$button_new}> </span><{/if}><{if $button_tables_list}><span class="right"> <{$button_tables_list}></span><{/if}><{if $button_fields_list}><span class="right"> <{$button_fields_list}></span><{/if}>
+<{if $buttons}><span class="right"><{$buttons}> </span><{/if}>
</div>
\ No newline at end of file
|