fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13121] convert edit entity_category


From: Sigurd Nes
Subject: [Fmsystem-commits] [13121] convert edit entity_category
Date: Thu, 30 Apr 2015 13:16:11 +0000

Revision: 13121
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13121
Author:   sigurdne
Date:     2015-04-30 13:16:10 +0000 (Thu, 30 Apr 2015)
Log Message:
-----------
convert edit entity_category

Modified Paths:
--------------
    branches/dev-syncromind/phpgwapi/js/jquery/common.js
    branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php
    branches/dev-syncromind/property/templates/base/admin_entity.xsl

Added Paths:
-----------
    branches/dev-syncromind/property/js/portico/admin_entity.edit_category.js

Removed Paths:
-------------
    branches/dev-syncromind/property/js/yahoo/admin_entity.edit_category.js

Modified: branches/dev-syncromind/phpgwapi/js/jquery/common.js
===================================================================
--- branches/dev-syncromind/phpgwapi/js/jquery/common.js        2015-04-30 
11:24:29 UTC (rev 13120)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js        2015-04-30 
13:16:10 UTC (rev 13121)
@@ -452,3 +452,32 @@
                });
        }
 
+       JqueryPortico.CreateRowChecked = function(Class)
+       {
+               newTD = document.createElement('td');
+               newTD.setAttribute("align","center");
+
+               newTD.colSpan = 1;
+       //      newTD.style.borderTop="1px solid #000000";
+               //create the anchor node
+               myA=document.createElement("A");
+               url = "javascript:JqueryPortico.checkAll(\""+Class+"\")";
+               myA.setAttribute("href",url);
+               //create the image node
+               url = "property/templates/portico/images/check.png";
+               myImg=document.createElement("IMG");
+               myImg.setAttribute("src",url);
+               myImg.setAttribute("width","16");
+               myImg.setAttribute("height","16");
+               myImg.setAttribute("border","0");
+               myImg.setAttribute("alt","Select All");
+               // Appends the image node to the anchor
+               myA.appendChild(myImg);
+               // Appends myA to mydiv
+               mydiv=document.createElement("div");
+               mydiv.setAttribute("align","center");
+               mydiv.appendChild(myA);
+               // Appends mydiv to newTD
+               newTD.appendChild(mydiv);
+               return newTD;
+       }

Modified: branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php   
2015-04-30 11:24:29 UTC (rev 13120)
+++ branches/dev-syncromind/property/inc/class.uiadmin_entity.inc.php   
2015-04-30 13:16:10 UTC (rev 13121)
@@ -849,7 +849,7 @@
                                $values['template_attrib'] = 
array_values(explode(',', $template_attrib));
                        }
 
-                       
$GLOBALS['phpgw']->xslttpl->add_file(array('admin_entity'));
+                       
$GLOBALS['phpgw']->xslttpl->add_file(array('admin_entity', 'datatable_inline'));
 
                        if($id)
                        {
@@ -903,7 +903,7 @@
                        $category_list = array();
                        foreach($entity_list as $entry)
                        {
-                               $cat_list = 
$this->bo->read_category($entry['id']);
+                               $cat_list = 
$this->bo->read_category(array('entity_id' => $entry['id'], 'allrows' => true));
 
                                foreach($cat_list as $category)
                                {
@@ -916,34 +916,28 @@
                        }
 
 
-                       $myColumnDefs[0] = array
-                               (
-                               'name'   => "0",
-                               'values' => json_encode(array(array('key' => 
'attrib_id', 'label' => lang('id'),
-                                               'sortable' => false, 
'resizeable' => true, 'hidden' => false),
-                                       array('key' => 'name', 'label' => 
lang('name'), 'sortable' => false, 'resizeable' => true),
-                                       array('key' => 'datatype', 'label' => 
lang('datatype'), 'sortable' => false,
-                                               'resizeable' => true),
-                                       array('key' => 'select', 'label' => 
lang('select'), 'sortable' => false, 'resizeable' => false,
-                                               'formatter' => 
'myFormatterCheck', 'width' => 30)))
+                       $myColumnDefs = array(
+                               array('key' => 'attrib_id', 'label' => 
lang('id'),'sortable' => false, 'resizeable' => true, 'hidden' => false),
+                               array('key' => 'name', 'label' => lang('name'), 
'sortable' => false, 'resizeable' => true),
+                               array('key' => 'datatype', 'label' => 
lang('datatype'), 'sortable' => false,'resizeable' => true),
+                               array('key' => 'select', 'label' => 
lang('select'), 'sortable' => false, 'resizeable' => false, 'formatter' => 
'myFormatterCheck', 'width' => 30)
                        );
 
+                       $datatable_def = array();
 
-                       $content_attributes = array
+                       $datatable_def[] = array
                        (
+                               'container'             => 
'datatable-container_0',
+                               'requestUrl'    => "''",
+                               'ColumnDefs'    => $myColumnDefs,
+                               'data'                  => json_encode(array()),
+                               'config'                => array(
+                                       array('disableFilter'   => true),
+                                       array('disablePagination'       => true)
+                               )
                        );
 
-                       $datavalues[0] = array
-                               (
-                               'name'                   => "0",
-                               'values'                 => 
json_encode($content_attributes),
-                               'total_records'  => 0,
-                               'permission'     => "''",
-                               'is_paginator'   => 0,
-                               'footer'                 => 1
-                       );
 
-
                        $msgbox_data = $this->bocommon->msgbox_data($receipt);
                        $location_level_list = 
$this->bo->get_location_level_list();
 
@@ -955,12 +949,10 @@
                        }
 
                        $data = array
-                               (
-                               'td_count'               => 3,
-                               'base_java_url'  => 
"{menuaction:'property.uiadmin_entity.get_template_attributes',type:'{$this->type}'}",
-                               'property_js'    => 
json_encode($GLOBALS['phpgw_info']['server']['webserver_url'] . 
"/property/js/yahoo/property2.js"),
-                               'datatable'              => $datavalues,
-                               'myColumnDefs'   => $myColumnDefs,
+                       (
+                               'datatable_def'                                 
=> $datatable_def,
+                               'td_count'                                      
        => 3,
+                               'base_java_url'                                 
=> 
"{menuaction:'property.uiadmin_entity.get_template_attributes',type:'{$this->type}'}",
                                'lang_entity'                            => 
lang('entity'),
                                'entity_name'                            => $id 
? $entity['name'] . ' :: ' . implode(' >> ', $this->bo->get_path($entity_id, 
$id)) : $entity['name'],
                                'msgbox_data'                            => 
$GLOBALS['phpgw']->common->msgbox($msgbox_data),
@@ -968,7 +960,7 @@
                                'lang_name_standardtext'         => lang('Enter 
a name of the standard'),
                                'form_action'                                   
                 => $GLOBALS['phpgw']->link('/index.php', $link_data),
                                'done_action'                                   
                 => $GLOBALS['phpgw']->link('/index.php', array('menuaction' => 
'property.uiadmin_entity.category',
-                                       'entity_id' => $entity_id, 'type' => 
$this->type)),
+                                                                               
                                                'entity_id' => $entity_id, 
'type' => $this->type)),
                                'lang_save'                                     
                         => lang('save'),
                                'lang_done'                                     
                         => lang('done'),
                                'value_id'                                      
                         => $id,
@@ -1017,23 +1009,12 @@
                        $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang($this->type_app[$this->type]) . ' - ' . $appname . ': ' . $function_msg;
                        $GLOBALS['phpgw']->xslttpl->set_var('phpgw', 
array('edit' => $data));
                        //---datatable settings--------------------
-                       phpgwapi_yui::load_widget('dragdrop');
-                       phpgwapi_yui::load_widget('datatable');
-                       phpgwapi_yui::load_widget('menu');
-                       phpgwapi_yui::load_widget('connection');
-                       phpgwapi_yui::load_widget('loader');
-                       phpgwapi_yui::load_widget('tabview');
-                       phpgwapi_yui::load_widget('paginator');
-                       phpgwapi_yui::load_widget('animation');
 
                        $GLOBALS['phpgw']->css->validate_file('datatable');
                        $GLOBALS['phpgw']->css->validate_file('property');
                        
$GLOBALS['phpgw']->css->add_external_file('property/templates/base/css/property.css');
-                       
$GLOBALS['phpgw']->css->add_external_file('phpgwapi/js/yahoo/datatable/assets/skins/sam/datatable.css');
-                       
$GLOBALS['phpgw']->css->add_external_file('phpgwapi/js/yahoo/paginator/assets/skins/sam/paginator.css');
-                       
$GLOBALS['phpgw']->css->add_external_file('phpgwapi/js/yahoo/container/assets/skins/sam/container.css');
 
-                       $GLOBALS['phpgw']->js->validate_file('yahoo', 
'admin_entity.edit_category', 'property');
+                       $GLOBALS['phpgw']->js->validate_file('portico', 
'admin_entity.edit_category', 'property');
                }
 
                function get_template_attributes()
@@ -1042,7 +1023,7 @@
                        $template_entity_id      = $template_info[0];
                        $template_cat_id         = $template_info[1];
 
-                       $attrib_list = 
$this->bo->read_attrib($template_entity_id, $template_cat_id, true);
+                       $attrib_list = $this->bo->read_attrib(array('entity_id' 
=> $template_entity_id, 'cat_id' => $template_cat_id, 'allrows' => true));
 
                        $content = array();
                        foreach($attrib_list as $_entry)
@@ -1055,14 +1036,13 @@
                                );
                        }
 
-                       if(count($content))
-                       {
-                               return json_encode($content);
-                       }
-                       else
-                       {
-                               return "";
-                       }
+                       $result_data = array
+                       (
+                               'results' => $content,
+                               'total_records' => count($content),
+                               'draw' => phpgw::get_var('draw', 'int')
+                       );
+                       return $this->jquery_results($result_data);
                }
 
                function delete()

Added: branches/dev-syncromind/property/js/portico/admin_entity.edit_category.js
===================================================================
--- branches/dev-syncromind/property/js/portico/admin_entity.edit_category.js   
                        (rev 0)
+++ branches/dev-syncromind/property/js/portico/admin_entity.edit_category.js   
2015-04-30 13:16:10 UTC (rev 13121)
@@ -0,0 +1,49 @@
+var category_template = 0;
+var values_tophp = [];
+/********************************************************************************/
+
+       $(document).ready(function ()
+       {
+               var api = oTable0.api();
+               api.on( 'draw', add_checkall );
+       });
+
+       function add_checkall()
+       {
+               var api = oTable0.api();
+               var newTD = JqueryPortico.CreateRowChecked("mychecks");
+               console.log(newTD);
+               $(api.column(3).footer()).html(newTD);
+       }
+
+       var myFormatterCheck = function(key, oData)
+       {
+               return "<center><input type='checkbox' class='mychecks'  
value="+oData['attrib_id']+" name='dummy'/></center>";
+       }
+
+       this.onActionsClick=function()
+       {
+               $(".mychecks:checked").each(function () {
+                       values_tophp.push($(this).val());
+               });
+
+               document.form.template_attrib.value = values_tophp;
+       }
+
+       this.get_template_attributes=function()
+       {
+               if(document.getElementById('category_template').value)
+               {
+                       base_java_url['category_template'] = 
document.getElementById('category_template').value;
+               }
+               
+               if(document.getElementById('category_template').value != 
category_template)
+               {
+                       var oArgs = base_java_url;
+                       var strURL = phpGWLink('index.php', oArgs, true);
+                       JqueryPortico.updateinlineTableHelper(oTable0, strURL);
+                       category_template = 
document.getElementById('category_template').value;
+               }
+       }
+
+

