|
From: <txm...@us...> - 2013-02-11 15:33:37
|
Revision: 11013
http://sourceforge.net/p/xoops/svn/11013
Author: txmodxoops
Date: 2013-02-11 15:33:32 +0000 (Mon, 11 Feb 2013)
Log Message:
-----------
Updated
Modified Paths:
--------------
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/import.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/modules.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/tables.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/architecture.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/extensions.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/form/extensions.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/tables.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/language/english/admin.php
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/sql/mysql.sql
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_extensions.html
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_modules.html
XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_tables.html
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/import.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/import.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/import.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -93,74 +93,63 @@
$obj = $import_Handler->create();
}
+ $files = $_FILES['importfile'];
// If incoming data have been entered correctly
- if($_POST['upload'] == _SUBMIT && isset($_FILES['importfile']['tmp_name']) && (substr($_FILES['importfile']['name'], -4) == '.sql'))
+ if($_POST['upload'] == _SUBMIT && isset($files['tmp_name']) && (substr($files['name'], -4) == '.sql'))
{
- $uploads_dir = TDMC_UPLOAD_PATH_FILES;
// File recovery
- $filename = $_FILES['importfile']['name'];
- $tmp_file = $_FILES['importfile']['tmp_name'];
- if (is_uploaded_file($tmp_file)) { // Copy files to the server
- $xoops->redirect('import.php', 1, 'File ' . $filename . ' uploaded successfully.');
- readfile($tmp_file);
- // The directory where you saved the file
- if ($_FILES['importfile']['error'] == UPLOAD_ERR_OK) {
- $tmp_name = $tmp_file;
- $name = $filename;
- move_uploaded_file($tmp_name, $uploads_dir.'/'.$name);
- }
- } else {
- $xoops->redirect('import.php', 1, 'Error in file upload.');
- }
+ $dir = TDMC_UPLOAD_PATH_FILES;
+ $file = $_FILES['importfile'];
+ $tmp_name = $file['tmp_name'];
+ // Copy files to the server
+ if (is_uploaded_file($tmp_name)) {
+ readfile($tmp_name);
+ // The directory where you saved the file
+ if ($file['error'] == UPLOAD_ERR_OK) {
+ $name = $file['name'];
+ move_uploaded_file($tmp_name, $dir.'/'.$name);
+ }
+ } else {
+ $xoops->redirect('import.php', 3, 'Error in file upload:'. $file['tmp_name']);
+ }
+
+ // Copies data in the db
+ $filename = $dir.'/'.$name;
// File size
- $filesize = $_FILES['importfile']['size'];
-
+ $filesize = $files['size'];
// Check that the file was inserted and that there is
if ( ($handle = fopen($filename, 'r') ) !== false)
- {
- $separator = $_POST['separator']; // data separator
- $row = ''; // clear line
- // Use a counter to see what line are comments
- $comments = 0;
- // Use the fgets function to retrieve the information in the sql file
- // The second parameter is the size of the file, we have recovered over
- while ( !feof( $handle )) // file reading until the end
+ {
+ // File reading until at the end
+ while ( !feof( $handle ))
{
+ // Use the fgets function to retrieve the information in the sql file
+ // The second parameter is the size of the file, we have recovered over
$row = fgets($handle, $filesize); // reads the entire row for the whole file
- if ( preg_match( '/\#/', $row ) ) { // if this row is a comment
- $comments++;
- // Check for a $fields_table variable, the first row of the field name of the sql
- $fields_table = $row;
- } else {
- if(strlen($row) > 1)
- {
- // Remove spaces at the beginning and end
- $row = trim($row);
- // change the ' and ; in null
- $search = array ( "'&(apostrophe|#39);'i", "'&(semicolon|#59);'i", "'([\r\n])[\s]+'" );
- // replace in null
- $replace = array ( "", "", "" );
- $riga = preg_replace($search, $replace, $riga);
- // I'll put your details in the row into an array divided by separator
- $arrayrow = explode( ',', $row);
- // number of elements in the array
- $num_elements = count($arrayrow);
- // Insert query
- if($num_elements == 9 && strlen($arrayrow[0]) > 0) {
- // per tutti i campi all'interno della stessa riga...
- for ($c = 0; $c < $num_elements; $c++)
- {
- //Form imported save
- $obj->setVars(array('import_mid' => $arrayrow[0][$c], 'import_name' => $arrayrow[1][$c],
- 'import_nbtables' => $arrayrow[2][$c], 'import_tablename' => $arrayrow[3][$c],
- 'import_nbfields' => $arrayrow[4][$c], 'import_fieldname' => $arrayrow[5][$c],
- 'import_fieldtype' => $arrayrow[6][$c], 'import_fieldvalue' => $arrayrow[7][$c],
- 'import_nbfieldefault' => $arrayrow[8][$c]));
- }
- } else {
- $xoops->redirect('import.php?op=list', 3, 'Error: data in text file do not match. Row: '.$row);
- }
- }
+ if(strlen($row) > 1)
+ {
+ // change the ' and ; in null
+ $search = array ( '/\/\*.*(\n)*.*(\*\/)?/', '/\s*--.*\n/', '/\s*#.*\n/' );
+ // replace in null
+ $replace = array ( "\n" );
+ $row = preg_replace($search, $replace, $row);
+ // I'll put your details in the row into an array divided by separator
+ $arrayrow = explode( ',\n', $row);
+ $arrayrow = preg_replace('/\s/', ' ', $arrayrow);
+ // Insert query
+ if(strlen($arrayrow[0]) > 0) {
+ preg_match_all('/([A-Za-z0-9_=]+?[^\,\;\(\)$])/Ui', $row, $matches);
+ for ($i = 0; $i < count($matches[0]); $i++) {
+ //Form imported save
+ $obj->setVars(array('import_mid' => $_POST['import_mid'], 'import_name' => $_POST['import_name'],
+ 'import_nbtables' => $i, 'import_tablename' => $matches[0][$i],
+ 'import_nbfields' => $matches[0][$i], 'import_fieldname' => $matches[0][$i],
+ 'import_fieldtype' => $matches[0][$i], 'import_fieldvalue' => $matches[0][$i],
+ 'import_nbfieldefault' => $matches[0][$i]));
+ }///**/
+ } else {
+ $xoops->redirect('import.php?op=list', 3, 'Error: data in sql file do not match. Row: '.$row);
+ }
}
// reset for the next insertion
$arrayrow = array_slice($arrayrrow, 0, 0);
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/modules.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/modules.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/modules.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -35,7 +35,7 @@
$admin_menu->renderNavigation('modules.php');
switch ($op)
{
- case 'list':
+ case 'list': http://localhost/xoops-2.6.0-alpha2/htdocs/uploads/tdmcreate/images/modules/
default:
$admin_menu->addItemButton(_ADD . ' ' . _AM_TDMCREATE_MODULE, 'modules.php?op=new', 'add');
$admin_menu->renderButton();
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/tables.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/tables.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/admin/tables.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -89,9 +89,16 @@
foreach (array_keys($table_arr) as $i) {
$tables['id'] = $table_arr[$i]->getVar('table_id');
$tables['name'] = $table_arr[$i]->getVar('table_name');
- $tables['modname'] = TDMCreate_getPathTree($mytree, $table_arr[$i]->getVar('table_mid'), $table_arr, 'table_name');
+ $tables['mid'] = TDMCreate_getPathTree($mytree, $table_arr[$i]->getVar('table_mid'), $table_arr, 'table_name');
$tables['image'] = $table_arr[$i]->getVar('table_image');
- $tables['submenu'] = $table_arr[$i]->getVar('table_submenu');
+ $tables['nbfields'] = $table_arr[$i]->getVar('table_nbfields');
+ $tables['blocks'] = $table_arr[$i]->getVar('table_blocks');
+ $tables['admin'] = $table_arr[$i]->getVar('table_admin');
+ $tables['user'] = $table_arr[$i]->getVar('table_user');
+ $tables['submenu'] = $table_arr[$i]->getVar('table_submenu');
+ $tables['search'] = $table_arr[$i]->getVar('table_search');
+ $tables['comments'] = $table_arr[$i]->getVar('table_comments');
+ $tables['notifications'] = $table_arr[$i]->getVar('table_notifications');
$xoops->tpl()->append_by_ref('tables', $tables);
unset($tables);
}
@@ -160,12 +167,12 @@
//Form tables
$obj->setVars(array('table_blocks' => (($_REQUEST['table_blocks'] == 1) ? '1' : '0'),
- 'table_display_admin' => (($_REQUEST['table_display_admin'] == 1) ? '1' : '0'),
- 'table_display_user' => (($_REQUEST['table_display_user'] == 1) ? '1' : '0'),
+ 'table_admin' => (($_REQUEST['table_admin'] == 1) ? '1' : '0'),
+ 'table_user' => (($_REQUEST['table_user'] == 1) ? '1' : '0'),
'table_submenu' => (($_REQUEST['table_submenu'] == 1) ? '1' : '0'),
'table_search' => (($_REQUEST['table_search'] == 1) ? '1' : '0'),
'table_comments' => (($_REQUEST['table_comments'] == 1) ? '1' : '0'),
- 'table_notify' => (($_REQUEST['table_notify'] == 1) ? '1' : '0')));
+ 'table_notifications' => (($_REQUEST['table_notifications'] == 1) ? '1' : '0')));
if( $tables_Handler->insert($obj) && $obj->isNew() ) {
redirect_header('fields.php?op=new', 3, _AM_TDMCREATE_FORMOK);
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/architecture.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/architecture.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/architecture.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -19,7 +19,7 @@
* @author Timgno <txm...@gm...>
* @version $Id: architecture.php 10665 2012-12-27 10:14:15Z timgno $
*/
-defined('XOOPS_ROOT_PATH') or die('Restricted access');
+defined('XOOPS_ROOT_PATH') or die("Restricted access");
class TDMCreateFolder extends XoopsFolderHandler
{
@@ -116,43 +116,42 @@
/**
* Constructor.
*
- * @param string $path Path to folder
- * @param bool $create Create folder if not found
- * @param mixed $mode Mode (CHMOD) to apply to created folder, false to ignore
+ * @param string $path
*/
- function __construct($path) {
+ public function __construct($path)
+ {
$this->path = $path;
}
/**
*
- * @pubblic function makeDir
* @param string $path
*/
public function makeDir($path)
{
$this->path = $path;
if(!is_dir($this->path)) {
- mkdir($this->path, 0705);
- chmod($this->path, 0705);
+ mkdir($this->path, 0777);
+ chmod($this->path, 0777);
}
}
+
/**
*
- * @pubblic function makeDirModule
* @param string $folder_name
*/
public function makeDirInModule($folder_name)
{
$this->folder = $folder_name;
- $fname = $this->path . "/" .$this->mod_name. "/" .$this->folder;
+ $fname = $this->path . '/' .$this->mod_name. '/' .$this->folder;
if(!is_dir($fname)) {
- mkdir($fname, 0705);
- chmod($fname, 0705);
+ mkdir($fname, 0777);
+ chmod($fname, 0777);
}
}
+
/**
- * @pubblic function makeDir & copy file
+ *
* @param string $folder_name
* @param string $copyFile
* @param string $file
@@ -162,37 +161,38 @@
$this->file_name = $file;
$this->folder = $folder_name;
$this->copyFile = $copyFile;
- $fname = $this->path . "/" .$this->mod_name. "/" .$this->folder;
+ $fname = $this->path . '/' .$this->mod_name. '/' .$this->folder;
if(!is_dir($fname)) {
- mkdir($fname, 0705);
- chmod($fname, 0705);
+ mkdir($fname, 0777);
+ chmod($fname, 0777);
$this->copyFile($this->folder, $this->copyFile, $this->file_name);
} else {
$this->copyFile($this->folder, $this->copyFile, $this->file_name);
}
}
- /*
- * @pubblic function copy file
- * @param string $folder_name
- * @param string $copyFile
- * @param string $file
- */
+
+ /**
+ *
+ * @param string $folder_name
+ * @param string $copyFile
+ * @param string $file
+ */
public function copyFile($folder_name, $copyFile, $file)
{
$this->file_name = $file;
$this->folder = $folder_name;
$this->copyFile = $copyFile;
- $fname = $this->path . "/" .$this->mod_name. "/" .$this->folder. "/". $this->file_name;
- /*if(!file_exists($fname)) {
+ $fname = $this->path . '/' .$this->mod_name. '/' .$this->folder. '/'. $this->file_name;
+ if(is_dir($this->folder) && XoopsLoad::fileExists($fname)) {
chmod($fname, 0777);
copy($this->copieFile, $fname);
- } else {*/
+ } else {
copy($this->copyFile, $fname);
- //}
+ }
}
}
-class TDMCreateXoopsVersion extends TDMCreateFile
+class TDMCreateFileVersion extends TDMCreateFile
{
/**
* Constructor
@@ -202,19 +202,216 @@
* @param integer $mode Mode to apply to the folder holding the file
* @access private
*/
- function __construct($path, $create = false, $mode = 0755)
+ private function __construct($path, $create = false, $mode = 0755)
{
parent::__construct($path, $create, $mode);
}
/*
- * @pubblic function createXoopsVersion
- * @param string $folder
- * @param string $file
- */
- public function createXoopsVersion($folder, $file, $elements = array())
+ *
+ * @param string $folder
+ * @param string $file
+ */
+ public function createFileXoopsVersion($folder, $file, $elements = array())
{
$this->file = $file;
$this->folder = $folder;
}
+}
+
+class TDMCreateFileClasses
+{
+ /**
+ * @var null|array
+ */
+ public $_class = null;
+
+ /**
+ * @var bool
+ */
+ public $is_form = false;
+
+ /**
+ * Constructor
+ *
+ * @param obj $class
+ */
+ public function __construct($class)
+ {
+ $this->_class = $class;
+ }
+
+ /**
+ *
+ * @param string $var
+ * @param object $data_type
+ * @param boolean $required
+ * @param integer $maxlength
+ * @param string $options
+ */
+ public function tdmc_initVar($key, $data_type = 'INT', $required = false, $maxlength = null, $options = '')
+ {
+ $r = $required == true ? ', ' . $required : $required;
+ $m = ($maxlength != null) ? ', ' . $maxlength : $maxlength;
+ $o = ($options != '') ? ', ' . $options : $options;
+ return '$this->initVar(\''.$key.'\', XOBJ_DTYPE_'. $data_type .', null' . $r . $m . $o .');';
+ }
+
+ /**
+ *
+ * @param string $key
+ * @param mixed $value
+ * @param boolean $not_gpc
+ */
+ public function tdmc_setVar($key, $value, $not_gpc = false)
+ {
+ return '$this->setVar(\''.$key.'\', '. $value .', ' . $not_gpc .');';
+ }
+
+ /**
+ *
+ * @param array $var_arr
+ * @param boolean $not_gpc
+ */
+ public function tdmc_setVars($var_arr, $not_gpc = false)
+ {
+ foreach ($var_arr as $key => $value) {
+ $results = $key.'\', '. $value;
+ }
+ return '$this->setVars(\''. $results .', ' . $not_gpc .');';
+ }
+
+ /**
+ *
+ * @param int $i
+ * @param string $modname
+ * @param string $tablename
+ * @param string $fieldname
+ * @param string $fieldelements
+ * @param string $langform
+ * @param array $structure
+ */
+ public function tdmc_formElements($i, $modname, $tablename, $fieldname, $fieldelements, $langform, $structure)
+ {
+ return null;
+ }
+}
+
+class TDMCreateFileDb
+{
+ /**
+ * @var null|array
+ */
+ public $_class = null;
+
+ /**
+ * Constructor
+ *
+ * @param obj $class
+ */
+ public function __construct($class)
+ {
+ $this->_class = $class;
+ }
+
+ /**
+ *
+ * @param string $var
+ * @param integer $nb_champs
+ * @param mixed $data_type
+ * @param boolean $required
+ * @param mixed $handler
+ * @param string $options
+ *
+ * @return string
+ */
+ public function tdmc_dbTable($tablename, $nb_champs = null, $data_type = 'int', $handler = null, $options = '')
+ {
+ $ret = '#
+# Structure for table `'.strtolower($tablename).'` '.$nb_champs.'
+#
+
+CREATE TABLE `'.strtolower($tablename).'` (';
+
+ $j = 0;
+ for ($i = 0; $i < $nb_champs; $i++)
+ {
+ $structure = explode(":", $champs[$i]);
+
+ //Debut
+ if ( $structure[0] != ' ' )
+ {
+ //If as text, (not value)
+ if ( $structure[1] == 'text' || $structure[1] == 'date' || $structure[1] == 'timestamp' ) {
+ $type = $structure[1];
+ } else {
+ $type = $structure[1].' ('.$structure[2].')';
+ }
+ //If as empty is default not string(not value), if as text not default, if as numeric default is 0 or 0.0000
+ if ( empty($structure[5]) ) {
+ $default = "default ''";
+ } elseif ( $structure[1] == 'text' ) {
+ $default = "";
+ } elseif ( $structure[1] == 'int' || $structure[1] == 'tinyint' || $structure[1] == 'mediumint' || $structure[1] == 'smallint') {
+ $default = "default '0'";
+ } elseif ( $structure[1] == 'decimal' || $structure[1] == 'double' || $structure[1] == 'float' ) {
+ $default = "default '0.0000'";
+ } elseif ( $structure[1] == 'date' ) {
+ $default = "default '0000-00-00'";
+ } elseif ( $structure[1] == 'datetime' || $structure[1] == 'timestamp') {
+ $default = "default '0000-00-00 00:00:00'";
+ } elseif ( $structure[1] == 'time' ) {
+ $default = "default '00:00:00'";
+ } elseif ( $structure[1] == 'year' ) {
+ $default = "default '0000'";
+ } else {
+ $default = "default '".$structure[5]."'";
+ }
+
+ if ( $i == 0 ) {
+ $comma[$j] = 'PRIMARY KEY (`'.$structure[0].'`)';
+ $j++;
+ $ret .= '`'.$structure[0].'` '.$type.' '.$structure[3].' '.$structure[4].' auto_increment,
+';
+ } else {
+ if ( $structure[6] == 'unique' || $structure[6] == 'index' || $structure[6] == 'fulltext')
+ {
+ if ( $structure[6] == 'unique' ) {
+ $ret .= '`'.$structure[0].'` '.$type.' '.$structure[3].' '.$structure[4].' '.$default.',
+';
+ $comma[$j] = 'KEY `'.$structure[0].'` (`'.$structure[0].'`)';
+ } else if ( $structure[6] == 'index' ) {
+ $ret .= '`'.$structure[0].'` '.$type.' '.$structure[3].' '.$structure[4].' '.$default.',
+';
+ $comma[$j] = 'INDEX (`'.$structure[0].'`)';
+ } else if ( $structure[6] == 'fulltext' ) {
+ $ret .= '`'.$structure[0].'` '.$type.' '.$structure[3].' '.$structure[4].' '.$default.',
+';
+ $comma[$j] = 'FULLTEXT KEY `'.$structure[0].'` (`'.$structure[0].'`)';
+ }
+ $j++;
+ } else {
+ $ret .= '`'.$structure[0].'` '.$type.' '.$structure[3].' '.$structure[4].' '.$default.',
+';
+ }
+ }
+ }
+ }
+
+ //Problem comma
+ $key = '';
+ for ($i = 0; $i < $j; $i++)
+ {
+ if ( $i != $j - 1 ) {
+ $key .= ''.$comma[$i].',
+';
+ } else {
+ $key .= ''.$comma[$i].'
+';
+ }
+ }
+ $ret .= $key;
+$ret .= ') ENGINE=MyISAM;';
+ return $ret;
+ }
}
\ No newline at end of file
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/extensions.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/extensions.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/extensions.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -8,7 +8,6 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-
/**
* tdmcreate module
*
@@ -30,37 +29,37 @@
{
$xoops = Xoops::getInstance();
- $this->initVar("ext_id", XOBJ_DTYPE_INT, null, false, 5);
- $this->initVar("ext_name",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('name'),false);
- $this->initVar("ext_version",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('version'),false);
- $this->initVar("ext_description",XOBJ_DTYPE_TXTAREA, $xoops->getModuleConfig('description'), false);
- $this->initVar("ext_author",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author'), false);
- $this->initVar("ext_author_mail",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_email'),false);
- $this->initVar("ext_author_website_url",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_website_url'),false);
- $this->initVar("ext_author_website_name",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_website'),false);
- $this->initVar("ext_credits",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('credits'), false);
- $this->initVar("ext_license",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('license'), false);
- $this->initVar("ext_release_info",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release_info'), false);
- $this->initVar("ext_release_file",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release_file'), false);
- $this->initVar("ext_manual",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('manual'), false);
- $this->initVar("ext_manual_file",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('manual_file'), false);
- $this->initVar("ext_image",XOBJ_DTYPE_TXTBOX, null, false);
- $this->initVar("ext_demo_site_url",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('demo_site_url'), false);
- $this->initVar("ext_demo_site_name",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('demo_site_name'), false);
- $this->initVar("ext_forum_site_url",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('forum_site_url'), false);
- $this->initVar("ext_forum_site_name",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('forum_site_name'), false);
- $this->initVar("ext_website_url",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('website_url'), false);
- $this->initVar("ext_website_name",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('website_name'), false);
- $this->initVar("ext_release",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release'), false);
- $this->initVar("ext_status",XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('status'), false);
- $this->initVar("ext_display_admin",XOBJ_DTYPE_INT,$xoops->getModuleConfig('display_admin'), false, 1);
- $this->initVar("ext_display_user",XOBJ_DTYPE_INT, $xoops->getModuleConfig('display_user'), false, 1);
- $this->initVar("ext_display_submenu", XOBJ_DTYPE_INT, $xoops->getModuleConfig('display_submenu'), false, 1);
- $this->initVar("ext_active_search",XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_search'), false, 1);
- $this->initVar("ext_active_comments",XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_comments'), false, 1);
- $this->initVar("ext_active_notifies", XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_notifies'), false, 1);
- $this->initVar("ext_paypal_button", XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('paypal_button'), false, 20);
- $this->initVar("ext_subversion", XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('subversion'), false, 5);
+ $this->initVar('ext_id', XOBJ_DTYPE_INT, null, false, 5);
+ $this->initVar('ext_name',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('name'),false);
+ $this->initVar('ext_version',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('version'),false);
+ $this->initVar('ext_description',XOBJ_DTYPE_TXTAREA, $xoops->getModuleConfig('description'), false);
+ $this->initVar('ext_author',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author'), false);
+ $this->initVar('ext_author_mail',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_email'),false);
+ $this->initVar('ext_author_website_url',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_website_url'),false);
+ $this->initVar('ext_author_website_name',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('author_website'),false);
+ $this->initVar('ext_credits',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('credits'), false);
+ $this->initVar('ext_license',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('license'), false);
+ $this->initVar('ext_release_info',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release_info'), false);
+ $this->initVar('ext_release_file',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release_file'), false);
+ $this->initVar('ext_manual',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('manual'), false);
+ $this->initVar('ext_manual_file',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('manual_file'), false);
+ $this->initVar('ext_image',XOBJ_DTYPE_TXTBOX, null, false);
+ $this->initVar('ext_demo_site_url',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('demo_site_url'), false);
+ $this->initVar('ext_demo_site_name',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('demo_site_name'), false);
+ $this->initVar('ext_forum_site_url',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('forum_site_url'), false);
+ $this->initVar('ext_forum_site_name',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('forum_site_name'), false);
+ $this->initVar('ext_website_url',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('website_url'), false);
+ $this->initVar('ext_website_name',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('website_name'), false);
+ $this->initVar('ext_release',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('release'), false);
+ $this->initVar('ext_status',XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('status'), false);
+ $this->initVar('ext_admin',XOBJ_DTYPE_INT,$xoops->getModuleConfig('display_admin'), false, 1);
+ $this->initVar('ext_user',XOBJ_DTYPE_INT, $xoops->getModuleConfig('display_user'), false, 1);
+ $this->initVar('ext_submenu', XOBJ_DTYPE_INT, $xoops->getModuleConfig('display_submenu'), false, 1);
+ $this->initVar('ext_search',XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_search'), false, 1);
+ $this->initVar('ext_comments',XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_comments'), false, 1);
+ $this->initVar('ext_notifications', XOBJ_DTYPE_INT, $xoops->getModuleConfig('active_notifies'), false, 1);
+ $this->initVar('ext_paypal_button', XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('paypal_button'), false, 20);
+ $this->initVar('ext_subversion', XOBJ_DTYPE_TXTBOX, $xoops->getModuleConfig('subversion'), false, 5);
}
}
@@ -71,7 +70,6 @@
*/
public function __construct(XoopsDatabase $db = null)
{
- parent::__construct($db, "tdmcreate_extensions", 'tdmcreateextensions', 'ext_id', 'ext_name');
+ parent::__construct($db, 'tdmcreate_extensions', 'tdmcreateextensions', 'ext_id', 'ext_name');
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/form/extensions.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/form/extensions.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/form/extensions.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -37,7 +37,7 @@
$this->insertBreak('<div class="center"><b>'._AM_TDMCREATE_EXTENSION_IMPORTANT.'</b></div>','head');
$this->addElement(new XoopsFormText(_AM_TDMCREATE_EXTENSION_NAME, "ext_name", 50, 255, $obj->getVar('ext_name')), true);
- $this->addElement(new XoopsFormText(_AM_TDMCREATE_EXTENSION_VERSION, "ext_version", 30, 50, $obj->getVar('ext_version')), true);
+ $this->addElement(new XoopsFormText(_AM_TDMCREATE_EXTENSION_VERSION, "ext_version", 2, 5, $obj->getVar('ext_version')), true);
$editor_configs=array();
$editor_configs["name"] = 'ext_description';
$editor_configs["value"] = $obj->getVar('ext_description', 'e');
@@ -50,29 +50,29 @@
$this->addElement(new XoopsFormText(_AM_TDMCREATE_EXTENSION_AUTHOR, "ext_author", 50, 255, $obj->getVar('ext_author')), true);
$this->addElement(new XoopsFormText(_AM_TDMCREATE_EXTENSION_LICENSE, "ext_license", 50, 255, $obj->getVar('ext_license')), true);
$option_tray = new XoopsFormElementTray(_OPTIONS, ' ');
- $display_admin = $obj->isNew() ? 0 : $obj->getVar('ext_display_admin');
- $check_display_admin = new XoopsFormCheckBox(" ", "ext_display_admin", $display_admin);
- $check_display_admin->addOption(1, _AM_TDMCREATE_EXTENSION_DISPLAY_ADMIN);
+ $display_admin = $obj->isNew() ? 0 : $obj->getVar('ext_admin');
+ $check_display_admin = new XoopsFormCheckBox(" ", "ext_admin", $display_admin);
+ $check_display_admin->addOption(1, _AM_TDMCREATE_EXTENSION_ADMIN);
$option_tray->addElement($check_display_admin);
- $display_user = $obj->isNew() ? 0 : $obj->getVar('ext_display_user');
- $check_display_user = new XoopsFormCheckBox(" ", "ext_display_user", $display_user);
- $check_display_user->addOption(1, _AM_TDMCREATE_EXTENSION_DISPLAY_USER);
+ $display_user = $obj->isNew() ? 0 : $obj->getVar('ext_user');
+ $check_display_user = new XoopsFormCheckBox(" ", "ext_user", $display_user);
+ $check_display_user->addOption(1, _AM_TDMCREATE_EXTENSION_USER);
$option_tray->addElement($check_display_user);
- $display_submenu = $obj->isNew() ? 0 : $obj->getVar('ext_display_submenu');
- $check_display_submenu = new XoopsFormCheckBox(" ", "ext_display_submenu", $display_submenu);
- $check_display_submenu->addOption(1, _AM_TDMCREATE_EXTENSION_DISPLAY_SUBMENU);
+ $display_submenu = $obj->isNew() ? 0 : $obj->getVar('ext_submenu');
+ $check_display_submenu = new XoopsFormCheckBox(" ", "ext_submenu", $display_submenu);
+ $check_display_submenu->addOption(1, _AM_TDMCREATE_EXTENSION_SUBMENU);
$option_tray->addElement($check_display_submenu);
- $active_search = $obj->isNew() ? 0 : $obj->getVar('ext_active_search');
- $check_active_search = new XoopsFormCheckBox(" ", "ext_active_search", $active_search);
- $check_active_search->addOption(1, _AM_TDMCREATE_EXTENSION_ACTIVE_SEARCH);
+ $active_search = $obj->isNew() ? 0 : $obj->getVar('ext_search');
+ $check_active_search = new XoopsFormCheckBox(" ", "ext_search", $active_search);
+ $check_active_search->addOption(1, _AM_TDMCREATE_EXTENSION_SEARCH);
$option_tray->addElement($check_active_search);
- $active_comments = $obj->isNew() ? 0 : $obj->getVar('ext_active_comments');
- $check_active_comments = new XoopsFormCheckBox(" ", "ext_active_comments", $active_comments);
- $check_active_comments->addOption(1, _AM_TDMCREATE_EXTENSION_ACTIVE_COMMENTS);
+ $active_comments = $obj->isNew() ? 0 : $obj->getVar('ext_comments');
+ $check_active_comments = new XoopsFormCheckBox(" ", "ext_comments", $active_comments);
+ $check_active_comments->addOption(1, _AM_TDMCREATE_EXTENSION_COMMENTS);
$option_tray->addElement($check_active_comments);
- $active_notifies = $obj->isNew() ? 0 : $obj->getVar('ext_active_notifies');
- $check_active_notifies = new XoopsFormCheckBox(" ", "ext_active_notifies", $active_notifies);
- $check_active_notifies->addOption(1, _AM_TDMCREATE_EXTENSION_ACTIVE_NOTIFIES);
+ $active_notifies = $obj->isNew() ? 0 : $obj->getVar('ext_notifications');
+ $check_active_notifies = new XoopsFormCheckBox(" ", "ext_notifications", $active_notifies);
+ $check_active_notifies->addOption(1, _AM_TDMCREATE_EXTENSION_NOTIFICATIONS);
$option_tray->addElement($check_active_notifies);
$this->addElement($option_tray);
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/tables.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/tables.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/class/tables.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -35,12 +35,12 @@
$this->initVar('table_fieldname', XOBJ_DTYPE_TXTBOX, null);
$this->initVar('table_image', XOBJ_DTYPE_TXTBOX, null);
$this->initVar('table_blocks', XOBJ_DTYPE_INT, null);
- $this->initVar('table_display_admin', XOBJ_DTYPE_INT, null);
- $this->initVar('table_display_user', XOBJ_DTYPE_INT, null);
+ $this->initVar('table_admin', XOBJ_DTYPE_INT, null);
+ $this->initVar('table_user', XOBJ_DTYPE_INT, null);
$this->initVar('table_submenu', XOBJ_DTYPE_INT, null);
$this->initVar('table_search', XOBJ_DTYPE_INT, null);
$this->initVar('table_comments', XOBJ_DTYPE_INT, null);
- $this->initVar('table_notify', XOBJ_DTYPE_INT, null);
+ $this->initVar('table_notifications', XOBJ_DTYPE_INT, null);
}
}
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/language/english/admin.php
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/language/english/admin.php 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/language/english/admin.php 2013-02-11 15:33:32 UTC (rev 11013)
@@ -93,20 +93,20 @@
define("_AM_TDMCREATE_MODULE_STATUS", "Status");
define("_AM_TDMCREATE_MODULE_PAYPALBTN", "Button for Donations");
define("_AM_TDMCREATE_MODULE_SVN", "Subversion module");
-define("_AM_TDMCREATE_MODULE_DISPLAY_ADMIN", "Visible Admin");
-define("_AM_TDMCREATE_MODULE_DISPLAY_USER", "Visible User");
-define("_AM_TDMCREATE_MODULE_ACTIVE_SEARCH", "Enable Search");
-define("_AM_TDMCREATE_MODULE_ACTIVE_COMMENTS", "Enable Comments");
-define("_AM_TDMCREATE_MODULE_ACTIVE_NOTIFIES", "Enable Notifies");
+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");
// Added in version 1.39
define("_AM_TDMCREATE_MODULE_NBFIELDS", "Fields Number");
define("_AM_TDMCREATE_MODULE_BLOCKS", "Blocks");
-define("_AM_TDMCREATE_MODULE_DISPLAY_ADMIN_LIST", "Admin");
-define("_AM_TDMCREATE_MODULE_DISPLAY_USER_LIST", "User");
-define("_AM_TDMCREATE_MODULE_DISPLAY_SUBMENU_LIST", "Submenu");
-define("_AM_TDMCREATE_MODULE_ACTIVE_SEARCH_LIST", "Search");
-define("_AM_TDMCREATE_MODULE_ACTIVE_COMS_LIST", "Comments");
-define("_AM_TDMCREATE_MODULE_ACTIVE_NOTIFY_LIST", "Notifications");
+define("_AM_TDMCREATE_MODULE_ADMIN_LIST", "Admin");
+define("_AM_TDMCREATE_MODULE_USER_LIST", "User");
+define("_AM_TDMCREATE_MODULE_SUBMENU_LIST", "Submenu");
+define("_AM_TDMCREATE_MODULE_SEARCH_LIST", "Search");
+define("_AM_TDMCREATE_MODULE_COMMENTS_LIST", "Comments");
+define("_AM_TDMCREATE_MODULE_NOTIFICATIONS_LIST", "Notifications");
define("_AM_TDMCREATE_EXTENSION_ADD", "Add a new extension");
define("_AM_TDMCREATE_EXTENSION_EDIT", "Edit extension");
@@ -138,21 +138,21 @@
define("_AM_TDMCREATE_EXTENSION_STATUS", "Status");
define("_AM_TDMCREATE_EXTENSION_PAYPALBTN", "Button for Donations");
define("_AM_TDMCREATE_EXTENSION_SVN", "Subversion module");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_ADMIN", "Visible Admin");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_USER", "Visible User");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_SUBMENU", "Visible Submenu");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_SEARCH", "Enable Search");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_COMMENTS", "Enable Comments");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_NOTIFIES", "Enable Notifies");
+define("_AM_TDMCREATE_EXTENSION_ADMIN", "Visible Admin");
+define("_AM_TDMCREATE_EXTENSION_USER", "Visible User");
+define("_AM_TDMCREATE_EXTENSION_SUBMENU", "Visible Submenu");
+define("_AM_TDMCREATE_EXTENSION_SEARCH", "Enable Search");
+define("_AM_TDMCREATE_EXTENSION_COMMENTS", "Enable Comments");
+define("_AM_TDMCREATE_EXTENSION_NOTIFICATIONS", "Enable Notifications");
// Added in version 2.01
define("_AM_TDMCREATE_EXTENSION_NBFIELDS", "Fields Number");
define("_AM_TDMCREATE_EXTENSION_BLOCKS", "Blocks");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_ADMIN_LIST", "Admin");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_USER_LIST", "User");
-define("_AM_TDMCREATE_EXTENSION_DISPLAY_SUBMENU_LIST", "Submenu");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_SEARCH_LIST", "Search");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_COMMENTS_LIST", "Comments");
-define("_AM_TDMCREATE_EXTENSION_ACTIVE_NOTIFIES_LIST", "Notifications");
+define("_AM_TDMCREATE_EXTENSION_ADMIN_LIST", "Admin");
+define("_AM_TDMCREATE_EXTENSION_USER_LIST", "User");
+define("_AM_TDMCREATE_EXTENSION_SUBMENU_LIST", "Submenu");
+define("_AM_TDMCREATE_EXTENSION_SEARCH_LIST", "Search");
+define("_AM_TDMCREATE_EXTENSION_COMMENTS_LIST", "Comments");
+define("_AM_TDMCREATE_EXTENSION_NOTIFICATIONS_LIST", "Notifications");
define("_AM_TDMCREATE_EXTENSIONS_LIST", "Extension List");
//Tables.php
@@ -177,12 +177,12 @@
define("_AM_TDMCREATE_TABLE_COMMENTS", "Enable Comments for this table");
define("_AM_TDMCREATE_TABLE_ID", "Id");
-define("_AM_TDMCREATE_TABLE_DISPLAY_ADMIN_LIST", "Display Admin");
-define("_AM_TDMCREATE_TABLE_DISPLAY_USER_LIST", "Display User");
-define("_AM_TDMCREATE_TABLE_DISPLAY_SUBMENU_LIST", "Display Submenu");
-define("_AM_TDMCREATE_TABLE_ACTIVE_SEARCH_LIST", "Active Search");
-define("_AM_TDMCREATE_TABLE_ACTIVE_COMMENTS_LIST", "Active Comments");
-define("_AM_TDMCREATE_TABLE_ACTIVE_NOTIFIES_LIST", "Active Notifies");
+define("_AM_TDMCREATE_TABLE_ADMIN_LIST", "Display Admin");
+define("_AM_TDMCREATE_TABLE_USER_LIST", "Display User");
+define("_AM_TDMCREATE_TABLE_SUBMENU_LIST", "Display Submenu");
+define("_AM_TDMCREATE_TABLE_SEARCH_LIST", "Active Search");
+define("_AM_TDMCREATE_TABLE_COMMENTS_LIST", "Active Comments");
+define("_AM_TDMCREATE_TABLE_NOTIFICATIONS_LIST", "Active Notifies");
// v1.38
define("_AM_TDMCREATE_TABLE_IMAGE_DESC", "<span class='red bold'>Attention</span>: If you want to choose a new image, is best to name it with the module name before and follow with the name of the image so as not to overwrite any images with the same name, in the <span class='bold'>Frameworks/moduleclasses/moduleadmin/icons/32/</span>. Otherwise an other solution, would be to insert the images in the module, a new folder is created, with the creation of the same module - <span class='bold'>images/32</span>.");
// Added in version 1.39
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/sql/mysql.sql
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/sql/mysql.sql 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/sql/mysql.sql 2013-02-11 15:33:32 UTC (rev 11013)
@@ -79,7 +79,7 @@
`ext_comments` tinyint (1) unsigned NOT NULL default '0',
`ext_notifications` tinyint (1) unsigned NOT NULL default '0',
`ext_paypal` varchar (20) NOT NULL default 'YDRUY5QZQHAHS',
-`ext_subversion` varchar (10) NOT NULL default '000000',
+`ext_subversion` varchar (20) NOT NULL default '0',
PRIMARY KEY (`ext_id`),
KEY `ext_name` (`ext_name`(40))
) ENGINE=MyISAM;
@@ -96,12 +96,12 @@
`table_fieldname` varchar (50) NOT NULL default '',
`table_image` varchar (100) NOT NULL default '',
`table_blocks` tinyint (1) unsigned NOT NULL default '0',
-`table_display_admin` tinyint (1) unsigned NOT NULL default '0',
-`table_display_user` tinyint (1) unsigned NOT NULL default '0',
+`table_admin` tinyint (1) unsigned NOT NULL default '0',
+`table_user` tinyint (1) unsigned NOT NULL default '0',
`table_submenu` tinyint (1) unsigned NOT NULL default '0',
`table_search` tinyint (1) unsigned NOT NULL default '0',
`table_comments` tinyint (1) unsigned NOT NULL default '0',
-`table_notify` tinyint (1) unsigned NOT NULL default '0',
+`table_notifications` tinyint (1) unsigned NOT NULL default '0',
PRIMARY KEY (`table_id`),
KEY `table_mid` (`table_mid`),
KEY `table_name` (`table_name`(40))
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_extensions.html
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_extensions.html 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_extensions.html 2013-02-11 15:33:32 UTC (rev 11013)
@@ -10,34 +10,34 @@
<th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_IMAGE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_RELEASE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_STATUS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_DISPLAY_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_DISPLAY_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_DISPLAY_SUBMENU_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_ACTIVE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_ACTIVE_COMMENTS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_ACTIVE_NOTIFIES_LIST}></th>
- <th class='xo-actions txtcenter width5'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_ADMIN_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_USER_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_SUBMENU_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_SEARCH_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_COMMENTS_LIST}></th>
+ <th class='center'><{$smarty.const._AM_TDMCREATE_EXTENSION_NOTIFICATIONS_LIST}></th>
+ <th class='xo-actions txtcenter width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
</tr>
</thead>
<tbody>
<{foreach item=extension from=$extensions}>
<tr class='<{cycle values='even,odd'}>'>
- <td class='center'><{$extension.ext_id}></td>
- <td class='center'><{$extension.ext_name}></td>
- <td class='center'><{$extension.ext_version}></td>
- <td class='center'><img src='<{$eimg_path}>/<{$extension.ext_image}>' height='25px' title='<{$extension.ext_name}>' alt='<{$extension.ext_name}>' /></td>
- <td class='center'><{$extension.ext_release}></td>
- <td class='center'><{$extension.ext_status}></td>
- <td class='center'><{$extension.ext_display_admin}></td>
- <td class='center'><{$extension.ext_display_user}></td>
- <td class='center'><{$extension.ext_display_submenu}></td>
- <td class='center'><{$extension.ext_active_search}></td>
- <td class='center'><{$extension.ext_active_comments}></td>
- <td class='center'><{$extension.ext_active_notifies}></td>
+ <td class='center'><{$extension.id}></td>
+ <td class='center'><{$extension.name}></td>
+ <td class='center'><{$extension.version}></td>
+ <td class='center'><img src='<{$eimg_path}>/<{$extension.image}>' height='25px' title='<{$extension.name}>' alt='<{$extension.name}>' /></td>
+ <td class='center'><{$extension.release}></td>
+ <td class='center'><{$extension.status}></td>
+ <td class='center'><{$extension.admin}></td>
+ <td class='center'><{$extension.user}></td>
+ <td class='center'><{$extension.submenu}></td>
+ <td class='center'><{$extension.search}></td>
+ <td class='center'><{$extension.comments}></td>
+ <td class='center'><{$extension.notifications}></td>
<td class='xo-actions txtcenter width6'>
- <a href='extensions.php?op=edit&id=<{$extension.ext_id}>' title='<{$smarty.const._EDIT}>'>
+ <a href='extensions.php?op=edit&id=<{$extension.id}>' title='<{$smarty.const._EDIT}>'>
<img src='<{xoAdminIcons edit.png}>' alt='<{$smarty.const._EDIT}>' /></a>
- <a href='extensions.php?op=delete&id=<{$extension.ext_id}>' title='<{$smarty.const._DELETE}>'>
+ <a href='extensions.php?op=delete&id=<{$extension.id}>' title='<{$smarty.const._DELETE}>'>
<img src='<{xoAdminIcons delete.png}>' alt='<{$smarty.const._DELETE}>' /></a>
</td>
</tr>
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_modules.html
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_modules.html 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_modules.html 2013-02-11 15:33:32 UTC (rev 11013)
@@ -11,30 +11,30 @@
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_RELEASE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_STATUS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_SUBMENU_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_COMS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_NOTIFY_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>
+ <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='xo-actions txtcenter width5'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
</tr>
</thead>
<tbody>
<{foreach item=module from=$modules}>
<tr class='<{cycle values='even,odd'}>'>
- <td class='center'><{$module.mod_id}></td>
- <td class='center'><{$module.mod_name}></td>
- <td class='center'><{$module.mod_version}></td>
+ <td class='center'><{$module.id}></td>
+ <td class='center'><{$module.name}></td>
+ <td class='center'><{$module.version}></td>
<td class='center'><img src='<{$mimg_path}>/<{$module.mod_image}>' height='25px' title='<{$module.mod_name}>' alt='<{$module.mod_name}>' /></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'><{$module.release}></td>
+ <td class='center'><{$module.status}></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='xo-actions txtcenter width6'>
<a href='modules.php?op=edit&mod_id=<{$module.mod_id}>' title='<{$smarty.const._EDIT}>'>
<img src='<{xoAdminIcons edit.png}>' alt='<{$smarty.const._EDIT}>' /></a>
Modified: XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_tables.html
===================================================================
--- XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_tables.html 2013-02-10 00:51:04 UTC (rev 11012)
+++ XoopsModules26/tdmcreate/branches/2.01/timgno/tdmcreate/templates/admin/tdmcreate_tables.html 2013-02-11 15:33:32 UTC (rev 11013)
@@ -10,30 +10,30 @@
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_IMAGE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_RELEASE}></th>
<th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_STATUS}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_ADMIN_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_USER_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_DISPLAY_SUBMENU_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_SEARCH_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_COMS_LIST}></th>
- <th class='center'><{$smarty.const._AM_TDMCREATE_MODULE_ACTIVE_NOTIFY_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>
+ <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='xo-actions txtcenter width6'><{$smarty.const._AM_TDMCREATE_FORMACTION}></th>
</tr>
</thead>
<tbody>
<{foreach item=module from=$modules}>
<tr class='<{cycle values='even,odd'}>'>
- <td class='center'><{$module.mod_id}></td>
- <td class='center'><{$module.mod_name}></td>
- <td class='center'><{$module.mod_version}></td>
- <td class='center'><img src='<{$mimg_path}><{$module.mod_image}>' height='25px' title='<{$module.mod_name}>' alt='<{$module.mod_name}>' /></td>
- <td class='center'><{$module.mod_release}></td>
- <td class='center'><{$module.mod_status}></td>
- <td class='center'><{$module.mod_display_admin}></td>
- <td class='center'><{$module.mod_display_user}></td>
- <td class='center'><{$module.mod_display_submenu}></td>
- <td class='center'><{$module.mod_active_search}></td>
- <td class='center'><{$module.mod_active_comments}></td>
- <td class='center'><{$module.mod_active_notifies}></td>
+ <td class='center'><{$module.id}></td>
+ <td class='center'><{$module.name}></td>
+ <td class='center'><{$module.version}></td>
+ <td class='center'><img src='<{$mimg_path}>/<{$module.mod_image}>' height='25px' title='<{$module.mod_name}>' alt='<{$module.mod_name}>' /></td>
+ <td class='center'><{$module.release}></td>
+ <td class='center'><{$module.status}></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='xo-actions txtcenter width6'>
<a href='modules.php?op=edit&id=<{$module.mod_id}>' title='<{$smarty.const._EDIT}>'>
<img src='<{xoAdminIcons edit.png}>' alt='<{$smarty.const._EDIT}>' /></a>
@@ -44,18 +44,18 @@
<{if $tables_count}>
<{foreach item=table from=$tables}>
<tr class='<{cycle values='even,odd'}>'>
- <td class='center'><{$table.table_id}></td>
- <td class='center'><{$table.table_name}></td>
- <td class='center'><{$table.table_mid}></td>
- <td class='center'><img src='<{$timg_path}><{$table.table_image}>' height='25px' title='<{$table.table_name}>' alt='<{$table.table_name}>' /></td>
- <td class='center'><{$table.table_nbfields}></td>
- <td class='center'><{$table.table_blocks}></td>
- <td class='center'><{$table.table_admin}></td>
- <td class='center'><{$table.table_user}></td>
- <td class='center'><{$table.table_submenu}></td>
- <td class='center'><{$table.table_search}></td>
- <td class='center'><{$table.table_comments}></td>
- <td class='center'><{$table.table_notifies}></td>
+ <td class='center'><{$table.id}></td>
+ <td class='center'><{$table.name}></td>
+ <td class='center'><{$table.mid}></td>
+ <td class='center'><img src='<{$timg_path}>/<{$table.image}>' height='25px' title='<{$table.name}>' alt='<{$table.table_name}>' /></td>
+ <td class='center'><{$table.nbfields}></td>
+ <td class='center'><{$table.blocks}></td>
+ <td class='center'><{$table.admin}></td>
+ <td class='center'><{$table.user}></td>
+ <td class='center'><{$table.submenu}></td>
+ <td class='center'><{$table.search}></td>
+ <td class='center'><{$table.comments}></td>
+ <td class='center'><{$table.notifications}></td>
<td class='xo-actions txtcenter width5'>
<a href='tables.php?op=edit&id=<{$table.table_id}>' title='<{$smarty.const._EDIT}>'>
<img src='<{xoAdminIcons edit.png}>' alt='<{$smarty.const._EDIT}>' /></a>
|