Edit and set comment field for colums in eGW's schema files

This commit is contained in:
Ralf Becker 2009-05-13 07:39:58 +00:00
parent 6617bec9ef
commit 51284255c1
3 changed files with 72 additions and 30 deletions

View File

@ -4,7 +4,7 @@
*
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker@outdoor-training.de>
* @copyright 2002-8 by RalfBecker@outdoor-training.de
* @copyright 2002-9 by RalfBecker@outdoor-training.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate
* @subpackage tools
@ -16,18 +16,47 @@
*/
class db_tools
{
var $public_functions = array
(
/**
* Methods callable via menuaction
*
* @var array
*/
public $public_functions = array(
'edit' => True,
'needs_save' => True,
);
var $debug = 0;
var $editor; // editor eTemplate
var $data; // Table definitions
var $app; // used app
var $table; // used table
var $types = array(
/**
* Debug Level: 0 = off, > 0 more diagnostics
*
* @var int
*/
protected $debug = 0;
/**
* Table definitions
*
* @var array
*/
protected $data = array();
/**
* Used app
*
* @var string
*/
protected $app;
/**
* Used table
*
* @var string
*/
protected $table;
/**
* Available colum types
*
* @var array
*/
protected $types = array(
'varchar' => 'varchar',
'int' => 'int',
'auto' => 'auto',
@ -46,11 +75,8 @@ class db_tools
/**
* constructor of class
*/
function db_tools()
function __construct()
{
$this->editor = new etemplate('etemplate.db-tools.edit');
$this->data = array();
if (!is_array($GLOBALS['egw_info']['apps']) || !count($GLOBALS['egw_info']['apps']))
{
ExecMethod('phpgwapi.applications.read_installed_apps');
@ -61,8 +87,11 @@ class db_tools
/**
* table editor (and the callback/submit-method too)
*
* @param array $content=null
* @param string $msg=''
*/
function edit($content='',$msg = '')
function edit(array $content=null,$msg = '')
{
if (isset($_GET['app']))
{
@ -209,7 +238,8 @@ class db_tools
{
echo 'editor.edit: content ='; _debug_array($content);
}
$this->editor->exec('etemplate.db_tools.edit',$content,$sel_options,$no_button,
$tpl = new etemplate('etemplate.db-tools.edit');
$tpl->exec('etemplate.db_tools.edit',$content,$sel_options,$no_button,
array('posted_table' => $this->table,'posted_app' => $this->app,'changes' => $this->changes));
}
@ -456,7 +486,7 @@ class db_tools
case 'varchar': $col['precision'] = 255; break;
}
}
while (list($prop,$val) = each($col))
foreach($col as $prop => $val)
{
switch ($prop)
{
@ -464,6 +494,7 @@ class db_tools
case 'type': // selectbox ensures type is not empty
case 'precision':
case 'scale':
case 'comment':
if ($val != '')
{
$table['fd'][$name][$prop] = $prop=='default'&& $val=="''" ? '' : $val;
@ -1004,16 +1035,15 @@ function $app"."_upgrade$old_version_()
*/
function normalize($table)
{
$all_props = array('type','precision','nullable','default');
foreach($table['fd'] as $col => $props)
{
$table['fd'][$col] = array(
'type' => ''.$props['type'],
'type' => (string)$props['type'],
'precision' => 0+$props['precision'],
'scale' => 0+$props['scale'],
'nullable' => !isset($props['nullable']) || !!$props['nullable'],
'default' => ''.$props['default']
'default' => (string)$props['default'],
'comment' => (string)$props['comment'],
);
}
return array(

View File

@ -2,7 +2,7 @@
/**
* eGroupWare - eTemplates for Application etemplate
* http://www.egroupware.org
* generated by soetemplate::dump4setup() 2009-02-23 14:22
* generated by soetemplate::dump4setup() 2009-05-13 09:38
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate
@ -71,14 +71,14 @@ $templ_data[] = array('name' => 'etemplate.db-tools.ask_save','template' => '','
$templ_data[] = array('name' => 'etemplate.db-tools.ask_save','template' => '','lang' => '','group' => '0','version' => '1.0.0.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:1:{s:2:"h1";s:6:",!@msg";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:6:{s:7:"no_lang";s:1:"1";s:5:"align";s:5:"right";s:4:"name";s:7:"version";s:4:"size";s:2:"bi";s:4:"type";s:5:"label";s:5:"label";s:27:"Update from Version \'%s\' to";}s:1:"B";a:3:{s:4:"name";s:11:"new_version";s:4:"type";s:4:"text";s:4:"help";s:75:"enter the new version number here (> old_version), empty for no update-file";}}i:4;a:2:{s:1:"A";a:2:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:7:{s:4:"span";s:3:"all";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:5:"table";s:4:"size";s:1:"b";s:4:"type";s:5:"label";s:5:"label";s:53:"Do you want to save the changes you made in table %s?";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:6;a:2:{s:1:"A";a:2:{s:4:"span";s:3:"all";s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:7;a:2:{s:1:"A";a:5:{s:5:"label";s:3:"Yes";s:5:"align";s:5:"right";s:4:"name";s:3:"yes";s:4:"type";s:6:"button";s:4:"help";s:39:"saves changes to tables_current.inc.php";}s:1:"B";a:4:{s:5:"label";s:2:"No";s:4:"name";s:2:"no";s:4:"type";s:6:"button";s:4:"help";s:15:"discard changes";}}}s:4:"cols";i:2;s:4:"rows";i:7;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1112602648',);
$templ_data[] = array('name' => 'etemplate.db-tools.cols','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:3:"nmh";s:2:"c2";s:3:"nmr";}i:1;a:12:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:1:"#";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Precision";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Scale";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"NOT NULL";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Unique";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Primary Key";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Indexed";}s:1:"J";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Foreign Key";}s:1:"K";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Default";}s:1:"L";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Add Column";s:5:"align";s:6:"center";s:4:"name";s:10:"add_column";s:4:"help";s:42:"Add a new column (after the existing ones)";}}i:2;a:12:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:12:"Row${row}[n]";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[name]";s:4:"help";s:127:"need to be unique in the table and no reseved word from SQL, best prefix all with a common 2-digit short for the app, eg. \'et_\'";}s:1:"C";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[type]";s:4:"help";s:18:"type of the column";}s:1:"D";a:4:{s:4:"type";s:3:"int";s:5:"align";s:6:"center";s:4:"name";s:20:"Row${row}[precision]";s:4:"help";s:64:"length for char+varchar, precisions int: 2, 4, 8 and float: 4, 8";}s:1:"E";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"Row${row}[scale]";s:4:"help";s:15:"scale for float";}s:1:"F";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:18:"Row${row}[notnull]";s:4:"help";s:35:"can not have special SQL-value NULL";}s:1:"G";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[uc]";s:4:"help";s:59:"DB ensures that every row has a unique value in that column";}s:1:"H";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[pk]";s:4:"help";s:52:"Primary key for the table, gets automaticaly indexed";}s:1:"I";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[ix]";s:4:"help";s:81:"an indexed column speeds up querys using that column (cost space on the disk !!!)";}s:1:"J";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[fk]";s:4:"help";s:46:"name of other table where column is a key from";}s:1:"K";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:4:"name";s:18:"Row${row}[default]";s:4:"help";s:54:"enter \'\' for an empty default, nothing mean no default";}s:1:"L";a:5:{s:4:"type";s:6:"button";s:5:"label";s:13:"Delete Column";s:5:"align";s:6:"center";s:4:"name";s:12:"delete[$row]";s:4:"help";s:19:"Deletes this column";}}}s:4:"rows";i:2;s:4:"cols";i:12;}}','size' => '','style' => '','modified' => '1064452548',);
$templ_data[] = array('name' => 'etemplate.db-tools.cols','template' => '','lang' => '','group' => '0','version' => '0.9.15.003','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:3:"nmh";s:2:"c2";s:3:"nmr";}i:1;a:13:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:1:"#";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Precision";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Scale";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"NOT NULL";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Primary Key";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Unique";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Indexed";}s:1:"J";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Indexoptions";}s:1:"K";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Foreign Key";}s:1:"L";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Default";}s:1:"M";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Add Column";s:5:"align";s:6:"center";s:4:"name";s:10:"add_column";s:4:"help";s:42:"Add a new column (after the existing ones)";}}i:2;a:13:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:12:"Row${row}[n]";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"15";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[name]";s:4:"help";s:127:"need to be unique in the table and no reseved word from SQL, best prefix all with a common 2-digit short for the app, eg. \'et_\'";}s:1:"C";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[type]";s:4:"help";s:18:"type of the column";}s:1:"D";a:4:{s:4:"type";s:3:"int";s:5:"align";s:6:"center";s:4:"name";s:20:"Row${row}[precision]";s:4:"help";s:64:"length for char+varchar, precisions int: 2, 4, 8 and float: 4, 8";}s:1:"E";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"Row${row}[scale]";s:4:"help";s:15:"scale for float";}s:1:"F";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:18:"Row${row}[notnull]";s:4:"help";s:35:"can not have special SQL-value NULL";}s:1:"G";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[pk]";s:4:"help";s:52:"Primary key for the table, gets automaticaly indexed";}s:1:"H";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[uc]";s:4:"help";s:59:"DB ensures that every row has a unique value in that column";}s:1:"I";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[ix]";s:4:"help";s:81:"an indexed column speeds up querys using that column (cost space on the disk !!!)";}s:1:"J";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"15";s:4:"name";s:18:"Row${row}[options]";s:4:"help";s:105:"DB-specific index options (comma-sep.), eg. mysql(FULLTEXT) or mysql(100) for the indexed length of a col";}s:1:"K";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[fk]";s:4:"help";s:46:"name of other table where column is a key from";}s:1:"L";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"8";s:4:"name";s:18:"Row${row}[default]";s:4:"help";s:54:"enter \'\' for an empty default, nothing mean no default";}s:1:"M";a:5:{s:4:"type";s:6:"button";s:5:"label";s:13:"Delete Column";s:5:"align";s:6:"center";s:4:"name";s:12:"delete[$row]";s:4:"help";s:19:"Deletes this column";}}}s:4:"rows";i:2;s:4:"cols";i:13;}}','size' => '','style' => '','modified' => '1067163210',);
$templ_data[] = array('name' => 'etemplate.db-tools.edit','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:1:"D";s:2:"1%";}i:1;a:7:{s:1:"A";a:6:{s:4:"type";s:5:"label";s:4:"size";s:2:"bi";s:4:"span";s:1:"6";s:5:"label";s:29:"Editable Templates - DB-Tools";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:5:{s:4:"type";s:6:"button";s:5:"label";s:16:"eTemplate Editor";s:5:"align";s:5:"right";s:4:"name";s:6:"editor";s:4:"help";s:29:"to start the eTemplate editor";}}i:2;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:4;a:7:{s:1:"A";a:7:{s:4:"type";s:10:"select-app";s:4:"size";s:19:"Select one ...,,all";s:5:"label";s:11:"Application";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:8:"onchange";s:1:"1";s:4:"help";s:40:"Select an application, (*) = uninstalled";}s:1:"B";a:6:{s:4:"type";s:6:"select";s:5:"label";s:9:"TableName";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"table_name";s:8:"onchange";s:1:"1";s:4:"help";s:34:"Select an table of the application";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:5:"align";s:5:"right";s:4:"name";s:14:"new_table_name";s:4:"help";s:20:"Name of table to add";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:9:"Add Table";s:4:"name";s:9:"add_table";s:4:"help";s:38:"Create a new table for the application";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Import";s:4:"name";s:6:"import";s:4:"help";s:47:"Import table-definitions from existing db-table";}s:1:"F";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Drop Table";s:4:"name";s:10:"drop_table";s:8:"disabled";s:1:"1";s:4:"help";s:37:"Drop a table - this can NOT be undone";}s:1:"G";a:4:{s:4:"type";s:6:"button";s:5:"label";s:12:"Write Tables";s:4:"name";s:12:"write_tables";s:4:"help";s:40:"Write <app>/setup/tables_current.inc.php";}}i:5;a:7:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:23:"etemplate.db-tools.cols";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:5;s:4:"cols";i:7;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1047991954',);
$templ_data[] = array('name' => 'etemplate.db-tools.cols','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:3:"nmh";s:2:"c2";s:3:"nmr";}i:1;a:14:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:1:"#";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Precision";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Scale";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"NOT NULL";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Primary Key";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Unique";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Indexed";}s:1:"J";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Default";}s:1:"K";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Comment";}s:1:"L";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Indexoptions";}s:1:"M";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Foreign Key";}s:1:"N";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Add Column";s:5:"align";s:6:"center";s:4:"name";s:10:"add_column";s:4:"help";s:42:"Add a new column (after the existing ones)";}}i:2;a:14:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:12:"Row${row}[n]";}s:1:"B";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"15";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[name]";s:4:"help";s:127:"need to be unique in the table and no reseved word from SQL, best prefix all with a common 2-digit short for the app, eg. \'et_\'";}s:1:"C";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"Row${row}[type]";s:4:"help";s:18:"type of the column";}s:1:"D";a:4:{s:4:"type";s:3:"int";s:5:"align";s:6:"center";s:4:"name";s:20:"Row${row}[precision]";s:4:"help";s:64:"length for char+varchar, precisions int: 2, 4, 8 and float: 4, 8";}s:1:"E";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"Row${row}[scale]";s:4:"help";s:15:"scale for float";}s:1:"F";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:18:"Row${row}[notnull]";s:4:"help";s:35:"can not have special SQL-value NULL";}s:1:"G";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[pk]";s:4:"help";s:52:"Primary key for the table, gets automaticaly indexed";}s:1:"H";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[uc]";s:4:"help";s:59:"DB ensures that every row has a unique value in that column";}s:1:"I";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[ix]";s:4:"help";s:81:"an indexed column speeds up querys using that column (cost space on the disk !!!)";}s:1:"J";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"8";s:4:"name";s:18:"Row${row}[default]";s:4:"help";s:54:"enter \'\' for an empty default, nothing mean no default";}s:1:"K";a:3:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:4:"name";s:18:"Row${row}[comment]";}s:1:"L";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"8";s:4:"name";s:18:"Row${row}[options]";s:4:"help";s:105:"DB-specific index options (comma-sep.), eg. mysql(FULLTEXT) or mysql(100) for the indexed length of a col";}s:1:"M";a:5:{s:4:"type";s:4:"text";s:4:"size";s:1:"8";s:5:"align";s:6:"center";s:4:"name";s:13:"Row${row}[fk]";s:4:"help";s:46:"name of other table where column is a key from";}s:1:"N";a:5:{s:4:"type";s:6:"button";s:5:"label";s:13:"Delete Column";s:5:"align";s:6:"center";s:4:"name";s:12:"delete[$row]";s:4:"help";s:19:"Deletes this column";}}}s:4:"rows";i:2;s:4:"cols";i:14;}}','size' => '','style' => '','modified' => '1067163210',);
$templ_data[] = array('name' => 'etemplate.db-tools.edit','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:1:"D";s:2:"1%";}i:1;a:7:{s:1:"A";a:7:{s:4:"type";s:10:"select-app";s:4:"size";s:19:"Select one ...,,all";s:5:"label";s:11:"Application";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:8:"onchange";s:1:"1";s:4:"help";s:40:"Select an application, (*) = uninstalled";}s:1:"B";a:6:{s:4:"type";s:6:"select";s:5:"label";s:9:"TableName";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"table_name";s:8:"onchange";s:1:"1";s:4:"help";s:34:"Select an table of the application";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:5:"align";s:5:"right";s:4:"name";s:14:"new_table_name";s:4:"help";s:20:"Name of table to add";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:9:"Add Table";s:4:"name";s:9:"add_table";s:4:"help";s:38:"Create a new table for the application";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Import";s:4:"name";s:6:"import";s:4:"help";s:47:"Import table-definitions from existing db-table";}s:1:"F";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Drop Table";s:4:"name";s:10:"drop_table";s:8:"disabled";s:1:"1";s:4:"help";s:37:"Drop a table - this can NOT be undone";}s:1:"G";a:4:{s:4:"type";s:6:"button";s:5:"label";s:12:"Write Tables";s:4:"name";s:12:"write_tables";s:4:"help";s:40:"Write <app>/setup/tables_current.inc.php";}}i:2;a:7:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:23:"etemplate.db-tools.cols";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:26:"etemplate.db-tools.indices";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:7;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1067164025',);
$templ_data[] = array('name' => 'etemplate.db-tools.edit','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:2:{s:1:"D";s:2:"1%";s:2:"h1";s:6:",!@msg";}i:1;a:7:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:2;a:7:{s:1:"A";a:7:{s:4:"type";s:10:"select-app";s:4:"size";s:19:"Select one ...,,all";s:5:"label";s:11:"Application";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"app";s:8:"onchange";s:1:"1";s:4:"help";s:40:"Select an application, (*) = uninstalled";}s:1:"B";a:6:{s:4:"type";s:6:"select";s:5:"label";s:9:"TableName";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"table_name";s:8:"onchange";s:1:"1";s:4:"help";s:34:"Select an table of the application";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:2:"20";s:5:"align";s:5:"right";s:4:"name";s:14:"new_table_name";s:4:"help";s:20:"Name of table to add";}s:1:"D";a:4:{s:4:"type";s:6:"button";s:5:"label";s:9:"Add Table";s:4:"name";s:9:"add_table";s:4:"help";s:38:"Create a new table for the application";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Import";s:4:"name";s:6:"import";s:4:"help";s:47:"Import table-definitions from existing db-table";}s:1:"F";a:5:{s:4:"type";s:6:"button";s:5:"label";s:10:"Drop Table";s:4:"name";s:10:"drop_table";s:8:"disabled";s:1:"1";s:4:"help";s:37:"Drop a table - this can NOT be undone";}s:1:"G";a:4:{s:4:"type";s:6:"button";s:5:"label";s:12:"Write Tables";s:4:"name";s:12:"write_tables";s:4:"help";s:40:"Write <app>/setup/tables_current.inc.php";}}i:3;a:7:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:23:"etemplate.db-tools.cols";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:4;a:7:{s:1:"A";a:3:{s:4:"type";s:8:"template";s:4:"span";s:3:"all";s:4:"name";s:26:"etemplate.db-tools.indices";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:7;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1242199350',);
$templ_data[] = array('name' => 'etemplate.db-tools.indices','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c1";s:2:"th";s:2:"c2";s:2:"th";s:2:"c3";s:3:"row";}i:1;a:8:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:19:"Multicolumn Indices";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}}i:2;a:8:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:1:"#";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Unique";}s:1:"H";a:5:{s:4:"type";s:6:"button";s:5:"label";s:9:"Add Index";s:5:"align";s:6:"center";s:4:"name";s:9:"add_index";s:4:"help";s:28:"Add a new multi-column index";}}i:3;a:8:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][n]";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][0]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"C";a:6:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][1]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"D";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][2]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"E";a:6:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][3]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"F";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][4]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"G";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:19:"Index[$row][unique]";s:4:"help";s:59:"DB ensures that every row has a unique value in that column";}s:1:"H";a:5:{s:4:"type";s:6:"button";s:5:"label";s:12:"Delete Index";s:5:"align";s:6:"center";s:4:"name";s:18:"delete_index[$row]";s:4:"help";s:18:"Deletes this index";}}}s:4:"rows";i:3;s:4:"cols";i:8;}}','size' => '','style' => '','modified' => '1067173445',);
$templ_data[] = array('name' => 'etemplate.db-tools.indices','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c1";s:2:"th";s:2:"c2";s:2:"th";s:2:"c3";s:3:"row";}i:1;a:10:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:19:"Multicolumn Indices";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";a:1:{s:4:"type";s:5:"label";}s:1:"J";a:1:{s:4:"type";s:5:"label";}}i:2;a:10:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:1:"#";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"ColumnName";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Unique";}s:1:"J";a:5:{s:4:"type";s:6:"button";s:5:"label";s:9:"Add Index";s:5:"align";s:6:"center";s:4:"name";s:9:"add_index";s:4:"help";s:28:"Add a new multi-column index";}}i:3;a:10:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][n]";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][0]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"C";a:6:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][1]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"D";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][2]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"E";a:6:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:14:"Index[$row][3]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"F";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][4]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"G";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][5]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"H";a:5:{s:4:"type";s:6:"select";s:4:"size";s:4:"none";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"Index[$row][6]";s:4:"help";s:49:"Select the indexed columns in their desired order";}s:1:"I";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:19:"Index[$row][unique]";s:4:"help";s:59:"DB ensures that every row has a unique value in that column";}s:1:"J";a:5:{s:4:"type";s:6:"button";s:5:"label";s:12:"Delete Index";s:5:"align";s:6:"center";s:4:"name";s:18:"delete_index[$row]";s:4:"help";s:18:"Deletes this index";}}}s:4:"rows";i:3;s:4:"cols";i:10;}}','size' => '','style' => '','modified' => '1067173445',);
@ -302,7 +302,7 @@ $templ_data[] = array('name' => 'etemplate.test.grid-export','template' => '','l
$templ_data[] = array('name' => 'etemplate.test.grid-export','template' => '','lang' => '','group' => '0','version' => '2','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"some cell";}}i:2;a:1:{s:1:"A";a:6:{s:5:"class";s:9:"hboxClass";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"size";s:1:"1";s:4:"type";s:5:"label";s:5:"label";s:2:"1.";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:2:"2.";}i:3;a:3:{s:5:"align";s:5:"right";s:4:"type";s:5:"label";s:5:"label";s:10:"last right";}}}}s:4:"cols";i:1;s:4:"rows";i:2;s:4:"size";s:16:"100%,,,gridClass";}}','size' => '100%,,,gridClass','style' => '','modified' => '1179507244',);
$templ_data[] = array('name' => 'etemplate.test.table','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:3:{s:2:"h1";s:4:",h,h";s:2:"h3";s:4:",f,f";s:2:"h2";s:3:",,h";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Kopf1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Kopf2";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:12:"2. Kopfzeile";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Footer1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Footer2";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Body1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Body2";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"2. Body1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"2. Body2";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:4:"size";s:3:",,1";s:7:"options";a:1:{i:2;s:1:"1";}}}','size' => '','style' => '','modified' => '1235388984',);
$templ_data[] = array('name' => 'etemplate.test.table','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:3:{s:2:"h1";s:4:",h,h";s:2:"h3";s:4:",f,f";s:2:"h2";s:3:",,h";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Kopf1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Kopf2";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:12:"2. Kopfzeile";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Footer1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Footer2";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Body1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Body2";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"2. Body1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"2. Body2";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:4:"size";s:3:",,1";s:7:"options";a:1:{i:2;s:1:"1";}}}','size' => ',,1','style' => '','modified' => '1235388984',);
$templ_data[] = array('name' => 'etemplate.test.Ymd','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:4:"text";s:5:"label";s:19:"Date YYYYmmddHHiiss";s:4:"name";s:4:"date";}}i:2;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"date";s:4:"size";s:5:"YmdHi";s:5:"label";s:4:"Date";s:4:"name";s:4:"date";s:8:"readonly";s:1:"1";}}i:3;a:1:{s:1:"A";a:5:{s:4:"type";s:13:"date-timeonly";s:4:"size";s:5:"YmdHi";s:5:"label";s:4:"Time";s:4:"name";s:4:"date";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1179320861',);

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="etemplate.db-tools.cols" template="" lang="" group="0" version="0.9.15.003">
<template id="etemplate.db-tools.cols" template="" lang="" group="0" version="1.7.001">
<grid>
<columns>
<column/>
@ -17,6 +17,7 @@
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row class="nmh">
@ -29,9 +30,10 @@
<description value="Primary Key"/>
<description value="Unique"/>
<description value="Indexed"/>
<description value="Default"/>
<description value="Comment"/>
<description value="Indexoptions"/>
<description value="Foreign Key"/>
<description value="Default"/>
<button label="Add Column" align="center" id="add_column" statustext="Add a new column (after the existing ones)"/>
</row>
<row class="nmr">
@ -46,9 +48,10 @@
<checkbox align="center" id="Row${row}[pk]" statustext="Primary key for the table, gets automaticaly indexed"/>
<checkbox align="center" id="Row${row}[uc]" statustext="DB ensures that every row has a unique value in that column"/>
<checkbox align="center" id="Row${row}[ix]" statustext="an indexed column speeds up querys using that column (cost space on the disk !!!)"/>
<textbox size="15" id="Row${row}[options]" statustext="DB-specific index options (comma-sep.), eg. mysql(FULLTEXT) or mysql(100) for the indexed length of a col"/>
<textbox size="20" align="center" id="Row${row}[fk]" statustext="name of other table where column is a key from"/>
<textbox size="8" id="Row${row}[default]" statustext="enter '' for an empty default, nothing mean no default"/>
<textbox size="20" id="Row${row}[comment]"/>
<textbox size="8" id="Row${row}[options]" statustext="DB-specific index options (comma-sep.), eg. mysql(FULLTEXT) or mysql(100) for the indexed length of a col"/>
<textbox size="8" align="center" id="Row${row}[fk]" statustext="name of other table where column is a key from"/>
<button label="Delete Column" align="center" id="delete[$row]" statustext="Deletes this column"/>
</row>
</rows>
@ -113,7 +116,7 @@
</rows>
</grid>
</template>
<template id="etemplate.db-tools.edit" template="" lang="" group="0" version="0.9.15.002">
<template id="etemplate.db-tools.edit" template="" lang="" group="0" version="1.7.001">
<grid width="100%">
<columns>
<column/>
@ -125,6 +128,15 @@
<column/>
</columns>
<rows>
<row disabled="!@msg">
<description span="all" class="redItalic" id="msg"/>
<description/>
<description/>
<description/>
<description/>
<description/>
<description/>
</row>
<row>
<menulist>
<menupopup type="select-app" options="Select one ...,,all" label="Application" no_lang="1" id="app" onchange="1" statustext="Select an application, (*) = uninstalled"/>