Deleted: branches/dev-syncromind/property/js/yahoo/admin_entity.edit_category.js
===================================================================
--- branches/dev-syncromind/property/js/yahoo/admin_entity.edit_category.js     
2015-04-30 11:24:29 UTC (rev 13120)
+++ branches/dev-syncromind/property/js/yahoo/admin_entity.edit_category.js     
2015-04-30 13:16:10 UTC (rev 13121)
@@ -1,131 +0,0 @@
-var  myPaginator_0, myDataTable_0
-var d;
-var category_template = 0;
-var tableYUI;
-var values_tophp = [];
-/********************************************************************************/
-this.myParticularRenderEvent = function(num)
-{
-               if(num==0)
-               {
-                       //tableYUI = 
YAHOO.util.Dom.getElementsByClassName("yui-dt-data","tbody")[1].parentNode;
-                       tableObject = 
document.body.getElementsByTagName('table');
-                       for (x=0; x<tableObject.length; x++)
-                       {
-                               if (tableObject[x].parentNode.id == 
'datatable-container_0')
-                               {
-                                       tableYUI = tableObject[x];
-                               }
-                       }
-                       tableYUI.setAttribute("id","tableYUI");
-                       tableYUI.deleteTFoot();
-                       addFooterDatatable();
-               }
-
-}
-
-
-
-       this.addFooterDatatable = function()
-       {
-               //Create ROW
-               newTR = document.createElement('tr');
-               //RowChecked
-               td_empty(td_count);
-               CreateRowChecked("mychecks");
-
-               //Add to Table
-               myfoot = tableYUI.createTFoot();
-               myfoot.setAttribute("id","myfoot");
-               myfoot.appendChild(newTR.cloneNode(true));
-       }
-
-
-       var myFormatterCheck = function(elCell, oRecord, oColumn, oData)
-       {
-               elCell.innerHTML = "<center><input type='checkbox' 
class='mychecks'  value="+oRecord.getData('attrib_id')+" 
name='dummy'/></center>";
-       }
-
-
-       this.onActionsClick=function()
-       {
-               array_checks = 
YAHOO.util.Dom.getElementsByClassName('mychecks');
-
-               for(i=0;i<array_checks.length;i++)
-               {
-                       if((array_checks[i].checked) )
-                       {
-                               values_tophp[i] = array_checks[i].value;
-                       }
-               }
-               document.form.template_attrib.value = values_tophp;
-       }
-
-
-/********************************************************************************/
     
-var FormatterCenter = function(elCell, oRecord, oColumn, oData)
-{
-       elCell.innerHTML = "<center>"+oData+"</center>";
-}
-
- 
/********************************************************************************/
-
-       this.get_template_attributes=function()
-       {
-               if(document.getElementById('category_template').value)
-               {
-                       base_java_url['category_template'] = 
document.getElementById('category_template').value;
-               }
-               
-               if(document.getElementById('category_template').value != 
category_template)
-               {
-                       execute_async(myDataTable_0);
-                       category_template = 
document.getElementById('category_template').value;
-               }
-       }
-
-
-
-       check_all = function(myclass)
-       {
-               controls = YAHOO.util.Dom.getElementsByClassName(myclass);
-               for(i=0;i<controls.length;i++)
-               {
-                       if(!controls[i].disabled)
-                       {
-                               //for class=transfer_idClass, they have to be 
interchanged
-                               if(myclass=="mychecks")
-                               {
-                                       if(controls[i].checked)
-                                       {
-                                               controls[i].checked = false;
-                                       }
-                                       else
-                                       {
-                                               controls[i].checked = true;
-                                       }
-                               }
-                               //for the rest, always id checked
-                               else
-                               {
-                                       controls[i].checked = true;
-                               }
-                       }
-               }
-       }
-
-
-
-YAHOO.util.Event.addListener(window, "load", function()
-{
-       loader = new YAHOO.util.YUILoader();
-       loader.addModule({
-               name: "anyone",
-               type: "js",
-           fullpath: property_js
-           });
-
-       loader.require("anyone");
-    loader.insert();
-});
-

Modified: branches/dev-syncromind/property/templates/base/admin_entity.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/admin_entity.xsl    
2015-04-30 11:24:29 UTC (rev 13120)
+++ branches/dev-syncromind/property/templates/base/admin_entity.xsl    
2015-04-30 13:16:10 UTC (rev 13121)
@@ -1,2023 +1,2010 @@
-  <!-- $Id$ -->
-       <xsl:template name="app_data">
-               <xsl:choose>
-                       <xsl:when test="edit">
-                               <xsl:apply-templates select="edit"/>
-                       </xsl:when>
-                       <xsl:when test="list_attribute">
-                               <xsl:apply-templates select="list_attribute"/>
-                       </xsl:when>
-                       <xsl:when test="list_attribute_group">
-                               <xsl:apply-templates 
select="list_attribute_group"/>
-                       </xsl:when>
-                       <xsl:when test="edit_attrib_group">
-                               <xsl:apply-templates 
select="edit_attrib_group"/>
-                       </xsl:when>
-                       <xsl:when test="edit_attrib">
-                               <xsl:apply-templates select="edit_attrib"/>
-                       </xsl:when>
-                       <xsl:when test="list_config">
-                               <xsl:apply-templates select="list_config"/>
-                       </xsl:when>
-                       <xsl:when test="edit_config">
-                               <xsl:apply-templates select="edit_config"/>
-                       </xsl:when>
-                       <xsl:when test="list_category">
-                               <xsl:apply-templates select="list_category"/>
-                       </xsl:when>
-                       <xsl:when test="list_custom_function">
-                               <xsl:apply-templates 
select="list_custom_function"/>
-                       </xsl:when>
-                       <xsl:when test="edit_custom_function">
-                               <xsl:apply-templates 
select="edit_custom_function"/>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:apply-templates select="list"/>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="list">
-               <xsl:apply-templates select="menu"/>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates select="table_header"/>
-                       <xsl:apply-templates select="values"/>
-                       <xsl:apply-templates select="table_add"/>
-               </table>
-       </xsl:template>
+<!-- $Id$ -->
+<xsl:template name="app_data">
+       <xsl:choose>
+               <xsl:when test="edit">
+                       <xsl:apply-templates select="edit"/>
+               </xsl:when>
+               <xsl:when test="list_attribute">
+                       <xsl:apply-templates select="list_attribute"/>
+               </xsl:when>
+               <xsl:when test="list_attribute_group">
+                       <xsl:apply-templates select="list_attribute_group"/>
+               </xsl:when>
+               <xsl:when test="edit_attrib_group">
+                       <xsl:apply-templates select="edit_attrib_group"/>
+               </xsl:when>
+               <xsl:when test="edit_attrib">
+                       <xsl:apply-templates select="edit_attrib"/>
+               </xsl:when>
+               <xsl:when test="list_config">
+                       <xsl:apply-templates select="list_config"/>
+               </xsl:when>
+               <xsl:when test="edit_config">
+                       <xsl:apply-templates select="edit_config"/>
+               </xsl:when>
+               <xsl:when test="list_category">
+                       <xsl:apply-templates select="list_category"/>
+               </xsl:when>
+               <xsl:when test="list_custom_function">
+                       <xsl:apply-templates select="list_custom_function"/>
+               </xsl:when>
+               <xsl:when test="edit_custom_function">
+                       <xsl:apply-templates select="edit_custom_function"/>
+               </xsl:when>
+               <xsl:otherwise>
+                       <xsl:apply-templates select="list"/>
+               </xsl:otherwise>
+       </xsl:choose>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="table_header">
-               <xsl:variable name="sort_id">
-                       <xsl:value-of select="sort_id"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="right">
-                               <a href="{$sort_id}">
-                                       <xsl:value-of select="lang_id"/>
-                               </a>
+<!-- New template-->
+<xsl:template match="list">
+       <xsl:apply-templates select="menu"/>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <tr>
+                       <td align="right">
+                               <xsl:call-template name="search_field"/>
                        </td>
-                       <td class="th_text" width="10%" align="center">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="20%" align="center">
-                               <xsl:value-of select="lang_descr"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_categories"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_delete"/>
-                       </td>
                </tr>
-       </xsl:template>
-
-       <!-- New template-->
-       <xsl:template match="values">
-               <xsl:variable name="lang_attribute_standardtext">
-                       <xsl:value-of select="lang_delete_standardtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_edit_standardtext">
-                       <xsl:value-of select="lang_edit_standardtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_delete_standardtext">
-                       <xsl:value-of select="lang_delete_standardtext"/>
-               </xsl:variable>
                <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td align="right">
-                               <xsl:value-of select="id"/>
+                       <td colspan="3" width="100%">
+                               <xsl:call-template name="nextmatchs"/>
                        </td>
-                       <td align="left">
-                               <xsl:value-of select="name"/>
-                       </td>
-                       <td align="left">
-                               <xsl:value-of select="descr"/>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_categories">
-                                       <xsl:value-of select="link_categories"/>
-                               </xsl:variable>
-                               <a href="{$link_categories}" 
onMouseover="window.status='{lang_category_text}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_categories"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_delete">
-                                       <xsl:value-of select="link_delete"/>
-                               </xsl:variable>
-                               <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_delete"/>
-                               </a>
-                       </td>
                </tr>
-       </xsl:template>
+       </table>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <xsl:apply-templates select="table_header"/>
+               <xsl:apply-templates select="values"/>
+               <xsl:apply-templates select="table_add"/>
+       </table>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="list_category">
-               <xsl:apply-templates select="menu"/>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="lang_entity"/>
-                                       <xsl:text>: </xsl:text>
-                                       <xsl:value-of select="entity_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates select="table_header_category"/>
-                       <xsl:apply-templates select="values_category"/>
-                       <xsl:apply-templates select="table_add"/>
-               </table>
-       </xsl:template>
+<!-- New template-->
+<xsl:template match="table_header">
+       <xsl:variable name="sort_id">
+               <xsl:value-of select="sort_id"/>
+       </xsl:variable>
+       <xsl:variable name="sort_name">
+               <xsl:value-of select="sort_name"/>
+       </xsl:variable>
+       <tr class="th">
+               <td class="th_text" width="10%" align="right">
+                       <a href="{$sort_id}">
+                               <xsl:value-of select="lang_id"/>
+                       </a>
+               </td>
+               <td class="th_text" width="10%" align="center">
+                       <a href="{$sort_name}">
+                               <xsl:value-of select="lang_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="20%" align="center">
+                       <xsl:value-of select="lang_descr"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_categories"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_edit"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_delete"/>
+               </td>
+       </tr>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="table_header_category">
-               <xsl:variable name="sort_id">
-                       <xsl:value-of select="sort_id"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="5%" align="right">
-                               <a href="{$sort_id}">
-                                       <xsl:value-of select="lang_id"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="10%" align="center">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="20%" align="center">
-                               <xsl:value-of select="lang_descr"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_prefix"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_attribute_group"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_attribute"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_custom_function"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_delete"/>
-                       </td>
-               </tr>
-       </xsl:template>
+<!-- New template-->
+<xsl:template match="values">
+       <xsl:variable name="lang_attribute_standardtext">
+               <xsl:value-of select="lang_delete_standardtext"/>
+       </xsl:variable>
+       <xsl:variable name="lang_edit_standardtext">
+               <xsl:value-of select="lang_edit_standardtext"/>
+       </xsl:variable>
+       <xsl:variable name="lang_delete_standardtext">
+               <xsl:value-of select="lang_delete_standardtext"/>
+       </xsl:variable>
+       <tr>
+               <xsl:attribute name="class">
+                       <xsl:choose>
+                               <xsl:when test="@class">
+                                       <xsl:value-of select="@class"/>
+                               </xsl:when>
+                               <xsl:when test="position() mod 2 = 0">
+                                       <xsl:text>row_off</xsl:text>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:text>row_on</xsl:text>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </xsl:attribute>
+               <td align="right">
+                       <xsl:value-of select="id"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="name"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="descr"/>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_categories">
+                               <xsl:value-of select="link_categories"/>
+                       </xsl:variable>
+                       <a href="{$link_categories}" 
onMouseover="window.status='{lang_category_text}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_categories"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_edit">
+                               <xsl:value-of select="link_edit"/>
+                       </xsl:variable>
+                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_edit"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_delete">
+                               <xsl:value-of select="link_delete"/>
+                       </xsl:variable>
+                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_delete"/>
+                       </a>
+               </td>
+       </tr>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="values_category">
-               <xsl:variable name="lang_attribute_standardtext">
-                       <xsl:value-of select="lang_attribute_standardtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_custom_function_standardtext">
-                       <xsl:value-of 
select="lang_custom_function_standardtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_edit_standardtext">
-                       <xsl:value-of select="lang_edit_standardtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_delete_standardtext">
-                       <xsl:value-of select="lang_delete_standardtext"/>
-               </xsl:variable>
+<!-- New template-->
+<xsl:template match="list_category">
+       <xsl:apply-templates select="menu"/>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
                <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
                        <td align="right">
