|
From: <txm...@us...> - 2014-07-05 17:11:21
|
Revision: 12679
http://sourceforge.net/p/xoops/svn/12679
Author: txmodxoops
Date: 2014-07-05 17:11:09 +0000 (Sat, 05 Jul 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Added mod_blocks option
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/objects.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/modules.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.tpl
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/objects.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/objects.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/objects.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -41,6 +41,7 @@
*/
public function getSimpleSetVar($tableName, $fieldName) {
$ret = <<<EOT
+ // Set Var {$fieldName}
\${$tableName}Obj->setVar('{$fieldName}', \$_POST['{$fieldName}']);\n
EOT;
return $ret;
@@ -52,6 +53,7 @@
*/
public function getTextDateSelect($tableName, $fieldName) {
$ret = <<<EOT
+ // Set Var {$fieldName}
\${$tableName}Obj->setVar('{$fieldName}', strtotime(\$_POST['{$fieldName}']));\n
EOT;
return $ret;
@@ -63,6 +65,7 @@
*/
public function getCheckBoxOrRadioYN($tableName, $fieldName) {
$ret = <<<EOT
+ // Set Var {$fieldName}
\${$tableName}Obj->setVar('{$fieldName}', ((\$_REQUEST['{$fieldName}'] == 1) ? '1' : '0'));\n
EOT;
return $ret;
@@ -75,7 +78,7 @@
*/
public function getImageList($moduleDirname, $tableName, $fieldName) {
$ret = <<<EOT
- // Set Var Image
+ // Set Var {$fieldName}
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
\$uploaddir = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32';
\$uploader = new XoopsMediaUploader(\$uploaddir, \${$moduleDirname}->getConfig('mimetypes'),
@@ -102,9 +105,9 @@
* @param string $fieldName
*/
public function getUploadImage($moduleDirname, $tableName, $fieldName) {
- $stuModuleDirname = strtolower($moduleDirname);
+ $stuModuleDirname = strtoupper($moduleDirname);
$ret = <<<EOT
- // Set Var Image
+ // Set Var {$fieldName}
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
\$uploaddir = {$stuModuleDirname}_UPLOAD_PATH.'/images/{$tableName}';
\$uploader = new XoopsMediaUploader(\$uploaddir, \${$moduleDirname}->getConfig('mimetypes'),
@@ -131,9 +134,9 @@
* @param string $fieldName
*/
public function getUploadFile($moduleDirname, $tableName, $fieldName) {
- $stuModuleDirname = strtolower($moduleDirname);
+ $stuModuleDirname = strtoupper($moduleDirname);
$ret = <<<EOT
- // Set Var File
+ // Set Var {$fieldName}
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
\$uploaddir = {$stuModuleDirname}_UPLOAD_PATH.'/files/{$tableName}';
\$uploader = new XoopsMediaUploader(\$uploaddir, \${$moduleDirname}->getConfig('mimetypes'),
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -108,7 +108,6 @@
// Creation of the Directory in repository
$targetDirectory = $this->uploadPath.'/repository/'. $stlModuleDirname;
$uploadImagesFolder = $this->uploadPath.'/images/repository';
-
// Creation of "module" folder
$this->structure->getPath($targetDirectory);
// Creation of "module" folder
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/classes/formelements.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -126,21 +126,8 @@
\$form->addElement( new XoopsFormHidden('{$fieldName}', \$this->getVar('{$fieldName}')) );\n
EOT;
return $ret;
- }
+ }
/*
- * @private function getXoopsFormUploadFile
- * @param string $language
- * @param string $fieldName
- * @param string $required
- */
- private function getXoopsFormUploadFile($language, $moduleDirname, $fieldName, $required = 'false') {
- $ret = <<<EOT
- // Form file
- \$form->addElement( new XoopsFormFile({$language}FORM_UPLOAD_FILE, '{$fieldName}', \$this->{$moduleDirname}->getConfig('maxsize')){$required} );\n
-EOT;
- return $ret;
- }
- /*
* @private function getXoopsFormImageList
* @param string $language
* @param string $moduleDirname
@@ -149,7 +136,8 @@
* @param string $required
*/
private function getXoopsFormImageList($language, $moduleDirname, $tableName, $fieldName, $required = 'false') {
- $stu_field_name = strtoupper($fieldName);
+ $stuTableName = strtoupper($tableName);
+ $stuFieldName = strtoupper($fieldName);
$ret = <<<EOT
// Form image file
\$get_{$fieldName} = \$this->getVar('{$fieldName}');
@@ -158,7 +146,7 @@
\$uploads_dir = '/uploads/'.\$GLOBALS['xoopsModule']->dirname().'/images/{$tableName}';
\$iconsdirectory = is_dir(XOOPS_ROOT_PATH . \$iconsdir) ? \$iconsdir : \$uploads_dir;
//
- \$imgtray1 = new XoopsFormElementTray({$language}{$stu_field_name},'<br />');
+ \$imgtray1 = new XoopsFormElementTray({$language}{$stuFieldName},'<br />');
\$imgpath = is_dir(XOOPS_ROOT_PATH . \$iconsdir) ? sprintf({$language}FORMIMAGE_PATH, ".{\$iconsdir}/") : sprintf({$language}FORMIMAGE_PATH, \$uploads_dir);
//\$imgpath1 = sprintf({$language}FORMIMAGE_PATH, ".{\$iconsdirectory}/");
\$imageselect1 = new XoopsFormSelect(\$imgpath, '{$fieldName}', \${$fieldName}, 10);
@@ -171,7 +159,7 @@
\$imgtray1->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".\$iconsdirectory."/".\${$fieldName}."' name='image1' id='image1' alt='' />" ) );
// Form File
\$fileseltray = new XoopsFormElementTray('','<br />');
- \$fileseltray->addElement(new XoopsFormFile({$language}FORM_UPLOAD_IMAGE_LIST , 'attachedfile', \$this->{$moduleDirname}->getConfig('maxsize')));
+ \$fileseltray->addElement(new XoopsFormFile({$language}FORM_UPLOAD_IMAGE_LIST_{$stuTableName} , 'attachedfile', \$this->{$moduleDirname}->getConfig('maxsize')));
\$fileseltray->addElement(new XoopsFormLabel(''));
\$imgtray1->addElement(\$fileseltray);
\$form->addElement( \$imgtray1{$required} );\n
@@ -182,17 +170,35 @@
* @private function getXoopsFormUploadImage
* @param string $language
* @param string $moduleDirname
+ * @param string $tableName
* @param string $required
*/
- private function getXoopsFormUploadImage($language, $moduleDirname, $required = 'false') {
+ private function getXoopsFormUploadImage($language, $moduleDirname, $tableName, $required = 'false') {
+ $stuTableName = strtoupper($tableName);
$ret = <<<EOT
// Form Upload Image
- \$formImage = new XoopsFormFile({$language}FORM_UPLOAD_IMAGE , 'attachedfile', \$this->{$moduleDirname}->getConfig('maxsize'));
+ \$formImage = new XoopsFormFile({$language}FORM_UPLOAD_IMAGE_{$stuTableName} , 'attachedfile', \$this->{$moduleDirname}->getConfig('maxsize'));
\$form->addElement( \$formImage{$required} );\n
EOT;
return $ret;
}
/*
+ * @private function getXoopsFormUploadFile
+ * @param string $language
+ * @param string $moduleDirname
+ * @param string $tableName
+ * @param string $fieldName
+ * @param string $required
+ */
+ private function getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required = 'false') {
+ $stuTableName = strtoupper($tableName);
+ $ret = <<<EOT
+ // Form file
+ \$form->addElement( new XoopsFormFile({$language}FORM_UPLOAD_FILE_{$stuTableName}, '{$fieldName}', \$this->{$moduleDirname}->getConfig('maxsize')){$required} );\n
+EOT;
+ return $ret;
+ }
+ /*
* @private function getXoopsFormColorPicker
* @param string $language
* @param string $fieldName
@@ -380,10 +386,10 @@
$ret .= $this->getXoopsFormImageList($language_funct, $moduleDirname, $tableName, $fieldName, $required);
break;
case 10:
- $ret .= $this->getXoopsFormUploadImage($language_funct, $moduleDirname, $required);
+ $ret .= $this->getXoopsFormUploadImage($language_funct, $moduleDirname, $tableName, $required);
break;
case 11:
- $ret .= $this->getXoopsFormUploadFile($language, $moduleDirname, $fieldName, $required);
+ $ret .= $this->getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required);
break;
case 12:
$ret .= $this->getXoopsFormTextDateSelect($language, $moduleDirname, $fieldName, $required);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/language/admin.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -68,10 +68,10 @@
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
- $stu_table_name = strtoupper($tableName);
- $stl_table_name = strtolower($tableName);
+ $stuTableName = strtoupper($tableName);
+ $stlTableName = strtolower($tableName);
$ret .= <<<EOT
-define('{$language}THEREARE_{$stu_table_name}', "There are <span class='bold'>%s</span> {$stl_table_name} in the database");\n
+define('{$language}THEREARE_{$stuTableName}', "There are <span class='bold'>%s</span> {$stlTableName} in the database");\n
EOT;
}
return $ret;
@@ -90,10 +90,10 @@
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
- $stu_table_name = strtoupper($tableName);
- $stl_table_name = strtolower($tableName);
+ $stuTableName = strtoupper($tableName);
+ $stlTableName = strtolower($tableName);
$ret .= <<<EOT
-define('{$language}THEREARENT_{$stu_table_name}', "There aren't {$stl_table_name}");\n
+define('{$language}THEREARENT_{$stuTableName}', "There aren't {$stlTableName}");\n
EOT;
}
$ret .= <<<EOT
@@ -110,10 +110,10 @@
{
$tableName = $tables[$t]->getVar('table_name');
$tableFieldname = $tables[$t]->getVar('table_fieldname');
- $stu_table_fieldname = strtoupper($tableFieldname);
- $ucf_table_fieldname = ucfirst($tableFieldname);
+ $stuTableFieldname = strtoupper($tableFieldname);
+ $ucfTableFieldname = ucfirst($tableFieldname);
$ret .= <<<EOT
-define('{$language}ADD_{$stu_table_fieldname}', "Add {$ucf_table_fieldname}");\n
+define('{$language}ADD_{$stuTableFieldname}', "Add {$ucfTableFieldname}");\n
EOT;
}
$ret .= <<<EOT
@@ -123,10 +123,10 @@
{
$tableName = $tables[$t]->getVar('table_name');
$tableFieldname = $tables[$t]->getVar('table_fieldname');
- $stu_table_name = strtoupper($tableName);
- $ucf_table_name = ucfirst($tableName);
+ $stuTableName = strtoupper($tableName);
+ $ucfTableName = ucfirst($tableName);
$ret .= <<<EOT
-define('{$language}{$stu_table_name}_LIST', "List of {$ucf_table_name}");\n
+define('{$language}{$stuTableName}_LIST', "List of {$ucfTableName}");\n
EOT;
}
return $ret;
@@ -145,39 +145,39 @@
{
$tableId = $tables[$t]->getVar('table_id');
$tableName = $tables[$t]->getVar('table_name');
- $stu_table_name = strtoupper($tableName);
- $ucf_table_name = ucfirst($tableName);
+ $stuTableName = strtoupper($tableName);
+ $ucfTableName = ucfirst($tableName);
$ret .= <<<EOT
-// {$ucf_table_name} add/edit
-define('{$language}{$stu_table_name}_ADD', "Add {$tableName}");
-define('{$language}{$stu_table_name}_EDIT', "Edit {$tableName}");
-// Elements of {$ucf_table_name}\n
+// {$ucfTableName} add/edit
+define('{$language}{$stuTableName}_ADD', "Add {$tableName}");
+define('{$language}{$stuTableName}_EDIT', "Edit {$tableName}");
+// Elements of {$ucfTableName}\n
EOT;
$fields = $this->getTableFields($tableId);
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
$fieldElement = $fields[$f]->getVar('field_element');
- $stu_field_name = strtoupper($fieldName);
+ $stuFieldName = strtoupper($fieldName);
$fieldNameDesc = ucfirst(str_replace('_', ' ', $fieldName));
$ret .= <<<EOT
-define('{$language}{$stu_field_name}', "{$fieldNameDesc}");\n
+define('{$language}{$stuFieldName}', "{$fieldNameDesc}");\n
EOT;
switch($fieldElement)
{
case 9:
$ret .= <<<EOT
-define('{$language}FORM_UPLOAD_IMAGE_LIST', "{$fieldNameDesc} in list");\n
+define('{$language}FORM_UPLOAD_IMAGE_LIST_{$stuTableName}', "{$fieldNameDesc} in frameworks images");\n
EOT;
break;
case 10:
$ret .= <<<EOT
-define('{$language}FORM_UPLOAD_IMAGE', "{$fieldNameDesc} in upload");\n
+define('{$language}FORM_UPLOAD_IMAGE_{$stuTableName}', "{$fieldNameDesc} in uploads images");\n
EOT;
break;
case 11:
$ret .= <<<EOT
-define('{$language}FORM_UPLOAD_FILE', "{$fieldNameDesc} in upload");\n
+define('{$language}FORM_UPLOAD_FILE_{$stuTableName}', "{$fieldNameDesc} in uploads files");\n
EOT;
break;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/modules.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/modules.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -70,8 +70,9 @@
$this->initVar('mod_website_name',XOBJ_DTYPE_TXTBOX, $this->tdmcreate->getConfig('website_name'));
$this->initVar('mod_release',XOBJ_DTYPE_TXTBOX, $this->tdmcreate->getConfig('release_date'));
$this->initVar('mod_status',XOBJ_DTYPE_TXTBOX, $this->tdmcreate->getConfig('status'));
- $this->initVar('mod_admin',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('display_admin'));
+ $this->initVar('mod_admin',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('display_admin'));
$this->initVar('mod_user',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('display_user'));
+ $this->initVar('mod_blocks',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('active_blocks'));
$this->initVar('mod_search',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('active_search'));
$this->initVar('mod_comments',XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('active_comments'));
$this->initVar('mod_notifications', XOBJ_DTYPE_INT, $this->tdmcreate->getConfig('active_notifications'));
@@ -113,30 +114,39 @@
public function getForm($action = false)
{
global $sysPathIcon32;
-
+ //
if ($action === false) {
$action = $_SERVER['REQUEST_URI'];
}
+ //
$isNew = $this->isNew();
$title = $isNew ? sprintf(_AM_TDMCREATE_MODULE_NEW) : sprintf(_AM_TDMCREATE_MODULE_EDIT);
-
+ //
include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
-
+ //
$form = new XoopsThemeForm($title, 'modulesform', $action, 'post', true);
$form->setExtra('enctype="multipart/form-data"');
-
+ //
$form->insertBreak('<div class="center"><b>'._AM_TDMCREATE_MODULE_IMPORTANT.'</b></div>','head');
+ //
$mod_name = new XoopsFormText(_AM_TDMCREATE_MODULE_NAME, 'mod_name', 50, 255, $this->getVar('mod_name'));
$mod_name->setDescription(_AM_TDMCREATE_MODULE_NAME_DESC);
$form->addElement($mod_name, true);
+ //
$mod_dirname = new XoopsFormText(_AM_TDMCREATE_MODULE_DIRNAME, 'mod_dirname', 25, 255, $this->getVar('mod_dirname'));
$mod_dirname->setDescription(_AM_TDMCREATE_MODULE_DIRNAME_DESC);
$form->addElement($mod_dirname, true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_VERSION, 'mod_version', 10, 25, $this->getVar('mod_version')), true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_SINCE, 'mod_since', 10, 25, $this->getVar('mod_since')), true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MIN_PHP, 'mod_min_php', 10, 25, $this->getVar('mod_min_php')), true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MIN_XOOPS, 'mod_min_xoops', 10, 25, $this->getVar('mod_min_xoops')), true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MIN_ADMIN, 'mod_min_admin', 10, 25, $this->getVar('mod_min_admin')), true);
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MIN_MYSQL, 'mod_min_mysql', 10, 25, $this->getVar('mod_min_mysql')), true);
// Name description
$editor_configs=array();
@@ -151,27 +161,34 @@
// Author
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_AUTHOR, 'mod_author', 50, 255, $this->getVar('mod_author')), true);
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_LICENSE, 'mod_license', 50, 255, $this->getVar('mod_license')), true);
+ //
$mod_admin = $isNew ? $this->tdmcreate->getConfig('display_admin') : $this->getVar('mod_admin');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_ADMIN, 'mod_admin', $mod_admin, _YES, _NO));
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_ADMIN, 'mod_admin', $mod_admin, _YES, _NO), true);
+ //
$mod_user = $isNew ? $this->tdmcreate->getConfig('display_user') : $this->getVar('mod_user');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_USER, 'mod_user', $mod_user, _YES, _NO));
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_USER, 'mod_user', $mod_user, _YES, _NO), true);
+ //
+ $mod_blocks = $isNew ? $this->tdmcreate->getConfig('active_blocks') : $this->getVar('mod_blocks');
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_BLOCKS, 'mod_blocks', $mod_blocks, _YES, _NO), true);
+ //
$mod_search = $isNew ? $this->tdmcreate->getConfig('active_search') : $this->getVar('mod_search');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_SEARCH, 'mod_search', $mod_search, _YES, _NO));
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_SEARCH, 'mod_search', $mod_search, _YES, _NO), true);
+ //
$mod_comments = $isNew ? $this->tdmcreate->getConfig('active_comments') : $this->getVar('mod_comments');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_COMMENTS, 'mod_comments', $mod_comments, _YES, _NO));
-
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_COMMENTS, 'mod_comments', $mod_comments, _YES, _NO), true);
+ //
$mod_notifications = $isNew ? $this->tdmcreate->getConfig('active_notifications') : $this->getVar('mod_notifications');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_NOTIFICATIONS, 'mod_notifications', $mod_notifications, _YES, _NO));
-
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_NOTIFICATIONS, 'mod_notifications', $mod_notifications, _YES, _NO), true);
+ //
$mod_permissions = $isNew ? $this->tdmcreate->getConfig('active_permissions') : $this->getVar('mod_permissions');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_PERMISSIONS, 'mod_permissions', $mod_permissions, _YES, _NO));
-
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_PERMISSIONS, 'mod_permissions', $mod_permissions, _YES, _NO), true);
+ //
$mod_inroot_copy = $isNew ? $this->tdmcreate->getConfig('inroot_copy') : $this->getVar('mod_inroot_copy');
- $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_INROOT_MODULES_COPY, 'mod_inroot_copy', $mod_inroot_copy, _YES, _NO));
-
+ $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULE_INROOT_MODULES_COPY, 'mod_inroot_copy', $mod_inroot_copy, _YES, _NO), true);
+ //
$this_image = $this->getVar('mod_image');
$mod_image = $this_image ? $this_image : 'empty.png';
-
+ //
$uploadirectory = 'uploads/'.$GLOBALS['xoopsModule']->dirname().'/images/repository';
$imgtray = new XoopsFormElementTray(_AM_TDMCREATE_MODULE_IMAGE, '<br />');
$imgpath = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, './' . strtolower($uploadirectory) . '/');
@@ -183,13 +200,12 @@
$imageselect->setExtra( "onchange='showImgSelected(\"image3\", \"mod_image\", \"" . $uploadirectory . "\", \"\", \"" . XOOPS_URL . "\")'" );
$imgtray->addElement($imageselect);
$imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='" . TDMC_UPLOAD_IMGMOD_URL . "/" . $mod_image . "' name='image3' id='image3' alt='' /><br />" ) );
-
+ //
$fileseltray = new XoopsFormElementTray('', '<br />');
$fileseltray->addElement(new XoopsFormFile(_AM_TDMCREATE_FORMUPLOAD, 'attachedfile', $this->tdmcreate->getConfig('maxsize')));
$fileseltray->addElement(new XoopsFormLabel(''));
$imgtray->addElement($fileseltray);
$form->addElement($imgtray);
-
//---------- START LOGO GENERATOR -----------------
$tables_img = $this->getVar('table_image') ? $this->getVar('table_image') : 'about.png';
$iconsdir = '/Frameworks/moduleclasses/icons/32';
@@ -209,35 +225,52 @@
$iconSelect->setExtra( "onchange='showImgSelected2(\"image4\", \"tables_img\", \"" . $uploadirectory . "\", \"\", \"".XOOPS_URL."\")'" );
$createLogoTray->addElement($iconSelect);
$createLogoTray -> addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory."/".$tables_img."' name='image4' id='image4' alt='' />" ) );
-
// Create preview and submit buttons
$buttonLogoGenerator4= new XoopsFormButton('', 'button4', "Create New Logo", 'button');
$buttonLogoGenerator4->setExtra("onclick='createNewModuleLogo(\"" . XOOPS_URL . "\")'");
$createLogoTray->addElement($buttonLogoGenerator4);
-
+ //
$form->addElement($createLogoTray);
//------------ END LOGO GENERATOR --------------------
-
+ //
$form->insertBreak('<div class="center"><b>'._AM_TDMCREATE_MODULE_NOTIMPORTANT.'</b></div>','head');
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_AUTHOR_MAIL, 'mod_author_mail', 50, 255, $this->getVar('mod_author_mail')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_AUTHOR_WEBSITE_URL, 'mod_author_website_url', 50, 255, $this->getVar('mod_author_website_url')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_AUTHOR_WEBSITE_NAME, 'mod_author_website_name', 50, 255, $this->getVar('mod_author_website_name')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_CREDITS, 'mod_credits', 50, 255, $this->getVar('mod_credits')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_RELEASE_INFO, 'mod_release_info', 50, 255, $this->getVar('mod_release_info')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_RELEASE_FILE, 'mod_release_file', 50, 255, $this->getVar('mod_release_file')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MANUAL, 'mod_manual', 50, 255, $this->getVar('mod_manual')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_MANUAL_FILE, 'mod_manual_file', 50, 255, $this->getVar('mod_manual_file')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_DEMO_SITE_URL, 'mod_demo_site_url', 50, 255, $this->getVar('mod_demo_site_url')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_DEMO_SITE_NAME, 'mod_demo_site_name', 50, 255, $this->getVar('mod_demo_site_name')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_SUPPORT_URL, 'mod_support_url', 50, 255, $this->getVar('mod_support_url')));
- $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_SUPPORT_NAME, 'mod_support_name', 50, 255, $this->getVar('mod_support_name')));
- $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_WEBSITE_URL, 'mod_website_url', 50, 255, $this->getVar('mod_website_url')));
+ //
+ $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_SUPPORT_NAME, 'mod_support_name', 50, 255, $this->getVar('mod_support_name')));
+ //
+ $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_WEBSITE_URL, 'mod_website_url', 50, 255, $this->getVar('mod_website_url')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_WEBSITE_NAME, 'mod_website_name', 50, 255, $this->getVar('mod_website_name')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_RELEASE, 'mod_release', 50, 255, $this->getVar('mod_release')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_STATUS, 'mod_status', 50, 255, $this->getVar('mod_status')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_PAYPAL_BUTTON, 'mod_donations', 50, 255, $this->getVar('mod_donations')));
+ //
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULE_SUBVERSION, 'mod_subversion', 50, 255, $this->getVar('mod_subversion')));
-
+ //
$form->addElement(new XoopsFormHidden('op', 'save'));
$form->addElement(new XoopsFormButton(_REQUIRED.' <span class="red bold">*</span>', 'submit', _SUBMIT, 'submit'));
return $form;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/tables.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -140,20 +140,10 @@
$get_table_image = $this->getVar('table_image');
$table_image = $get_table_image ? $get_table_image : 'blank.gif';
$iconsdir = '/Frameworks/moduleclasses/icons/32';
- $uploads_dir = '/uploads/tdmcreate/images/tables';
- if(is_dir(XOOPS_ROOT_PATH . $iconsdir)){
- $iconsdirectory = $iconsdir;
- }else{
- $iconsdirectory = $uploads_dir;
- }
- /*$iconsdirectory = $isNew ? $iconsdir : $uploads_dir;*/
+ $uploads_dir = '/uploads/tdmcreate/images/tables';
+ $iconsdirectory = is_dir(XOOPS_ROOT_PATH . $iconsdir) ? $iconsdir : $uploads_dir;
//
- $imgtray1 = new XoopsFormElementTray(_AM_TDMCREATE_TABLE_IMAGE,'<br />');
- if(is_dir(XOOPS_ROOT_PATH . $iconsdir)) {
- $imgpath = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, ".{$iconsdir}/");
- }else{
- $imgpath = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, $uploads_dir);
- }
+ $imgtray1 = new XoopsFormElementTray(_AM_TDMCREATE_TABLE_IMAGE,'<br />');
$imgpath1 = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, ".{$iconsdirectory}/");
$imageselect1 = new XoopsFormSelect($imgpath1, 'table_image', $table_image, 10);
$image_array1 = XoopsLists::getImgListAsArray( XOOPS_ROOT_PATH . $iconsdirectory );
@@ -176,57 +166,73 @@
$form->addElement($check_table_autoincrement);
//
$options_tray = new XoopsFormElementTray(_OPTIONS, '<br />');
- $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);
- $options_tray->addElement($check_table_blocks);
- //
- $table_admin = $isNew ? 0 : $this->getVar('table_admin');
- $check_table_admin = new XoopsFormCheckBox(' ', 'table_admin', $table_admin);
- $check_table_admin->addOption(1, _AM_TDMCREATE_TABLE_ADMIN);
- $options_tray->addElement($check_table_admin);
- //
- $table_user = $isNew ? 0 : $this->getVar('table_user');
- $check_table_user = new XoopsFormCheckBox(' ', 'table_user', $table_user);
- $check_table_user->addOption(1, _AM_TDMCREATE_TABLE_USER);
- $options_tray->addElement($check_table_user);
- //
- $table_submenu = $isNew ? 0 : $this->getVar('table_submenu');
- $check_table_submenu = new XoopsFormCheckBox(' ', 'table_submenu', $table_submenu);
- $check_table_submenu->addOption(1, _AM_TDMCREATE_TABLE_SUBMENU);
- $options_tray->addElement($check_table_submenu);
- //
+ //
+ $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);
+ $options_tray->addElement($check_table_blocks);
+ //
+ $table_admin = $isNew ? 0 : $this->getVar('table_admin');
+ $check_table_admin = new XoopsFormCheckBox(' ', 'table_admin', $table_admin);
+ $check_table_admin->addOption(1, _AM_TDMCREATE_TABLE_ADMIN);
+ $options_tray->addElement($check_table_admin);
+ //
+ $table_user = $isNew ? 0 : $this->getVar('table_user');
+ $check_table_user = new XoopsFormCheckBox(' ', 'table_user', $table_user);
+ $check_table_user->addOption(1, _AM_TDMCREATE_TABLE_USER);
+ $options_tray->addElement($check_table_user);
+ //
+ $table_submenu = $isNew ? 0 : $this->getVar('table_submenu');
+ $check_table_submenu = new XoopsFormCheckBox(' ', 'table_submenu', $table_submenu);
+ $check_table_submenu->addOption(1, _AM_TDMCREATE_TABLE_SUBMENU);
+ $options_tray->addElement($check_table_submenu);
+ //
+ $criteria = new CriteriaCompo(new Criteria('table_search', ($isNew ? 0 : 1)), 'AND');
+ $criteria->add(new Criteria('table_mid', $table_mid), 'AND');
+ $criteria->add(new Criteria('table_name', $table_name));
+ $table_comments = $tablesHandler->getCount($criteria);
+ unset($criteria);
+ if( ($table_comments == 0) || $isNew ) {
$table_search = $isNew ? 0 : $this->getVar('table_search');
$check_table_search = new XoopsFormCheckBox(' ', 'table_search', $table_search);
$check_table_search->addOption(1, _AM_TDMCREATE_TABLE_SEARCH);
$options_tray->addElement($check_table_search);
- //
+ }
+ //
+ $criteria = new CriteriaCompo(new Criteria('table_comments', ($isNew ? 0 : 1)), 'AND');
+ $criteria->add(new Criteria('table_mid', $table_mid), 'AND');
+ $criteria->add(new Criteria('table_name', $table_name));
+ $table_comments = $tablesHandler->getCount($criteria);
+ unset($criteria);
+ if ( ($table_comments == 0) || $isNew ) {
$table_comments = $isNew ? 0 : $this->getVar('table_comments');
$check_table_comments = new XoopsFormCheckBox(' ', 'table_comments', $table_comments);
$check_table_comments->addOption(1, _AM_TDMCREATE_TABLE_COMMENTS);
$options_tray->addElement($check_table_comments);
- //
- $table_notifications = $isNew ? 0 : $this->getVar('table_notifications');
- $check_table_notifications = new XoopsFormCheckBox(' ', 'table_notifications', $table_notifications);
- $check_table_notifications->addOption(1, _AM_TDMCREATE_TABLE_NOTIFICATIONS);
- $options_tray->addElement($check_table_notifications);
- //
- $criteria = new CriteriaCompo(new Criteria('table_permissions', 0), 'AND');
- $criteria->add(new Criteria('table_mid', $table_mid), 'AND');
- $criteria->add(new Criteria('table_name', $table_name));
- $table_permissions = $tablesHandler->getCount($criteria);
- unset($criteria);
- if ( ($table_permissions == 0) && ($table_category == 0) || $isNew ) {
- $table_permissions = $isNew ? 0 : $this->getVar('table_permissions');
- $check_table_permissions = new XoopsFormCheckBox(' ', 'table_permissions', $table_permissions);
- $check_table_permissions->addOption(1, _AM_TDMCREATE_TABLE_PERMISSIONS);
- $options_tray->addElement($check_table_permissions);
- }
+ }
+ //
+ $table_notifications = $isNew ? 0 : $this->getVar('table_notifications');
+ $check_table_notifications = new XoopsFormCheckBox(' ', 'table_notifications', $table_notifications);
+ $check_table_notifications->addOption(1, _AM_TDMCREATE_TABLE_NOTIFICATIONS);
+ $options_tray->addElement($check_table_notifications);
+ //
+ $criteria = new CriteriaCompo(new Criteria('table_permissions', ($isNew ? 0 : 1)), 'AND');
+ $criteria->add(new Criteria('table_mid', $table_mid), 'AND');
+ $criteria->add(new Criteria('table_name', $table_name));
+ $table_permissions = $tablesHandler->getCount($criteria);
+ unset($criteria);
+ if ( ($table_permissions == 0) && ($table_category == 0) || $isNew ) {
+ $table_permissions = $isNew ? 0 : $this->getVar('table_permissions');
+ $check_table_permissions = new XoopsFormCheckBox(' ', 'table_permissions', $table_permissions);
+ $check_table_permissions->addOption(1, _AM_TDMCREATE_TABLE_PERMISSIONS);
+ $options_tray->addElement($check_table_permissions);
+ }
$options_tray->setDescription(_AM_TDMCREATE_TABLE_OPTIONS_CHECKS_DESC);
+ //
$form->addElement($options_tray);
//
$form->addElement(new XoopsFormHidden('op', 'save'));
- $form->addElement(new XoopsFormHidden('table_id', $this->getVar('table_id')));
+ $form->addElement(new XoopsFormHidden('table_id', ($isNew ? 0 : $this->getVar('table_id'))));
$form->addElement(new XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
return $form;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/admin.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -78,7 +78,9 @@
define('_AM_TDMCREATE_MODULE_NAME', "Name");
define('_AM_TDMCREATE_MODULE_NAME_DESC', "The module name can contain spaces and special characters such as accents.<br />
An example would be: <b class='white'>My Simple Module</b>");
+// Added in version 1.91
define('_AM_TDMCREATE_MODULE_DIRNAME', "Directory Name");
+// ---------------------
define('_AM_TDMCREATE_MODULE_DIRNAME_DESC', "The module directory can not contain spaces or special characters such as accents.<br />
An example would be: <b class='white'>mysimplemodule</b>.<br />In case you write the module directory with uppercase characters, they are replaced automatically with lowercase, and if there are spaces they will also be automatically deleted.");
define('_AM_TDMCREATE_MODULE_VERSION', "Version");
@@ -107,14 +109,19 @@
define('_AM_TDMCREATE_MODULE_SUBVERSION', "Subversion module");
define('_AM_TDMCREATE_MODULE_ADMIN', "Visible Admin");
define('_AM_TDMCREATE_MODULE_USER', "Visible User");
-define('_AM_TDMCREATE_MODULE_SEARCH', "Enable Search");
-define('_AM_TDMCREATE_MODULE_COMMENTS', "Enable Comments");
-define('_AM_TDMCREATE_MODULE_NOTIFICATIONS', "Enable Notifications");
-define('_AM_TDMCREATE_MODULE_PERMISSIONS', "Enable Permissions");
-define('_AM_TDMCREATE_MODULE_INROOT_COPY', "Copy this module also in root/modules?");
+// Added in version 1.91
+define('_AM_TDMCREATE_MODULE_BLOCKS', "Activate Blocks");
+// ---------------------
+define('_AM_TDMCREATE_MODULE_SEARCH', "Activate Search");
+define('_AM_TDMCREATE_MODULE_COMMENTS', "Activate Comments");
+define('_AM_TDMCREATE_MODULE_NOTIFICATIONS', "Activate Notifications");
+define('_AM_TDMCREATE_MODULE_PERMISSIONS', "Activate Permissions");
+define('_AM_TDMCREATE_MODULE_INROOT_MODULES_COPY', "Copy of this module directly in root/modules?");
// Added in version 1.39
-define('_AM_TDMCREATE_MODULE_NBFIELDS', "Fields");
-define('_AM_TDMCREATE_MODULE_BLOCKS', "Blocks");
+define('_AM_TDMCREATE_MODULE_NAME_LIST', "Name");
+define('_AM_TDMCREATE_MODULE_IMAGE_LIST', "Image");
+define('_AM_TDMCREATE_MODULE_NBFIELDS_LIST', "Fields");
+define('_AM_TDMCREATE_MODULE_BLOCKS_LIST', "Blocks");
define('_AM_TDMCREATE_MODULE_ADMIN_LIST', "Admin");
define('_AM_TDMCREATE_MODULE_USER_LIST', "User");
define('_AM_TDMCREATE_MODULE_SUBMENU_LIST', "Submenu");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/language/english/modinfo.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -61,6 +61,9 @@
define('_MI_TDMCREATE_STATUS', "Module status");
define('_MI_TDMCREATE_DISPLAY_ADMIN_SIDE', "Visible in Admin Panel");
define('_MI_TDMCREATE_DISPLAY_USER_SIDE', "Visible in User side");
+// Added in version 1.91
+define('_MI_TDMCREATE_ACTIVE_BLOCKS', "Allow Blocks");
+// ---------------------
define('_MI_TDMCREATE_ACTIVE_SEARCH', "Allow Search");
define('_MI_TDMCREATE_ACTIVE_COMMENTS', "Allow Comments");
define('_MI_TDMCREATE_ACTIVE_NOTIFICATIONS', "Allow notifications");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/sql/mysql.sql 2014-07-05 17:11:09 UTC (rev 12679)
@@ -41,8 +41,9 @@
`mod_website_name` VARCHAR(255) NOT NULL DEFAULT '',
`mod_release` VARCHAR(11) NOT NULL DEFAULT '00-00-0000',
`mod_status` VARCHAR(150) NOT NULL DEFAULT 'Beta 1',
- `mod_admin` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
+ `mod_admin` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
`mod_user` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
+ `mod_blocks` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`mod_search` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`mod_comments` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`mod_notifications` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.tpl 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/templates/admin/tdmcreate_tables.tpl 2014-07-05 17:11:09 UTC (rev 12679)
@@ -10,10 +10,10 @@
<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>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_NBFIELDS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_BLOCKS}></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_BLOCKS_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_SUBMENU_LIST}></th>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-07-05 16:13:16 UTC (rev 12678)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-07-05 17:11:09 UTC (rev 12679)
@@ -240,6 +240,13 @@
$modversion['config'][$i]['valuetype'] = "int";
$modversion['config'][$i]['default'] = 1;
$i++;
+$modversion['config'][$i]['name'] = "active_blocks";
+$modversion['config'][$i]['title'] = "_MI_TDMCREATE_ACTIVE_BLOCKS";
+$modversion['config'][$i]['description'] = "";
+$modversion['config'][$i]['formtype'] = "yesno";
+$modversion['config'][$i]['valuetype'] = "int";
+$modversion['config'][$i]['default'] = 0;
+$i++;
$modversion['config'][$i]['name'] = "active_search";
$modversion['config'][$i]['title'] = "_MI_TDMCREATE_ACTIVE_SEARCH";
$modversion['config'][$i]['description'] = "";
|