From: <txm...@us...> - 2015-04-26 16:14:16
|
Revision: 13046 http://sourceforge.net/p/xoops/svn/13046 Author: txmodxoops Date: 2015-04-26 16:14:14 +0000 (Sun, 26 Apr 2015) Log Message: ----------- Added Chechbox all controll Modified Paths: -------------- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/tables.php XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/admin.php Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/tables.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/tables.php 2015-04-26 15:06:26 UTC (rev 13045) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/class/tables.php 2015-04-26 16:14:14 UTC (rev 13046) @@ -174,13 +174,19 @@ $form->addElement($imgtray1); // $table_autoincrement = $this->isNew() ? 1 : $this->getVar('table_autoincrement'); - $check_table_autoincrement = new XoopsFormCheckBox(_AM_TDMCREATE_TABLE_AUTO_INCREMENT, 'table_autoincrement', $table_autoincrement); + $check_table_autoincrement = new XoopsFormRadioYN(_AM_TDMCREATE_TABLE_AUTO_INCREMENT, 'table_autoincrement', $table_autoincrement); $check_table_autoincrement->setDescription(_AM_TDMCREATE_TABLE_AUTO_INCREMENT_DESC); - $check_table_autoincrement->addOption(1, _AM_TDMCREATE_TABLE_AUTO_INCREMENT_OPTION); + //$check_table_autoincrement->addOption(1, _AM_TDMCREATE_TABLE_AUTO_INCREMENT_OPTION); $form->addElement($check_table_autoincrement); // $options_tray = new XoopsFormElementTray(_OPTIONS, '<br />'); // + $table_checkbox_all = new XoopsFormCheckBox('', "tablebox", 1); + $table_checkbox_all->addOption('allbox', _AM_TDMCREATE_TABLE_ALL ); + $table_checkbox_all->setExtra(" onclick='xoopsCheckAll(\"tableform\", \"tablebox\");' "); + $table_checkbox_all->setClass('xo-checkall'); + $options_tray->addElement($table_checkbox_all); + // $table_blocks = $isNew ? 0 : $this->getVar('table_blocks'); $check_table_blocks = new XoopsFormCheckBox(' ', 'table_blocks', $table_blocks); $check_table_blocks->addOption(1, _AM_TDMCREATE_TABLE_BLOCKS); Modified: XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/admin.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/admin.php 2015-04-26 15:06:26 UTC (rev 13045) +++ XoopsModules/TDMCreate/branches/timgno/1.91a1/tdmcreate/language/english/admin.php 2015-04-26 16:14:14 UTC (rev 13046) @@ -146,6 +146,7 @@ define('_AM_TDMCREATE_TABLE_FIELDNAME_DESC', "This is the prefix of field name (optional)<br />If you leave the field blank, doesn't appear anything in the fields of the next screen,<br />otherwise you'll see all the fields with a prefix type (i.e.: <span class='bold'>cat</span> of table <span class='bold'>categories</span>).<br /><b class='red bold'>WARNING</b>: It's recommended to use singolar word"); define('_AM_TDMCREATE_TABLE_OPTIONS_CHECKS_DESC', "For each table created, a file is created on behalf of this.<br /> Selecting one or more of these options, deciding whether to enter the name of the file to other files or you define a condition in these other files, need to be created or not."); +define('_AM_TDMCREATE_TABLE_ALL', "Check All"); define('_AM_TDMCREATE_TABLE_IMAGE', "Table Logo"); //define('_AM_TDMCREATE_TABLE_IMAGE_DESC', "You can choose an image from the list, or upload a new one from your computer"); // Added in version 1.91 |