-                               <xsl:value-of select="id"/>
+                               <xsl:call-template name="search_field"/>
                        </td>
-                       <td align="left">
-                               <xsl:value-of select="name"/>
+               </tr>
+               <tr>
+                       <td class="th_text" align="left">
+                               <xsl:value-of select="lang_entity"/>
+                               <xsl:text>: </xsl:text>
+                               <xsl:value-of select="entity_name"/>
                        </td>
-                       <td align="left">
-                               <xsl:value-of select="descr"/>
+               </tr>
+               <tr>
+                       <td colspan="3" width="100%">
+                               <xsl:call-template name="nextmatchs"/>
                        </td>
-                       <td align="left">
-                               <xsl:value-of select="prefix"/>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_attribute_group">
-                                       <xsl:value-of 
select="link_attribute_group"/>
-                               </xsl:variable>
-                               <a href="{$link_attribute_group}" 
onMouseover="window.status='';return true;" onMouseout="window.status='';return 
true;">
-                                       <xsl:value-of 
select="text_attribute_group"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_attribute">
-                                       <xsl:value-of select="link_attribute"/>
-                               </xsl:variable>
-                               <a href="{$link_attribute}" 
onMouseover="window.status='{$lang_attribute_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_attribute"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_custom_function">
-                                       <xsl:value-of 
select="link_custom_function"/>
-                               </xsl:variable>
-                               <a href="{$link_custom_function}" 
onMouseover="window.status='{$lang_custom_function_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of 
select="text_custom_function"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_delete">
-                                       <xsl:value-of select="link_delete"/>
-                               </xsl:variable>
-                               <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_delete"/>
-                               </a>
-                       </td>
                </tr>
-       </xsl:template>
+       </table>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <xsl:apply-templates select="table_header_category"/>
+               <xsl:apply-templates select="values_category"/>
+               <xsl:apply-templates select="table_add"/>
+       </table>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="list_config">
-               <xsl:apply-templates select="menu"/>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates select="table_header_list_config"/>
-                       <xsl:apply-templates select="values_list_config"/>
-               </table>
-       </xsl:template>
+<!-- New template-->
+<xsl:template match="table_header_category">
+       <xsl:variable name="sort_id">
+               <xsl:value-of select="sort_id"/>
+       </xsl:variable>
+       <xsl:variable name="sort_name">
+               <xsl:value-of select="sort_name"/>
+       </xsl:variable>
+       <tr class="th">
+               <td class="th_text" width="5%" align="right">
+                       <a href="{$sort_id}">
+                               <xsl:value-of select="lang_id"/>
+                       </a>
+               </td>
+               <td class="th_text" width="10%" align="center">
+                       <a href="{$sort_name}">
+                               <xsl:value-of select="lang_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="20%" align="center">
+                       <xsl:value-of select="lang_descr"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_prefix"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_attribute_group"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_attribute"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_custom_function"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_edit"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_delete"/>
+               </td>
+       </tr>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="table_header_list_config">
-               <xsl:variable name="sort_column_name">
-                       <xsl:value-of select="sort_column_name"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="center">
-                               <a href="{$sort_column_name}">
-                                       <xsl:value-of 
select="lang_column_name"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="10%" align="center">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-               </tr>
-       </xsl:template>
+<!-- New template-->
+<xsl:template match="values_category">
+       <xsl:variable name="lang_attribute_standardtext">
+               <xsl:value-of select="lang_attribute_standardtext"/>
+       </xsl:variable>
+       <xsl:variable name="lang_custom_function_standardtext">
+               <xsl:value-of select="lang_custom_function_standardtext"/>
+       </xsl:variable>
+       <xsl:variable name="lang_edit_standardtext">
+               <xsl:value-of select="lang_edit_standardtext"/>
+       </xsl:variable>
+       <xsl:variable name="lang_delete_standardtext">
+               <xsl:value-of select="lang_delete_standardtext"/>
+       </xsl:variable>
+       <tr>
+               <xsl:attribute name="class">
+                       <xsl:choose>
+                               <xsl:when test="@class">
+                                       <xsl:value-of select="@class"/>
+                               </xsl:when>
+                               <xsl:when test="position() mod 2 = 0">
+                                       <xsl:text>row_off</xsl:text>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:text>row_on</xsl:text>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </xsl:attribute>
+               <td align="right">
+                       <xsl:value-of select="id"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="name"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="descr"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="prefix"/>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_attribute_group">
+                               <xsl:value-of select="link_attribute_group"/>
+                       </xsl:variable>
+                       <a href="{$link_attribute_group}" 
onMouseover="window.status='';return true;" onMouseout="window.status='';return 
true;">
+                               <xsl:value-of select="text_attribute_group"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_attribute">
+                               <xsl:value-of select="link_attribute"/>
+                       </xsl:variable>
+                       <a href="{$link_attribute}" 
onMouseover="window.status='{$lang_attribute_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_attribute"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_custom_function">
+                               <xsl:value-of select="link_custom_function"/>
+                       </xsl:variable>
+                       <a href="{$link_custom_function}" 
onMouseover="window.status='{$lang_custom_function_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_custom_function"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_edit">
+                               <xsl:value-of select="link_edit"/>
+                       </xsl:variable>
+                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_edit"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_delete">
+                               <xsl:value-of select="link_delete"/>
+                       </xsl:variable>
+                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_delete"/>
+                       </a>
+               </td>
+       </tr>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="values_list_config">
-               <xsl:variable name="lang_edit_standardtext">
-                       <xsl:value-of select="lang_edit_standardtext"/>
-               </xsl:variable>
+<!-- New template-->
+<xsl:template match="list_config">
+       <xsl:apply-templates select="menu"/>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
                <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td align="left">
-                               <xsl:value-of select="column_name"/>
+                       <td align="right">
+                               <xsl:call-template name="search_field"/>
                        </td>
-                       <td align="left">
-                               <xsl:value-of select="name"/>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
                </tr>
-       </xsl:template>
-
-       <!-- New template-->
-       <xsl:template match="table_add">
                <tr>
-                       <td height="50">
-                               <xsl:variable name="add_action">
-                                       <xsl:value-of select="add_action"/>
-                               </xsl:variable>
-                               <xsl:variable name="lang_add">
-                                       <xsl:value-of select="lang_add"/>
-                               </xsl:variable>
-                               <form method="post" action="{$add_action}">
-                                       <input type="submit" name="add" 
value="{$lang_add}" onMouseout="window.status='';return true;">
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                       <xsl:value-of 
select="lang_add_standardtext"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
-                               </form>
+                       <td colspan="3" width="100%">
+                               <xsl:call-template name="nextmatchs"/>
                        </td>
-                       <td height="50">
-                               <xsl:variable name="done_action">
-                                       <xsl:value-of select="done_action"/>
-                               </xsl:variable>
-                               <xsl:variable name="lang_done">
-                                       <xsl:value-of select="lang_done"/>
-                               </xsl:variable>
-                               <form method="post" action="{$done_action}">
-                                       <input type="submit" name="add" 
value="{$lang_done}" onMouseout="window.status='';return true;">
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                       <xsl:value-of 
select="lang_add_standardtext"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
-                               </form>
-                       </td>
                </tr>
-       </xsl:template>
+       </table>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <xsl:apply-templates select="table_header_list_config"/>
+               <xsl:apply-templates select="values_list_config"/>
+       </table>
+</xsl:template>
 
-       <!-- add / edit  -->
-       <xsl:template xmlns:php="http://php.net/xsl"; match="edit">
-            <script type="text/javascript">
-                       self.name="first_Window";
-                       <xsl:value-of select="lookup_functions"/>
-            </script>
-            <div id="tab-content">
-                <xsl:value-of disable-output-escaping="yes" select="tabs"/>
-                <div class="yui-content">
-                    <div id="general">
-                        <div align="left">
-                                <xsl:variable name="form_action">
-                                        <xsl:value-of select="form_action"/>
-                                </xsl:variable>
-                                <form name="form" class="pure-form 
pure-form-aligned" method="post" action="{$form_action}">
-                                <table cellpadding="2" cellspacing="2" 
width="80%" align="center">
-                                        <xsl:choose>
-                                                <xsl:when test="msgbox_data != 
''">
-                                                        <tr>
-                                                                <td 
align="left" colspan="3">
-                                                                        
<xsl:call-template name="msgbox"/>
-                                                                </td>
-                                                        </tr>
-                                                </xsl:when>
-                                        </xsl:choose>
-                                                <tr>
-                                                        <td class="th_text" 
align="left">
-                                                                <xsl:value-of 
select="lang_entity"/>
-                                                        </td>
-                                                        <td class="th_text" 
align="left">
-                                                                <xsl:value-of 
select="entity_name"/>
-                                                        </td>
-                                                </tr>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="parent_list != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'parent')"/>
-                                                                        </td>
-                                                                        <td 
valign="top">
-                                                                               
 <select id="parent_id" name="values[parent_id]">
-                                                                               
         <option value="">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'select parent')"/>
-                                                                               
         </option>
-                                                                               
         <xsl:apply-templates select="parent_list"/>
-                                                                               
 </select>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="value_id != ''">
-                                                                <tr>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:value-of select="php:function('lang', 'category')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="value_id"/>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <tr>
-                                                        <td valign="top">
-                                                                <xsl:value-of 
select="php:function('lang', 'name')"/>
-                                                        </td>
-                                                        <td>
-                                                                <input 
type="text" name="values[name]" value="{value_name}" 
onMouseout="window.status='';return true;">
-                                                                        
<xsl:attribute name="onMouseover">
-                                                                               
 <xsl:text>window.status='</xsl:text>
-                                                                               
 <xsl:value-of select="lang_name_standardtext"/>
-                                                                               
 <xsl:text>'; return true;</xsl:text>
-                                                                        
</xsl:attribute>
-                                                                </input>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td valign="top">
-                                                                <xsl:value-of 
select="php:function('lang', 'descr')"/>
-                                                        </td>
-                                                        <td>
-                                                                <textarea 
cols="60" rows="10" name="values[descr]" onMouseout="window.status='';return 
true;">
-                                                                        
<xsl:attribute name="onMouseover">
-                                                                               
 <xsl:text>window.status='</xsl:text>
-                                                                               
 <xsl:value-of select="lang_descr_standardtext"/>
-                                                                               
 <xsl:text>'; return true;</xsl:text>
-                                                                        
</xsl:attribute>
-                                                                        
<xsl:value-of select="value_descr"/>
-                                                                </textarea>
-                                                        </td>
-                                                </tr>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="lang_location_form != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="lang_location_form"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:choose>
-                                                                               
         <xsl:when test="value_location_form = 1">
-                                                                               
                 <input type="checkbox" name="values[location_form]" value="1" 
checked="checked" onMouseout="window.status='';return true;">
-                                                                               
                         <xsl:attribute name="onMouseover">
-                                                                               
                                 <xsl:text>window.status='</xsl:text>
-                                                                               
                                 <xsl:value-of 
select="lang_location_form_statustext"/>
-                                                                               
                                 <xsl:text>'; return true;</xsl:text>
-                                                                               
                         </xsl:attribute>
-                                                                               
                 </input>
-                                                                               
         </xsl:when>
-                                                                               
         <xsl:otherwise>
-                                                                               
                 <input type="checkbox" name="values[location_form]" value="1" 
onMouseout="window.status='';return true;">
-                                                                               
                         <xsl:attribute name="onMouseover">
-                                                                               
                                 <xsl:text>window.status='</xsl:text>
-                                                                               
                                 <xsl:value-of 
select="lang_location_form_statustext"/>
-                                                                               
                                 <xsl:text>'; return true;</xsl:text>
-                                                                               
                         </xsl:attribute>
-                                                                               
                 </input>
-                                                                               
         </xsl:otherwise>
