|
From: <txm...@us...> - 2015-04-28 16:01:23
|
Revision: 13048
http://sourceforge.net/p/xoops/svn/13048
Author: txmodxoops
Date: 2015-04-28 16:01:20 +0000 (Tue, 28 Apr 2015)
Log Message:
-----------
Now you can order tables from the list
Fixed bugs
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/functions.js
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/sortable.js
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/index.html
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables_item.tpl
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/loading.gif
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/VeraBd.ttf
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/green.png
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/red.png
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/tdmcreate_slogo.png
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/xcvLogo.txt
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/fields.js
XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/jq.init.js
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-28 16:01:20 UTC (rev 13048)
@@ -240,18 +240,27 @@
$fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId );
$form = $fieldsObj->getFormEdit($fieldMid, $fieldTid, $fieldNumb);
$GLOBALS['xoopsTpl']->assign('form', $form->render());
- break;
+ break;
- case 'order':
- foreach($_POST['field_order'] as $order => $value) {
- if( $order > 0 ) {
- $fieldsObj = $tdmcreate->getHandler('fields')->get( $value );
- $fieldsObj->setVar('field_order', $order);
- if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) {
- redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_ORDER_ERROR);
- }
- }
- }
+ case 'order':
+ // Initialize fields handler
+ $fieldsObj = $tdmcreate->getHandler('fields');
+ if ( isset($_POST['forder'] ) ) {
+ $i = 0;
+ foreach($_POST['forder'] as $order) {
+ if( $order > 0 ) {
+ $fieldOrder = $fieldsObj->get($order);
+ $fieldOrder->setVar('field_order', $i);
+ if (!$fieldsObj->insert($fieldOrder)) {
+ $error=true;
+ }
+ $i++;
+ }
+ }
+ redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_ORDER_ERROR);
+ unset($i);
+ }
+ exit;
break;
case 'delete':
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php 2015-04-28 16:01:20 UTC (rev 13048)
@@ -254,16 +254,25 @@
$GLOBALS['xoopsTpl']->assign('form', $form->render());
break;
- case 'order':
- foreach($_POST['table_order'] as $order => $value) {
- if( $order > 0 ) {
- $tablesObj = $tdmcreate->getHandler('tables')->get( $value );
- $tablesObj->setVar('table_order', $order);
- if (!$tdmcreate->getHandler('tables')->insert( $tablesObj )) {
- redirect_header('tables.php', 5, _AM_TDMCREATE_FIELD_ORDER_ERROR);
- }
- }
- }
+ case 'order':
+ // Initialize tables handler
+ $tablesObj = $tdmcreate->getHandler('tables');
+ if ( isset($_POST['torder'] ) ) {
+ $i = 0;
+ foreach($_POST['torder'] as $order) {
+ if( $order > 0 ) {
+ $tableOrder = $tablesObj->get($order);
+ $tableOrder->setVar('table_order', $i);
+ if (!$tablesObj->insert($tableOrder)) {
+ $error=true;
+ }
+ $i++;
+ }
+ }
+ redirect_header('tables.php', 5, _AM_TDMCREATE_TABLE_ORDER_ERROR);
+ unset($i);
+ }
+ exit;
break;
case 'delete':
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/loading.gif
===================================================================
(Binary files differ)
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/VeraBd.ttf
===================================================================
(Binary files differ)
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/green.png
===================================================================
(Binary files differ)
Added: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/index.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/index.html (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/index.html 2015-04-28 16:01:20 UTC (rev 13048)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png
===================================================================
(Binary files differ)
Index: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png 2015-04-28 16:01:20 UTC (rev 13048)
Property changes on: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/naked.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/logos/red.png
===================================================================
(Binary files differ)
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/tdmcreate_slogo.png
===================================================================
(Binary files differ)
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/xcvLogo.txt
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/xcvLogo.txt 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/images/xcvLogo.txt 2015-04-28 16:01:20 UTC (rev 13048)
@@ -1 +0,0 @@
-display:table-cell; vertical-align:middle;
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/fields.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/fields.js 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/fields.js 2015-04-28 16:01:20 UTC (rev 13048)
@@ -1,42 +0,0 @@
-// Jquery function for side fields
-/*$(document).ready( function() {
- // Controls Drag & Drop
- $('tbody tr.sortable td:nth-child(1) img').sortable({
- update: function(event, ui) {
- var list = $(this).sortable( 'serialize');
- $.post( 'fields.php?op=order', list );
- },
- receive: function(event, ui) {
- var field_id = $(ui.item).attr('field_id');
- var list = $(this).sortable( 'serialize');
- $.post( 'fields.php', { op: 'drag', field_id: field_id } );
- $.post( 'fields.php?op=order', list );
- }
- }
- );
- $('tr.sortable').disableSelection();
- },
- function() {
- $( ".portlet" )
- .addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
- .find( ".portlet-header" )
- .addClass( "ui-widget-header ui-corner-all" )
- .prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
-
- $( ".portlet-toggle" ).click(function() {
- var icon = $( this );
- icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
- icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
- });
- }
-);*/
-// Quando la pagina è caricata definisci l'ordine attuale e gli elementi da riordinare
-$(document).ready(function() {
- $('.field-list').sortable({ //definisco il contenitore di elementi da riordinare
- handle : '.move', //definisco con la classe .move quali sono gli elementi trascinabili
- update : function () { //aggiorno l'ordine ed eseguo una callback
- var order = $('.field-list').sortable('serialize'); // salvo una variabile che contiene l'array con il nuovo ordine degli elementi
- $("#info").load("modules/tdmcreate/admin/fields.php?"+order);
- }
- });
-});
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/functions.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/functions.js 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/functions.js 2015-04-28 16:01:20 UTC (rev 13048)
@@ -60,9 +60,14 @@
}
$(document).ready(function() {
+ // Hide/Show Tables or Fields
$('tr.toggleMain td:nth-child(1) img').click(function () {
$(this).closest('tr.toggleMain').nextUntil('tr.toggleMain').toggle();
});
+ // Hide/Show Modules Tables
+ $('#modtab').hide();
+ $('td#modtabs').click(function(){
+ $(this).next('#modtab').slideToggle('slow');});
});
function tdmcreate_setStatus( data, img, file ) {
Deleted: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/jq.init.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/jq.init.js 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/jq.init.js 2015-04-28 16:01:20 UTC (rev 13048)
@@ -1,6 +0,0 @@
-$(document).ready(function(){
- // Hide/Show Modules Tables
- $('#modtab').hide();
- $('td#modtabs').click(function(){
- $(this).next('#modtab').slideToggle('slow');});
-});
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/sortable.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/sortable.js 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/sortable.js 2015-04-28 16:01:20 UTC (rev 13048)
@@ -1,24 +1,38 @@
// Jquery function for order fields
// When the page is loaded define the current order and items to reorder
-/* Call the container items to reorder tables */
-$(document).ready(function() {
- $('.table-list').sortable({ opacity: 0.6, handle : '.move', cursor: 'move',
- update: function(event, ui) {
- var order = $(this).sortable('serialize') + '&op=order';
- $.post('tables.php', order, function(response) {
- $('#message').html(response);
- });
+$(document).ready( function(){
+ /* Call the container items to reorder tables */
+ $('.table-list').sortable({
+ accept: 'tdmc-tables',
+ opacity: 0.6,
+ handle : '.move',
+ cursor: 'move',
+ connectWith: '.table-list',
+ update: function(event, ui) {
+ var list = $(this).sortable( 'serialize');
+ $.post( 'tables.php?op=order', list );
+ },
+ receive: function(event, ui) {
+ var list = $(this).sortable( 'serialize');
+ $.post( 'admin.php?op=order', list );
+ }
}
- }).disableSelection();
-});
-/* Call the container items to reorder fields */
-$(document).ready(function() {
- $('.field-list').sortable({ opacity: 0.6, handle : '.move', cursor: 'move',
- update: function() {
- var order = $(this).sortable('serialize') + '&op=order';
- $.post('fields.php', order, function(response) {
- $('#message').html(response);
- });
+ ).disableSelection();
+ /* Call the container items to reorder fields */
+ $('.field-list').sortable({
+ accept: 'tdmc-fields',
+ opacity: 0.6,
+ handle : '.move',
+ cursor: 'move',
+ connectWith: '.field-list',
+ update: function(event, ui) {
+ var list = $(this).sortable( 'serialize');
+ $.post( 'fields.php?op=order', list );
+ },
+ receive: function(event, ui) {
+ var list = $(this).sortable( 'serialize');
+ $.post( 'fields.php?op=order', list );
+ }
}
- }).disableSelection();
+ ).disableSelection();
});
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php 2015-04-28 16:01:20 UTC (rev 13048)
@@ -214,7 +214,7 @@
$parameters_tray = new XoopsFormElementTray('', '<br />');
// Field Elements
$criteria_element = new CriteriaCompo();
- $criteria_element->add(new Criteria('fieldelement_tid', $field_tid));
+ $criteria_element->add(new Criteria('fieldelement_tid', 0));
$criteria_table = new CriteriaCompo();
$criteria_table->add(new Criteria('fieldelement_mid', $field_mid));
$field_elements_select = new XoopsFormSelect(_AM_TDMCREATE_FIELD_ELEMENT_NAME, 'field_element['.$i.']');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql 2015-04-28 16:01:20 UTC (rev 13048)
@@ -118,8 +118,7 @@
`field_required` TINYINT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`field_id`),
KEY `field_mid` (`field_mid`),
- KEY `field_tid` (`field_tid`),
- KEY `field_name` (`field_name`)
+ KEY `field_tid` (`field_tid`)
)ENGINE =MyISAM;
#
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl 2015-04-27 19:41:43 UTC (rev 13047)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl 2015-04-28 16:01:20 UTC (rev 13048)
@@ -2,7 +2,7 @@
<tbody class="field-list">
<{foreach item=field from=$table.fields}>
<{if $field.id > 0}>
- <tr id="field_order_<{$field.tid}>_<{$field.id}>_<{$field.order}>" order="<{$field.order}>" class="<{cycle values='even,odd'}>">
+ <tr id="forder_<{$field.id}>" order="<{$field.order}>" class="tdmc-fields <{cycle values='even,odd'}>">
<td class='center width5'>[<{$field.lid}>] <img class="move" src="<{$modPathIcon16}>/drag.png" alt="<{$field.name}>" /></td>
<td class='center width10'><{$field.name}></td>
<td class='center'><img src="<{$modPathIcon16}>/tables.png" alt="Empty" /></td>
Added: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables_item.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables_item.tpl (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables_item.tpl 2015-04-28 16:01:20 UTC (rev 13048)
@@ -0,0 +1,41 @@
+<table class='width100'>
+ <tbody class="table-list">
+ <{foreach item=table from=$module.tables}>
+ <{if $table.id > 0}>
+ <tr id="torder_<{$table.id}>" order="<{$table.order}>" class="tdmc-tables <{cycle values='even,odd'}>">
+ <td class='cell cell-width1'>[<{$table.lid}>] <img class="move" src="<{$modPathIcon16}>/drag.png" alt="<{$table.name}>" /></td>
+ <td class='cell cell-width2'><{$table.name}></td>
+ <td class='cell cell-width3'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="30" /></td>
+ <td class='cell cell-width4'><{$table.nbfields}></td>
+ <td class='cell cell-width5'><img id="loading_img_table_admin<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_admin<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_admin: <{if $table.admin}>0<{else}>1<{/if}> }, 'img_table_admin<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width6'><img id="loading_img_table_user<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_user<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_user: <{if $table.user}>0<{else}>1<{/if}> }, 'img_table_user<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width7'><img id="loading_img_table_blocks<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_blocks<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_blocks: <{if $table.blocks}>0<{else}>1<{/if}> }, 'img_table_blocks<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.blocks}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width8'><img id="loading_img_table_submenu<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_submenu<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_submenu: <{if $table.submenu}>0<{else}>1<{/if}> }, 'img_table_submenu<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.submenu}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width9'><img id="loading_img_table_search<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_search<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_search: <{if $table.search}>0<{else}>1<{/if}> }, 'img_table_search<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width10'><img id="loading_img_table_comments<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_comments<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_comments: <{if $table.comments}>0<{else}>1<{/if}> }, 'img_table_comments<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width11'><img id="loading_img_table_notifications<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_notifications<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_notifications: <{if $table.notifications}>0<{else}>1<{/if}> }, 'img_table_notifications<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='cell cell-width12'><img id="loading_img_table_permissions<{$table.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_table_permissions<{$table.id}>" onclick="tdmcreate_setStatus( { op: 'display_tables', table_id: <{$table.id}>, table_permissions: <{if $table.permissions}>0<{else}>1<{/if}> }, 'img_table_permissions<{$table.id}>', 'tables.php' )" src="<{xoModuleIcons16}><{$table.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$table.name}>" />
+ </td>
+ <td class='xo-actions cell cell-width13'>
+ <a href="tables.php?op=edit&table_mid=<{$table.mid}>&table_id=<{$table.id}>" title="<{$smarty.const._EDIT}>">
+ <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" />
+ </a>
+ <a href="fields.php?op=edit&field_mid=<{$table.mid}>&field_tid=<{$table.id}>" title="<{$smarty.const._EDIT}>">
+ <img src="<{$modPathIcon16}>/editfields.png" alt="<{$smarty.const._EDIT}>" />
+ </a>
+ <a href="tables.php?op=delete&table_id=<{$table.id}>" title="<{$smarty.const._DELETE}>">
+ <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" />
+ </a>
+ </td>
+ </tr>
+ <{/if}>
+ <{/foreach}>
+ </tbody>
+</table>
\ No newline at end of file
|