mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
added UI to import eTemplates from xml / xul-files
This commit is contained in:
parent
d927ce6f07
commit
42c5d97ee3
@ -24,7 +24,11 @@
|
|||||||
'error_writing' => 'Error: while saveing !!!',
|
'error_writing' => 'Error: while saveing !!!',
|
||||||
'other_version' => 'only an other Version found !!!',
|
'other_version' => 'only an other Version found !!!',
|
||||||
'ext_loaded' => 'Extensions loaded:',
|
'ext_loaded' => 'Extensions loaded:',
|
||||||
'x_found' => '%d eTemplates found'
|
'x_found' => '%d eTemplates found',
|
||||||
|
'imported' => "eTemplate '%s' imported, use Save to put it in the database",
|
||||||
|
'no_filename'=> 'no filename given or selected via Browse...',
|
||||||
|
'not_writeable' => "Error: webserver is not allowed to write into '%s' !!!",
|
||||||
|
'exported' => "eTemplate '%s' written to '%s'"
|
||||||
);
|
);
|
||||||
var $aligns = array(
|
var $aligns = array(
|
||||||
'' => 'Left',
|
'' => 'Left',
|
||||||
@ -355,6 +359,10 @@
|
|||||||
{
|
{
|
||||||
$msg = $this->export_xml();
|
$msg = $this->export_xml();
|
||||||
}
|
}
|
||||||
|
elseif ($content['import_xml'])
|
||||||
|
{
|
||||||
|
$msg = $this->import_xml($content['file']);
|
||||||
|
}
|
||||||
elseif ($content['db_tools'])
|
elseif ($content['db_tools'])
|
||||||
{
|
{
|
||||||
ExecMethod('etemplate.db_tools.edit');
|
ExecMethod('etemplate.db_tools.edit');
|
||||||
@ -377,7 +385,7 @@
|
|||||||
}
|
}
|
||||||
if (!is_writeable($dir))
|
if (!is_writeable($dir))
|
||||||
{
|
{
|
||||||
return "Error: webserver is not allowed to write into '$dir' !!!";
|
return sprintf($this->messages['not_writable'],$dir);
|
||||||
}
|
}
|
||||||
if ($create)
|
if ($create)
|
||||||
{
|
{
|
||||||
@ -405,8 +413,26 @@
|
|||||||
fwrite($f,$xul);
|
fwrite($f,$xul);
|
||||||
fclose($f);
|
fclose($f);
|
||||||
|
|
||||||
return $xul_io->import(&$this->etemplate,$xul);
|
return sprintf($this->messages['exported'],$name,$file);
|
||||||
return "eTemplate '$name' written to '$file'";
|
}
|
||||||
|
|
||||||
|
function import_xml($file)
|
||||||
|
{
|
||||||
|
if ($file == 'none' || $file == '' || !($f = fopen($file,'r')))
|
||||||
|
{
|
||||||
|
return $this->messages['no_filename'];
|
||||||
|
}
|
||||||
|
$xul = fread ($f, filesize ($file));
|
||||||
|
fclose($f);
|
||||||
|
|
||||||
|
$xul_io = CreateObject('etemplate.xul_io');
|
||||||
|
$msg = $xul_io->import(&$this->etemplate,$xul);
|
||||||
|
|
||||||
|
if (!$msg)
|
||||||
|
{
|
||||||
|
$msg = sprintf($this->messages['imported'],$this->etemplate->name);
|
||||||
|
}
|
||||||
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete($post_vars='',$back = 'edit')
|
function delete($post_vars='',$back = 'edit')
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
'disabled' => 'disabled=true',
|
'disabled' => 'disabled=true',
|
||||||
'readonly' => 'readonly=true'
|
'readonly' => 'readonly=true'
|
||||||
);
|
);
|
||||||
$this->widget2xul = array( // how to translate widget-names ( 0 => ) and widget-spec. attr.
|
$this->widget2xul = array( // how to translate widget-names and widget-spec. attr.
|
||||||
'label' => array(
|
'label' => array(
|
||||||
'.name' => 'label',
|
'.name' => 'label',
|
||||||
'label' => 'value'
|
'label' => 'value'
|
||||||
@ -199,17 +199,26 @@
|
|||||||
|
|
||||||
function import(&$etempl,$data)
|
function import(&$etempl,$data)
|
||||||
{
|
{
|
||||||
//if ($this->debug)
|
if ($this->debug)
|
||||||
{
|
{
|
||||||
echo "<pre>\n" . htmlentities($data) . "\n</pre><p>\n";
|
echo "<pre>\n" . htmlentities($data) . "\n</pre><p>\n";
|
||||||
}
|
}
|
||||||
$parser = xml_parser_create();
|
$parser = xml_parser_create();
|
||||||
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
|
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
|
||||||
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
|
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
|
||||||
|
$vals = $index = '';
|
||||||
xml_parse_into_struct($parser, $data, $vals, $index);
|
xml_parse_into_struct($parser, $data, $vals, $index);
|
||||||
|
|
||||||
|
if (!is_array($vals))
|
||||||
|
{
|
||||||
|
$err = xml_error_string(xml_get_error_code($parser));
|
||||||
|
}
|
||||||
xml_parser_free($parser);
|
xml_parser_free($parser);
|
||||||
|
|
||||||
|
if ($err != '')
|
||||||
|
{
|
||||||
|
return $err;
|
||||||
|
}
|
||||||
while (list($n,$node) = each($vals))
|
while (list($n,$node) = each($vals))
|
||||||
{
|
{
|
||||||
$type = $node['type'];
|
$type = $node['type'];
|
||||||
@ -313,7 +322,7 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if ($this->debug)
|
if ($this->debug)
|
||||||
{
|
{
|
||||||
_debug_array($etempl->data);
|
_debug_array($etempl->data);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// eTemplates for Application 'etemplate', generated by etemplate.dump() 2002-09-12 02:41
|
// eTemplates for Application 'etemplate', generated by etemplate.dump() 2002-09-12 11:27
|
||||||
|
|
||||||
$templ_data[] = array('name' => 'etemplate.editor','template' => '','lang' => '','group' => '0','version' => '0.9.13.004','data' => 'a:8:{i:0;a:1:{s:1:\"A\";s:2:\"5%\";}i:1;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:2:\"bi\";s:5:\"label\";s:27:\"Editable Templates - Editor\";s:4:\"name\";s:3:\"msg\";}}i:2;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}}i:3;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.keys\";}}i:4;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:24:\"etemplate.editor.buttons\";}}i:5;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.edit\";}}i:6;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:10:\"CSS-styles\";}}i:7;a:1:{s:1:\"A\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,80\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:5:\"style\";s:4:\"help\";s:155:\"embeded CSS styles, eg. \'.red { background: red; }\' (note the \'.\' before the class-name) or \'@import url(...)\' (class names are global for the whole page!)\";}}}','size' => '100%','style' => '',);
|
$templ_data[] = array('name' => 'etemplate.editor','template' => '','lang' => '','group' => '0','version' => '0.9.13.004','data' => 'a:8:{i:0;a:1:{s:1:\"A\";s:2:\"5%\";}i:1;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:2:\"bi\";s:5:\"label\";s:27:\"Editable Templates - Editor\";s:4:\"name\";s:3:\"msg\";}}i:2;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}}i:3;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.keys\";}}i:4;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:24:\"etemplate.editor.buttons\";}}i:5;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.edit\";}}i:6;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:10:\"CSS-styles\";}}i:7;a:1:{s:1:\"A\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,80\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:5:\"style\";s:4:\"help\";s:155:\"embeded CSS styles, eg. \'.red { background: red; }\' (note the \'.\' before the class-name) or \'@import url(...)\' (class names are global for the whole page!)\";}}}','size' => '100%','style' => '',);
|
||||||
|
|
||||||
@ -95,9 +95,15 @@ $templ_data[] = array('name' => 'etemplate.tab_widget.test.note','template' => '
|
|||||||
|
|
||||||
$templ_data[] = array('name' => 'etemplate.tab_widget.tab_active','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:2:{i:0;a:1:{s:2:\"c1\";s:3:\"nmh\";}i:1;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:21:\",etemplate_tab_active\";s:5:\"label\";s:6:\"@label\";s:4:\"help\";s:5:\"@help\";}}}','size' => ',,,,0,0','style' => '.etemplate_tab_active { border-style:solid; border-width:2px 2px 0px; border-color:black; padding:6px; }',);
|
$templ_data[] = array('name' => 'etemplate.tab_widget.tab_active','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:2:{i:0;a:1:{s:2:\"c1\";s:3:\"nmh\";}i:1;a:1:{s:1:\"A\";a:4:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:21:\",etemplate_tab_active\";s:5:\"label\";s:6:\"@label\";s:4:\"help\";s:5:\"@help\";}}}','size' => ',,,,0,0','style' => '.etemplate_tab_active { border-style:solid; border-width:2px 2px 0px; border-color:black; padding:6px; }',);
|
||||||
|
|
||||||
$templ_data[] = array('name' => 'etemplate.editor.list_result','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:5:{i:0;a:0:{}i:1;a:1:{s:1:\"A\";a:6:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:2:\"bi\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:27:\"Editable Templates - Search\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:3:\"msg\";}}i:2;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}}i:3;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:8:\"template\";s:4:\"name\";s:21:\"etemplate.editor.keys\";}}i:4;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:33:\"etemplate.editor.list_result.list\";}}}','size' => '100%','style' => '',);
|
$templ_data[] = array('name' => 'etemplate.editor.buttons','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:2:{i:0;a:0:{}i:1;a:11:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Read\";s:4:\"name\";s:4:\"read\";s:4:\"help\";s:49:\"read eTemplate from database (for the keys above)\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Show (no save)\";s:4:\"name\";s:4:\"show\";s:4:\"help\";s:61:\"shows/displays eTemplate for testing, does NOT save it before\";}s:1:\"C\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:11:\"Show Values\";s:4:\"name\";s:6:\"values\";s:4:\"help\";s:65:\"shows / allows you to enter values into the eTemplate for testing\";}s:1:\"D\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Save\";s:4:\"name\";s:4:\"save\";s:4:\"help\";s:77:\"save the eTemplate under the above keys (name, ...), change them for a SaveAs\";}s:1:\"E\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:4:\"edit\";s:4:\"help\";s:30:\"edit the eTemplate spez. above\";}s:1:\"F\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:33:\"deletes the eTemplate spez. above\";}s:1:\"G\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Dump4Setup\";s:4:\"name\";s:4:\"dump\";s:4:\"help\";s:88:\"writes a \'etemplates.inc.php\' file (for application in Name) in the setup-dir of the app\";}s:1:\"H\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Write Langfile\";s:4:\"name\";s:8:\"langfile\";s:4:\"help\";s:85:\"creates an english (\'en\') langfile from label and helptexts (for application in Name)\";}s:1:\"I\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Export XML\";s:4:\"name\";s:10:\"export_xml\";s:4:\"help\";s:43:\"export the loaded eTemplate into a xml-file\";}s:1:\"J\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"K\";a:5:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:2:\"20\";s:5:\"label\";s:46:\"Width, Height, Border, class, Spacing, Padding\";s:4:\"name\";s:4:\"size\";s:4:\"help\";s:96:\"width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag), \";}}}','size' => '','style' => '',);
|
||||||
|
|
||||||
$templ_data[] = array('name' => 'etemplate.editor.list_result.list','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:3:{i:0;a:2:{s:2:\"c1\";s:3:\"nmh\";s:2:\"c2\";s:3:\"nmr\";}i:1;a:6:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Name\";}s:1:\"B\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:8:\"Template\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Lang\";}s:1:\"D\";a:3:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Version\";s:5:\"align\";s:6:\"center\";}s:1:\"E\";a:6:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:6:\"Search\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:6:\"search\";s:4:\"help\";s:38:\"start new search for the above pattern\";}s:1:\"F\";a:1:{s:4:\"type\";s:5:\"label\";}}i:2;a:6:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:15:\"${row}[et_name]\";}s:1:\"B\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:19:\"${row}[et_template]\";}s:1:\"C\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:15:\"${row}[et_lang]\";}s:1:\"D\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:18:\"${row}[et_version]\";}s:1:\"E\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:10:\"read[$row]\";s:4:\"help\";s:34:\"load this template into the editor\";}s:1:\"F\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:12:\"delete[$row]\";s:4:\"help\";s:21:\"delete this eTemplate\";}}}','size' => '','style' => '',);
|
$templ_data[] = array('name' => 'etemplate.editor.list_result.list','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:3:{i:0;a:2:{s:2:\"c1\";s:3:\"nmh\";s:2:\"c2\";s:3:\"nmr\";}i:1;a:6:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Name\";}s:1:\"B\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:8:\"Template\";}s:1:\"C\";a:2:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:4:\"Lang\";}s:1:\"D\";a:3:{s:4:\"type\";s:5:\"label\";s:5:\"label\";s:7:\"Version\";s:5:\"align\";s:6:\"center\";}s:1:\"E\";a:6:{s:4:\"type\";s:6:\"button\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:6:\"Search\";s:5:\"align\";s:6:\"center\";s:4:\"name\";s:6:\"search\";s:4:\"help\";s:38:\"start new search for the above pattern\";}s:1:\"F\";a:1:{s:4:\"type\";s:5:\"label\";}}i:2;a:6:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:15:\"${row}[et_name]\";}s:1:\"B\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:19:\"${row}[et_template]\";}s:1:\"C\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:15:\"${row}[et_lang]\";}s:1:\"D\";a:3:{s:4:\"type\";s:5:\"label\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:18:\"${row}[et_version]\";}s:1:\"E\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:10:\"read[$row]\";s:4:\"help\";s:34:\"load this template into the editor\";}s:1:\"F\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:12:\"delete[$row]\";s:4:\"help\";s:21:\"delete this eTemplate\";}}}','size' => '','style' => '',);
|
||||||
|
|
||||||
$templ_data[] = array('name' => 'etemplate.editor.buttons','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:2:{i:0;a:0:{}i:1;a:11:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Read\";s:4:\"name\";s:4:\"read\";s:4:\"help\";s:49:\"read eTemplate from database (for the keys above)\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Show (no save)\";s:4:\"name\";s:4:\"show\";s:4:\"help\";s:61:\"shows/displays eTemplate for testing, does NOT save it before\";}s:1:\"C\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:11:\"Show Values\";s:4:\"name\";s:6:\"values\";s:4:\"help\";s:65:\"shows / allows you to enter values into the eTemplate for testing\";}s:1:\"D\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Save\";s:4:\"name\";s:4:\"save\";s:4:\"help\";s:77:\"save the eTemplate under the above keys (name, ...), change them for a SaveAs\";}s:1:\"E\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:4:\"edit\";s:4:\"help\";s:30:\"edit the eTemplate spez. above\";}s:1:\"F\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:33:\"deletes the eTemplate spez. above\";}s:1:\"G\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Dump4Setup\";s:4:\"name\";s:4:\"dump\";s:4:\"help\";s:88:\"writes a \'etemplates.inc.php\' file (for application in Name) in the setup-dir of the app\";}s:1:\"H\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Write Langfile\";s:4:\"name\";s:8:\"langfile\";s:4:\"help\";s:85:\"creates an english (\'en\') langfile from label and helptexts (for application in Name)\";}s:1:\"I\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Export XML\";s:4:\"name\";s:10:\"export_xml\";s:4:\"help\";s:43:\"export the loaded eTemplate into a xml-file\";}s:1:\"J\";a:1:{s:4:\"type\";s:5:\"label\";}s:1:\"K\";a:5:{s:4:\"type\";s:4:\"text\";s:4:\"size\";s:2:\"20\";s:5:\"label\";s:46:\"Width, Height, Border, class, Spacing, Padding\";s:4:\"name\";s:4:\"size\";s:4:\"help\";s:96:\"width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag), \";}}}','size' => '','style' => '',);
|
$templ_data[] = array('name' => 'etemplate.editor.list_result','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:5:{i:0;a:0:{}i:1;a:1:{s:1:\"A\";a:6:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:2:\"bi\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:27:\"Editable Templates - Search\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:3:\"msg\";}}i:2;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:5:\"hrule\";s:4:\"span\";s:3:\"all\";}}i:3;a:1:{s:1:\"A\";a:2:{s:4:\"type\";s:8:\"template\";s:4:\"name\";s:21:\"etemplate.editor.keys\";}}i:4;a:1:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:33:\"etemplate.editor.list_result.list\";}}}','size' => '100%','style' => '',);
|
||||||
|
|
||||||
|
$templ_data[] = array('name' => 'etemplate.test.file','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:2:{i:0;a:0:{}i:1;a:2:{s:1:\"A\";a:2:{s:4:\"type\";s:4:\"file\";s:4:\"name\";s:4:\"file\";}s:1:\"B\";a:3:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Upload\";s:4:\"name\";s:6:\"upload\";}}}','size' => '','style' => '',);
|
||||||
|
|
||||||
|
$templ_data[] = array('name' => 'etemplate.editor.buttons','template' => '','lang' => '','group' => '0','version' => '0.9.15.002','data' => 'a:2:{i:0;a:0:{}i:1;a:11:{s:1:\"A\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Read\";s:4:\"name\";s:4:\"read\";s:4:\"help\";s:49:\"read eTemplate from database (for the keys above)\";}s:1:\"B\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Show (no save)\";s:4:\"name\";s:4:\"show\";s:4:\"help\";s:61:\"shows/displays eTemplate for testing, does NOT save it before\";}s:1:\"C\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:11:\"Show Values\";s:4:\"name\";s:6:\"values\";s:4:\"help\";s:65:\"shows / allows you to enter values into the eTemplate for testing\";}s:1:\"D\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Save\";s:4:\"name\";s:4:\"save\";s:4:\"help\";s:77:\"save the eTemplate under the above keys (name, ...), change them for a SaveAs\";}s:1:\"E\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:4:\"Edit\";s:4:\"name\";s:4:\"edit\";s:4:\"help\";s:30:\"edit the eTemplate spez. above\";}s:1:\"F\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:6:\"Delete\";s:4:\"name\";s:6:\"delete\";s:4:\"help\";s:33:\"deletes the eTemplate spez. above\";}s:1:\"G\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Dump4Setup\";s:4:\"name\";s:4:\"dump\";s:4:\"help\";s:88:\"writes a \'etemplates.inc.php\' file (for application in Name) in the setup-dir of the app\";}s:1:\"H\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:14:\"Write Langfile\";s:4:\"name\";s:8:\"langfile\";s:4:\"help\";s:85:\"creates an english (\'en\') langfile from label and helptexts (for application in Name)\";}s:1:\"I\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Export XML\";s:4:\"name\";s:10:\"export_xml\";s:4:\"help\";s:43:\"export the loaded eTemplate into a xml-file\";}s:1:\"J\";a:4:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:10:\"Import XML\";s:4:\"name\";s:10:\"import_xml\";s:4:\"help\";s:35:\"import an eTemplate from a xml-file\";}s:1:\"K\";a:3:{s:4:\"type\";s:4:\"file\";s:4:\"name\";s:4:\"file\";s:4:\"help\";s:18:\"xml-file to import\";}}}','size' => '','style' => '',);
|
||||||
|
|
||||||
|
$templ_data[] = array('name' => 'etemplate.editor','template' => '','lang' => '','group' => '0','version' => '0.9.15.001','data' => 'a:9:{i:0;a:0:{}i:1;a:2:{s:1:\"A\";a:5:{s:4:\"type\";s:5:\"label\";s:4:\"size\";s:2:\"bi\";s:5:\"label\";s:27:\"Editable Templates - Editor\";s:7:\"no_lang\";s:1:\"1\";s:4:\"name\";s:3:\"msg\";}s:1:\"B\";a:5:{s:4:\"type\";s:6:\"button\";s:5:\"label\";s:8:\"DB-Tools\";s:5:\"align\";s:5:\"right\";s:4:\"name\";s:8:\"db_tools\";s:4:\"help\";s:21:\"to start the DB-Tools\";}}i:2;a:2:{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\";}}i:3;a:2:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.keys\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:4;a:2:{s:1:\"A\";a:4:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:24:\"etemplate.editor.buttons\";s:4:\"help\";s:94:\"width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag)\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:5;a:2:{s:1:\"A\";a:3:{s:4:\"type\";s:4:\"text\";s:5:\"label\";s:46:\"Width, Height, Border, class, Spacing, Padding\";s:4:\"name\";s:4:\"size\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:6;a:2:{s:1:\"A\";a:3:{s:4:\"type\";s:8:\"template\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:21:\"etemplate.editor.edit\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:7;a:2:{s:1:\"A\";a:3:{s:4:\"type\";s:5:\"label\";s:4:\"span\";s:3:\"all\";s:5:\"label\";s:10:\"CSS-styles\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}i:8;a:2:{s:1:\"A\";a:5:{s:4:\"type\";s:8:\"textarea\";s:4:\"size\";s:5:\"10,80\";s:4:\"span\";s:3:\"all\";s:4:\"name\";s:5:\"style\";s:4:\"help\";s:155:\"embeded CSS styles, eg. \'.red { background: red; }\' (note the \'.\' before the class-name) or \'@import url(...)\' (class names are global for the whole page!)\";}s:1:\"B\";a:1:{s:4:\"type\";s:5:\"label\";}}}','size' => '100%','style' => '',);
|
||||||
|
|
||||||
|
@ -67,7 +67,10 @@ enable javascript onchange submit etemplate en enable JavaScript onChange submit
|
|||||||
enter '' for an empty default, nothing mean no default etemplate en enter '' for an empty default, nothing mean no default
|
enter '' for an empty default, nothing mean no default etemplate en enter '' for an empty default, nothing mean no default
|
||||||
enter the new version number here (has to be > old_version) etemplate en enter the new version number here (has to be > old_version)
|
enter the new version number here (has to be > old_version) etemplate en enter the new version number here (has to be > old_version)
|
||||||
error: template not found !!! etemplate en Error: Template not found !!!
|
error: template not found !!! etemplate en Error: Template not found !!!
|
||||||
|
error: webserver is not allowed to write into '%s' !!! etemplate en Error: webserver is not allowed to write into '%s' !!!
|
||||||
error: while saveing !!! etemplate en Error: while saveing !!!
|
error: while saveing !!! etemplate en Error: while saveing !!!
|
||||||
|
etemplate '%s' imported, use save to put it in the database etemplate en eTemplate '%s' imported, use Save to put it in the database
|
||||||
|
etemplate '%s' written to '%s' etemplate en eTemplate '%s' written to '%s'
|
||||||
etemplate editor etemplate en eTemplate Editor
|
etemplate editor etemplate en eTemplate Editor
|
||||||
exchange this two columns etemplate en exchange this two columns
|
exchange this two columns etemplate en exchange this two columns
|
||||||
exchange this two rows etemplate en exchange this two rows
|
exchange this two rows etemplate en exchange this two rows
|
||||||
@ -77,6 +80,7 @@ extensions loaded: etemplate en Extensions loaded:
|
|||||||
familyname etemplate en Familyname
|
familyname etemplate en Familyname
|
||||||
fax etemplate en Fax
|
fax etemplate en Fax
|
||||||
faxnumber etemplate en Faxnumber
|
faxnumber etemplate en Faxnumber
|
||||||
|
fileupload etemplate en FileUpload
|
||||||
floating point etemplate en Floating Point
|
floating point etemplate en Floating Point
|
||||||
foreign key etemplate en Foreign Key
|
foreign key etemplate en Foreign Key
|
||||||
founded etemplate en Founded
|
founded etemplate en Founded
|
||||||
@ -90,7 +94,9 @@ horizontal rule etemplate en Horizontal Rule
|
|||||||
if field is disabled an empty table-cell is displayed, for (temporal) removement of a field/cell etemplate en if field is disabled an empty table-cell is displayed, for (temporal) removement of a field/cell
|
if field is disabled an empty table-cell is displayed, for (temporal) removement of a field/cell etemplate en if field is disabled an empty table-cell is displayed, for (temporal) removement of a field/cell
|
||||||
image etemplate en Image
|
image etemplate en Image
|
||||||
import etemplate en Import
|
import etemplate en Import
|
||||||
|
import an etemplate from a xml-file etemplate en import an eTemplate from a xml-file
|
||||||
import table-definitions from existing db-table etemplate en Import table-definitions from existing db-table
|
import table-definitions from existing db-table etemplate en Import table-definitions from existing db-table
|
||||||
|
import xml etemplate en Import XML
|
||||||
index/name of returned content (name of the template, link / method for image) etemplate en index/name of returned content (name of the Template, Link / Method for Image)
|
index/name of returned content (name of the template, link / method for image) etemplate en index/name of returned content (name of the Template, Link / Method for Image)
|
||||||
indexed etemplate en Indexed
|
indexed etemplate en Indexed
|
||||||
insert new column behind this one etemplate en insert new column behind this one
|
insert new column behind this one etemplate en insert new column behind this one
|
||||||
@ -119,6 +125,7 @@ name of table to add etemplate en Name of table to add
|
|||||||
name of the etemplate, should be in form application.function[.subtemplate] etemplate en name of the eTemplate, should be in form application.function[.subTemplate]
|
name of the etemplate, should be in form application.function[.subtemplate] etemplate en name of the eTemplate, should be in form application.function[.subTemplate]
|
||||||
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_' etemplate en 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_'
|
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_' etemplate en 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_'
|
||||||
no etemplate en No
|
no etemplate en No
|
||||||
|
no filename given or selected via browse... etemplate en no filename given or selected via Browse...
|
||||||
note etemplate en Note
|
note etemplate en Note
|
||||||
nullable etemplate en Nullable
|
nullable etemplate en Nullable
|
||||||
number of colums the field/cell should span or 'all' for the remaining columns etemplate en number of colums the field/cell should span or 'all' for the remaining columns
|
number of colums the field/cell should span or 'all' for the remaining columns etemplate en number of colums the field/cell should span or 'all' for the remaining columns
|
||||||
@ -191,6 +198,7 @@ type of the column etemplate en type of the column
|
|||||||
type of the field (select label if field should be empty) etemplate en type of the field (select Label if field should be empty)
|
type of the field (select label if field should be empty) etemplate en type of the field (select Label if field should be empty)
|
||||||
unique etemplate en Unique
|
unique etemplate en Unique
|
||||||
update from version '%s' to etemplate en Update from Version '%s' to
|
update from version '%s' to etemplate en Update from Version '%s' to
|
||||||
|
upload etemplate en Upload
|
||||||
value etemplate en Value
|
value etemplate en Value
|
||||||
version etemplate en Version
|
version etemplate en Version
|
||||||
version-number, should be in the form: major.minor.revision.number (eg. 0.9.13.001 all numbers filled up with zeros) etemplate en version-number, should be in the form: major.minor.revision.number (eg. 0.9.13.001 all numbers filled up with zeros)
|
version-number, should be in the form: major.minor.revision.number (eg. 0.9.13.001 all numbers filled up with zeros) etemplate en version-number, should be in the form: major.minor.revision.number (eg. 0.9.13.001 all numbers filled up with zeros)
|
||||||
@ -202,6 +210,7 @@ width, height, border etemplate en Width, Height, Border
|
|||||||
width, height, border, class, cellspacing, cellpadding etemplate en Width, Height, Border, class, Cellspacing, Cellpadding
|
width, height, border, class, cellspacing, cellpadding etemplate en Width, Height, Border, class, Cellspacing, Cellpadding
|
||||||
width, height, border, class, spacing, padding etemplate en Width, Height, Border, class, Spacing, Padding
|
width, height, border, class, spacing, padding etemplate en Width, Height, Border, class, Spacing, Padding
|
||||||
width, height, border-line-thickness of the table / template and css-class name (for table tag) etemplate en width, height, border-line-thickness of the table / template and CSS-class name (for TABLE tag)
|
width, height, border-line-thickness of the table / template and css-class name (for table tag) etemplate en width, height, border-line-thickness of the table / template and CSS-class name (for TABLE tag)
|
||||||
|
width, height, border-line-thickness, css-class name, celspaceing, cellpadding (for table tag) etemplate en width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag)
|
||||||
width, height, border-line-thickness, css-class name, celspaceing, cellpadding (for table tag), etemplate en width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag),
|
width, height, border-line-thickness, css-class name, celspaceing, cellpadding (for table tag), etemplate en width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag),
|
||||||
width, height, border-line-thickness, css-class name, celspaceing, cellpadding (for table tag), etemplate en width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag),
|
width, height, border-line-thickness, css-class name, celspaceing, cellpadding (for table tag), etemplate en width, height, border-line-thickness, CSS-class name, Celspaceing, Cellpadding (for TABLE tag),
|
||||||
work etemplate en Work
|
work etemplate en Work
|
||||||
@ -210,6 +219,7 @@ write <app>/setup/tables_current.inc.php etemplate en Write <app>/setup/tables_c
|
|||||||
write langfile etemplate en Write Langfile
|
write langfile etemplate en Write Langfile
|
||||||
write tables etemplate en Write Tables
|
write tables etemplate en Write Tables
|
||||||
writes a 'etemplates.inc.php' file (for application in name) in the setup-dir of the app etemplate en writes a 'etemplates.inc.php' file (for application in Name) in the setup-dir of the app
|
writes a 'etemplates.inc.php' file (for application in name) in the setup-dir of the app etemplate en writes a 'etemplates.inc.php' file (for application in Name) in the setup-dir of the app
|
||||||
|
xml-file to import etemplate en xml-file to import
|
||||||
year etemplate en Year
|
year etemplate en Year
|
||||||
yes etemplate en Yes
|
yes etemplate en Yes
|
||||||
you can enter some free text here. etemplate en You can enter some free text here.
|
you can enter some free text here. etemplate en You can enter some free text here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user