-                                                                               
 </xsl:choose>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="lang_documentation != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="lang_documentation"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:choose>
-                                                                               
         <xsl:when test="value_documentation = 1">
-                                                                               
                 <input type="checkbox" name="values[documentation]" value="1" 
checked="checked" onMouseout="window.status='';return true;">
-                                                                               
                         <xsl:attribute name="onMouseover">
-                                                                               
                                 <xsl:text>window.status='</xsl:text>
-                                                                               
                                 <xsl:value-of 
select="lang_documentation_statustext"/>
-                                                                               
                                 <xsl:text>'; return true;</xsl:text>
-                                                                               
                         </xsl:attribute>
-                                                                               
                 </input>
-                                                                               
         </xsl:when>
-                                                                               
         <xsl:otherwise>
-                                                                               
                 <input type="checkbox" name="values[documentation]" value="1" 
onMouseout="window.status='';return true;">
-                                                                               
                         <xsl:attribute name="onMouseover">
-                                                                               
                                 <xsl:text>window.status='</xsl:text>
-                                                                               
                                 <xsl:value-of 
select="lang_documentation_statustext"/>
-                                                                               
                                 <xsl:text>'; return true;</xsl:text>
-                                                                               
                         </xsl:attribute>
-                                                                               
                 </input>
-                                                                               
         </xsl:otherwise>
-                                                                               
 </xsl:choose>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="value_location_form = 1">
-                                                                <tr>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:value-of select="lang_include_in_location_form"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:call-template name="include_list"/>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:value-of select="lang_include_this_entity"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:call-template name="include_list_2"/>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:value-of select="lang_start_this_entity"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <xsl:call-template name="include_list_3"/>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="edit_prefix != ''">
-                                                                <tr>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:value-of select="php:function('lang', 'prefix')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="text" name="values[prefix]" value="{value_prefix}" 
onMouseout="window.status='';return true;">
-                                                                               
         <xsl:attribute name="onMouseover">
-                                                                               
                 <xsl:text>window.status='</xsl:text>
-                                                                               
                 <xsl:value-of select="lang_prefix_standardtext"/>
-                                                                               
                 <xsl:text>'; return true;</xsl:text>
-                                                                               
         </xsl:attribute>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="org_unit != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:variable name="lang_org_unit">
-                                                                               
         <xsl:value-of select="php:function('lang', 'department')"/>
-                                                                               
 </xsl:variable>
-                                                                               
 <xsl:value-of select="$lang_org_unit"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[org_unit]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
         <xsl:value-of select="php:function('lang', 'department')"/>
-                                                                               
                 </xsl:attribute>
-                                                                               
         <xsl:if test="value_org_unit = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
+<!-- New template-->
+<xsl:template match="table_header_list_config">
+       <xsl:variable name="sort_column_name">
+               <xsl:value-of select="sort_column_name"/>
+       </xsl:variable>
+       <xsl:variable name="sort_name">
+               <xsl:value-of select="sort_name"/>
+       </xsl:variable>
+       <tr class="th">
+               <td class="th_text" width="10%" align="center">
+                       <a href="{$sort_column_name}">
+                               <xsl:value-of select="lang_column_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="10%" align="center">
+                       <a href="{$sort_name}">
+                               <xsl:value-of select="lang_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_edit"/>
+               </td>
+       </tr>
+</xsl:template>
 
-                                                <xsl:choose>
-                                                        <xsl:when 
test="lookup_tenant != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'lookup tenant')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[lookup_tenant]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'If this entity 
type is to look up tenants')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_lookup_tenant = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="tracking != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'tracking helpdesk')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[tracking]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'activate tracking 
of dates in helpdesk main list')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_tracking = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="fileupload != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'enable file upload')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[fileupload]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'If files can be 
uploaded for this category')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_fileupload = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="jasperupload != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'jasper upload')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[jasperupload]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'allow to upload 
definition of jasper reports')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_jasperupload = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="loc_link != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'Link from location')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[loc_link]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'Enable link from 
location detail')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_loc_link = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="start_project != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'start project')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[start_project]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'Enable start 
project from this category')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_start_project = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="start_ticket != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'start ticket')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <input type="checkbox" name="values[start_ticket]" value="1">
-                                                                               
         <xsl:attribute name="title">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'Enable start 
ticket from this category')"/>
-                                                                               
         </xsl:attribute>
-                                                                               
         <xsl:if test="value_start_ticket = '1'">
-                                                                               
                 <xsl:attribute name="checked">
-                                                                               
                         <xsl:text>checked</xsl:text>
-                                                                               
                 </xsl:attribute>
-                                                                               
         </xsl:if>
-                                                                               
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <tr>
-                                                        <td>
-                                                                <xsl:value-of 
select="php:function('lang', 'is eav')"/>
-                                                        </td>
-                                                        <td>
-                                                                <input 
type="checkbox" name="values[is_eav]" value="1">
-                                                                        
<xsl:attribute name="title">
-                                                                               
 <xsl:value-of select="php:function('lang', 'This category is modelled in the 
database as a xml adapted entity attribute value model')"/>
-                                                                        
</xsl:attribute>
-                                                                        
<xsl:if test="value_is_eav = '1'">
-                                                                               
 <xsl:attribute name="checked">
-                                                                               
         <xsl:text>checked</xsl:text>
-                                                                               
 </xsl:attribute>
-                                                                        
</xsl:if>
-                                                                        
<xsl:if test="value_is_eav = '1' or value_id != ''">
-                                                                               
 <xsl:attribute name="disabled">
-                                                                               
         <xsl:text>disabled</xsl:text>
-                                                                               
 </xsl:attribute>
-                                                                        
</xsl:if>
-                                                                </input>
-                                                                <xsl:choose>
-                                                                        
<xsl:when test="value_is_eav = '1'">
-                                                                               
 <input type="hidden" name="values[is_eav]" value="1"/>
-                                                                        
</xsl:when>
-                                                                </xsl:choose>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td>
-                                                                <xsl:value-of 
select="php:function('lang', 'enable bulk')"/>
-                                                        </td>
-                                                        <td>
-                                                                <input 
type="checkbox" name="values[enable_bulk]" value="1">
-                                                                        
<xsl:attribute name="title">
-                                                                               
 <xsl:value-of select="php:function('lang', 'This category is allowed to 
reperesent bulk entities')"/>
-                                                                        
</xsl:attribute>
-                                                                        
<xsl:if test="value_enable_bulk = '1'">
-                                                                               
 <xsl:attribute name="checked">
-                                                                               
         <xsl:text>checked</xsl:text>
-                                                                               
 </xsl:attribute>
-                                                                        
</xsl:if>
-                                                                </input>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td>
-                                                                <xsl:value-of 
select="php:function('lang', 'enable controller')"/>
-                                                        </td>
-                                                        <td>
-                                                                <input 
type="checkbox" name="values[enable_controller]" value="1">
-                                                                        
<xsl:attribute name="title">
-                                                                               
 <xsl:value-of select="php:function('lang', 'This category is allowed to link 
to controller')"/>
-                                                                        
</xsl:attribute>
-                                                                        
<xsl:if test="value_enable_controller > '0'">
-                                                                               
 <xsl:attribute name="checked">
-                                                                               
         <xsl:text>checked</xsl:text>
-                                                                               
 </xsl:attribute>
-                                                                        
</xsl:if>
-                                                                        
<xsl:if test="value_enable_controller > '1'">
-                                                                               
 <xsl:attribute name="disabled">
-                                                                               
         <xsl:text>disabled</xsl:text>
-                                                                               
 </xsl:attribute>
-                                                                        
</xsl:if>
+<!-- New template-->
+<xsl:template match="values_list_config">
+       <xsl:variable name="lang_edit_standardtext">
+               <xsl:value-of select="lang_edit_standardtext"/>
+       </xsl:variable>
+       <tr>
+               <xsl:attribute name="class">
+                       <xsl:choose>
+                               <xsl:when test="@class">
+                                       <xsl:value-of select="@class"/>
+                               </xsl:when>
+                               <xsl:when test="position() mod 2 = 0">
+                                       <xsl:text>row_off</xsl:text>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:text>row_on</xsl:text>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </xsl:attribute>
+               <td align="left">
+                       <xsl:value-of select="column_name"/>
+               </td>
+               <td align="left">
+                       <xsl:value-of select="name"/>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_edit">
+                               <xsl:value-of select="link_edit"/>
+                       </xsl:variable>
+                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_standardtext}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_edit"/>
+                       </a>
+               </td>
+       </tr>
+</xsl:template>
 
-                                                                </input>
-                                                        </td>
-                                                </tr>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="lang_location_level != ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="lang_location_level"/>
-                                                                        </td>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:variable name="lang_location_level_statustext">
-                                                                               
         <xsl:value-of select="lang_location_level_statustext"/>
-                                                                               
 </xsl:variable>
-                                                                               
 <select name="values[location_level]" class="forms" 
onMouseover="window.status='{$lang_location_level_statustext}'; return true;" 
onMouseout="window.status='';return true;">
-                                                                               
         <option value="">
-                                                                               
                 <xsl:value-of select="lang_no_location_level"/>
-                                                                               
         </option>
-                                                                               
         <xsl:apply-templates select="location_level_list/options"/>
-                                                                               
 </select>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="lang_location_link_level"/>
-                                                                        </td>
-                                                                        <td 
valign="top">
-                                                                               
 <xsl:variable name="lang_location_link_level_statustext">
-                                                                               
         <xsl:value-of select="lang_location_link_level_statustext"/>
-                                                                               
 </xsl:variable>
-                                                                               
 <select name="values[location_link_level]" 
title="{$lang_location_link_level_statustext}">
-                                                                               
         <option value="">
-                                                                               
                 <xsl:value-of select="lang_no_location_link_level"/>
-                                                                               
         </option>
-                                                                               
         <xsl:apply-templates select="location_link_level_list/options"/>
-                                                                               
 </select>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <xsl:choose>
-                                                        <xsl:when 
test="category_list != '' and value_id = ''">
-                                                                <tr>
-                                                                        <td>
-                                                                               
 <xsl:value-of select="php:function('lang', 'template')"/>
-                                                                        </td>
-                                                                        <td 
valign="top">
-                                                                               
 <select id="category_template" name="values[category_template]" 
onChange="get_template_attributes()">
-                                                                               
         <option value="">
-                                                                               
                 <xsl:value-of select="php:function('lang', 'select 
template')"/>
-                                                                               
         </option>
-                                                                               
         <xsl:apply-templates select="category_list"/>
-                                                                               
 </select>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
width="19%" align="left" valign="top">
-                                                                               
 <xsl:value-of select="php:function('lang', 'attributes')"/>
-                                                                        </td>
-                                                                        <td>
-                                                                               
 <div id="paging_0"/>
-                                                                               
 <div id="datatable-container_0"/>
-                                                                               
 <input type="hidden" name="template_attrib" value=""/>
-                                                                        </td>
-                                                                </tr>
-                                                        </xsl:when>
-                                                </xsl:choose>
-                                                <tr height="50">
-                                                        <td>
-                                                                <input 
type="submit" class="pure-button pure-button-primary" name="values[save]" 
value="{lang_save}" onClick="onActionsClick()">
-                                                                        
<xsl:attribute name="title">
-                                                                               
 <xsl:value-of select="php:function('lang', 'save')"/>
-                                                                        
</xsl:attribute>
-                                                                </input>
-                                                        </td>
-                                                </tr>
-                                        </table>
-                                        </form>
-                                        <table>
-                                        <tr>
-                                                <td>
-                                                        <xsl:variable 
name="done_action">
-                                                                <xsl:value-of 
select="done_action"/>
-                                                        </xsl:variable>
-                                                        <xsl:variable 
name="lang_done">
-                                                                <xsl:value-of 
select="lang_done"/>
-                                                        </xsl:variable>
-                                                        <form method="post" 
action="{$done_action}">
-                                                                <input 
type="submit" class="pure-button pure-button-primary" name="done" 
value="{$lang_done}" onMouseout="window.status='';return true;">
-                                                                        
<xsl:attribute name="onMouseover">
-                                                                               
 <xsl:text>window.status='</xsl:text>
