From: <txm...@us...> - 2015-04-27 19:41:45
|
Revision: 13047 http://sourceforge.net/p/xoops/svn/13047 Author: txmodxoops Date: 2015-04-27 19:41:43 +0000 (Mon, 27 Apr 2015) Log Message: ----------- Updated 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/css/admin/style.css 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.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables.tpl Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/fields.php 2015-04-27 19:41:43 UTC (rev 13047) @@ -243,9 +243,9 @@ break; case 'order': - foreach($_REQUEST['field_order'] as $order => $id) { + foreach($_POST['field_order'] as $order => $value) { if( $order > 0 ) { - $fieldsObj = $tdmcreate->getHandler('fields')->get( $id ); + $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); Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/admin/tables.php 2015-04-27 19:41:43 UTC (rev 13047) @@ -255,9 +255,9 @@ break; case 'order': - foreach($_POST['table_order'] as $order => $id) { + foreach($_POST['table_order'] as $order => $value) { if( $order > 0 ) { - $tablesObj = $tdmcreate->getHandler('tables')->get( $id ); + $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); Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/admin/style.css =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/admin/style.css 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/css/admin/style.css 2015-04-27 19:41:43 UTC (rev 13047) @@ -19,7 +19,7 @@ * @version $Id: style.css 12258 2014-01-02 09:33:29Z timgno $ */ - body { +body { background: #fafafa; color: #444; font-family: verdana, arial, tahoma, helvetica, sans-serif; @@ -29,8 +29,9 @@ table { margin: 0; padding: 0; } /* Sortable tables & fields */ -tbody tr.sortable td img.move { - cursor: move; +tbody tr td.sortable img.move { + cursor: move; + text-align: center; } tbody tr:hover { @@ -38,41 +39,41 @@ } tr.modules td { - margin: 0; - padding: 5px; - border-bottom: 1px solid #ccc; - background-color:rgba(200,110,20,0.3); - vertical-align: middle; + margin: 0; + padding: 5px; + border-bottom: 1px solid #ccc; + background-color:rgba(200,110,20,0.3); + vertical-align: middle; } tr.tables td { - /* display: block; Problems in FireFox and Opera */ - margin: 0; - padding: 5px; - border-bottom: 1px solid #ccc; - background-color:rgba(230,130,100,0.3); - vertical-align: middle; + /* display: block; Problems in FireFox and Opera */ + margin: 0; + padding: 5px; + border-bottom: 1px solid #ccc; + background-color:rgba(230,130,100,0.3); + vertical-align: middle; } tr.fields td { - /* display: block; Problems in FireFox and Opera */ - margin: 0; - padding: 5px; - border-bottom: 1px solid #ccc; - background-color:rgba(0,255,0,0.3); - vertical-align: middle; + /* display: block; Problems in FireFox and Opera */ + margin: 0; + padding: 5px; + border-bottom: 1px solid #ccc; + background-color:rgba(0,255,0,0.3); + vertical-align: middle; } /*#show_rows { margin: 0; padding: 0; width: 60%; } #sortable tr { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.1em; height: 16px; }*/ .toggleChild { - display: none; + display: none; } img.imageToggle { - width: 16px; - height: 16px; + width: 16px; + height: 16px; } .even { 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-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/assets/js/sortable.js 2015-04-27 19:41:43 UTC (rev 13047) @@ -2,42 +2,23 @@ // 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() { + $('.table-list').sortable({ opacity: 0.6, handle : '.move', cursor: 'move', + update: function(event, ui) { var order = $(this).sortable('serialize') + '&op=order'; - $('#info').load('tables.php'); $.post('tables.php', order, function(response) { $('#message').html(response); - }); + }); } - }); + }).disableSelection(); }); /* Call the container items to reorder fields */ $(document).ready(function() { - $('.field-list').sortable({ - opacity: 0.6, - handle : '.move', - cursor: 'move', + $('.field-list').sortable({ opacity: 0.6, handle : '.move', cursor: 'move', update: function() { var order = $(this).sortable('serialize') + '&op=order'; - $('#info').load('fields.php'); $.post('fields.php', order, function(response) { $('#message').html(response); - }); + }); } - }); -}); -/* -$(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 - // salvo una variabile che contiene l'array con il nuovo ordine degli elementi - var order = $('.field-list').sortable('serialize') + '&op=order'; - $("#info").load('fields.php'); - } - }); -});*/ \ No newline at end of file + }).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-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/fields.php 2015-04-27 19:41:43 UTC (rev 13047) @@ -352,7 +352,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['.$id.']', $field->getVar('field_element')); Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/sql/mysql.sql 2015-04-27 19:41:43 UTC (rev 13047) @@ -64,7 +64,7 @@ `table_name` VARCHAR(150) NOT NULL DEFAULT '', `table_fieldname` VARCHAR(150) NOT NULL DEFAULT '', `table_nbfields` INT(5) UNSIGNED NOT NULL DEFAULT '0', - `table_order` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0', + `table_order` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0', `table_image` VARCHAR(150) NOT NULL DEFAULT '', `table_autoincrement` TINYINT(1) NOT NULL DEFAULT '1', `table_blocks` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields.tpl =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields.tpl 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields.tpl 2015-04-27 19:41:43 UTC (rev 13047) @@ -22,39 +22,41 @@ </tr> </thead> <tbody> - <{foreach item=table from=$tables_list}> - <tr id="table_<{$table.id}>" order="<{$table.order}>" class="fields toggleMain"> - <td class='center bold width5'>(<{$table.lid}>) - <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a> - </td> - <td class='center'><u class='bold'><{$table.name}></u></td> - <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" title="<{$table.name}>" alt="<{$table.name}>" /></td> - <td class='center bold'><{$table.nbfields}></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> - <td class='xo-actions txtcenter width6'> - <a href="tables.php?op=edit&table_mid=<{$table.mid}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>"> - <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>" /> - </a> - <a href="fields.php?op=edit&field_mid=<{$table.mid}>&field_tid=<{$table.id}>&field_numb=<{$table.nbfields}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>"> - <img src="<{xoModuleIcons16 inserttable.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>" /> - </a> - <a href="fields.php?op=delete&field_tid=<{$table.id}>" title="<{$smarty.const._DELETE}>"> - <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" /> - </a> - </td> - </tr> - <tr class="toggleChild"> - <td id="sortable" colspan="14" class='center'><{includeq file="db:tdmcreate_fields_item.tpl" table=$table}></td> - </tr> - <{/foreach}> + <{foreach item=table from=$tables_list}> + <{if $table.id > 0}> + <tr id="table_<{$table.id}>" order="<{$table.order}>" class="fields toggleMain"> + <td class='center bold width5'>(<{$table.lid}>) + <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a> + </td> + <td class='center'><u class='bold'><{$table.name}></u></td> + <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" title="<{$table.name}>" alt="<{$table.name}>" /></td> + <td class='center bold'><{$table.nbfields}></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" /></td> + <td class='xo-actions txtcenter width6'> + <a href="tables.php?op=edit&table_mid=<{$table.mid}>&table_id=<{$table.id}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>"> + <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_TABLE}>" /> + </a> + <a href="fields.php?op=edit&field_mid=<{$table.mid}>&field_tid=<{$table.id}>&field_numb=<{$table.nbfields}>" title="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>"> + <img src="<{xoModuleIcons16 inserttable.png}>" alt="<{$smarty.const._AM_TDMCREATE_EDIT_FIELDS}>" /> + </a> + <a href="fields.php?op=delete&field_tid=<{$table.id}>" title="<{$smarty.const._DELETE}>"> + <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" /> + </a> + </td> + </tr> + <tr class="toggleChild"> + <td class="sortable" colspan="14"><{includeq file="db:tdmcreate_fields_item.tpl" table=$table}></td> + </tr> + <{/if}> + <{/foreach}> </tbody> </table><br /><br /> <!-- Display modules navigation --> 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-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_fields_item.tpl 2015-04-27 19:41:43 UTC (rev 13047) @@ -2,7 +2,7 @@ <tbody class="field-list"> <{foreach item=field from=$table.fields}> <{if $field.id > 0}> - <tr id="field_<{$table.id}>_<{$field.id}>" order="<{$field.order}>" class="<{cycle values='even,odd'}>"> + <tr id="field_order_<{$field.tid}>_<{$field.id}>_<{$field.order}>" order="<{$field.order}>" class="<{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> Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables.tpl =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables.tpl 2015-04-26 16:14:14 UTC (rev 13046) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/templates/admin/tdmcreate_tables.tpl 2015-04-27 19:41:43 UTC (rev 13047) @@ -2,63 +2,65 @@ <{includeq file="db:tdmcreate_header.tpl"}> <!-- Display modules list --> <{if $modules_list}> - <table class='outer width100'> - <thead> - <tr> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NBFIELDS_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ADMIN_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_USER_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_BLOCKS_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SUBMENU_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SEARCH_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_COMMENTS_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST}></th> - <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_PERMISSIONS_LIST}></th> - <th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th> - </tr> - </thead> - <tbody> - <{foreach item=module from=$modules_list}> - <tr id="module<{$module.id}>" class="tables toggleMain"> - <td class='center bold width5'>(<{$module.id}>) - <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a> - </td> - <td class='center bold green'><{$module.name}></td> - <td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" alt="" height="35" /></td> - <td class='center'><img src="<{$modPathIcon16}>/fields.png" alt="16" /></td> - <td class='center'><img id="loading_img_admin<{$module.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_admin<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_admin: <{if $module.admin == 1}>0<{else}>1<{/if}> }, 'img_admin<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img id="loading_img_user<{$module.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_user<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_user: <{if $module.user}>0<{else}>1<{/if}> }, 'img_user<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img id="loading_img_blocks<{$module.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_blocks<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_blocks: <{if $module.blocks}>0<{else}>1<{/if}> }, 'img_blocks<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.blocks}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img src="<{$tdmc_icons_url}>/16/submenu.png" alt="Submenu" title="Submenu" /></td> - <td class='center'><img id="loading_img_search<{$module.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_search<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_search: <{if $module.search}>0<{else}>1<{/if}> }, 'img_search<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img id="loading_img_comments<{$module.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_comments<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_comments: <{if $module.comments}>0<{else}>1<{/if}> }, 'img_comments<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img id="loading_img_notifications<{$module.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_notifications<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_notifications: <{if $module.notifications}>0<{else}>1<{/if}> }, 'img_notifications<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='center'><img id="loading_img_permissions<{$module.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_permissions<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_permissions: <{if $module.permissions}>0<{else}>1<{/if}> }, 'img_permissions<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> - </td> - <td class='xo-actions txtcenter width6'> - <a href="modules.php?op=edit&mod_id=<{$module.id}>" title="<{$smarty.const._EDIT}>"> - <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /> - </a> - <a href="modules.php?op=delete&mod_id=<{$module.id}>" title="<{$smarty.const._DELETE}>"> - <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /> - </a> - </td> - </tr> - <tr class="toggleChild"> - <td id="sortable" colspan="13" class='center'><{includeq file="db:tdmcreate_tables_item.tpl" module=$module}></td> - </tr> - <{/foreach}> - </tbody> - </table><br /><br /> + <table class='outer width100'> + <thead> + <tr> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NBFIELDS_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ADMIN_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_USER_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_BLOCKS_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SUBMENU_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_SEARCH_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_COMMENTS_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST}></th> + <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_PERMISSIONS_LIST}></th> + <th class='center width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th> + </tr> + </thead> + <tbody> + <{foreach item=module from=$modules_list}> + <{if $module.id > 0}> + <tr id="module<{$module.id}>" class="tables toggleMain"> + <td class='center bold width5'>(<{$module.id}>) + <a href="#" title="Toggle"><img class="imageToggle" src="<{$modPathIcon16}>/toggle.png" alt="Toggle" /></a> + </td> + <td class='center bold green'><{$module.name}></td> + <td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" alt="" height="35" /></td> + <td class='center'><img src="<{$modPathIcon16}>/fields.png" alt="16" /></td> + <td class='center'><img id="loading_img_admin<{$module.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_admin<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_admin: <{if $module.admin == 1}>0<{else}>1<{/if}> }, 'img_admin<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img id="loading_img_user<{$module.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_user<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_user: <{if $module.user}>0<{else}>1<{/if}> }, 'img_user<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img id="loading_img_blocks<{$module.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_blocks<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_blocks: <{if $module.blocks}>0<{else}>1<{/if}> }, 'img_blocks<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.blocks}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img src="<{$tdmc_icons_url}>/16/submenu.png" alt="Submenu" title="Submenu" /></td> + <td class='center'><img id="loading_img_search<{$module.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_search<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_search: <{if $module.search}>0<{else}>1<{/if}> }, 'img_search<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img id="loading_img_comments<{$module.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_comments<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_comments: <{if $module.comments}>0<{else}>1<{/if}> }, 'img_comments<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img id="loading_img_notifications<{$module.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_notifications<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_notifications: <{if $module.notifications}>0<{else}>1<{/if}> }, 'img_notifications<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='center'><img id="loading_img_permissions<{$module.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_permissions<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display_modules', mod_id: <{$module.id}>, mod_permissions: <{if $module.permissions}>0<{else}>1<{/if}> }, 'img_permissions<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.permissions}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" /> + </td> + <td class='xo-actions txtcenter width6'> + <a href="modules.php?op=edit&mod_id=<{$module.id}>" title="<{$smarty.const._EDIT}>"> + <img src="<{xoModuleIcons16 edit.png}>" alt="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /> + </a> + <a href="modules.php?op=delete&mod_id=<{$module.id}>" title="<{$smarty.const._DELETE}>"> + <img src="<{xoModuleIcons16 delete.png}>" alt="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /> + </a> + </td> + </tr> + <tr class="toggleChild"> + <td class="sortable" colspan="13"><{includeq file="db:tdmcreate_tables_item.tpl" module=$module}></td> + </tr> + <{/if}> + <{/foreach}> + </tbody> + </table><br /><br /> <!-- Display modules navigation --> <div class="clear"> </div> <{if $pagenav}><div class="xo-pagenav floatright"><{$pagenav}></div><div class="clear spacer"></div><{/if}> |