|
From: <txm...@us...> - 2014-05-03 14:15:02
|
Revision: 12519
http://sourceforge.net/p/xoops/svn/12519
Author: txmodxoops
Date: 2014-05-03 14:14:55 +0000 (Sat, 03 May 2014)
Log Message:
-----------
Fix bug in building.php
Merged extension .html to .tpl in templates files
Toggle in list for parameters of fields
Work in progress
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/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-05-03 14:14:55 UTC (rev 12519)
@@ -31,7 +31,7 @@
$to_dir = XOOPS_ROOT_PATH.'/modules/'.strtolower($mod_name);
switch ($op) {
case 'build':
- $template_main = 'tdmcreate_building.html';
+ $template_main = 'building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Clear repertory of new module if there are
TDMCreate_clearDir($from_dir);
@@ -61,7 +61,7 @@
case 'default':
default:
- $template_main = 'tdmcreate_building.html';
+ $template_main = 'building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Redirect if there aren't modules
$nb_modules = $modulesHandler->getCount();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/fields.php 2014-05-03 14:14:55 UTC (rev 12519)
@@ -16,7 +16,7 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: fields.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: 1.91 fields.php 12258 2014-01-02 09:33:29Z timgno $
*/
include 'header.php';
// Recovered value of arguments op in the URL $
@@ -88,19 +88,14 @@
{
foreach (array_keys($tables_arr) as $t)
{
- $table['id'] = $t;
- $table['mid'] = $tables_arr[$t]->getVar('table_mid');
+ $table['id'] = $t;
$table['name'] = ucfirst($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');
$table['admin'] = $tables_arr[$t]->getVar('table_admin');
- $table['user'] = $tables_arr[$t]->getVar('table_user');
- $table['submenu'] = $tables_arr[$t]->getVar('table_submenu');
- $table['search'] = $tables_arr[$t]->getVar('table_search');
- $table['comments'] = $tables_arr[$t]->getVar('table_comments');
- $table['notifications'] = $tables_arr[$t]->getVar('table_notifications');
- $table['permissions'] = $tables_arr[$t]->getVar('table_permissions');
+ $table['user'] = $tables_arr[$t]->getVar('table_user');
+ $table['search'] = $tables_arr[$t]->getVar('table_search');
// Get the list of tables
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('field_mid', $table_mid));
@@ -112,18 +107,29 @@
unset($criteria);
// Display tables list
$fields = array();
+ $lid = 1;
if ( $nb_fields > 0 )
{
foreach (array_keys($fields_arr) as $f)
{
$field['id'] = $f;
- $field['mid'] = $fields_arr[$f]->getVar('field_mid');
- $field['tid'] = $fields_arr[$f]->getVar('field_tid');
- $field['name'] = str_replace('_', ' ', ucfirst($fields_arr[$f]->getVar('field_name')));
+ $field['lid'] = $lid;
+ $field['name'] = str_replace('_', ' ', ucfirst($fields_arr[$f]->getVar('field_name')));
+ $field['parent'] = $fields_arr[$f]->getVar('field_parent');
+ $field['inlist'] = $fields_arr[$f]->getVar('field_inlist');
+ $field['inform'] = $fields_arr[$f]->getVar('field_inform');
+ $field['admin'] = $fields_arr[$f]->getVar('field_admin');
+ $field['user'] = $fields_arr[$f]->getVar('field_user');
+ $field['block'] = $fields_arr[$f]->getVar('field_block');
+ $field['main'] = $fields_arr[$f]->getVar('field_main');
+ $field['search'] = $fields_arr[$f]->getVar('field_search');
+ $field['required'] = $fields_arr[$f]->getVar('field_required');
$fields[] = $field;
- unset($field);
+ unset($field);
+ $lid++;
}
}
+ unset($lid);
$table['fields'] = $fields;
$GLOBALS['xoopsTpl']->append('tables_list', $table);
unset($table);
@@ -210,55 +216,60 @@
$adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
$GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
- $obj = $fieldsHandler->get($field_id);
+ $obj = $fieldsHandler->get($field_tid);
$form = $obj->getForm($field_mid, $field_tid, $field_numb);
$GLOBALS['xoopsTpl']->assign('form', $form->render());
break;
case 'toggle':
- if (isset($_GET['table_id'])) {
- if (isset($_GET['table_blocks'])) {
- $tbl_blocks = intval($_GET['table_blocks']);
- $table_blocks = ($tbl_blocks == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_blocks', $table_blocks);
- } elseif (isset($_GET['table_admin'])) {
- $tbl_admin = intval($_GET['table_admin']);
- $table_admin = ($tbl_admin == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_admin', $table_admin);
- } elseif (isset($_GET['table_user'])) {
- $tbl_user = intval($_GET['table_user']);
- $table_user = ($tbl_user == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_user', $table_user);
- } elseif (isset($_GET['table_submenu'])) {
- $tbl_submenu = intval($_GET['table_submenu']);
- $table_submenu = ($tbl_submenu == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_submenu', $table_submenu);
- } elseif (isset($_GET['table_search'])) {
- $tbl_search = intval($_GET['table_search']);
- $table_search = ($tbl_search == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_search', $table_search);
- } elseif (isset($_GET['table_comments'])) {
- $tbl_comments = intval($_GET['table_comments']);
- $table_comments = ($tbl_comments == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_comments', $table_comments);
- } elseif (isset($_GET['table_notifications'])) {
- $tbl_notifications = intval($_GET['table_notifications']);
- $table_notifications = ($tbl_notifications == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_notifications', $table_notifications);
- } elseif (isset($_GET['table_permissions'])) {
- $tbl_permissions = intval($_GET['table_permissions']);
- $table_permissions = ($tbl_permissions == 1) ? 0 : 1;
- $obj =& $tablesHandler->get($table_id);
- $obj->setVar('table_permissions', $table_permissions);
+ if (isset($_GET['field_tid'])) {
+ if (isset($_GET['field_parent'])) {
+ $fld_parent = intval($_GET['field_parent']);
+ $field_parent = ($fld_parent == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_parent', $field_parent);
+ } elseif (isset($_GET['field_inlist'])) {
+ $fld_inlist = intval($_GET['field_inlist']);
+ $field_inlist = ($fld_inlist == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_inlist', $field_inlist);
+ } elseif (isset($_GET['field_inform'])) {
+ $fld_inform = intval($_GET['field_inform']);
+ $field_inform = ($fld_inform == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_inform', $field_inform);
+ } elseif (isset($_GET['field_admin'])) {
+ $fld_admin = intval($_GET['field_admin']);
+ $field_admin = ($fld_admin == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_admin', $field_admin);
+ } elseif (isset($_GET['field_user'])) {
+ $fld_user = intval($_GET['field_user']);
+ $field_user = ($fld_user == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_user', $field_user);
+ } elseif (isset($_GET['field_block'])) {
+ $fld_block = intval($_GET['field_block']);
+ $field_block = ($fld_block == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_block', $field_block);
+ } elseif (isset($_GET['field_main'])) {
+ $fld_main = intval($_GET['field_main']);
+ $field_main = ($fld_main == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_main', $field_main);
+ } elseif (isset($_GET['field_search'])) {
+ $fld_search = intval($_GET['field_search']);
+ $field_search = ($fld_search == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_search', $field_search);
+ } elseif (isset($_GET['field_required'])) {
+ $fld_required = intval($_GET['field_required']);
+ $field_required = ($fld_required == 1) ? 0 : 1;
+ $obj =& $fieldsHandler->get($field_id);
+ $obj->setVar('field_required', $field_required);
}
- if ($tablesHandler->insert($obj, true)) {
+ if ($fieldsHandler->insert($obj, true)) {
redirect_header('fields.php', 1, _AM_TDMCREATE_TOGGLE_SUCCESS);
} else {
redirect_header('fields.php', 1, _AM_TDMCREATE_TOGGLE_FAILED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-05-03 14:14:55 UTC (rev 12519)
@@ -97,11 +97,13 @@
unset($criteria);
// Display tables list
$tables = array();
+ $lid = 1;
if ( $nb_tables > 0 )
{
foreach (array_keys($tables_arr) as $t)
{
$table['id'] = $t;
+ $table['lid'] = $lid;
$table['mid'] = $tables_arr[$t]->getVar('table_mid');
$table['name'] = $tables_arr[$t]->getVar('table_name');
$table['image'] = $tables_arr[$t]->getVar('table_image');
@@ -116,8 +118,10 @@
$table['permissions'] = $tables_arr[$t]->getVar('table_permissions');
$tables[] = $table;
unset($table);
+ $lid++;
}
}
+ unset($lid);
$mod['tables'] = $tables;
$GLOBALS['xoopsTpl']->append('modules_list', $mod);
unset($mod);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-05-03 14:14:55 UTC (rev 12519)
@@ -200,6 +200,11 @@
}
$parameters_tray->addElement($field_elements_select);
+ $field_parent = $this->isNew() ? ( $i == 1 ) : $this->getVar('field_parent');
+ $check_field_parent = new XoopsFormCheckBox(' ', 'field_parent', $field_parent);
+ $check_field_parent->addOption(1, _AM_TDMCREATE_FIELD_PARENT );
+ $parameters_tray->addElement($check_field_parent);
+
$field_inlist = $this->isNew() ? 0 : $this->getVar('field_inlist');
$check_field_inlist = new XoopsFormCheckBox(' ', 'field_inlist['.$i.']', $field_inlist);
$check_field_inlist->addOption(1, _AM_TDMCREATE_FIELD_INLIST);
@@ -225,10 +230,10 @@
$check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
$parameters_tray->addElement($check_field_block);
- $field_mnfield = $this->isNew() ? ( $i == 1 ) : $this->getVar('field_main');
- $field_main = new XoopsFormRadio('', 'field_main', $field_mnfield);
- $field_main->addOption( '', _AM_TDMCREATE_FIELD_MAINFIELD );
- $parameters_tray->addElement($field_main);
+ $field_main = $this->isNew() ? ( $i == 1 ) : $this->getVar('field_main');
+ $check_field_main = new XoopsFormRadio('', 'field_main', $field_main);
+ $check_field_main->addOption('', _AM_TDMCREATE_FIELD_MAINFIELD );
+ $parameters_tray->addElement($check_field_main);
$field_search = $this->isNew() ? 0 : $this->getVar('field_search');
$check_field_search = new XoopsFormCheckBox(' ', 'field_search['.$i.']', $field_search);
@@ -312,13 +317,20 @@
/**
* retrieve a field
*
- * @param int $id field_id
+ * @param int $id tid
*
* @return mixed reference to the {@link TDMCreateFields} object
*/
public function &get($id)
- {
- return parent::get($id);
+ {
+ $criteria = new Criteria('field_id', $id );
+ if ($this->getCount($criteria) > 0) {
+ $obj = $this->getObjects($criteria, false, false );
+ return $obj[0]['field_id'];
+ } else {
+ return parent::get($tid);
+ }
+ return false;
}
/**
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css 2014-05-03 14:14:55 UTC (rev 12519)
@@ -24,6 +24,7 @@
padding: 5px;
border-bottom: 1px solid #ccc;
background-color:rgba(200,110,20,0.3);
+ vertical-align: middle;
}
tr.tables td {
@@ -32,6 +33,7 @@
padding: 5px;
border-bottom: 1px solid #ccc;
background-color:rgba(230,130,100,0.3);
+ vertical-align: middle;
}
tr.fields td {
@@ -40,6 +42,7 @@
padding: 5px;
border-bottom: 1px solid #ccc;
background-color:rgba(0,255,0,0.3);
+ vertical-align: middle;
}
.toggleChild {
@@ -51,6 +54,22 @@
height: 16px;
}
+.even {
+ border-bottom: 1px solid #ccc;
+ background-color: #cdcdcd;
+ color: inherit;
+ padding: 5px;
+ vertical-align: middle;
+}
+
+.odd {
+ border-bottom: 1px solid #ccc;
+ background-color: #dcdcdc;
+ color: inherit;
+ padding: 5px;
+ vertical-align: middle;
+}
+
.move { cursor: move; }
.width6{ width: 6%; }
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-05-03 14:14:55 UTC (rev 12519)
@@ -184,6 +184,20 @@
define('_AM_TDMCREATE_FIELD_REQUIRED', "Field: Required");
define('_AM_TDMCREATE_ADMIN_SUBMIT', "Send");
+define('_AM_TDMCREATE_ID_LIST', "Id");
+define('_AM_TDMCREATE_NAME_LIST', "Name");
+define('_AM_TDMCREATE_IMAGE_LIST', "Image");
+define('_AM_TDMCREATE_NBFIELDS_LIST', "Fields");
+define('_AM_TDMCREATE_PARENT_LIST', "Parent");
+define('_AM_TDMCREATE_INLIST_LIST', "Inlist");
+define('_AM_TDMCREATE_INFORM_LIST', "Inform");
+define('_AM_TDMCREATE_ADMIN_LIST', "Admin");
+define('_AM_TDMCREATE_USER_LIST', "User");
+define('_AM_TDMCREATE_BLOCK_LIST', "Block");
+define('_AM_TDMCREATE_MAIN_LIST', "Main");
+define('_AM_TDMCREATE_SEARCH_LIST', "Search");
+define('_AM_TDMCREATE_REQUIRED_LIST', "Required");
+
//Modules.php
//Form
define('_AM_TDMCREATE_MODULES_ADD', "Add a new module");
@@ -334,6 +348,7 @@
define('_AM_TDMCREATE_TOGGLE_SUCCESS', "Successfully Changed Display");
define('_AM_TDMCREATE_TOGGLE_FAILED', "Changing Display Failed");
define('_AM_TDMCREATE_ERROR_TABLE_NAME_EXIST', "<b class='red big'>WARNING</b>: The table <b class='big red'>%s</b> exists for this module, create a new one with a different name");
+define('_AM_TDMCREATE_FIELD_PARENT', "Field: Is parent");
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");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/fields.tpl 2014-05-03 14:14:55 UTC (rev 12519)
@@ -5,70 +5,40 @@
<table id='show_rows' width='100%' cellspacing='1' class='outer'>
<thead>
<tr>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_ID}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_NAME_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_IMAGE_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_NBFIELDS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_BLOCKS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_SUBMENU_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_COMMENTS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_NOTIFICATIONS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_PERMISSIONS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_ID_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_NAME_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_IMAGE_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_NBFIELDS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_PARENT_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_INLIST_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_INFORM_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_ADMIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_USER_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_BLOCK_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_MAIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_SEARCH_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_REQUIRED_LIST}></th>
<th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
</tr>
</thead>
<tbody>
<{foreach item=table from=$tables_list}>
<tr id="table<{$table.id}>" class="fields toggleMain">
- <td class='center'><{$table.id}><br />
+ <td class='center bold width5'>(<{$table.id}>)
<a href="#" title="Toggle"><img class="imageToggle" src="<{$tdmc_icons_url}>/16/toggle.png" alt="Toggle" /></a>
</td>
- <td class='center'><u><{$table.name}></u></td>
+ <td class='center'><u class='bold'><{$table.name}></u></td>
<td class='center'><img src="<{$pathIcon32}>/<{$table.image}>" alt="<{$table.name}>" height="30" /></td>
- <td class='center'><{$table.nbfields}></td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_blocks=<{$table.blocks}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.blocks}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_admin=<{$table.admin}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_user=<{$table.user}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_submenu=<{$table.submenu}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.submenu}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_search=<{$table.search}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_comments=<{$table.comments}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_notifications=<{$table.notifications}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
- <td class='center'>
- <a href="fields.php?op=toggle&table_permissions=<{$table.permissions}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
- <img src="<{xoModuleIcons16}><{$table.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
- </a>
- </td>
+ <td class='center bold'><{$table.nbfields}></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" /></td>
<td class='xo-actions txtcenter width6'>
<a href="tables.php?op=edit&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>">
<img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>" />
@@ -83,9 +53,56 @@
</tr>
<{foreach item=field from=$table.fields}>
<tr class="<{cycle values='even,odd'}> toggleChild">
- <td class='center'><{$field.id}> <img class="move" src="<{$tdmc_icons_url}>/16/drag.png" alt="<{$field.name}>" /></td>
+ <td class='center'><{$field.lid}> <img class="move" src="<{$tdmc_icons_url}>/16/drag.png" alt="<{$field.name}>" /></td>
<td class='center'><{$field.name}></td>
- <td class='center' colspan="11"> </td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/tables.png" alt="Empty" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/tables.png" alt="Empty" /></td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_parent=<{$field.parent}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.parent}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_inlist=<{$field.inlist}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.inlist}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_inform=<{$field.inform}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.inform}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_admin=<{$field.admin}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_user=<{$field.user}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_block=<{$field.block}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.block}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_main=<{$field.main}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.main}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_search=<{$field.search}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="fields.php?op=toggle&field_required=<{$field.required}>&field_id=<{$field.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
+ <img src="<{xoModuleIcons16}><{$field.required}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
+ </a>
+ </td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/left_right.png" alt="Empty" /></td>
</tr>
<{/foreach}>
<{/foreach}>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/modules.tpl 2014-05-03 14:14:55 UTC (rev 12519)
@@ -20,8 +20,8 @@
</tr>
<{foreach item=module from=$modules_list}>
<tr id="module<{$module.id}>" class="modules">
- <td class='center'><{$module.id}></td>
- <td class='center'><{$module.name}></td>
+ <td class='center bold'><{$module.id}></td>
+ <td class='center bold green'><{$module.name}></td>
<td class='center'><{$module.version}></td>
<td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" height="35" /></td>
<td class='center'><{$module.release}></td>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl 2014-05-02 03:24:32 UTC (rev 12518)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tables.tpl 2014-05-03 14:14:55 UTC (rev 12519)
@@ -23,13 +23,13 @@
<tbody>
<{foreach item=module from=$modules_list}>
<tr id="module<{$module.id}>" class="tables toggleMain">
- <td class='center'><{$module.id}><br />
+ <td class='center bold width5'>(<{$module.id}>)
<a href="#" title="Toggle"><img class="imageToggle" src="<{$tdmc_icons_url}>/16/toggle.png" alt="Toggle" /></a>
</td>
- <td class='center'><{$module.name}></td>
+ <td class='center bold green'><{$module.name}></td>
<td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" height="35" /></td>
- <td class='center'><img src="<{$tdmc_url}>/images/icons/16/nb_fields.png" height="16" /></td>
- <td class='center'><img src="<{$tdmc_url}>/images/icons/16/blocks.png" height="16" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/nb_fields.png" height="16" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/blocks.png" height="16" /></td>
<td class='center'>
<a href="modules.php?op=toggle&mod_admin=<{$module.admin}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
<img src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
@@ -40,7 +40,7 @@
<img src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
</a>
</td>
- <td class='center'><img src="<{$tdmc_url}>/images/icons/16/submenu.png" alt="Submenu" title="Submenu" /></td>
+ <td class='center'><img src="<{$tdmc_icons_url}>/16/submenu.png" alt="Submenu" title="Submenu" /></td>
<td class='center'>
<a href="modules.php?op=toggle&mod_search=<{$module.search}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>">
<img src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_TOGGLE_CHANGE_DISPLAY}>" />
@@ -72,7 +72,7 @@
</tr>
<{foreach item=table from=$module.tables}>
<tr id="table<{$table.id}>" class="<{cycle values='even,odd'}> toggleChild">
- <td class='center'><{$table.id}></td>
+ <td class='center'><{$table.lid}></td>
<td class='center'><{$table.name}></td>
<td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="30" /></td>
<td class='center'><{$table.nbfields}></td>
|