-                                                                               
 <xsl:value-of select="lang_done_standardtext"/>
-                                                                               
 <xsl:text>'; return true;</xsl:text>
-                                                                        
</xsl:attribute>
-                                                                </input>
-                                                        </form>
-                                                </td>
-                                        </tr>
-                                </table>
-                        </div>
-                    </div>
-                </div>
-            </div>
-               <!--  DATATABLE DEFINITIONS-->
-               <script type="text/javascript">
-                       var property_js = <xsl:value-of select="property_js"/>;
-                       var base_java_url = <xsl:value-of 
select="base_java_url"/>;
-                       var datatable = new Array();
-                       var myColumnDefs = new Array();
-                       var myButtons = new Array();
-                       var td_count = <xsl:value-of select="td_count"/>;
+<!-- New template-->
+<xsl:template match="table_add">
+       <tr>
+               <td height="50">
+                       <xsl:variable name="add_action">
+                               <xsl:value-of select="add_action"/>
+                       </xsl:variable>
+                       <xsl:variable name="lang_add">
+                               <xsl:value-of select="lang_add"/>
+                       </xsl:variable>
+                       <form method="post" action="{$add_action}">
+                               <input type="submit" name="add" 
value="{$lang_add}" onMouseout="window.status='';return true;">
+                                       <xsl:attribute name="onMouseover">
+                                               
<xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_add_standardtext"/>
+                                               <xsl:text>'; return 
true;</xsl:text>
+                                       </xsl:attribute>
+                               </input>
+                       </form>
+               </td>
+               <td height="50">
+                       <xsl:variable name="done_action">
+                               <xsl:value-of select="done_action"/>
+                       </xsl:variable>
+                       <xsl:variable name="lang_done">
+                               <xsl:value-of select="lang_done"/>
+                       </xsl:variable>
+                       <form method="post" action="{$done_action}">
+                               <input type="submit" name="add" 
value="{$lang_done}" onMouseout="window.status='';return true;">
+                                       <xsl:attribute name="onMouseover">
+                                               
<xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_add_standardtext"/>
+                                               <xsl:text>'; return 
true;</xsl:text>
+                                       </xsl:attribute>
+                               </input>
+                       </form>
+               </td>
+       </tr>
+</xsl:template>
 
-                       <xsl:for-each select="datatable">
-                               datatable[<xsl:value-of select="name"/>] = [
-                                       {
-                                               values:<xsl:value-of 
select="values"/>,
-                                               total_records: <xsl:value-of 
select="total_records"/>,
-                                               is_paginator:  <xsl:value-of 
select="is_paginator"/>,
-                                               <!--permission:<xsl:value-of 
select="permission"/>, -->
-                                               footer:<xsl:value-of 
select="footer"/>
-                                       }
-                               ]
-                       </xsl:for-each>
-                       <xsl:for-each select="myColumnDefs">
-                               myColumnDefs[<xsl:value-of select="name"/>] = 
<xsl:value-of select="values"/>
-                       </xsl:for-each>
-                       <xsl:for-each select="myButtons">
-                               myButtons[<xsl:value-of select="name"/>] = 
<xsl:value-of select="values"/>
-                       </xsl:for-each>
-               </script>
-       </xsl:template>
+<!-- add / edit  -->
+<xsl:template xmlns:php="http://php.net/xsl"; match="edit">
+       <script type="text/javascript">
+               self.name="first_Window";
+               <xsl:value-of select="lookup_functions"/>
+       </script>
+       <div id="tab-content">
+               <xsl:value-of disable-output-escaping="yes" select="tabs"/>
+               <div class="yui-content">
+                       <div id="general">
+                               <div align="left">
+                                       <xsl:variable name="form_action">
+                                               <xsl:value-of 
select="form_action"/>
+                                       </xsl:variable>
+                                       <form name="form" class="pure-form 
pure-form-aligned" method="post" action="{$form_action}">
+                                               <table cellpadding="2" 
cellspacing="2" width="80%" align="center">
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="msgbox_data != ''">
+                                                                       <tr>
+                                                                               
<td align="left" colspan="3">
+                                                                               
        <xsl:call-template name="msgbox"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="lang_entity"/>
+                                                               </td>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="entity_name"/>
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="parent_list != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'parent')"/>
+                                                                               
</td>
+                                                                               
<td valign="top">
+                                                                               
        <select id="parent_id" name="values[parent_id]">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'select 
parent')"/>
+                                                                               
                </option>
+                                                                               
                <xsl:apply-templates select="parent_list"/>
+                                                                               
        </select>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="value_id != ''">
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="php:function('lang', 'category')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="value_id"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="php:function('lang', 'name')"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="text" name="values[name]" value="{value_name}" 
onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_name_standardtext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="php:function('lang', 'descr')"/>
+                                                               </td>
+                                                               <td>
+                                                                       
<textarea cols="60" rows="10" name="values[descr]" 
onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_descr_standardtext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:value-of select="value_descr"/>
+                                                                       
</textarea>
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="lang_location_form != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="lang_location_form"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:choose>
+                                                                               
                <xsl:when test="value_location_form = 1">
+                                                                               
                        <input type="checkbox" name="values[location_form]" 
value="1" checked="checked" onMouseout="window.status='';return true;">
+                                                                               
                                <xsl:attribute name="onMouseover">
+                                                                               
                                        <xsl:text>window.status='</xsl:text>
+                                                                               
                                        <xsl:value-of 
select="lang_location_form_statustext"/>
+                                                                               
                                        <xsl:text>'; return true;</xsl:text>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:when>
+                                                                               
                <xsl:otherwise>
+                                                                               
                        <input type="checkbox" name="values[location_form]" 
value="1" onMouseout="window.status='';return true;">
+                                                                               
                                <xsl:attribute name="onMouseover">
+                                                                               
                                        <xsl:text>window.status='</xsl:text>
+                                                                               
                                        <xsl:value-of 
select="lang_location_form_statustext"/>
+                                                                               
                                        <xsl:text>'; return true;</xsl:text>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:otherwise>
+                                                                               
        </xsl:choose>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="lang_documentation != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="lang_documentation"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:choose>
+                                                                               
                <xsl:when test="value_documentation = 1">
+                                                                               
                        <input type="checkbox" name="values[documentation]" 
value="1" checked="checked" onMouseout="window.status='';return true;">
+                                                                               
                                <xsl:attribute name="onMouseover">
+                                                                               
                                        <xsl:text>window.status='</xsl:text>
+                                                                               
                                        <xsl:value-of 
select="lang_documentation_statustext"/>
+                                                                               
                                        <xsl:text>'; return true;</xsl:text>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:when>
+                                                                               
                <xsl:otherwise>
+                                                                               
                        <input type="checkbox" name="values[documentation]" 
value="1" onMouseout="window.status='';return true;">
+                                                                               
                                <xsl:attribute name="onMouseover">
+                                                                               
                                        <xsl:text>window.status='</xsl:text>
+                                                                               
                                        <xsl:value-of 
select="lang_documentation_statustext"/>
+                                                                               
                                        <xsl:text>'; return true;</xsl:text>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:otherwise>
+                                                                               
        </xsl:choose>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="value_location_form = 1">
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="lang_include_in_location_form"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:call-template name="include_list"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="lang_include_this_entity"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:call-template name="include_list_2"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="lang_start_this_entity"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:call-template name="include_list_3"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="edit_prefix != ''">
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="php:function('lang', 'prefix')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="text" name="values[prefix]" value="{value_prefix}" 
onMouseout="window.status='';return true;">
+                                                                               
                <xsl:attribute name="onMouseover">
+                                                                               
                        <xsl:text>window.status='</xsl:text>
+                                                                               
                        <xsl:value-of select="lang_prefix_standardtext"/>
+                                                                               
                        <xsl:text>'; return true;</xsl:text>
+                                                                               
                </xsl:attribute>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="org_unit != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:variable name="lang_org_unit">
+                                                                               
                <xsl:value-of select="php:function('lang', 'department')"/>
+                                                                               
        </xsl:variable>
+                                                                               
        <xsl:value-of select="$lang_org_unit"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[org_unit]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 
'department')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_org_unit = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
 
-       <!-- list attribute -->
-       <xsl:template match="list_attribute">
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="lang_entity"/>
-                                       <xsl:text>: </xsl:text>
-                                       <xsl:value-of select="entity_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="lang_category"/>
-                                       <xsl:text>: </xsl:text>
-                                       <xsl:value-of select="category_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates select="table_header_attrib"/>
-                       <xsl:apply-templates select="values_attrib"/>
-                       <xsl:apply-templates select="table_add"/>
-               </table>
-       </xsl:template>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="lookup_tenant != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'lookup tenant')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[lookup_tenant]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'If this 
entity type is to look up tenants')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_lookup_tenant = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="tracking != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'tracking helpdesk')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[tracking]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'activate 
tracking of dates in helpdesk main list')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_tracking = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="fileupload != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'enable file upload')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[fileupload]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'If files 
can be uploaded for this category')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_fileupload = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="jasperupload != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'jasper upload')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[jasperupload]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'allow to 
upload definition of jasper reports')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_jasperupload = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="loc_link != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'Link from location')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[loc_link]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'Enable link 
from location detail')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_loc_link = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="start_project != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'start project')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[start_project]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'Enable 
start project from this category')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_start_project = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="start_ticket != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'start ticket')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <input type="checkbox" name="values[start_ticket]" value="1">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'Enable 
start ticket from this category')"/>
+                                                                               
                </xsl:attribute>
+                                                                               
                <xsl:if test="value_start_ticket = '1'">
+                                                                               
                        <xsl:attribute name="checked">
+                                                                               
                                <xsl:text>checked</xsl:text>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </xsl:if>
+                                                                               
        </input>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr>
+                                                               <td>
+                                                                       
<xsl:value-of select="php:function('lang', 'is eav')"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="checkbox" name="values[is_eav]" value="1">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'This category is modelled 
in the database as a xml adapted entity attribute value model')"/>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:if test="value_is_eav = '1'">
+                                                                               
        <xsl:attribute name="checked">
+                                                                               
                <xsl:text>checked</xsl:text>
+                                                                               
        </xsl:attribute>
+                                                                               
</xsl:if>
+                                                                               
<xsl:if test="value_is_eav = '1' or value_id != ''">
+                                                                               
        <xsl:attribute name="disabled">
+                                                                               
                <xsl:text>disabled</xsl:text>
+                                                                               
        </xsl:attribute>
+                                                                               
</xsl:if>
+                                                                       </input>
+                                                                       
<xsl:choose>
+                                                                               
<xsl:when test="value_is_eav = '1'">
+                                                                               
        <input type="hidden" name="values[is_eav]" value="1"/>
+                                                                               
</xsl:when>
+                                                                       
</xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>
+                                                                       
<xsl:value-of select="php:function('lang', 'enable bulk')"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="checkbox" name="values[enable_bulk]" value="1">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'This category is allowed to 
reperesent bulk entities')"/>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:if test="value_enable_bulk = '1'">
+                                                                               
        <xsl:attribute name="checked">
+                                                                               
                <xsl:text>checked</xsl:text>
+                                                                               
        </xsl:attribute>
+                                                                               
</xsl:if>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>
+                                                                       
<xsl:value-of select="php:function('lang', 'enable controller')"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="checkbox" name="values[enable_controller]" value="1">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'This category is allowed to 
link to controller')"/>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:if test="value_enable_controller > '0'">
+                                                                               
        <xsl:attribute name="checked">
+                                                                               
                <xsl:text>checked</xsl:text>
+                                                                               
        </xsl:attribute>
+                                                                               
</xsl:if>
+                                                                               
<xsl:if test="value_enable_controller > '1'">
+                                                                               
        <xsl:attribute name="disabled">
+                                                                               
                <xsl:text>disabled</xsl:text>
+                                                                               
        </xsl:attribute>
+                                                                               
</xsl:if>
 
-       <!-- New template-->
-       <xsl:template match="table_header_attrib">
-               <xsl:variable name="sort_sorting">
-                       <xsl:value-of select="sort_sorting"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="lang_location_level != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="lang_location_level"/>
+                                                                               
</td>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:variable name="lang_location_level_statustext">
+                                                                               
                <xsl:value-of select="lang_location_level_statustext"/>
