[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6976] property: filter links on location level at en
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6976] property: filter links on location level at entities |
Date: |
Sat, 12 Feb 2011 20:21:20 +0000 |
Revision: 6976
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6976
Author: sigurdne
Date: 2011-02-12 20:21:19 +0000 (Sat, 12 Feb 2011)
Log Message:
-----------
property: filter links on location level at entities
Modified Paths:
--------------
trunk/property/inc/class.bolocation.inc.php
trunk/property/inc/class.soadmin_entity.inc.php
trunk/property/inc/class.uiadmin_entity.inc.php
trunk/property/inc/class.uientity.inc.php
trunk/property/inc/class.uitts.inc.php
trunk/property/setup/phpgw_no.lang
trunk/property/setup/setup.inc.php
trunk/property/setup/tables_current.inc.php
trunk/property/setup/tables_update.inc.php
trunk/property/templates/base/admin_entity.xsl
Modified: trunk/property/inc/class.bolocation.inc.php
===================================================================
--- trunk/property/inc/class.bolocation.inc.php 2011-02-11 14:37:21 UTC (rev
6975)
+++ trunk/property/inc/class.bolocation.inc.php 2011-02-12 20:21:19 UTC (rev
6976)
@@ -263,6 +263,7 @@
$filter_location =
isset($data['filter_location']) ? $data['filter_location'] : '';
$block_query = !!$filter_location;
$location_link =
"menuaction:'property.uilocation.index',lookup:1";
+ $lookup_functions = array();
$config = $this->soadmin_location->read_config('');
@@ -271,7 +272,7 @@
$location_types =
$this->soadmin_location->select_location_type();
$this->location_types = $location_types;
- if($data['type_id']<0)
+ if(!$data['type_id'] === 0 || $data['type_id'] < 0)
{
$data['type_id'] = count($location_types);
}
@@ -299,27 +300,15 @@
$insert_record['location'][]
= $location['location'][$i]['input_name'];
$location['location'][$i]['size']
= 5;
$location['location'][$i]['name']
= $location_types[($i)]['name'];
- $location['location'][$i]['value']
= (isset($data['values']['loc' .
($i+1)])?$data['values']['loc' . ($i+1)]:'');
+ $location['location'][$i]['value']
= isset($data['values']['loc' . ($i+1)]) ?
$data['values']['loc' . ($i+1)] : '';
$location['location'][$i]['statustext']
= lang('click this link to select') . ' ' .
$location_types[($i)]['name'];
- if($i==0)
- {
-
$location['location'][$i]['extra'][0]['input_name'] = 'loc' .
($i+1).'_name';
- $input_name[]
= $location['location'][$i]['extra'][0]['input_name'];
-
$location['location'][$i]['extra'][0]['input_type'] = 'text';
-
$location['location'][$i]['extra'][0]['size'] = 30;
-
$location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc'
. ($i+1) . '()';
-
$location['location'][$i]['extra'][0]['value'] =
(isset($data['values']['loc' . ($i+1).'_name'])?$data['values']['loc' .
($i+1).'_name']:'');
- }
- else
- {
-
$location['location'][$i]['extra'][0]['input_name'] = 'loc' .
($i+1).'_name';
- $input_name[]
= $location['location'][$i]['extra'][0]['input_name'];
-
$location['location'][$i]['extra'][0]['input_type'] = 'text';
-
$location['location'][$i]['extra'][0]['size'] = 30;
-
$location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc'
. ($i+1) . '()';
-
$location['location'][$i]['extra'][0]['value'] =
(isset($data['values']['loc' . ($i+1).'_name'])?$data['values']['loc' .
($i+1).'_name']:'');
- }
+
$location['location'][$i]['extra'][0]['input_name'] = 'loc' .
($i+1).'_name';
+ $input_name[]
= $location['location'][$i]['extra'][0]['input_name'];
+
$location['location'][$i]['extra'][0]['input_type'] = 'text';
+ $location['location'][$i]['extra'][0]['size']
= 30;
+
$location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc'
. ($i+1) . '()';
+ $location['location'][$i]['extra'][0]['value']
= isset($data['values']['loc' . ($i+1).'_name']) ?
$data['values']['loc' . ($i+1).'_name'] : '';
$location['location'][$i]['lookup_function_call'] =
'lookup_loc' . ($i+1) . '()';
$location['location'][$i]['readonly']
= true;
@@ -331,17 +320,20 @@
(
'name'
=> 'lookup_loc' . ($i+1) . '()',
'filter_level'
=> $i,
- 'link'
=> $location_link .',type_id:' . ($i+1) .
',lookup_name:' . $i,
+ 'link'
=> $location_link .',type_id:' . ($i+1) .
',lookup_name:' . $i,
'action'
=>
'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");'
);
}
-
- if(isset($data['no_link']) &&
$data['no_link']>=($i+3))
+//_debug_array($data['no_link']);
+ if(isset($data['no_link']) && $data['no_link']
&& $data['no_link']>=($i+3))
{
-
$location['location'][$i]['lookup_link'] = false;
- $lookup_functions[$i]['link']
= $location_link .',type_id:' . ($data['no_link']-1) .
',lookup_name:' . ($data['no_link']-2);
- $lookup_functions[$i]['action']
=
'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
- $location['location'][$i]['statustext']
= lang('click this link to select') . ' ' .
$location_types[($data['no_link']-2)]['name'];
+
$location['location'][$i]['lookup_link']
= false;
+
$location['location'][$i]['lookup_function_call']
= '';
+
$location['location'][$i]['extra'][0]['lookup_function_call'] = '';
+
$location['location'][$i]['lookup_link']
= false;
+ $lookup_functions[$i]['link']
= $location_link
.',type_id:' . ($data['no_link']-1) . ',lookup_name:' . ($data['no_link']-2);
+ $lookup_functions[$i]['action']
=
'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
+ $location['location'][$i]['statustext']
= lang('click this link to
select') . ' ' . $location_types[($data['no_link']-2)]['name'];
}
if(isset($data['query_link']) && $i <
($data['type_id']-1))
@@ -359,20 +351,28 @@
$m=$i;
}
- //_debug_array($fm_location_cols);
+ //_debug_array($fm_location_cols);die();
//_debug_array($data);
+//die();
+
$location_cols_count =count($fm_location_cols);
for ($j=0;$j<$location_cols_count;$j++)
{
-
if((isset($fm_location_cols[$j]['location_type']) &&
$fm_location_cols[$j]['location_type'] <= $data['type_id']) &&
$fm_location_cols[$j]['lookup_form'])
+ $_lookup_link = true;
+ if(isset($data['no_link']) && $data['no_link']
&& $data['no_link'] <= $fm_location_cols[$j]['location_type'] + 2)
{
+ $_lookup_link = false;
+ }
+
+ if( $fm_location_cols[$j]['lookup_form'] &&
$fm_location_cols[$j]['location_type'] == $data['type_id'] )
+ {
$location['location'][$i]['input_type']
= 'text';
$location['location'][$i]['input_name']
= $fm_location_cols[$j]['column_name'];
$input_name[]
=
$location['location'][$i]['input_name'];
$location['location'][$i]['size']
= 5;
-
$location['location'][$i]['lookup_function_call'] = 'lookup_loc' .
$fm_location_cols[$j]['location_type'] . '()';
-
$location['location'][$i]['lookup_link'] = true;
+
$location['location'][$i]['lookup_function_call'] = $_lookup_link ?
"lookup_loc{$fm_location_cols[$j]['location_type']}()" : '';
+
$location['location'][$i]['lookup_link'] = $_lookup_link;
$location['location'][$i]['readonly']
= true;
$location['location'][$i]['name']
= $fm_location_cols[$j]['input_text'];
$location['location'][$i]['value']
=
isset($data['values'][$fm_location_cols[$j]['column_name']]) ?
$data['values'][$fm_location_cols[$j]['column_name']] : '';
@@ -390,14 +390,19 @@
$config_count =count($config);
for ($j=0;$j<$config_count;$j++)
{
+ $_lookup_link = true;
+ if(isset($data['no_link']) && $data['no_link']
&& $data['no_link'] <= $config[$j]['location_type'] + 2)
+ {
+ $_lookup_link = false;
+ }
if($config[$j]['location_type'] <=
$data['type_id'] && $config[$j]['lookup_form'] )
{
if($config[$j]['column_name']=='street_id' &&
$location_types[($data['type_id']-1)]['list_address']==1)
{
$location['location'][$i]['input_name'] =
$config[$j]['column_name'];
$input_name[]
= 'street_id';
-
$location['location'][$i]['lookup_link'] = true;
-
$location['location'][$i]['lookup_function_call'] = 'lookup_loc' .
$config[$j]['location_type'] . '()';
+
$location['location'][$i]['lookup_link'] = $_lookup_link;
+
$location['location'][$i]['lookup_function_call'] = $_lookup_link ?
"lookup_loc{$config[$j]['location_type']}()" : '';
$location['location'][$i]['name'] =
lang('address');
$location['location'][$i]['input_type'] = 'hidden';
$location['location'][$i]['value'] =
(isset($data['values'][$config[$j]['column_name']])?$data['values'][$config[$j]['column_name']]:'');
@@ -407,7 +412,7 @@
$location['location'][$i]['extra'][0]['readonly'] = true;
$input_name[]
=
$location['location'][$i]['extra'][0]['input_name'];
$location['location'][$i]['extra'][0]['size'] = 30;
-
$location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc'
. $config[$j]['location_type'] . '()';
+
$location['location'][$i]['extra'][0]['lookup_function_call'] = $_lookup_link
? "lookup_loc{$config[$j]['location_type']}()" : '';
$location['location'][$i]['extra'][0]['value'] =
(isset($data['values']['street_name'])?$data['values']['street_name']:'');
$location['location'][$i]['extra'][1]['input_type'] = 'text';
@@ -415,7 +420,7 @@
$location['location'][$i]['extra'][1]['readonly'] = true;
$input_name[]
=
$location['location'][$i]['extra'][1]['input_name'];
$location['location'][$i]['extra'][1]['size'] = 6;
-
$location['location'][$i]['extra'][1]['lookup_function_call'] = 'lookup_loc'
. $config[$j]['location_type'] . '()';
+
$location['location'][$i]['extra'][1]['lookup_function_call'] = $_lookup_link
? "lookup_loc{$config[$j]['location_type']}()" : '';
$location['location'][$i]['extra'][1]['value'] =
(isset($data['values']['street_number'])?$data['values']['street_number']:'');
$i++;
}
@@ -430,7 +435,7 @@
'action'
=>
'Window1=window.open(strURL,"Search","left=50,top=100,width=1600,height=700,toolbar=no,scrollbars=yes,resizable=yes");'
);
-
$location['location'][$i]['lookup_link'] = true;
+
$location['location'][$i]['lookup_link'] = $_lookup_link;
$location['location'][$i]['name'] =
lang('Tenant');
$location['location'][$i]['input_type'] = 'hidden';
$location['location'][$i]['input_name'] = 'tenant_id';
@@ -473,11 +478,11 @@
{
$location['location'][$i]['input_name'] =
$config[$j]['column_name'];
$input_name[]
=
$location['location'][$i]['input_name'];
- //
$insert_record[]
= $location['location'][$i]['input_name'];
+// $insert_record[]
=
$location['location'][$i]['input_name'];
$location['location'][$i]['size'] = 5;
$location['location'][$i]['value'] =
$data['location']['value'][$config[$j]['column_name']];
$location['location'][$i]['lookup_function_call'] = 'lookup_loc' .
$fm_location_cols[$j]['location_type'] . '()';
-
$location['location'][$i]['lookup_link'] = true;
+
$location['location'][$i]['lookup_link'] = $_lookup_link;
$location['location'][$i]['name'] =
$config[$j]['descr'];
$location['location'][$i]['value'] =
$data['values'][$config[$j]['column_name']];
$location['location'][$i]['statustext'] = lang('click
this link to select') . ' '
.$location_types[($fm_location_cols[$j]['location_type']-1)]['name'];
Modified: trunk/property/inc/class.soadmin_entity.inc.php
===================================================================
--- trunk/property/inc/class.soadmin_entity.inc.php 2011-02-11 14:37:21 UTC
(rev 6975)
+++ trunk/property/inc/class.soadmin_entity.inc.php 2011-02-12 20:21:19 UTC
(rev 6976)
@@ -435,6 +435,7 @@
'lookup_tenant'
=> $this->db->f('lookup_tenant'),
'tracking'
=> $this->db->f('tracking'),
'location_level'
=> $this->db->f('location_level'),
+ 'location_link_level'
=> $this->db->f('location_link_level'),
'fileupload'
=> $this->db->f('fileupload'),
'loc_link'
=> $this->db->f('loc_link'),
'start_project'
=> $this->db->f('start_project'),
@@ -547,6 +548,7 @@
$values['lookup_tenant'],
$values['tracking'],
$values['location_level'],
+ $values['location_link_level'],
$values['fileupload'],
$values['loc_link'],
$values['start_project'],
@@ -558,7 +560,7 @@
$values_insert =
$this->db->validate_insert($values_insert);
- $this->db->query("INSERT INTO {$table}
(entity_id,id,name,
descr,prefix,lookup_tenant,tracking,location_level,fileupload,loc_link,start_project,start_ticket,jasperupload,parent_id,level
) "
+ $this->db->query("INSERT INTO {$table}
(entity_id,id,name,
descr,prefix,lookup_tenant,tracking,location_level,location_link_level,fileupload,loc_link,start_project,start_ticket,jasperupload,parent_id,level
) "
. "VALUES ($values_insert)",__LINE__,__FILE__);
$location_id =
$GLOBALS['phpgw']->locations->add(".{$this->type}.{$values['entity_id']}.{$values['id']}",
$values['name'], $this->type_app[$this->type], true,
"fm_{$this->type}_{$values['entity_id']}_{$values['id']}");
@@ -745,6 +747,7 @@
'lookup_tenant'
=> $entity['lookup_tenant'],
'tracking'
=> $entity['tracking'],
'location_level'
=> $entity['location_level'],
+ 'location_link_level'
=> $entity['location_link_level'],
'fileupload'
=> $entity['fileupload'],
'loc_link'
=> $entity['loc_link'],
'start_project'
=> $entity['start_project'],
@@ -756,7 +759,7 @@
$value_set =
$this->db->validate_update($value_set);
- $this->db->query("UPDATE $table set $value_set
WHERE entity_id=" . $entity['entity_id']. " AND id=" .
$entity['id'],__LINE__,__FILE__);
+ $this->db->query("UPDATE $table set $value_set
WHERE entity_id=" . (int)$entity['entity_id']. " AND id=" .
(int)$entity['id'],__LINE__,__FILE__);
$GLOBALS['phpgw']->locations->update_description(".{$this->type}.{$entity['entity_id']}.{$entity['id']}",
$entity['name'], $this->type_app[$this->type]);
Modified: trunk/property/inc/class.uiadmin_entity.inc.php
===================================================================
--- trunk/property/inc/class.uiadmin_entity.inc.php 2011-02-11 14:37:21 UTC
(rev 6975)
+++ trunk/property/inc/class.uiadmin_entity.inc.php 2011-02-12 20:21:19 UTC
(rev 6976)
@@ -1158,9 +1158,13 @@
'lookup_tenant'
=> true,
'value_lookup_tenant'
=> $values['lookup_tenant'],
'lang_location_level'
=> lang('location level'),
- 'location_level_list'
=> $this->bo->get_location_level_list($values['location_level']),
+ 'location_level_list'
=> array('options' =>
$this->bo->get_location_level_list($values['location_level'])),
'lang_location_level_statustext'
=> lang('select location level'),
'lang_no_location_level'
=> lang('None'),
+ 'lang_location_link_level'
=> lang('location link level'),
+ 'location_link_level_list'
=> array('options' =>
$this->bo->get_location_level_list($values['location_link_level'])),
+ 'lang_location_link_level_statustext'
=> lang('select location level'),
+ 'lang_no_location_link_level'
=> lang('None'),
'tracking'
=> true,
'value_tracking'
=> $values['tracking'],
'fileupload'
=> true,
Modified: trunk/property/inc/class.uientity.inc.php
===================================================================
--- trunk/property/inc/class.uientity.inc.php 2011-02-11 14:37:21 UTC (rev
6975)
+++ trunk/property/inc/class.uientity.inc.php 2011-02-12 20:21:19 UTC (rev
6976)
@@ -1385,9 +1385,9 @@
$this->cat_id = $values['cat_id'];
}
+ $lookup_entity = array();
if (isset($entity['lookup_entity']) &&
is_array($entity['lookup_entity']))
{
- $lookup_entity = array();
foreach ($entity['lookup_entity'] as $lookup_id)
{
$entity_lookup =
$this->soadmin_entity->read_single($lookup_id);
@@ -1414,13 +1414,13 @@
$category['location_level']= -1;
}
- if($entity['location_form'] &&
$category['location_level'] > 0 )
+ if($entity['location_form'] )
{
$location_data=$bolocation->initiate_ui_location(array
(
'values' =>
$values['location_data'],
- 'type_id' =>
$category['location_level'],
- 'no_link' => false, //
disable lookup links for location type less than type_id
+ 'type_id' =>
(int)$category['location_level'],
+ 'no_link' =>
$lookup_entity ? (int)$category['location_link_level'] + 2 : false, // disable
lookup links for location type less than type_id
'lookup_type' => $lookup_type,
'tenant' =>
$lookup_tenant,
'lookup_entity' =>
$lookup_entity,
@@ -2296,15 +2296,15 @@
if (isset($entity['lookup_entity']) &&
is_array($entity['lookup_entity']))
{ for
($i=0;$i<count($entity['lookup_entity']);$i++)
- {
-
if(isset($values['p'][$entity['lookup_entity'][$i]]) &&
$values['p'][$entity['lookup_entity'][$i]])
{
- $lookup_entity[$i]['id'] =
$entity['lookup_entity'][$i];
- $entity_lookup =
$this->soadmin_entity->read_single($entity['lookup_entity'][$i]);
- $lookup_entity[$i]['name'] =
$entity_lookup['name'];
+
if(isset($values['p'][$entity['lookup_entity'][$i]]) &&
$values['p'][$entity['lookup_entity'][$i]])
+ {
+ $lookup_entity[$i]['id'] =
$entity['lookup_entity'][$i];
+ $entity_lookup =
$this->soadmin_entity->read_single($entity['lookup_entity'][$i]);
+ $lookup_entity[$i]['name'] =
$entity_lookup['name'];
+ }
}
}
- }
$location_data=$bolocation->initiate_ui_location(array
(
Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php 2011-02-11 14:37:21 UTC (rev
6975)
+++ trunk/property/inc/class.uitts.inc.php 2011-02-12 20:21:19 UTC (rev
6976)
@@ -1861,7 +1861,7 @@
}
$location_data=$bolocation->initiate_ui_location(array(
- 'values' =>
(isset($values['location_data'])?$values['location_data']:''),
+ 'values' =>
isset($values['location_data'])?$values['location_data']:'',
'type_id' => -1, // calculated from
location_types
'no_link' => false, // disable lookup
links for location type less than type_id
'tenant' => true,
Modified: trunk/property/setup/phpgw_no.lang
===================================================================
--- trunk/property/setup/phpgw_no.lang 2011-02-11 14:37:21 UTC (rev 6975)
+++ trunk/property/setup/phpgw_no.lang 2011-02-12 20:21:19 UTC (rev 6976)
@@ -968,6 +968,7 @@
location config property no Konfigurering av lokalisering
location form property no Lokaliseringsskjema
location level property no Lokaliserings-nivå
+location link level property no Fjern link til
lokaliserings-nivå
location manager property no Forvalter lokasjon
location name property no Modul
location not chosen! property no Lokalisering er ikke valgt
Modified: trunk/property/setup/setup.inc.php
===================================================================
--- trunk/property/setup/setup.inc.php 2011-02-11 14:37:21 UTC (rev 6975)
+++ trunk/property/setup/setup.inc.php 2011-02-12 20:21:19 UTC (rev 6976)
@@ -12,7 +12,7 @@
*/
$setup_info['property']['name'] = 'property';
- $setup_info['property']['version'] = '0.9.17.607';
+ $setup_info['property']['version'] = '0.9.17.608';
$setup_info['property']['app_order'] = 8;
$setup_info['property']['enable'] = 1;
$setup_info['property']['app_group'] = 'office';
Modified: trunk/property/setup/tables_current.inc.php
===================================================================
--- trunk/property/setup/tables_current.inc.php 2011-02-11 14:37:21 UTC (rev
6975)
+++ trunk/property/setup/tables_current.inc.php 2011-02-12 20:21:19 UTC (rev
6976)
@@ -1555,6 +1555,7 @@
'lookup_tenant' => array('type' =>
'int','precision' => '4','nullable' => True),
'tracking' => array('type' => 'int','precision'
=> '4','nullable' => True),
'location_level' => array('type' =>
'int','precision' => '4','nullable' => True),
+ 'location_link_level' => array('type' =>
'int','precision' => '4','nullable' => True),
'fileupload' => array('type' =>
'int','precision' => '4','nullable' => True),
'loc_link' => array('type' => 'int','precision'
=> '4','nullable' => True),
'start_project' => array('type' =>
'int','precision' => '4','nullable' => True),
Modified: trunk/property/setup/tables_update.inc.php
===================================================================
--- trunk/property/setup/tables_update.inc.php 2011-02-11 14:37:21 UTC (rev
6975)
+++ trunk/property/setup/tables_update.inc.php 2011-02-12 20:21:19 UTC (rev
6976)
@@ -5001,6 +5001,26 @@
/**
* Update property version from 0.9.17.607 to 0.9.17.608
+ * Add location_link_level
+ *
+ */
+
+ $test[] = '0.9.17.607';
+ function property_upgrade0_9_17_607()
+ {
+ $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
+
+
$GLOBALS['phpgw_setup']->oProc->AddColumn('fm_entity_category','location_link_level',
array('type' => 'int','precision' => '4','nullable' => True));
+
+ if($GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit())
+ {
+ $GLOBALS['setup_info']['property']['currentver'] =
'0.9.17.608';
+ return $GLOBALS['setup_info']['property']['currentver'];
+ }
+ }
+
+ /**
+ * Update property version from 0.9.17.607 to 0.9.17.608
* Add more room for address at tickets
*
*/
Modified: trunk/property/templates/base/admin_entity.xsl
===================================================================
--- trunk/property/templates/base/admin_entity.xsl 2011-02-11 14:37:21 UTC
(rev 6975)
+++ trunk/property/templates/base/admin_entity.xsl 2011-02-12 20:21:19 UTC
(rev 6976)
@@ -694,10 +694,22 @@
<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"/>
+
<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>
@@ -1751,21 +1763,6 @@
</xsl:template>
-
-<!-- location_level_list -->
-
- <xsl:template match="location_level_list">
- <xsl:variable name="id"><xsl:value-of
select="id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="selected">
- <option value="{$id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
<!-- attrib_group_list -->
<xsl:template match="attrib_group_list">
@@ -2076,3 +2073,11 @@
</table>
</xsl:template>
+ <xsl:template match="options">
+ <option value="{id}">
+ <xsl:if test="selected != 0">
+ <xsl:attribute name="selected" value="selected"
/>
+ </xsl:if>
+ <xsl:value-of disable-output-escaping="yes"
select="name"/>
+ </option>
+ </xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6976] property: filter links on location level at entities,
Sigurd Nes <=