|
From: <txm...@us...> - 2014-03-29 00:44:44
|
Revision: 12416
http://sourceforge.net/p/xoops/svn/12416
Author: txmodxoops
Date: 2014-03-29 00:44:39 +0000 (Sat, 29 Mar 2014)
Log Message:
-----------
Updated
Modified Paths:
--------------
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/files/file.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css
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/templates/admin/tdmcreate_fields.html
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.html
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.html
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/modules.php 2014-03-29 00:44:39 UTC (rev 12416)
@@ -42,9 +42,7 @@
unset($criteria);
// Display modules list
if ($numrows>0)
- {
- $yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
- $no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
+ {
foreach (array_keys($mods_arr) as $i)
{
$mod['mod_id'] = $i;
@@ -53,12 +51,12 @@
$mod['mod_image'] = $mods_arr[$i]->getVar('mod_image');
$mod['mod_release'] = $mods_arr[$i]->getVar('mod_release');
$mod['mod_status'] = $mods_arr[$i]->getVar('mod_status');
- $mod['mod_admin'] = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $yes : $no;
- $mod['mod_user'] = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $yes : $no;
- $mod['mod_submenu'] = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $yes : $no;
- $mod['mod_search'] = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $yes : $no;
- $mod['mod_comments'] = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $yes : $no;
- $mod['mod_notifications'] = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $yes : $no;
+ $mod['mod_admin'] = $mods_arr[$i]->getVar('mod_admin');
+ $mod['mod_user'] = $mods_arr[$i]->getVar('mod_user');
+ $mod['mod_submenu'] = $mods_arr[$i]->getVar('mod_submenu');
+ $mod['mod_search'] = $mods_arr[$i]->getVar('mod_search');
+ $mod['mod_comments'] = $mods_arr[$i]->getVar('mod_comments');
+ $mod['mod_notifications'] = $mods_arr[$i]->getVar('mod_notifications');
$GLOBALS['xoopsTpl']->append('modules_list', $mod);
unset($mod);
}
@@ -186,6 +184,48 @@
} else {
xoops_confirm(array('ok' => 1, 'mod_id' => $_REQUEST['mod_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('mod_name')));
}
- break;
+ break;
+
+ case 'toggle':
+ if (isset($_GET['mod_id'])) {
+ $mod_id = intval($_GET['mod_id']);
+ if (isset($_GET['mod_admin'])) {
+ $mod_admin = intval($_GET['mod_admin']);
+ $mod_admin = ($mod_admin == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_admin', $mod_admin);
+ } elseif (isset($_GET['mod_user'])) {
+ $mod_user = intval($_GET['mod_user']);
+ $mod_user = ($mod_user == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_user', $mod_user);
+ } elseif (isset($_GET['mod_submenu'])) {
+ $mod_submenu = intval($_GET['mod_submenu']);
+ $mod_submenu = ($mod_submenu == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_submenu', $mod_submenu);
+ } elseif (isset($_GET['mod_search'])) {
+ $mod_search = intval($_GET['mod_search']);
+ $mod_search = ($mod_search == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_search', $mod_search);
+ } elseif (isset($_GET['mod_comments'])) {
+ $mod_comments = intval($_GET['mod_comments']);
+ $mod_comments = ($mod_comments == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_comments', $mod_comments);
+ } elseif (isset($_GET['mod_notifications'])) {
+ $mod_notifications = intval($_GET['mod_notifications']);
+ $mod_notifications = ($mod_notifications == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('mod_notifications', $mod_notifications);
+ }
+ if ($modulesHandler->insert($obj, true)) {
+ redirect_header('modules.php', 1, _AM_TDMCREATE_MODULE_TOGGLE_SUCCESS);
+ } else {
+ redirect_header('modules.php', 1, _AM_TDMCREATE_MODULE_TOGGLE_FAILED);
+ }
+ }
+ break;
}
include 'footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-03-29 00:44:39 UTC (rev 12416)
@@ -59,20 +59,18 @@
unset($criteria);
// Display modules list
if ( $numrows_modules > 0 )
- {
- $_yyes = "<img src='../images/icons/16/yellow.png' alt='"._YES."' title='"._YES."' />";
- $_no = "<img src='../images/icons/16/red.png' alt='"._NO."' title='"._NO."' />";
+ {
foreach (array_keys($mods_arr) as $i)
{
$mod['id'] = $i;
$mod['name'] = $mods_arr[$i]->getVar('mod_name');
$mod['image'] = $mods_arr[$i]->getVar('mod_image');
- $mod['admin'] = ( $mods_arr[$i]->getVar('mod_admin') == 1 ) ? $_yyes : $_no;
- $mod['user'] = ( $mods_arr[$i]->getVar('mod_user') == 1 ) ? $_yyes : $_no;
- $mod['submenu'] = ( $mods_arr[$i]->getVar('mod_submenu') == 1 ) ? $_yyes : $_no;
- $mod['search'] = ( $mods_arr[$i]->getVar('mod_search') == 1 ) ? $_yyes : $_no;
- $mod['comments'] = ( $mods_arr[$i]->getVar('mod_comments') == 1 ) ? $_yyes : $_no;
- $mod['notifications'] = ( $mods_arr[$i]->getVar('mod_notifications') == 1 ) ? $_yyes : $_no;
+ $mod['admin'] = $mods_arr[$i]->getVar('mod_admin');
+ $mod['user'] = $mods_arr[$i]->getVar('mod_user');
+ $mod['submenu'] = $mods_arr[$i]->getVar('mod_submenu');
+ $mod['search'] = $mods_arr[$i]->getVar('mod_search');
+ $mod['comments'] = $mods_arr[$i]->getVar('mod_comments');
+ $mod['notifications'] = $mods_arr[$i]->getVar('mod_notifications');
// Get the list of tables
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('table_mid', $i));
@@ -85,7 +83,6 @@
$tables = array();
if ( $numrows_tables > 0 )
{
- $_yes = "<img src='../images/icons/16/green.png' alt='"._YES."' title='"._YES."' />";
foreach (array_keys($tables_arr) as $t)
{
$table['id'] = $t;
@@ -93,13 +90,13 @@
$table['name'] = $tables_arr[$t]->getVar('table_name');
$table['image'] = $tables_arr[$t]->getVar('table_image');
$table['nbfields'] = $tables_arr[$t]->getVar('table_nbfields');
- $table['blocks'] = ( $tables_arr[$t]->getVar('table_blocks') == 1 ) ? $_yes : $_no;
- $table['admin'] = ( $tables_arr[$t]->getVar('table_admin') == 1 ) ? $_yes : $_no;
- $table['user'] = ( $tables_arr[$t]->getVar('table_user') == 1 ) ? $_yes : $_no;
- $table['submenu'] = ( $tables_arr[$t]->getVar('table_submenu') == 1 ) ? $_yes : $_no;
- $table['search'] = ( $tables_arr[$t]->getVar('table_search') == 1 ) ? $_yes : $_no;
- $table['comments'] = ( $tables_arr[$t]->getVar('table_comments') == 1 ) ? $_yes : $_no;
- $table['notifications'] = ( $tables_arr[$t]->getVar('table_notifications') == 1 ) ? $_yes : $_no;
+ $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');
$tables[] = $table;
unset($table);
}
@@ -216,6 +213,53 @@
} else {
xoops_confirm(array('ok' => 1, 'table_id' => $_REQUEST['table_id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('table_name')));
}
- break;
+ break;
+
+ case 'toggle':
+ if (isset($_GET['table_id'])) {
+ $table_id = intval($_GET['table_id']);
+ if (isset($_GET['table_blocks'])) {
+ $table_blocks = intval($_GET['table_blocks']);
+ $table_blocks = ($table_blocks == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('table_blocks', $table_blocks);
+ } elseif (isset($_GET['table_admin'])) {
+ $table_admin = intval($_GET['table_admin']);
+ $table_admin = ($table_admin == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['mod_id']);
+ $obj->setVar('table_admin', $table_admin);
+ } elseif (isset($_GET['table_user'])) {
+ $table_user = intval($_GET['table_user']);
+ $table_user = ($table_user == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['table_id']);
+ $obj->setVar('table_user', $table_user);
+ } elseif (isset($_GET['table_submenu'])) {
+ $table_submenu = intval($_GET['table_submenu']);
+ $table_submenu = ($table_submenu == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['table_id']);
+ $obj->setVar('table_submenu', $table_submenu);
+ } elseif (isset($_GET['table_search'])) {
+ $table_search = intval($_GET['table_search']);
+ $table_search = ($table_search == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['table_id']);
+ $obj->setVar('table_search', $table_search);
+ } elseif (isset($_GET['table_comments'])) {
+ $table_comments = intval($_GET['table_comments']);
+ $table_comments = ($table_comments == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['table_id']);
+ $obj->setVar('table_comments', $table_comments);
+ } elseif (isset($_GET['table_notifications'])) {
+ $table_notifications = intval($_GET['table_notifications']);
+ $table_notifications = ($table_notifications == 1) ? 0 : 1;
+ $obj =& $modulesHandler->get($_REQUEST['table_id']);
+ $obj->setVar('table_notifications', $table_notifications);
+ }
+ if ($modulesHandler->insert($obj, true)) {
+ redirect_header('tables.php', 1, _AM_TDMCREATE_TABLE_TOGGLE_SUCCESS);
+ } else {
+ redirect_header('tables.php', 1, _AM_TDMCREATE_TABLE_TOGGLE_FAILED);
+ }
+ }
+ break;
}
include 'footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/file.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/file.php 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/file.php 2014-03-29 00:44:39 UTC (rev 12416)
@@ -35,11 +35,6 @@
/*
* @var string
*/
- private $folder_name = null;
-
- /*
- * @var string
- */
private $file_name = null;
/*
@@ -86,8 +81,7 @@
* @public function constructor
* @param string $content
*/
- public function create($path, $folder_name, $file_name, $content = '', $created = false, $notcreated = false, $mode = 'w+') {
- $this->folder_name = $folder_name;
+ public function create($path, $file_name, $content = '', $created = false, $notcreated = false, $mode = 'w+') {
$this->file_name = $file_name;
$this->created = $created;
$this->notcreated = $notcreated;
@@ -137,7 +131,14 @@
* @param null
*/
private function getFolderName() {
- return $this->folder_name;
+ $path = $this->path();
+ if(strrpos($path, "/"))
+ {
+ $str = strrpos($path, '/');
+ if($str !== false){
+ return substr($path, $str + 1, strlen($path));
+ }
+ }
}
/*
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/css/admin/style.css 2014-03-29 00:44:39 UTC (rev 12416)
@@ -1,224 +1,35 @@
@charset "UTF-8";
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
/**
- * MyLinks module
+ * tdmcreate module
*
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * which is considered copyrighted (c) material of the original comment or credit authors.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license:: http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package:: mylinks
- * @since:: 2.5.0
- * @author: kris <http://www.xoofoo.org>
- * @version:: $Id $
-**/
-#Slideshow_Title {
- font-size: 20px;
- color: #393e41;
- height: 50px;
- border-bottom: 1px solid #393e41;
- margin-bottom: 5px;
- line-height: 50px;
- background-position: left top;
- background-repeat: no-repeat;
- /*text-shadow: 0 1px 0 #eee,
- 0 2px 0 #e9e9e9,
- 0 3px 0 #ddd,
- 0 4px 0 #d9d9d9,
- 0 5px 0 #ccc,
- 0 6px 1px rgba(0,0,0,.1),
- 0 0 5px rgba(0,0,0,.1),
- 0 1px 3px rgba(0,0,0,.3),
- 0 3px 5px rgba(0,0,0,.2),
- 0 5px 10px rgba(0,0,0,.35),
- 0 10px 10px rgba(0,0,0,.2);*/
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: style.css 12258 2014-01-02 09:33:29Z timgno $
+ */
+/* Toggle lists */
+tr.toggleMain td {
+ display: block;
}
-.Slideshow_MediumTitle {
- font-size: 14px;
- color: #393e41;
- /*text-shadow: 0 1px 0 #eee,
- 0 2px 0 #e9e9e9,
- 0 3px 0 #ddd,
- 0 4px 0 #d9d9d9,
- 0 5px 0 #ccc,
- 0 6px 1px rgba(0,0,0,.1),
- 0 0 5px rgba(0,0,0,.1),
- 0 1px 3px rgba(0,0,0,.3),
- 0 3px 5px rgba(0,0,0,.2),
- 0 5px 10px rgba(0,0,0,.35),
- 0 10px 10px rgba(0,0,0,.2);*/
-}
-/* Index page */
-#Slideshow_Index {
- float: left;
- padding: 0 0 0 60px;
- background-image: url(../images/admin/index.png);
- background-position: left top;
- background-repeat: no-repeat;
-}
-/* Help page */
-#Slideshow_Help {
- float: left;
- padding: 0 0 0 60px;
- background-image: url(../images/admin/help.png);
- background-position: left top;
- background-repeat: no-repeat;
-}
-/* About page */
-#Slideshow_About {
- float: left;
- padding: 0 0 0 60px;
- background-image: url(../images/admin/about.png);
- background-position: left top;
- background-repeat: no-repeat;
-}
-#about fieldset {
- margin: 10px;
- padding: 5px;
-}
-#about legend {
- margin: 0 5px;
- padding: 0 5px 8px 5px;
-}
-#about label, #about text {
- display: block;
- float: left;
- margin-bottom: 12px;
-}
-#about label {
- text-align: right;
- width: 200px;
- padding-right: 20px;
-}
-#about br { clear: both;}
-#about .txtchangelog { height:350px; overflow:auto;}
-fieldset p { margin-bottom: .5em;}
-
-#myid {}
-
-/* Buttons style */
-.xo-buttons a, .xo-buttons button{
- display:block-inline;
- margin:0 5px 0 0;
- background: #e4e4e5 url('../images/admin/bg_button.gif') repeat-x;
- border:1px solid #d6d6d6;
- border-top:1px solid #dedede;
- border-left:1px solid #dedede;
- font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
- font-size:100%;
- line-height:110%;
- text-decoration:none;
- font-weight:bold;
- color:#454545;
- cursor:pointer;
- padding:3px 8px 4px 5px; /* Links */
+.toggleChild {
+ display: none;
}
-.xo-buttons a:hover, .xo-buttons button:hover {
- border:1px solid #ccc;
- border-top:1px solid #d6d6d6;
- border-left:1px solid #d6d6d6;
-}
-.xo-buttons button{
- width:auto;
- overflow:visible;
- padding:3px 8px 4px 5px; /* IE6 */
-}
-.xo-buttons button[type]{
- padding:3px 5px 4px 5px; /* Firefox */
- line-height:15px; /* Safari */
-}
-*:first-child+html button[type]{
- padding:3px 8px 4px 5px; /* IE7 */
-}
-.xo-buttons button img, .xo-buttons a img{
- margin:0 3px -3px 0 !important;
- padding:0;
- border:none;
- width:16px;
- height:16px;
-}
-.ui-corner-all { -moz-border-radius: 5px; -webkit-border-radius: 5px; }
-/* Buttons style */
-/* align */
-.floatright{ float:right; margin:0; padding:2px; border:0; }
-.floatleft{ float:left; margin:0; padding:2px; border:0; }
-.aligncenter{ text-align:center; margin:0; padding:2px; border:0; }
-/* align */
-
-/* label */
-.label{font-size: 16px; color: #2F5376; font-weight: bold;}
-
-/* label */
-
-/* menu */
-div.rmmenuicon{
- margin: 3px;
- font-family: Tahoma, Arial, Helvetica;
- text-align: center;
+img.imageToggle {
+ width: 16px;
+ height: 16px;
}
-div.rmmenuicon a {
- display: block; float: left;
- height: 75px !important;
- height: 75px;
- width: 75px !important;
- width: 75px;
- vertical-align: middle;
- text-decoration : none;
- border: 1px solid #CCCCCC;
- padding: 2px 5px 1px 5px;
- margin: 3px;
- color: #666666;
- background-color: #f0f0f0;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- -khtml-border-radius: 6px;
- border-radius: 6px;
-
-
-}
-div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; }
-div.rmmenuicon a span {
- font-size: 11px;
- font-weight: bold;
- display: block;
-}
-div.rmmenuicon a:hover{
- background-color: #FFF6C1;
- border: 1px solid #FF9900;
- color: #1E90FF;
-}
-div.rmmenuicon a:hover span{
- text-decoration: none;
-}
-
-div.CPbigTitle{
- font-size: 12px;
- color: #606060;
- background: no-repeat left top;
- font-weight: bold;
- height: 30px;
- vertical-align: middle;
- padding: 5px 0 0 40px;
- border-bottom: 1px solid #393e41;
-}
-/* menu */
-
-.txtchangelog { height:350px; overflow:auto;}
-
-
-tr.toggleTables td {
- /* display: none;*/
-}
-
-.toggleHidden {
- display: none;
-}
-
.width6{ width: 6%; }
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/js/functions.js 2014-03-29 00:44:39 UTC (rev 12416)
@@ -82,10 +82,11 @@
*/
$(document).ready( function() {
- $('.toggleTables').click( function(e) {
+ $('tr').find('img.imageToggle').on('click', function(e) {
e.preventDefault();
- $(this).nextAll('tr').each( function() {
- if ($(this).is('.toggleTables')) {
+ /*$('tr.toggleChild').toggle();*/
+ $(this).nextAll('tr.toggleChild').each( function() {
+ if ($(this).is('.toggleMain')) {
return false;
}
$(this).toggle();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-03-29 00:44:39 UTC (rev 12416)
@@ -253,10 +253,10 @@
define('_AM_TDMCREATE_CONST_TABLES', "Select the table you want to build");
//Creation
//OK
-define('_AM_TDMCREATE_CONST_OK_ARCHITECTURE', "<span class='green'>The structure of the module was created (index.html, folders, ...)</span>");
+define('_AM_TDMCREATE_CONST_OK_ARCHITECTURE', "<span class='green'>The structure of the module was created (index.html, folders, icons, docs files)</span>");
define('_AM_TDMCREATE_CONST_OK_FILE_IN_FOLDER', "The file <b>%s</b> is created in the <span class='green bold'>%s</span> of module");
//NOTOK
-define('_AM_TDMCREATE_CONST_NOTOK_ARCHITECTURE', "<span class='red'>Problems: Creating the structure of the module (index.html, icons ,...)</span>");
+define('_AM_TDMCREATE_CONST_NOTOK_ARCHITECTURE', "<span class='red'>Problems: Creating the structure of the module (index.html, folders, icons, docs files)</span>");
define('_AM_TDMCREATE_CONST_NOTOK_FILE_IN_FOLDER', "Problems: Creating file <b class='red'>%s</b> in the <span class='red bold'>%s</span> of module");
//------------ new additions: Ver. 1.11 -----------------------
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.html 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_fields.html 2014-03-29 00:44:39 UTC (rev 12416)
@@ -3,7 +3,8 @@
<!-- Display tables list -->
<{if $tables_list}>
<table width='100%' cellspacing='1' class='outer'>
- <tr>
+ <thead>
+ <tr>
<th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_ID}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_NAME}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_TABLE_IMAGE}></th>
@@ -16,12 +17,14 @@
<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 width10'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
- </tr>
+ </tr>
+ </thead>
+ <tbody>
<{foreach item=table from=$tables_list}>
- <tr class="<{cycle values='even,odd'}>">
- <td class='center'><{$table.id}></td>
+ <tr class="<{cycle values='even,odd'}> toggleMain">
+ <td class='center'><{$table.id}><br /><img src="<{$tdmc_url}>/images/icons/16/toggle.png" alt="Toggle" title="Toggle" /></td>
<td class='center'><{$table.name}></td>
- <td class='center'><img src="<{$pathIcon32}>/<{$table.image}>" alt="<{$table.name}>" height="32" /></td>
+ <td class='center'><img src="<{$pathIcon32}>/<{$table.image}>" alt="<{$table.name}>" height="30" /></td>
<td class='center'><{$table.nbfields}></td>
<td class='center'><{$table.blocks}></td>
<td class='center'><{$table.admin}></td>
@@ -42,7 +45,16 @@
</a>
</td>
</tr>
+ <{foreach item=field from=$table.fields}>
+ <tr class="<{cycle values='even,odd'}> toggleChild">
+ <td class='center'><{$field.id}></td>
+ <td class='center'><{$field.name}></td>
+ <td class='center'><img src="<{$pathIcon32}>/<{$field.image}>" alt="<{$field.name}>" height="30" /></td>
+ <td class='center'></td>
+ </tr>
+ <{/foreach}>
<{/foreach}>
+ </tbody>
</table><br /><br />
<!-- Display modules navigation -->
<div class="clear"> </div>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.html 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_modules.html 2014-03-29 00:44:39 UTC (rev 12416)
@@ -26,13 +26,36 @@
<td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.mod_image}>" height="32" /></td>
<td class='center'><{$module.mod_release}></td>
<td class='center'><{$module.mod_status}></td>
- <td class='center'><{$module.mod_admin}></td>
- <td class='center'><{$module.mod_user}></td>
- <td class='center'><{$module.mod_submenu}></td>
- <td class='center'><{$module.mod_search}></td>
- <td class='center'><{$module.mod_comments}></td>
- <td class='center'><{$module.mod_notifications}></td>
-
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_admin=<{$module.mod_admin}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_user=<{$module.mod_user}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_user}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_submenu=<{$module.mod_submenu}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_submenu}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_search=<{$module.mod_search}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_search}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_comments=<{$module.mod_comments}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_notifications=<{$module.mod_notifications}>&mod_id=<{$module.mod_id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.mod_notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
<td class='xo-actions txtcenter width5'>
<a href="modules.php?op=edit&mod_id=<{$module.mod_id}>" title="<{$smarty.const._EDIT}>">
<img src="<{xoAdminIcons edit.png}>" alt="<{$smarty.const._EDIT}>" height="16" />
@@ -59,4 +82,4 @@
</div>
<{/if}>
<!-- Footer -->
-<{includeq file="db:tdmcreate_footer.html"}>
\ No newline at end of file
+<{includeq file="db:tdmcreate_footer.html"}>
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.html
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.html 2014-03-28 20:15:39 UTC (rev 12415)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.html 2014-03-29 00:44:39 UTC (rev 12416)
@@ -2,8 +2,9 @@
<{includeq file="db:tdmcreate_header.html"}>
<!-- Display modules list -->
<{if $modules_list}>
- <table width='100%' cellspacing='1' class='outer'>
- <tr>
+ <table id="showhide" width='100%' cellspacing='1' class='outer'>
+ <thead>
+ <tr>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ID}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NAME}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
@@ -16,21 +17,48 @@
<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 width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
- </tr>
+ </tr>
+ </thead> <!--<a href="" class="linkToggle">Toggle</a> -->
+ <tbody>
<{foreach item=module from=$modules_list}>
- <tr class="head toggleTables">
- <td class='center'><{$module.id}><br /><img src="<{$tdmc_url}>/images/icons/16/toggle.png" alt="Toggle" title="Toggle" /></td>
+ <tr class="head toggleMain">
+ <td class='center'><{$module.id}><br />
+ <img class="imageToggle" src="<{$tdmc_url}>/images/icons/16/toggle.png" alt="Toggle" title="Toggle" />
+ </td>
<td class='center'><{$module.name}></td>
<td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" height="32" /></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'><{$module.admin}></td>
- <td class='center'><{$module.user}></td>
- <td class='center'><{$module.submenu}></td>
- <td class='center'><{$module.search}></td>
- <td class='center'><{$module.comments}></td>
- <td class='center'><{$module.notifications}></td>
-
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_admin=<{$module.admin}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_user=<{$module.user}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.user}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_submenu=<{$module.submenu}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.submenu}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_search=<{$module.search}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.search}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_comments=<{$module.comments}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.comments}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
+ <td class='center'>
+ <a href="modules.php?op=toggle&mod_notifications=<{$module.notifications}>&mod_id=<{$module.id}>" title="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>">
+ <img src="<{xoModuleIcons16}><{$module.notifications}>.png" alt="<{$smarty.const._AM_TDMCREATE_MODULE_TOGGLE}>" />
+ </a>
+ </td>
<td class='xo-actions txtcenter width6'>
<a href="modules.php?op=edit&mod_id=<{$module.id}>" title="<{$smarty.const._EDIT}>">
<img src="<{xoAdminIcons edit.png}>" alt="<{$smarty.const._EDIT}>" height="16" />
@@ -38,13 +66,13 @@
<a href="modules.php?op=delete&mod_id=<{$module.id}>" title="<{$smarty.const._DELETE}>">
<img src="<{xoAdminIcons delete.png}>" alt="<{$smarty.const._DELETE}>" height="16" />
</a>
- </td>
+ </td>
</tr>
<{foreach item=table from=$module.tables}>
- <tr class="<{cycle values='even,odd'}> toggleHidden">
+ <tr class="<{cycle values='even,odd'}> toggleChild">
<td class='center'><{$table.id}></td>
<td class='center'><{$table.name}></td>
- <td class='center'><img src="<{$pathIcon32}>/<{$table.image}>" alt="<{$table.name}>" height="30" /></td>
+ <td class='center'><img src="<{xoModuleIcons32}><{$table.image}>" alt="<{$table.name}>" height="30" /></td>
<td class='center'><{$table.nbfields}></td>
<td class='center'><{$table.blocks}></td>
<td class='center'><{$table.admin}></td>
@@ -67,6 +95,7 @@
</tr>
<{/foreach}>
<{/foreach}>
+ </tbody>
</table><br /><br />
<!-- Display modules navigation -->
<div class="clear"> </div>
|