+                                                                               
        </xsl:variable>
+                                                                               
        <select name="values[location_level]" class="forms" 
onMouseover="window.status='{$lang_location_level_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="lang_no_location_level"/>
+                                                                               
                </option>
+                                                                               
                <xsl:apply-templates select="location_level_list/options"/>
+                                                                               
        </select>
+                                                                               
</td>
+                                                                       </tr>
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="lang_location_link_level"/>
+                                                                               
</td>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:variable name="lang_location_link_level_statustext">
+                                                                               
                <xsl:value-of select="lang_location_link_level_statustext"/>
+                                                                               
        </xsl:variable>
+                                                                               
        <select name="values[location_link_level]" 
title="{$lang_location_link_level_statustext}">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="lang_no_location_link_level"/>
+                                                                               
                </option>
+                                                                               
                <xsl:apply-templates select="location_link_level_list/options"/>
+                                                                               
        </select>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="category_list != '' and value_id = ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'template')"/>
+                                                                               
</td>
+                                                                               
<td valign="top">
+                                                                               
        <select id="category_template" name="values[category_template]" 
onChange="get_template_attributes()">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'select 
template')"/>
+                                                                               
                </option>
+                                                                               
                <xsl:apply-templates select="category_list"/>
+                                                                               
        </select>
+                                                                               
</td>
+                                                                       </tr>
+                                                                       <tr>
+                                                                               
<td width="19%" align="left" valign="top">
+                                                                               
        <xsl:value-of select="php:function('lang', 'attributes')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:for-each select="datatable_def">
+                                                                               
                <xsl:if test="container = 'datatable-container_0'">
+                                                                               
                        <xsl:call-template name="table_setup">
+                                                                               
                                <xsl:with-param name="container" select 
='container'/>
+                                                                               
                                <xsl:with-param name="requestUrl" select 
='requestUrl'/>
+                                                                               
                                <xsl:with-param name="ColumnDefs" select 
='ColumnDefs'/>
+                                                                               
                                <xsl:with-param name="data" select ='data'/>
+                                                                               
                                <xsl:with-param name="config" select ='config'/>
+                                                                               
                        </xsl:call-template>
+                                                                               
                </xsl:if>
+                                                                               
        </xsl:for-each>
+                                                                               
        <input type="hidden" name="template_attrib" value=""/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr height="50">
+                                                               <td>
+                                                                       <input 
type="submit" class="pure-button pure-button-primary" name="values[save]" 
value="{lang_save}" onClick="onActionsClick()">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'save')"/>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </form>
+                                       <table>
+                                               <tr>
+                                                       <td>
+                                                               <xsl:variable 
name="done_action">
+                                                                       
<xsl:value-of select="done_action"/>
+                                                               </xsl:variable>
+                                                               <xsl:variable 
name="lang_done">
+                                                                       
<xsl:value-of select="lang_done"/>
+                                                               </xsl:variable>
+                                                               <form 
method="post" action="{$done_action}">
+                                                                       <input 
type="submit" class="pure-button pure-button-primary" name="done" 
value="{$lang_done}" onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_done_standardtext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </form>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </div>
+                       </div>
+               </div>
+       </div>
+       <!--  DATATABLE DEFINITIONS-->
+       <script type="text/javascript">
+               var base_java_url = <xsl:value-of select="base_java_url"/>;
+       </script>
+</xsl:template>
+
+<!-- list attribute -->
+<xsl:template match="list_attribute">
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <tr>
+                       <td align="right">
+                               <xsl:call-template name="search_field"/>
                        </td>
-                       <td class="th_text" width="20%" align="left">
-                               <xsl:value-of select="lang_descr"/>
+               </tr>
+               <tr>
+                       <td class="th_text" align="left">
+                               <xsl:value-of select="lang_entity"/>
+                               <xsl:text>: </xsl:text>
+                               <xsl:value-of select="entity_name"/>
                        </td>
-                       <td class="th_text" width="1%" align="left">
-                               <xsl:value-of select="lang_datatype"/>
+               </tr>
+               <tr>
+                       <td class="th_text" align="left">
+                               <xsl:value-of select="lang_category"/>
+                               <xsl:text>: </xsl:text>
+                               <xsl:value-of select="category_name"/>
                        </td>
-                       <td class="th_text" width="1%" align="left">
-                               <xsl:value-of select="lang_attrib_group"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <a href="{$sort_sorting}">
-                                       <xsl:value-of select="lang_sorting"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="1%" align="center">
-                               <xsl:value-of select="lang_search"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_delete"/>
-                       </td>
                </tr>
-       </xsl:template>
-
-       <!-- New template-->
-       <xsl:template match="values_attrib">
-               <xsl:variable name="lang_up_text">
-                       <xsl:value-of select="lang_up_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_down_text">
-                       <xsl:value-of select="lang_down_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_edit_text">
-                       <xsl:value-of select="lang_edit_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_delete_text">
-                       <xsl:value-of select="lang_delete_text"/>
-               </xsl:variable>
                <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td align="left">
-                               <xsl:value-of select="column_name"/>
+                       <td colspan="3" width="100%">
+                               <xsl:call-template name="nextmatchs"/>
                        </td>
-                       <td>
-                               <xsl:value-of select="input_text"/>
-                       </td>
-                       <td>
-                               <xsl:value-of select="datatype"/>
-                       </td>
-                       <td>
-                               <xsl:value-of select="attrib_group"/>
-                       </td>
-                       <td>
-                               <table align="left">
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="sorting"/>
-                                               </td>
-                                               <td align="left">
-                                                       <xsl:variable 
name="link_up">
-                                                               <xsl:value-of 
select="link_up"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_up}" 
onMouseover="window.status='{$lang_up_text}';return true;" 
onMouseout="window.status='';return true;">
-                                                               <xsl:value-of 
select="text_up"/>
-                                                       </a>
-                                                       <xsl:text> | </xsl:text>
-                                                       <xsl:variable 
name="link_down">
-                                                               <xsl:value-of 
select="link_down"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_down}" 
onMouseover="window.status='{$lang_down_text}';return true;" 
onMouseout="window.status='';return true;">
-                                                               <xsl:value-of 
select="text_down"/>
-                                                       </a>
-                                               </td>
-                                       </tr>
-                               </table>
-                       </td>
-                       <td align="center">
-                               <xsl:value-of select="search"/>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_text}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_delete">
-                                       <xsl:value-of select="link_delete"/>
-                               </xsl:variable>
-                               <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_text}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_delete"/>
-                               </a>
-                       </td>
                </tr>
-       </xsl:template>
+       </table>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <xsl:apply-templates select="table_header_attrib"/>
+               <xsl:apply-templates select="values_attrib"/>
+               <xsl:apply-templates select="table_add"/>
+       </table>
+</xsl:template>
 
-       <!-- New template-->
-       <!-- list attribute_group -->
-       <xsl:template match="list_attribute_group">
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="lang_entity"/>
-                                       <xsl:text>: </xsl:text>
-                                       <xsl:value-of select="entity_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="lang_category"/>
-                                       <xsl:text>: </xsl:text>
-                                       <xsl:value-of select="category_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates 
select="table_header_attrib_group"/>
-                       <xsl:apply-templates select="values_attrib_group"/>
-                       <xsl:apply-templates select="table_add"/>
-               </table>
-       </xsl:template>
+<!-- New template-->
+<xsl:template match="table_header_attrib">
+       <xsl:variable name="sort_sorting">
+               <xsl:value-of select="sort_sorting"/>
+       </xsl:variable>
+       <xsl:variable name="sort_name">
+               <xsl:value-of select="sort_name"/>
+       </xsl:variable>
+       <tr class="th">
+               <td class="th_text" width="10%" align="left">
+                       <a href="{$sort_name}">
+                               <xsl:value-of select="lang_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="20%" align="left">
+                       <xsl:value-of select="lang_descr"/>
+               </td>
+               <td class="th_text" width="1%" align="left">
+                       <xsl:value-of select="lang_datatype"/>
+               </td>
+               <td class="th_text" width="1%" align="left">
+                       <xsl:value-of select="lang_attrib_group"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <a href="{$sort_sorting}">
+                               <xsl:value-of select="lang_sorting"/>
+                       </a>
+               </td>
+               <td class="th_text" width="1%" align="center">
+                       <xsl:value-of select="lang_search"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_edit"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_delete"/>
+               </td>
+       </tr>
+</xsl:template>
 
-       <!-- New template-->
-       <xsl:template match="table_header_attrib_group">
-               <xsl:variable name="sort_sorting">
-                       <xsl:value-of select="sort_sorting"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
+<!-- New template-->
+<xsl:template match="values_attrib">
+       <xsl:variable name="lang_up_text">
+               <xsl:value-of select="lang_up_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_down_text">
+               <xsl:value-of select="lang_down_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_edit_text">
+               <xsl:value-of select="lang_edit_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_delete_text">
+               <xsl:value-of select="lang_delete_text"/>
+       </xsl:variable>
+       <tr>
+               <xsl:attribute name="class">
+                       <xsl:choose>
+                               <xsl:when test="@class">
+                                       <xsl:value-of select="@class"/>
+                               </xsl:when>
+                               <xsl:when test="position() mod 2 = 0">
+                                       <xsl:text>row_off</xsl:text>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:text>row_on</xsl:text>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </xsl:attribute>
+               <td align="left">
+                       <xsl:value-of select="column_name"/>
+               </td>
+               <td>
+                       <xsl:value-of select="input_text"/>
+               </td>
+               <td>
+                       <xsl:value-of select="datatype"/>
+               </td>
+               <td>
+                       <xsl:value-of select="attrib_group"/>
+               </td>
+               <td>
+                       <table align="left">
+                               <tr>
+                                       <td>
+                                               <xsl:value-of select="sorting"/>
+                                       </td>
+                                       <td align="left">
+                                               <xsl:variable name="link_up">
+                                                       <xsl:value-of 
select="link_up"/>
+                                               </xsl:variable>
+                                               <a href="{$link_up}" 
onMouseover="window.status='{$lang_up_text}';return true;" 
onMouseout="window.status='';return true;">
+                                                       <xsl:value-of 
select="text_up"/>
+                                               </a>
+                                               <xsl:text> | </xsl:text>
+                                               <xsl:variable name="link_down">
+                                                       <xsl:value-of 
select="link_down"/>
+                                               </xsl:variable>
+                                               <a href="{$link_down}" 
onMouseover="window.status='{$lang_down_text}';return true;" 
onMouseout="window.status='';return true;">
+                                                       <xsl:value-of 
select="text_down"/>
+                                               </a>
+                                       </td>
+                               </tr>
+                       </table>
+               </td>
+               <td align="center">
+                       <xsl:value-of select="search"/>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_edit">
+                               <xsl:value-of select="link_edit"/>
+                       </xsl:variable>
+                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_text}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_edit"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_delete">
+                               <xsl:value-of select="link_delete"/>
+                       </xsl:variable>
+                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_text}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_delete"/>
+                       </a>
+               </td>
+       </tr>
+</xsl:template>
+
+<!-- New template-->
+<!-- list attribute_group -->
+<xsl:template match="list_attribute_group">
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <tr>
+                       <td align="right">
+                               <xsl:call-template name="search_field"/>
                        </td>
-                       <td class="th_text" width="20%" align="left">
-                               <xsl:value-of select="lang_descr"/>
+               </tr>
+               <tr>
+                       <td class="th_text" align="left">
+                               <xsl:value-of select="lang_entity"/>
+                               <xsl:text>: </xsl:text>
+                               <xsl:value-of select="entity_name"/>
                        </td>
-                       <td class="th_text" width="5%" align="center">
-                               <a href="{$sort_sorting}">
-                                       <xsl:value-of select="lang_sorting"/>
-                               </a>
+               </tr>
+               <tr>
+                       <td class="th_text" align="left">
+                               <xsl:value-of select="lang_category"/>
+                               <xsl:text>: </xsl:text>
+                               <xsl:value-of select="category_name"/>
                        </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_delete"/>
-                       </td>
                </tr>
-       </xsl:template>
-
-       <!-- New template-->
-       <xsl:template match="values_attrib_group">
-               <xsl:variable name="lang_up_text">
-                       <xsl:value-of select="lang_up_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_down_text">
-                       <xsl:value-of select="lang_down_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_edit_text">
-                       <xsl:value-of select="lang_edit_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_delete_text">
-                       <xsl:value-of select="lang_delete_text"/>
-               </xsl:variable>
                <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td align="left">
-                               <xsl:value-of select="name"/>
+                       <td colspan="3" width="100%">
+                               <xsl:call-template name="nextmatchs"/>
                        </td>
-                       <td>
-                               <xsl:value-of select="descr"/>
-                       </td>
-                       <td>
-                               <table align="left">
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="sorting"/>
-                                               </td>
-                                               <td align="left">
-                                                       <xsl:variable 
name="link_up">
-                                                               <xsl:value-of 
select="link_up"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_up}" 
onMouseover="window.status='{$lang_up_text}';return true;" 
onMouseout="window.status='';return true;">
-                                                               <xsl:value-of 
select="text_up"/>
-                                                       </a>
-                                                       <xsl:text> | </xsl:text>
-                                                       <xsl:variable 
name="link_down">
-                                                               <xsl:value-of 
select="link_down"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_down}" 
onMouseover="window.status='{$lang_down_text}';return true;" 
onMouseout="window.status='';return true;">
-                                                               <xsl:value-of 
select="text_down"/>
-                                                       </a>
-                                               </td>
-                                       </tr>
-                               </table>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_text}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_delete">
-                                       <xsl:value-of select="link_delete"/>
-                               </xsl:variable>
-                               <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_text}';return true;" 
onMouseout="window.status='';return true;">
-                                       <xsl:value-of select="text_delete"/>
-                               </a>
-                       </td>
                </tr>
-       </xsl:template>
+       </table>
+       <table width="100%" cellpadding="2" cellspacing="2" align="center">
+               <xsl:apply-templates select="table_header_attrib_group"/>
+               <xsl:apply-templates select="values_attrib_group"/>
+               <xsl:apply-templates select="table_add"/>
+       </table>
+</xsl:template>
 
-       <!-- add attribute group / edit attribute group -->
-       <xsl:template match="edit_attrib_group" xmlns:php="http://php.net/xsl";>
-            <script type="text/javascript">
-                       self.name="first_Window";
-                       <xsl:value-of select="lookup_functions"/>
-            </script>
-            <div id="tab-content">
-                <xsl:value-of disable-output-escaping="yes" select="tabs"/>
-                <div class="yui-content">
-                    <div id="general">
-               <div align="left">
-                       <xsl:variable name="form_action">
-                               <xsl:value-of select="form_action"/>
+<!-- New template-->
+<xsl:template match="table_header_attrib_group">
+       <xsl:variable name="sort_sorting">
+               <xsl:value-of select="sort_sorting"/>
+       </xsl:variable>
+       <xsl:variable name="sort_name">
+               <xsl:value-of select="sort_name"/>
+       </xsl:variable>
+       <tr class="th">
+               <td class="th_text" width="10%" align="left">
+                       <a href="{$sort_name}">
+                               <xsl:value-of select="lang_name"/>
+                       </a>
+               </td>
+               <td class="th_text" width="20%" align="left">
+                       <xsl:value-of select="lang_descr"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <a href="{$sort_sorting}">
+                               <xsl:value-of select="lang_sorting"/>
+                       </a>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_edit"/>
+               </td>
+               <td class="th_text" width="5%" align="center">
+                       <xsl:value-of select="lang_delete"/>
+               </td>
+       </tr>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="values_attrib_group">
+       <xsl:variable name="lang_up_text">
+               <xsl:value-of select="lang_up_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_down_text">
+               <xsl:value-of select="lang_down_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_edit_text">
+               <xsl:value-of select="lang_edit_text"/>
+       </xsl:variable>
+       <xsl:variable name="lang_delete_text">
+               <xsl:value-of select="lang_delete_text"/>
+       </xsl:variable>
+       <tr>
+               <xsl:attribute name="class">
+                       <xsl:choose>
+                               <xsl:when test="@class">
+                                       <xsl:value-of select="@class"/>
+                               </xsl:when>
+                               <xsl:when test="position() mod 2 = 0">
+                                       <xsl:text>row_off</xsl:text>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:text>row_on</xsl:text>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </xsl:attribute>
+               <td align="left">
+                       <xsl:value-of select="name"/>
+               </td>
+               <td>
+                       <xsl:value-of select="descr"/>
+               </td>
+               <td>
+                       <table align="left">
+                               <tr>
+                                       <td>
+                                               <xsl:value-of select="sorting"/>
+                                       </td>
+                                       <td align="left">
+                                               <xsl:variable name="link_up">
+                                                       <xsl:value-of 
select="link_up"/>
+                                               </xsl:variable>
+                                               <a href="{$link_up}" 
onMouseover="window.status='{$lang_up_text}';return true;" 
onMouseout="window.status='';return true;">
+                                                       <xsl:value-of 
select="text_up"/>
+                                               </a>
+                                               <xsl:text> | </xsl:text>
+                                               <xsl:variable name="link_down">
+                                                       <xsl:value-of 
select="link_down"/>
+                                               </xsl:variable>
+                                               <a href="{$link_down}" 
onMouseover="window.status='{$lang_down_text}';return true;" 
onMouseout="window.status='';return true;">
+                                                       <xsl:value-of 
select="text_down"/>
+                                               </a>
+                                       </td>
+                               </tr>
+                       </table>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_edit">
+                               <xsl:value-of select="link_edit"/>
                        </xsl:variable>
-                       <form method="post" class="pure-form pure-form-aligned" 
action="{$form_action}">
+                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_text}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_edit"/>
+                       </a>
+               </td>
+               <td align="center">
+                       <xsl:variable name="link_delete">
+                               <xsl:value-of select="link_delete"/>
+                       </xsl:variable>
+                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_text}';return true;" 
onMouseout="window.status='';return true;">
+                               <xsl:value-of select="text_delete"/>
+                       </a>
+               </td>
+       </tr>
+</xsl:template>
 
-                       <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
-                               <xsl:choose>
-                                       <xsl:when test="msgbox_data != ''">
+<!-- add attribute group / edit attribute group -->
+<xsl:template match="edit_attrib_group" xmlns:php="http://php.net/xsl";>
+       <script type="text/javascript">
+               self.name="first_Window";
+               <xsl:value-of select="lookup_functions"/>
+       </script>
+       <div id="tab-content">
+               <xsl:value-of disable-output-escaping="yes" select="tabs"/>
+               <div class="yui-content">
+                       <div id="general">
+                               <div align="left">
+                                       <xsl:variable name="form_action">
+                                               <xsl:value-of 
select="form_action"/>
+                                       </xsl:variable>
+                                       <form method="post" class="pure-form 
pure-form-aligned" action="{$form_action}">
+
+                                               <table cellpadding="2" 
cellspacing="2" width="80%" align="center">
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="msgbox_data != ''">
+                                                                       <tr>
+                                                                               
<td align="left" colspan="3">
+                                                                               
        <xsl:call-template name="msgbox"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="lang_entity"/>
+                                                               </td>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="entity_name"/>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="lang_category"/>
+                                                               </td>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="category_name"/>
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="value_id != ''">
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="lang_id"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="value_id"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="parent_list != ''">
+                                                                       <tr>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="php:function('lang', 'parent')"/>
+                                                                               
</td>
+                                                                               
<td valign="top">
+                                                                               
        <select id="parent_id" name="values[parent_id]">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'select 
parent')"/>
+                                                                               
                </option>
+                                                                               
                <xsl:apply-templates select="parent_list"/>
+                                                                               
        </select>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="lang_group_name"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="text" name="values[group_name]" value="{value_group_name}" 
maxlength="100" onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_group_name_statustext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="lang_descr"/>
+                                                               </td>
+                                                               <td>
+                                                                       <input 
type="text" name="values[descr]" value="{value_descr}" size="60" 
maxlength="150" onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_descr_statustext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="lang_remark"/>
+                                                               </td>
+                                                               <td>
+                                                                       
<textarea cols="60" rows="10" name="values[remark]" 
onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_remark_statustext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:value-of select="value_remark"/>
+                                                                       
</textarea>
+                                                               </td>
+                                                       </tr>
+                                                       <tr height="50">
+                                                               <td>
+                                                                       
<xsl:variable name="lang_save">
+                                                                               
<xsl:value-of select="lang_save"/>
+                                                                       
</xsl:variable>
+                                                                       <input 
type="submit" class="pure-button pure-button-primary" name="values[save]" 
value="{$lang_save}" onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_save_attribtext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </form>
+                                       <table>
                                                <tr>
-                                                       <td align="left" 
colspan="3">
-                                                               
<xsl:call-template name="msgbox"/>
+                                                       <td>
+                                                               <xsl:variable 
name="done_action">
+                                                                       
<xsl:value-of select="done_action"/>
+                                                               </xsl:variable>
+                                                               <xsl:variable 
name="lang_done">
+                                                                       
<xsl:value-of select="lang_done"/>
+                                                               </xsl:variable>
+                                                               <form 
method="post" action="{$done_action}">
+                                                                       <input 
type="submit" class="pure-button pure-button-primary" name="done" 
value="{$lang_done}" onMouseout="window.status='';return true;">
+                                                                               
<xsl:attribute name="onMouseover">
+                                                                               
        <xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="lang_done_attribtext"/>
+                                                                               
        <xsl:text>'; return true;</xsl:text>
+                                                                               
</xsl:attribute>
+                                                                       </input>
+                                                               </form>
                                                        </td>
                                                </tr>
-                                       </xsl:when>
-                               </xsl:choose>
-                                       <tr>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="lang_entity"/>
-                                               </td>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="entity_name"/>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="lang_category"/>
-                                               </td>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="category_name"/>
-                                               </td>
-                                       </tr>
-                                       <xsl:choose>
-                                               <xsl:when test="value_id != ''">
+                                       </table>
+                               </div>
+                       </div>
+               </div>
+       </div>
+</xsl:template>
+
+<!-- add attribute / edit attribute -->
+<xsl:template xmlns:php="http://php.net/xsl"; match="edit_attrib">
+       <script type="text/javascript">
+               self.name="first_Window";
+               <xsl:value-of select="lookup_functions"/>
+       </script>
+       <div id="tab-content">
+               <xsl:value-of disable-output-escaping="yes" select="tabs"/>
+               <div class="yui-content">
+                       <div id="general">
+                               <div align="left">
+                                       <xsl:variable name="form_action">
+                                               <xsl:value-of 
select="form_action"/>
+                                       </xsl:variable>
+                                       <form method="post" class="pure-form 
pure-form-aligned" action="{$form_action}">
+
+                                               <table cellpadding="2" 
cellspacing="2" width="80%" align="center">
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="msgbox_data != ''">
+                                                                       <tr>
+                                                                               
<td align="left" colspan="3">
+                                                                               
        <xsl:call-template name="msgbox"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
                                                        <tr>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="php:function('lang', 'entity')"/>
+                                                               </td>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="entity_name"/>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="php:function('lang', 'category')"/>
+                                                               </td>
+                                                               <td 
class="th_text" align="left">
+                                                                       
<xsl:value-of select="category_name"/>
+                                                               </td>
+                                                       </tr>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="value_id != ''">
+                                                                       <tr>
+                                                                               
<td valign="top">
+                                                                               
        <xsl:value-of select="php:function('lang', 'attribute id')"/>
+                                                                               
</td>
+                                                                               
<td>
+                                                                               
        <xsl:value-of select="value_id"/>
+                                                                               
</td>
+                                                                       </tr>
+                                                               </xsl:when>
+                                                       </xsl:choose>
+                                                       <tr>
                                                                <td 
valign="top">
-                                                                       
<xsl:value-of select="lang_id"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'column name')"/>
                                                                </td>
                                                                <td>
-                                                                       
<xsl:value-of select="value_id"/>
+                                                                       <input 
type="text" name="values[column_name]" value="{value_column_name}" 
maxlength="50">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter the name for the 
column')"/>
+                                                                               
</xsl:attribute>
+                                                                       </input>
                                                                </td>
                                                        </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <xsl:choose>
-                                               <xsl:when test="parent_list != 
''">
                                                        <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="php:function('lang', 'input text')"/>
+                                                               </td>
                                                                <td>
-                                                                       
<xsl:value-of select="php:function('lang', 'parent')"/>
+                                                                       <input 
type="text" name="values[input_text]" value="{value_input_text}" size="60" 
maxlength="255">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter the input text for 
records')"/>
+                                                                               
</xsl:attribute>
+                                                                       </input>
                                                                </td>
+                                                       </tr>
+                                                       <tr>
                                                                <td 
valign="top">
-                                                                       <select 
id="parent_id" name="values[parent_id]">
+                                                                       
<xsl:value-of select="php:function('lang', 'statustext')"/>
+                                                               </td>
+                                                               <td>
+                                                                       
<textarea cols="60" rows="10" name="values[statustext]" maxlength="255">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter a statustext for the 
inputfield in forms')"/>
+                                                                               
</xsl:attribute>
+                                                                               
<xsl:value-of select="value_statustext"/>
+                                                                       
</textarea>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td 
valign="top">
+                                                                       
<xsl:value-of select="php:function('lang', 'group')"/>
+                                                               </td>
+                                                               <td 
valign="top">
+                                                                       <select 
name="values[group_id]" class="forms">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'select a group')"/>
+                                                                               
</xsl:attribute>
                                                                                
<option value="">
-                                                                               
        <xsl:value-of select="php:function('lang', 'select parent')"/>
+                                                                               
        <xsl:value-of select="php:function('lang', 'no group')"/>
                                                                                
</option>
-                                                                               
<xsl:apply-templates select="parent_list"/>
+                                                                               
<xsl:apply-templates select="attrib_group_list"/>
                                                                        
</select>
                                                                </td>
                                                        </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_group_name"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[group_name]" value="{value_group_name}" maxlength="100" 
onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                       
<xsl:value-of select="lang_group_name_statustext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_descr"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[descr]" value="{value_descr}" size="60" maxlength="150" 
onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                       
<xsl:value-of select="lang_descr_statustext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_remark"/>
-                                               </td>
-                                               <td>
-                                                       <textarea cols="60" 
rows="10" name="values[remark]" onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                       
<xsl:value-of select="lang_remark_statustext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="value_remark"/>
-                                                       </textarea>
-                                               </td>
-                                       </tr>
-                                       <tr height="50">
-                                               <td>
-                                                       <xsl:variable 
name="lang_save">
-                                                               <xsl:value-of 
select="lang_save"/>
-                                                       </xsl:variable>
-                                                       <input type="submit" 
class="pure-button pure-button-primary" name="values[save]" 
value="{$lang_save}" onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                       
<xsl:value-of select="lang_save_attribtext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                               </table>
-                               </form>
-                               <table>
-                               <tr>
-                                       <td>
-                                               <xsl:variable 
name="done_action">
-                                                       <xsl:value-of 
select="done_action"/>
-                                               </xsl:variable>
-                                               <xsl:variable name="lang_done">
-                                                       <xsl:value-of 
select="lang_done"/>
-                                               </xsl:variable>
-                                               <form method="post" 
action="{$done_action}">
-                                                       <input type="submit" 
class="pure-button pure-button-primary" name="done" value="{$lang_done}" 
onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                       
<xsl:value-of select="lang_done_attribtext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </form>
-                                       </td>
-                               </tr>
-                       </table>
-               </div>
-                    </div>
-                </div>
-            </div>
-       </xsl:template>
-
-       <!-- add attribute / edit attribute -->
-       <xsl:template xmlns:php="http://php.net/xsl"; match="edit_attrib">
-            <script type="text/javascript">
-                       self.name="first_Window";
-                       <xsl:value-of select="lookup_functions"/>
-            </script>
-            <div id="tab-content">
-                <xsl:value-of disable-output-escaping="yes" select="tabs"/>
-                <div class="yui-content">
-                    <div id="general">
-               <div align="left">
-                       <xsl:variable name="form_action">
-                               <xsl:value-of select="form_action"/>
-                       </xsl:variable>
-                       <form method="post" class="pure-form pure-form-aligned" 
action="{$form_action}">
-
-                       <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
-                               <xsl:choose>
-                                       <xsl:when test="msgbox_data != ''">
-                                               <tr>
-                                                       <td align="left" 
colspan="3">
-                                                               
<xsl:call-template name="msgbox"/>
-                                                       </td>
-                                               </tr>
-                                       </xsl:when>
-                               </xsl:choose>
-                                       <tr>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="php:function('lang', 'entity')"/>
-                                               </td>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="entity_name"/>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="php:function('lang', 'category')"/>
-                                               </td>
-                                               <td class="th_text" 
align="left">
-                                                       <xsl:value-of 
select="category_name"/>
-                                               </td>
-                                       </tr>
-                                       <xsl:choose>
-                                               <xsl:when test="value_id != ''">
                                                        <tr>
                                                                <td 
valign="top">
-                                                                       
<xsl:value-of select="php:function('lang', 'attribute id')"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'datatype')"/>
                                                                </td>
-                                                               <td>
-                                                                       
<xsl:value-of select="value_id"/>
+                                                               <td 
valign="top">
+                                                                       <select 
name="values[column_info][type]" class="forms">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'select a datatype')"/>
+                                                                               
</xsl:attribute>
+                                                                               
<option value="">
+                                                                               
        <xsl:value-of select="php:function('lang', 'no datatype')"/>
+                                                                               
</option>
+                                                                               
<xsl:apply-templates select="datatype_list"/>
+                                                                       
</select>
                                                                </td>
                                                        </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'column name')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_name]" value="{value_column_name}" maxlength="50">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter the name for the column')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'input text')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[input_text]" value="{value_input_text}" size="60" maxlength="255">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter the input text for 
records')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'statustext')"/>
-                                               </td>
-                                               <td>
-                                                       <textarea cols="60" 
rows="10" name="values[statustext]" maxlength="255">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter a statustext for the 
inputfield in forms')"/>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="value_statustext"/>
-                                                       </textarea>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'group')"/>
-                                               </td>
-                                               <td valign="top">
-                                                       <select 
name="values[group_id]" class="forms">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'select a group')"/>
-                                                               </xsl:attribute>
-                                                               <option 
value="">
-                                                                       
<xsl:value-of select="php:function('lang', 'no group')"/>
-                                                               </option>
-                                                               
<xsl:apply-templates select="attrib_group_list"/>
-                                                       </select>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'datatype')"/>
-                                               </td>
-                                               <td valign="top">
-                                                       <select 
name="values[column_info][type]" class="forms">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'select a datatype')"/>
-                                                               </xsl:attribute>
-                                                               <option 
value="">
-                                                                       
<xsl:value-of select="php:function('lang', 'no datatype')"/>
-                                                               </option>
-                                                               
<xsl:apply-templates select="datatype_list"/>
-                                                       </select>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'precision')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][precision]" value="{value_precision}">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter the record length')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'scale')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][scale]" value="{value_scale}">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter the scale if type is 
decimal')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'default')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][default]" value="{value_default}">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enter the default value')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'nullable')"/>
-                                               </td>
-                                               <td valign="top">
-                                                       <select 
name="values[column_info][nullable]">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'chose if this column is 
nullable')"/>
-                                                               </xsl:attribute>
-                                                               <option 
value="">
-                                                                       
<xsl:value-of select="php:function('lang', 'select nullable')"/>
-                                                               </option>
-                                                               
<xsl:apply-templates select="nullable_list"/>
-                                                       </select>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="php:function('lang', 'show in list')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="checkbox" 
name="values[list]" value="1">
-                                                               <xsl:if 
test="value_list = 1">
-                                                                       
<xsl:attribute name="checked">
-                                                                               
<xsl:text>checked</xsl:text>
-                                                                       
</xsl:attribute>
-                                                               </xsl:if>
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'check to show this attribute in 
entity list')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="php:function('lang', 'include in search')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="checkbox" 
name="values[search]" value="1">
-                                                               <xsl:if 
test="value_search = 1">
-                                                                       
<xsl:attribute name="checked">
-                                                                               
<xsl:text>checked</xsl:text>
-                                                                       
</xsl:attribute>
-                                                               </xsl:if>
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'check to show this attribute in 
location list')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="php:function('lang', 'history')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="checkbox" 
name="values[history]" value="1">
-                                                               <xsl:if 
test="value_history = 1">
-                                                                       
<xsl:attribute name="checked">
-                                                                               
<xsl:text>checked</xsl:text>
-                                                                       
</xsl:attribute>
-                                                               </xsl:if>
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enable history for this 
attribute')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="php:function('lang', 'disabled')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="checkbox" 
name="values[disabled]" value="1">
-                                                               <xsl:if 
test="value_disabled = 1">
-                                                                       
<xsl:attribute name="checked">
-                                                                               
<xsl:text>checked</xsl:text>
-                                                                       
</xsl:attribute>
-                                                               </xsl:if>
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'this attribute turn up as disabled 
in the form')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'short description')"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[short_description]" value="{value_short_description}" size = "2" 
maxlength= "2">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'optional order of field in a short 
description')"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="php:function('lang', 'help message')"/>
-                                               </td>
-                                               <td>
-                                                       <textarea cols="60" 
rows="10" name="values[helpmsg]">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="php:function('lang', 'enables help message for this 
attribute')"/>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="value_helpmsg"/>
-                                                       </textarea>
-                                               </td>
-                                       </tr>
-
-                                       <xsl:choose>
-                                               <xsl:when test="datatype = 
'link'">
                                                        <tr>
                                                                <td 
valign="top">
-                                                                       
<xsl:value-of select="php:function('lang', 'action')"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'precision')"/>
                                                                </td>
-                                                               <td 
align="left">
-                                                                       
<textarea cols="60" rows="10" name="values[javascript_action]">
+                                                               <td>
+                                                                       <input 
type="text" name="values[column_info][precision]" value="{value_precision}">
                                                                                
<xsl:attribute name="title">
-                                                                               
        <xsl:text>optional javascript, __id__ is replaced by id</xsl:text>
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter the record length')"/>
                                                                                
</xsl:attribute>
-                                                                               
<xsl:value-of select="value_javascript_action"/>
-                                                                       
</textarea>
+                                                                       </input>
                                                                </td>
                                                        </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-
-                                       <xsl:choose>
-                                               <xsl:when test="multiple_choice 
= 1">
                                                        <tr>
                                                                <td 
valign="top">
-                                                                       
<xsl:value-of select="php:function('lang', 'choice')"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'scale')"/>
                                                                </td>
-                                                               <td 
align="right">
-                                                                       
<xsl:call-template name="choice"/>
+                                                               <td>
+                                                                       <input 
type="text" name="values[column_info][scale]" value="{value_scale}">
+                                                                               
<xsl:attribute name="title">
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter the scale if type is 
decimal')"/>
+                                                                               
</xsl:attribute>
+                                                                       </input>
                                                                </td>
                                                        </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <xsl:choose>
-                                               <xsl:when test="custom_get_list 
= 1">
                                                        <tr>
                                                                <td 
valign="top">
-                                                                       
<xsl:value-of select="php:function('lang', 'custom get list function')"/>
+                                                                       
<xsl:value-of select="php:function('lang', 'default')"/>
                                                                </td>
                                                                <td>
-                                                                       <input 
type="text" name="values[get_list_function]" value="{value_get_list_function}" 
size="60">
+                                                                       <input 
type="text" name="values[column_info][default]" value="{value_default}">
                                                                                
<xsl:attribute name="title">
-                                                                               
        <xsl:text>&lt;app&gt;.&lt;class&gt;.&lt;function&gt;</xsl:text>
+                                                                               
        <xsl:value-of select="php:function('lang', 'enter the default value')"/>
                                                                                
</xsl:attribute>
                                                                        </input>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td 
valign="top">

@@ Diff output truncated at 153600 characters. @@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]