[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/base menu.xsl, 1.1 location.xsl, 1
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] property/templates/base menu.xsl, 1.1 location.xsl, 1.1 nextmatchs.xsl, 1.1 location_form.xsl, 1.1 meter.xsl, 1.1 investment.xsl, 1.1 group_select.xsl, 1.1 grouping_select.xsl, 1.1 group_filter.xsl, 1.1 owner.xsl, 1.1 hour_data_view.xsl, 1.1 help_data.xsl, 1.1 preference_acl.tpl, 1.1 receipt.xsl, 1.1 search_field.xsl, 1.1 standard_2.xsl, 1.1 select_submodule.xsl, 1.1 request.xsl, 1.1 preference_acl_row.tpl, 1.1 owner_filter.xsl, 1.1 p_of_town.xsl, 1.1 filter_select.xsl, 1.1 preference_colspan.tpl, 1.1 owner_select.xsl, 1.1 cat_filter.xsl, 1.1 select_permission.xsl, 1.1 building_part_select.xsl, 1.1 choice.xsl, 1.1 chapter_select.xsl, 1.1 chapter_filter.xsl, 1.1 calendar_info.xsl, 1.1 branch_select.xsl, 1.1 admin.xsl, 1.1 admin_location.xsl, 1.1 app_delete.xsl, 1.1 app_data.xsl, 1.1 category.xsl, 1.1 dim_d_select.xsl, 1.1 filter_member_of.xsl, 1.1 filter_location.xsl, 1.1 filter_filter.xsl, 1.1 filter_permission.xsl, 1.1 filter_part_of_town.xsl, 1.1 filter_district.xsl, 1.1 date_search.xsl, 1.1 custom.xsl, 1.1 co lumns.xsl, 1.1 drawing.xsl, 1.1 filter_submodule.xsl, 1.1 cat_select.xsl, 1.1 project.xsl, 1.1 values.xsl, 1.1 location_view.xsl, 1.1 invoice.xsl, 1.1 entity.xsl, 1.1 wo_hour.xsl, 1.1 workorder.xsl, 1.1 b_account_form.xsl, 1.1 gab.xsl, 1.1 config.tpl, 1.1 lookup.xsl, 1.1 document.xsl, 1.1 b_account.xsl, 1.1 abook_view.xsl, 1.1 abook_form.xsl, 1.1 confirm_custom.xsl, 1.1 select_part_of_town.xsl, 1.1 actor.xsl, 1.1 admin_entity.xsl, 1.1 attributes_form.xsl, 1.1 async.xsl, 1.1 alarm.xsl, 1.1 agreement.xsl, 1.1 tts.xsl, 1.1 attributes_view.xsl, 1.1 user_id_select.xsl, 1.1 user_lid_filter.xsl, 1.1 user_id_filter.xsl, 1.1 select_multi_user.xsl, 1.1 unit_select.xsl, 1.1 status_filter.xsl, 1.1 status_select.xsl, 1.1 select_district.xsl, 1.1 standard_entity.xsl, 1.1 template.xsl, 1.1 table_header.xsl, 1.1 pricebook.xsl, 1.1 tolerance_select.xsl, 1.1 alarm_form.xsl, 1.1 alarm_view.xsl, 1.1 standard_3.xsl, 1.1 s_agreement.xsl, 1.1 tenant.xsl, 1.1 filter_vendor.xsl, 1.1 user_lid_select.xsl, 1.1 select_vendor.xsl, 1.1 vendor_view.xsl, 1. 1 vendor_form.xsl,1.1 b_account_view.xsl,1.1 |
Date: |
Thu, 24 Feb 2005 14:53:40 -0000 |
Update of property/templates/base
Added Files:
Branch: MAIN
menu.xsl
location.xsl
nextmatchs.xsl
location_form.xsl
meter.xsl
investment.xsl
group_select.xsl
grouping_select.xsl
group_filter.xsl
owner.xsl
hour_data_view.xsl
help_data.xsl
preference_acl.tpl
receipt.xsl
search_field.xsl
standard_2.xsl
select_submodule.xsl
request.xsl
preference_acl_row.tpl
owner_filter.xsl
p_of_town.xsl
filter_select.xsl
preference_colspan.tpl
owner_select.xsl
cat_filter.xsl
select_permission.xsl
building_part_select.xsl
choice.xsl
chapter_select.xsl
chapter_filter.xsl
calendar_info.xsl
branch_select.xsl
admin.xsl
admin_location.xsl
app_delete.xsl
app_data.xsl
category.xsl
dim_d_select.xsl
filter_member_of.xsl
filter_location.xsl
filter_filter.xsl
filter_permission.xsl
filter_part_of_town.xsl
filter_district.xsl
date_search.xsl
custom.xsl
columns.xsl
drawing.xsl
filter_submodule.xsl
cat_select.xsl
project.xsl
values.xsl
location_view.xsl
invoice.xsl
entity.xsl
wo_hour.xsl
workorder.xsl
b_account_form.xsl
gab.xsl
config.tpl
lookup.xsl
document.xsl
b_account.xsl
abook_view.xsl
abook_form.xsl
confirm_custom.xsl
select_part_of_town.xsl
actor.xsl
admin_entity.xsl
attributes_form.xsl
async.xsl
alarm.xsl
agreement.xsl
tts.xsl
attributes_view.xsl
user_id_select.xsl
user_lid_filter.xsl
user_id_filter.xsl
select_multi_user.xsl
unit_select.xsl
status_filter.xsl
status_select.xsl
select_district.xsl
standard_entity.xsl
template.xsl
table_header.xsl
pricebook.xsl
tolerance_select.xsl
alarm_form.xsl
alarm_view.xsl
standard_3.xsl
s_agreement.xsl
tenant.xsl
filter_vendor.xsl
user_lid_select.xsl
select_vendor.xsl
vendor_view.xsl
vendor_form.xsl
b_account_view.xsl
Log Message:
no message
====================================================
Index: menu.xsl
<xsl:template name="menu">
<xsl:apply-templates select="links"/>
</xsl:template>
<xsl:template match="links">
<table width="100%" align="center">
<tr >
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:for-each select="module" >
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="this=1">
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
</xsl:when>
<xsl:otherwise>
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:for-each select="sub_menu" >
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="this=1">
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
</xsl:when>
<xsl:otherwise>
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
====================================================
Index: location.xsl
<!-- $Id: location.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:when test="update_cat">
<xsl:apply-templates select="update_cat"/>
</xsl:when>
<xsl:when test="stop">
<xsl:apply-templates select="stop"/>
</xsl:when>
<xsl:when test="summary">
<xsl:apply-templates select="summary"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:choose>
<xsl:when test="//lookup=1">
<script LANGUAGE="JavaScript">
function Exchange_values(thisform)
{
<xsl:value-of
select="function_exchange_values"/>
}
</script>
</xsl:when>
</xsl:choose>
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<xsl:choose>
<xsl:when test="lookup=''">
<xsl:call-template name="menu"/>
</xsl:when>
</xsl:choose>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<td>
<xsl:call-template
name="filter_district"/>
</td>
<xsl:choose>
<xsl:when test="status_eco_list='' and
lookup!=1">
<td align="left">
<xsl:call-template
name="status_filter"/>
</td>
</xsl:when>
</xsl:choose>
<td align="center">
<xsl:call-template name="owner_filter"/>
</td>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
<td class="small_text" valign="top"
align="left">
<xsl:variable
name="link_excel"><xsl:value-of select="link_excel"/></xsl:variable>
<xsl:variable
name="lang_excel_help"><xsl:value-of select="lang_excel_help"/></xsl:variable>
<xsl:variable
name="lang_excel"><xsl:value-of select="lang_excel"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_excel}','','')"
onMouseOver="overlib('{$lang_excel_help}', CAPTION, '{$lang_excel}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_excel"/></a>
</td>
</tr>
<tr>
<td colspan="14" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
<xsl:choose>
<xsl:when test="//lookup=1">
<td>
<!-- make room for hidden
fields -->
</td>
</xsl:when>
</xsl:choose>
<xsl:for-each select="table_header" >
<td class="th_text" width="{with}"
align="{align}">
<xsl:choose>
<xsl:when
test="sort!=''">
<a
href="{sort}" onMouseover="window.status='{header}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="header"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="header"/>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</tr>
<xsl:call-template name="list_values"/>
<xsl:choose>
<xsl:when test="lookup='' and table_add
!=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</table>
<xsl:choose>
<xsl:when test="lookup=1">
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<tr>
<td colspan="3" width="100%">
<xsl:call-template
name="nextmatchs"/>
</td>
</tr>
</table>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="list_values">
<xsl:for-each select="values" >
<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>
<form>
<xsl:choose>
<xsl:when test="//lookup=1">
<td>
<xsl:for-each
select="hidden" >
<input
type="hidden" name="{name}" value="{value}"></input>
</xsl:for-each>
</td>
</xsl:when>
</xsl:choose>
<xsl:for-each select="row" >
<xsl:choose>
<xsl:when test="link">
<td class="small_text"
align="center">
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td class="small_text"
align="left">
<xsl:value-of
select="value"/>
<xsl:choose>
<xsl:when test="lookup=1">
<xsl:if test="position() = last()">
<td class="small_text" align="center">
<input type="button" name="select" value="{//lang_select}"
onClick="{//exchange_values}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_select_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</xsl:if>
</xsl:when>
</xsl:choose>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</form>
</tr>
</xsl:for-each>
</xsl: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=""
value="{$lang_add}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_add_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<script language="JavaScript">
self.name="first_Window";
function street_lookup()
{
Window1=window.open('<xsl:value-of
select="street_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
function tenant_lookup()
{
Window1=window.open('<xsl:value-of
select="tenant_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<xsl:variable name="dateformat_source"><xsl:value-of
select="dateformat_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript"
SRC="{$dateformat_source}"></SCRIPT>
<script language="JavaScript">
self.name="first_Window";
<xsl:value-of select="lookup_functions"/>
</script>
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<xsl:choose>
<xsl:when test="lookup_type='form'">
<xsl:call-template
name="location_form"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="location_view"/>
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="additional_fields" >
<tr>
<td class="{class}" align="left"
valign="top">
<xsl:value-of
select="input_text"/>
</td>
<td align="left">
<xsl:choose>
<xsl:when
test="datatype ='text'">
<textarea
cols="60" rows="4" name="{input_name}" wrap="virtual"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<xsl:value-of select="value"/>
</textarea>
</xsl:when>
<xsl:when
test="datatype ='date'">
<input
type="text" name="{input_name}" value="{value}"
onFocus="{//dateformat_validate}" onKeyUp="{//onKeyUp}" onBlur="{//onBlur}"
size="12" maxlength="10" onMouseout="window.status='';return true;" >
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="descr"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
<xsl:text>[</xsl:text><xsl:value-of
select="//lang_dateformat"/><xsl:text>]</xsl:text>
</xsl:when>
<xsl:otherwise>
<input
type="text" name="{input_name}" value="{value}" size="{size}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="edit_part_of_town = 1">
<tr>
<td>
<xsl:value-of
select="lang_part_of_town"/>
</td>
<td>
<xsl:call-template
name="select_part_of_town"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="edit_owner = 1">
<tr>
<td>
<xsl:value-of
select="lang_owner"/>
</td>
<td>
<xsl:variable
name="lang_owner_statustext"><xsl:value-of
select="lang_owner_statustext"/></xsl:variable>
<select
name="owner_id" class="forms"
onMouseover="window.status='{$lang_owner_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_select_owner"/></option>
<xsl:apply-templates select="owner_list"/>
</select>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="entities_link != ''">
<tr>
<td valign="top">
<xsl:value-of
select="lang_related_info"/>
</td>
<td>
<table width="100%"
cellpadding="2" cellspacing="2" align="center">
<xsl:apply-templates select="entities_link"/>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:call-template
name="attributes_form"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="edit_street = 1">
<tr>
<td>
<a
href="javascript:street_lookup()"
onMouseover="window.status='{lang_select_street_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_street"/></a>
</td>
<td>
<input type="hidden"
name="street_id" value="{value_street_id}"></input>
<input size="30"
type="text" name="street_name" value="{value_street_name}"
onClick="street_lookup();" readonly="readonly">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_select_street_help"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
<input size="4"
type="text" name="street_number" value="{value_street_number}" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_street_num_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="edit_tenant = 1">
<tr>
<td>
<a
href="javascript:tenant_lookup()"
onMouseover="window.status='{lang_tenant_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_tenant"/></a>
</td>
<td>
<input type="hidden"
name="tenant_id" value="{value_tenant_id}"></input>
<input
size="{size_last_name}" type="text" name="last_name" value="{value_last_name}"
onClick="tenant_lookup();" readonly="readonly">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_tenant_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
<input
size="{size_first_name}" type="text" name="first_name"
value="{value_first_name}" onClick="tenant_lookup();" readonly="readonly">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_tenant_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit" name="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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<xsl:template match="owner_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>
<!-- view -->
<xsl:template match="view">
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<xsl:choose>
<xsl:when test="lookup_type='form'">
<xsl:call-template
name="location_form"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="location_view"/>
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="additional_fields" >
<tr>
<td class="{class}" align="left"
valign="top">
<xsl:value-of
select="input_text"/>
</td>
<td align="left">
<xsl:choose>
<xsl:when
test="datatype ='text'">
<textarea
cols="60" rows="4" name="{input_name}" readonly="readonly" wrap="virtual"
onMouseout="window.status='';return true;">
<xsl:value-of select="value"/>
</textarea>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="value"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<xsl:for-each select="cat_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<xsl:choose>
<xsl:when test="edit_part_of_town = 1">
<tr>
<td>
<xsl:value-of
select="lang_part_of_town"/>
</td>
<xsl:for-each
select="part_of_town_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="edit_owner = 1">
<tr>
<td>
<xsl:value-of
select="lang_owner"/>
</td>
<xsl:for-each
select="owner_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="entities_link != ''">
<tr>
<td valign="top">
<xsl:value-of
select="lang_related_info"/>
</td>
<td>
<table width="100%"
cellpadding="2" cellspacing="2" align="center">
<xsl:apply-templates select="entities_link"/>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:apply-templates
select="attributes_view"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="edit_street = 1">
<tr>
<td>
<xsl:value-of
select="lang_street"/>
</td>
<td>
<xsl:value-of
select="value_street_name"/>
<xsl:text> </xsl:text>
<xsl:value-of
select="value_street_number"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="edit_tenant = 1">
<tr>
<td>
<xsl:value-of
select="lang_tenant"/>
</td>
<td>
<xsl:value-of
select="value_last_name"/>
<xsl:text> </xsl:text>
<xsl:value-of
select="value_first_name"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr height="50">
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit" class="forms"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_edit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- update_cat -->
<xsl:template match="update_cat">
<table cellpadding="2" cellspacing="2" 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 align="center"
colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
</tr>
<tr>
<td>
<xsl:variable
name="update_action"><xsl:value-of select="update_action"/></xsl:variable>
<xsl:variable
name="lang_yes"><xsl:value-of select="lang_yes"/></xsl:variable>
<form method="POST"
action="{$update_action}">
<input type="submit"
class="forms" name="confirm" value="{$lang_yes}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_yes_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
<td align="right">
<xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
<a href="{$done_action}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_no_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
<xsl:value-of
select="lang_no"/>
</a>
</td>
</tr>
</table>
</xsl:template>
<!-- stop -->
<xsl:template match="stop">
<xsl:call-template name="menu"/>
<table cellpadding="2" cellspacing="2" 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>
</table>
</xsl:template>
<xsl:template match="entities_link">
<xsl:variable name="lang_entity_statustext"><xsl:value-of
select="lang_entity_statustext"/></xsl:variable>
<xsl:variable name="entity_link"><xsl:value-of
select="entity_link"/></xsl:variable>
<tr >
<td class="small_text" align="left">
<a href="{$entity_link}"
onMouseover="window.status='{$lang_entity_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_entity"/></a>
</td>
</tr>
</xsl:template>
<xsl:template match="summary">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template
name="filter_district"/>
</td>
<td>
<xsl:call-template
name="filter_part_of_town"/>
</td>
<!-- <td align="center">
<xsl:call-template name="owner_filter"/>
</td>-->
<td class="small_text" valign="top"
align="left">
<xsl:variable
name="link_excel"><xsl:value-of select="link_excel"/></xsl:variable>
<xsl:variable
name="lang_excel_help"><xsl:value-of select="lang_excel_help"/></xsl:variable>
<xsl:variable
name="lang_excel"><xsl:value-of select="lang_excel"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_excel}','','')"
onMouseOver="overlib('{$lang_excel_help}', CAPTION, '{$lang_excel}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_excel"/></a>
</td>
</tr>
</table>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
<xsl:for-each select="table_header_summary" >
<td class="th_text" width="{with}"
align="{align}">
<xsl:value-of select="header"/>
</td>
</xsl:for-each>
</tr>
<xsl:call-template name="list_values"/>
</table>
</xsl:template>
====================================================
Index: nextmatchs.xsl
<!-- $Id: nextmatchs.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="nextmatchs">
<xsl:variable name="allow_allrows"><xsl:value-of
select="allow_allrows"/></xsl:variable>
<xsl:variable name="start_record"><xsl:value-of
select="start_record"/></xsl:variable>
<xsl:variable name="cur_record"><xsl:value-of
select="number($start_record) + number(1)"/></xsl:variable>
<xsl:variable name="record_limit"><xsl:value-of
select="record_limit"/></xsl:variable>
<xsl:variable name="num_records"><xsl:value-of
select="num_records"/></xsl:variable>
<xsl:variable name="all_records"><xsl:value-of
select="all_records"/></xsl:variable>
<xsl:variable name="link_url"><xsl:value-of
select="link_url"/></xsl:variable>
<xsl:variable name="img_path"><xsl:value-of
select="img_path"/></xsl:variable>
<table border="0" width="100%">
<tr>
<xsl:choose>
<xsl:when test="number($cur_record) >
number(1)">
<xsl:variable name="first"><xsl:value-of
select="link_url"/>&start=0</xsl:variable>
<td width="25">
<a href="{$first}"><img
src="{$img_path}/first.gif" border="1" width="12" height="12"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td width="25">
<img
src="{$img_path}/first-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="number($cur_record) >
number(1)">
<xsl:variable name="prev_num"><xsl:value-of
select="number($cur_record) - number($record_limit)"/></xsl:variable>
<xsl:choose>
<xsl:when
test="number($prev_num)+number(1) >= number(1)">
<xsl:choose>
<xsl:when
test="number($cur_record) - number($record_limit) > number(0)">
<xsl:variable
name="prev_number"><xsl:value-of select="number($cur_record) -
number($record_limit)"/></xsl:variable>
<xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($prev_number) - number(1)"/></xsl:variable>
<td
width="25">
<a href="{$prev}"><img src="{$img_path}/left.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
<td
width="25">
<a href="{$prev}"><img src="{$img_path}/left-grey.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td width="25">
<img
src="{$img_path}/left-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td width="25">
<img
src="{$img_path}/left-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="number($num_records) =
number(0)">
<td nowrap="nowrap" align="center">0 -
0 of 0 </td>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="number($cur_record) + number($record_limit) > number($num_records)">
<xsl:variable
name="of_num"><xsl:value-of select="number($cur_record)+number($num_records) -
number(1)"/></xsl:variable>
<td nowrap="nowrap"
align="center">
<xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
</td>
</xsl:when>
<xsl:otherwise>
<xsl:variable
name="of_num"><xsl:value-of select="number($cur_record) + number($record_limit)
- number(1)"/></xsl:variable>
<td nowrap="nowrap"
align="center">
<xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
<xsl:variable name="next_num"><xsl:value-of
select="number($cur_record) + number($record_limit)"/></xsl:variable>
<xsl:choose>
<xsl:when
test="number($all_records) > number($next_num)-number(1)">
<xsl:variable
name="next"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($next_num) - number(1)"/></xsl:variable>
<td width="25"
align="right">
<a
href="{$next}"><img src="{$img_path}/right.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td width="25"
align="right">
<img
src="{$img_path}/right-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td width="25" align="right">
<img
src="{$img_path}/right-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
<xsl:variable name="last_num"><xsl:value-of
select="number($all_records)-number($record_limit)+number(1)"/></xsl:variable>
<xsl:choose>
<xsl:when
test="number($last_num) > number($cur_record)">
<xsl:variable
name="last"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($last_num)-number(1)"/></xsl:variable>
<td width="25"
align="right">
<a
href="{$last}"><img src="{$img_path}/last.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td width="25"
align="right">
<img
src="{$img_path}/last-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td width="25" align="right">
<img
src="{$img_path}/last-grey.gif" border="1" width="12" height="12"/>
</td>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$allow_allrows=1">
<xsl:choose>
<xsl:when test="allrows =1">
<xsl:variable
name="all"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
<td width="25"
align="right">
<xsl:value-of
select="lang_delete"/>
<a
href="{$all}"><img src="{$img_path}/down.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<xsl:variable
name="all"><xsl:value-of select="link_url"/>&allrows=1</xsl:variable>
<td width="25"
align="right">
<a
href="{$all}"><img src="{$img_path}/down.gif" border="1" width="12"
height="12"/></a>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</tr>
</table>
</xsl:template>
====================================================
Index: location_form.xsl
<!-- $Id: location_form.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="location_form">
<xsl:apply-templates select="location_data"/>
</xsl:template>
<xsl:template match="location_data">
<script language="JavaScript">
self.name="first_Window";
<xsl:value-of select="lookup_functions"/>
</script>
<xsl:for-each select="location" >
<tr>
<td class="th_text" width="{with}"
align="{align}">
<xsl:choose>
<xsl:when
test="lookup_link=1">
<a
href="javascript:{lookup_function_call}"
onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="name"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:choose>
<xsl:when
test="readonly=1">
<input
size="{size}" type="{input_type}" name="{input_name}" value="{value}"
onClick="{lookup_function_call}" readonly="readonly">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input
size="{size}" type="{input_type}" name="{input_name}" value="{value}"
onClick="{lookup_function_call}" >
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
<xsl:for-each select="extra" >
<xsl:choose>
<xsl:when
test="readonly=1">
<input
size="{size}" type="{input_type}" name="{input_name}" value="{value}"
onClick="{lookup_function_call}" readonly="readonly">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input
size="{size}" type="{input_type}" name="{input_name}" value="{value}"
onClick="{lookup_function_call}" >
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</xsl:template>
====================================================
Index: meter.xsl
<!-- $Id: meter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:when test="update_cat">
<xsl:apply-templates select="update_cat"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<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:call-template name="table_header"/>
<xsl:choose>
<xsl:when test="values">
<xsl:call-template
name="values"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="table_add !=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</table>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of select="lang_meter_id"/>
</td>
<td>
<xsl:choose>
<xsl:when test="value_meter_id
!= ''">
<xsl:value-of
select="value_meter_id"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
name="values[num]" value="{value_meter_id}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_meter_id_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<xsl:call-template name="location_form"/>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="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_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]" wrap="virtual" 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"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td valign="top">
<xsl:value-of select="lang_meter_id"/>
</td>
<td>
<xsl:value-of select="value_meter_id"/>
</td>
</tr>
<xsl:call-template name="location_view"/>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<xsl:for-each select="cat_list" >
<xsl:choose>
<xsl:when
test="selected='selected'">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td>
<xsl:value-of select="value_name"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_remark"/>
</td>
<td>
<xsl:value-of select="value_remark"/>
</td>
</tr>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
<tr>
<td>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_edit_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
====================================================
Index: investment.xsl
<!-- $Id: investment.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="add">
<xsl:apply-templates select="add"/>
</xsl:when>
<xsl:when test="history">
<xsl:apply-templates select="history"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:variable name="check_source"><xsl:value-of
select="check_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$check_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form_search" action="{$form_action}">
<table width="100%" cellpadding="2" cellspacing="2"
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 align="left">
<xsl:call-template name="cat_select"/>
</td>
</tr>
<tr>
<td align="left">
<xsl:call-template
name="select_part_of_town"/>
<xsl:call-template
name="filter_select"/>
<xsl:variable
name="lang_search"><xsl:value-of select="lang_search"/></xsl:variable>
<input type="submit"
name="submit_search" value="{$lang_search}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_search_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td colspan="3" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
</form>
<xsl:variable name="update_action"><xsl:value-of
select="update_action"/></xsl:variable>
<form method="post" name="form" action="{$update_action}">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_header"/>
<xsl:choose>
<xsl:when test="values[entity_id]!=''">
<xsl:apply-templates
select="values"/>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td class="th_text"
align="right">
<xsl:value-of
select="sum_initial_value"/>
</td>
<td class="th_text"
align="right">
<xsl:value-of
select="sum_value"/>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td align="center">
<xsl:variable
name="img_check"><xsl:value-of select="img_check"/></xsl:variable>
<a
href="javascript:check_all_checkbox('values[update]')"><img src="{$img_check}"
border="0" height="16" width="21" alt="{lang_select_all}"/></a>
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
<table width="50%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_update"/>
</table>
</form>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_add"/>
</table>
</xsl:template>
<xsl:template match="table_header">
<tr class="th">
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_district"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of
select="lang_part_of_town"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_entity_id"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of
select="lang_investment_id"/>
</td>
<td class="th_text" width="10%">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="10%">
<xsl:value-of
select="lang_entity_name"/>
</td>
<td class="th_text" width="20%" align="center">
<xsl:value-of
select="lang_initial_value"/>
</td>
<td class="th_text" width="20%" align="center">
<xsl:value-of select="lang_value"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_last_index"/>
</td>
<td class="th_text" width="10%" align="center">
<xsl:value-of select="lang_write_off"/>
</td>
<td class="th_text" width="10%" align="center">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of
select="lang_index_count"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_history"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_select"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values">
<xsl:variable name="lang_history_statustext"><xsl:value-of
select="lang_history_statustext"/></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">
<input type="hidden"
name="values[entity_id][{counter}]" value="{entity_id}" ></input>
<input type="hidden"
name="values[investment_id][{counter}]" value="{investment_id}" ></input>
<input type="hidden"
name="values[initial_value][{counter}]" value="{initial_value_ex}" ></input>
<input type="hidden"
name="values[value][{counter}]" value="{value_ex}" ></input>
<xsl:value-of select="district_id"/>
</td>
<td align="left">
<xsl:value-of select="part_of_town"/>
</td>
<td align="right">
<xsl:value-of select="entity_id"/>
</td>
<td align="right">
<xsl:value-of select="investment_id"/>
</td>
<td align="left">
<xsl:value-of select="descr"/>
</td>
<td align="left">
<xsl:value-of select="entity_name"/>
</td>
<td align="right">
<xsl:value-of select="initial_value"/>
</td>
<td align="right">
<xsl:value-of select="value"/>
</td>
<td align="right">
<xsl:value-of select="this_index"/>
</td>
<td align="right">
<xsl:value-of select="this_write_off"/>
</td>
<td align="right">
<xsl:value-of select="date"/>
</td>
<td align="center">
<xsl:value-of select="index_count"/>
</td>
<xsl:choose>
<xsl:when test="is_admin=16">
<td align="center">
<xsl:variable
name="link_history"><xsl:value-of select="link_history"/></xsl:variable>
<a
href="{$link_history}"
onMouseover="window.status='{$lang_history_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_history"/></a>
</td>
<td>
<xsl:choose>
<xsl:when
test="value_ex !=0">
<input
type="checkbox" name="values[update][{counter}]" value="{counter}"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:when>
</xsl:choose>
</tr>
</xsl:template>
<xsl:template match="table_update">
<tr>
<td>
<xsl:value-of select="lang_new_index"/>
<input type="text"
name="values[new_index]" size="12" onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_index_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td>
<input type="text" id="date"
name="date" size="10" value="{value_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of select="calendar_setup"/>
</script>
</td>
<td height="50">
<xsl:variable
name="lang_update"><xsl:value-of select="lang_update"/></xsl:variable>
<input type="submit"
name="submit_update" value="{$lang_update}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_update_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<xsl:template match="table_done">
<tr>
<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="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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- History -->
<xsl:template match="history">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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 colspan="3" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="entity_type!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_entity_type"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="entity_type"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="entity_id!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_entity_id"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="entity_id"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="investment_id!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_investment_id"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="investment_id"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
<xsl:variable name="update_action"><xsl:value-of
select="update_action"/></xsl:variable>
<form method="post" name="form" action="{$update_action}">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<input type="hidden" name="values[update][0]"
value="0"></input>
<input type="hidden"
name="values[entity_id][0]" value="{entity_id}"></input>
<input type="hidden"
name="values[investment_id][0]" value="{investment_id}"></input>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates select="values_history"/>
</table>
<table width="50%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_update"/>
</table>
</form>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_done"/>
</table>
</xsl:template>
<xsl:template match="table_header_history">
<tr class="th">
<td class="th_text" width="10%" align="center">
<xsl:value-of
select="lang_initial_value"/>
</td>
<td class="th_text" width="10%" align="center">
<xsl:value-of select="lang_value"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_last_index"/>
</td>
<td class="th_text" width="10%" align="center">
<xsl:value-of select="lang_write_off"/>
</td>
<td class="th_text" width="10%" align="center">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of
select="lang_index_count"/>
</td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_delete"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_history">
<xsl:variable name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></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="initial_value"/>
</td>
<td align="right">
<xsl:value-of select="value"/>
</td>
<td align="right">
<xsl:value-of select="this_index"/>
</td>
<td align="right">
<xsl:value-of select="this_write_off"/>
</td>
<td align="right">
<xsl:value-of select="date"/>
</td>
<td align="center">
<xsl:value-of select="index_count"/>
</td>
<xsl:choose>
<xsl:when test="is_admin=16 and
current_index=1">
<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_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_delete"/></a>
<input type="hidden"
name="values[initial_value][0]" value="{initial_value_ex}"></input>
<input type="hidden"
name="values[value][0]" value="{value_ex}"></input>
</td>
</xsl:when>
<xsl:otherwise>
<td>
<xsl:text></xsl:text>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:template>
<!-- add -->
<xsl:template match="add">
<script language="JavaScript">
self.name="first_Window";
function location_lookup()
{
Window1=window.open('<xsl:value-of
select="location_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}" name="form">
<xsl:call-template name="location_form"/>
<tr>
<td>
<xsl:value-of
select="lang_write_off_period"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
<xsl:text> </xsl:text>
<xsl:value-of select="lang_new"/>
<input type="text"
name="values[new_period]" value="{value_new_period}" size="3"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_period_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_type"/>
</td>
<td>
<xsl:call-template
name="filter_select"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_amount"/>
</td>
<td>
<input type="text"
name="values[initial_value]" value="{value_inital_value}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_value_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_date"/>
</td>
<td>
<input type="text" id="date"
name="date" size="10" value="{value_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of select="calendar_setup"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<input type="text" name="values[descr]"
value="{value_descr}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
====================================================
Index: group_select.xsl
<!-- $Id: group_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="group_select">
<xsl:variable name="lang_group_statustext"><xsl:value-of
select="lang_group_statustext"/></xsl:variable>
<xsl:variable name="select_group_name"><xsl:value-of
select="select_group_name"/></xsl:variable>
<select name="{$select_group_name}" class="forms"
onMouseover="window.status='{$lang_group_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_group"/></option>
<xsl:apply-templates select="group_list"/>
</select>
</xsl:template>
<xsl:template match="group_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>
====================================================
Index: grouping_select.xsl
<!-- $Id: grouping_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="grouping_select">
<xsl:variable name="lang_grouping_statustext"><xsl:value-of
select="lang_grouping_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_grouping"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_grouping_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_grouping"/></option>
<xsl:apply-templates select="grouping_list"/>
</select>
</xsl:template>
<xsl:template match="grouping_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>
====================================================
Index: group_filter.xsl
<!-- $Id: group_filter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="group_filter">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_group_name"><xsl:value-of
select="select_group_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_group_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_group_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_group"/></option>
<xsl:apply-templates
select="group_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="group_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>
====================================================
Index: owner.xsl
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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 align="left">
<xsl:call-template name="cat_filter"/>
</td>
<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>
<xsl:template match="table_header">
<xsl:variable name="sort_time_created"
select="sort_time_created"/>
<xsl:variable name="sort_owner_id" select="sort_owner_id"/>
<xsl:variable name="sort_name" select="sort_name"/>
<xsl:variable name="sort_category" select="sort_category"/>
<tr class="th">
<td width="10%" align="right">
<a href="{$sort_owner_id}"
class="th_text"><xsl:value-of select="lang_owner_id"/></a>
</td>
<td width="40%">
<a href="{$sort_name}"
class="th_text"><xsl:value-of select="lang_name"/></a>
</td>
<td width="20%" align="center">
<a href="{$sort_time_created}"
class="th_text"><xsl:value-of select="lang_time_created"/></a>
</td>
<td width="10%" align="center">
<a href="{$sort_category}"
class="th_text"><xsl:value-of select="lang_category"/></a>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_view"/>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_edit"/>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_delete"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values">
<xsl:variable name="lang_view_statustext"><xsl:value-of
select="lang_view_statustext"/></xsl:variable>
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
<xsl:variable name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></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="owner_id"/>
</td>
<td align="left">
<xsl:value-of select="name"/>
</td>
<td align="center">
<xsl:value-of select="entry_date"/>
</td>
<td align="left">
<xsl:value-of select="category"/>
</td>
<td align="center">
<xsl:variable
name="link_view"><xsl:value-of select="link_view"/></xsl:variable>
<a href="{$link_view}"
onMouseover="window.status='{$lang_view_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></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_statustext}';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_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</tr>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<xsl:variable name="edit_url"><xsl:value-of
select="edit_url"/></xsl:variable>
<div align="left">
<form name="form" method="post" action="{$edit_url}">
<table cellpadding="2" cellspacing="2" width="79%"
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>
<xsl:choose>
<xsl:when test="value_owner_id!=''">
<tr >
<td width="25%" align="left">
<xsl:value-of
select="lang_owner_id"/>
</td>
<td width="75%" align="left">
<xsl:value-of
select="value_owner_id"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:call-template name="abook_form"/>
<tr >
<td align="left">
<xsl:value-of select="lang_category"/>
</td>
<td align="left">
<xsl:call-template name="cat_select"/>
</td>
</tr>
<tr align="left">
<td valign="top" >
<xsl:value-of select="lang_remark"/>
</td>
<td align="left">
<textarea cols="60" rows="6"
name="values[remark]" wrap="virtual" 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 valign="bottom">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td valign="bottom">
<xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
<input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_apply_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td align="right" valign="bottom">
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cancel_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
</div>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<table cellpadding="2" cellspacing="2" width="79%"
align="center">
<tr class="row_off">
<td width="19%">
<xsl:value-of
select="lang_time_created"/>
</td>
<td width="81%">
<xsl:value-of select="value_date"/>
</td>
</tr>
<tr class="row_on">
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:value-of select="value_cat"/>
</td>
</tr>
<tr class="row_off">
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td>
<xsl:value-of select="value_name"/>
</td>
</tr>
<tr height="50">
<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="forms"
name="done" value="{$lang_done}" onMouseover="window.status='Back to the
list.';return true;" onMouseout="window.status='';return true;"/>
</form>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: hour_data_view.xsl
<!-- $Id: hour_data_view.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="hour_data_view">
<xsl:apply-templates select="table_header_hour"/>
<xsl:apply-templates select="values_hour"/>
<xsl:apply-templates select="table_sum"/>
</xsl:template>
<xsl:template match="table_header_hour">
<tr class="th">
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_post"/>
</td>
<td class="th_text" width="15%" align="left">
<xsl:value-of select="lang_code"/>
</td>
<td class="th_text" width="40%" align="left">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="4%" align="left">
<xsl:value-of select="lang_unit"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_quantity"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_billperae"/>
</td>
<td class="th_text" width="15%" align="right">
<xsl:value-of select="lang_cost"/>
</td>
<td class="th_text" width="15%" align="right">
<xsl:value-of select="lang_deviation"/>
</td>
<td class="th_text" width="15%" align="right">
<xsl:value-of select="lang_result"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_hour">
<xsl:choose>
<xsl:when test="new_grouping=1">
<tr>
<td class="th_text" align="center" colspan="10"
width="100%">
<xsl:value-of select="grouping_descr"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<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="post"/>
</td>
<td align="left">
<xsl:value-of select="code"/>
</td>
<td align="left">
<xsl:value-of select="hours_descr"/>
<br/>
<xsl:value-of select="remark"/>
</td>
<td align="left">
<xsl:value-of select="unit"/>
</td>
<td align="right">
<xsl:value-of select="quantity"/>
</td>
<td align="right">
<xsl:value-of select="billperae"/>
</td>
<td align="right">
<xsl:value-of select="cost"/>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="deviation=''">
0.00
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="deviation"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:value-of select="result"/>
</td>
</tr>
</xsl:template>
<xsl:template match="table_sum">
<tr>
<td>
</td>
<td align="left" colspan="5">
<xsl:value-of
select="lang_sum_calculation"/>
</td>
<td align="right">
<xsl:value-of
select="value_sum_calculation"/>
</td>
<td align="right">
<xsl:value-of select="sum_deviation"/>
</td>
<td align="right">
<xsl:value-of select="sum_result"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left" colspan="7">
<xsl:value-of
select="lang_addition_rs"/>
</td>
<td align="right">
<xsl:value-of
select="value_addition_rs"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left" colspan="7">
<xsl:value-of
select="lang_addition_percentage"/>
</td>
<td align="right">
<xsl:value-of
select="value_addition_percentage"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left" colspan="7">
<xsl:value-of select="lang_sum_tax"/>
</td>
<td align="right">
<xsl:value-of select="value_sum_tax"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left" colspan="7">
<xsl:value-of select="lang_total_sum"/>
</td>
<td align="right">
<xsl:value-of select="value_total_sum"/>
</td>
</tr>
</xsl:template>
====================================================
Index: help_data.xsl
<!-- $Id: help_data.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="help_data">
<xsl:apply-templates select="xhelp"/>
</xsl:template>
<xsl:template match="xhelp">
<xsl:choose>
<xsl:when test="overview">
<xsl:apply-templates select="overview"/>
</xsl:when>
<xsl:when test="list">
<xsl:apply-templates select="list"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="add"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="overview">
<table>
<tr>
<td>
<xsl:value-of
disable-output-escaping="yes" select="intro"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of
disable-output-escaping="yes" select="prefs_settings"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="list">
<xsl:variable name="list_img" select="list_img"/>
<table>
<tr>
<td colspan="2">
<img src="{$list_img}"/>
</td>
</tr>
<tr>
<td valign="top" align="right">1</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_1"/></td>
</tr>
<tr>
<td valign="top" align="right">2</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_2"/></td>
</tr>
<tr>
<td valign="top" align="right">3</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_3"/></td>
</tr>
<tr>
<td valign="top" align="right">4</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_4"/></td>
</tr>
<tr>
<td valign="top" align="right">5</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_5"/></td>
</tr>
<tr>
<td valign="top" align="right">6</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_6"/></td>
</tr>
<tr>
<td colspan="2"><u><xsl:value-of
disable-output-escaping="yes" select="h_data"/></u></td>
</tr>
<tr>
<td valign="top" align="right">7</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_7"/></td>
</tr>
<tr>
<td valign="top" align="right">8</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_8"/></td>
</tr>
<tr>
<td valign="top" align="right">9</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_9"/></td>
</tr>
<tr>
<td valign="top" align="right">10</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_10"/></td>
</tr>
<tr>
<td valign="top" align="right">11</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_11"/></td>
</tr>
<tr>
<td valign="top" align="right">12</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_12"/></td>
</tr>
<tr>
<td valign="top" align="right">13</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_13"/></td>
</tr>
<tr>
<td valign="top" align="right">14</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_14"/></td>
</tr>
<tr>
<td valign="top" align="right">15</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_15"/></td>
</tr>
<tr>
<td valign="top" align="right">16</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_16"/></td>
</tr>
<tr>
<td valign="top" align="right">17</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_17"/></td>
</tr>
<tr>
<td valign="top" align="right">18</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_18"/></td>
</tr>
</table>
</xsl:template>
<xsl:template match="add">
<xsl:variable name="add_img" select="add_img"/>
<table>
<tr>
<td colspan="2">
<img src="{$add_img}"/>
</td>
</tr>
<tr>
<td valign="top" align="right">1</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_1"/></td>
</tr>
<tr>
<td colspan="2">
<table width="80%" bgcolor="#ccddeb">
<tr>
<td><xsl:value-of
select="lang_lastname"/>:</td>
<td><xsl:value-of
select="lang_firstname"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_email"/>:</td>
<td><xsl:value-of
select="lang_company"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_homephone"/>:</td>
<td><xsl:value-of
select="lang_fax"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_workphone"/>:</td>
<td><xsl:value-of
select="lang_pager"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_mobile"/>:</td>
<td><xsl:value-of
select="lang_othernumber"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_street"/>:</td>
<td><xsl:value-of
select="lang_city"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_state"/>:</td>
<td><xsl:value-of
select="lang_zip"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_access"/>:</td>
<td><xsl:value-of
select="lang_groupsettings"/>:</td>
</tr>
<tr>
<td><xsl:value-of
select="lang_notes"/>:</td>
<td><xsl:value-of
select="lang_birthday"/>:</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><xsl:value-of
disable-output-escaping="yes" select="access_descr"/></td>
</tr>
<tr>
<td valign="top" align="right">2</td>
<td><xsl:value-of disable-output-escaping="yes"
select="item_2"/></td>
</tr>
</table>
</xsl:template>
====================================================
Index: preference_acl.tpl
{errors}
{title}
<table border="0" align="center" width="70%">
<tr>
{nml}
<td width="40%">
<div align="center">
<form method="POST" action="{action_url}">
{common_hidden_vars}
<input type="text" name="query" value="{search_value}">
<input type="submit" name="search" value="{search}">
</form>
</div>
</td>
{nmr}
</tr>
</table>
<form method="POST" action="{action_url}">
<table border="0" align="center" width="50%">
{row}
</table>
{common_hidden_vars_form}
<input type="hidden" name="processed" value="{processed}">
<center><input type="submit" name="submit" value="{submit_lang}"></center>
</form>
====================================================
Index: receipt.xsl
<!-- $Id: receipt.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="receipt">
<xsl:for-each select="message" >
<tr>
<td class="th_text" colspan="2" align="left">
<xsl:value-of select="msg"/>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="error" >
<tr>
<td class="th_text" colspan="2" align="left">
<xsl:value-of select="msg"/>
</td>
</tr>
</xsl:for-each>
</xsl:template>
====================================================
Index: search_field.xsl
<!-- $Id: search_field.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="search_field">
<xsl:variable name="select_url"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="query"><xsl:value-of
select="query"/></xsl:variable>
<xsl:variable name="lang_search"><xsl:value-of
select="lang_search"/></xsl:variable>
<table>
<tr>
<td class="small_text" valign="top" align="left">
<xsl:variable
name="link_date_search"><xsl:value-of select="link_date_search"/></xsl:variable>
<xsl:variable
name="lang_date_search_help"><xsl:value-of
select="lang_date_search_help"/></xsl:variable>
<xsl:variable
name="lang_date_search"><xsl:value-of select="lang_date_search"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_date_search}','','width=300,height=300')"
onMouseOver="overlib('{$lang_date_search_help}', CAPTION,
'{$lang_date_search}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_date_search"/></a>
<table>
<xsl:choose>
<xsl:when test="start_date!=''">
<tr>
<td class="small_text"
align="left">
<xsl:value-of
select="start_date"/>
</td>
</tr>
<tr>
<td class="small_text"
align="left">
<xsl:value-of
select="end_date"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="small_text"
align="left">
<xsl:value-of
select="lang_none"/>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</table>
</td>
<td valign="top" align="right">
<form method="post" name="search"
action="{$select_url}">
<input type="hidden" name="start_date"
value="{start_date}"></input>
<input type="hidden" name="end_date"
value="{end_date}"></input>
<input type="text" name="query"
value="{$query}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_searchfield_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_search}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_searchbutton_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: standard_2.xsl
<!-- $Id: standard_2.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<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"/>
<!-- <xsl:with-param
name="nextmatchs_params"/>
</xsl:call-template> -->
</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>
<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="20%" align="center">
<xsl:value-of select="lang_descr"/>
</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>
<xsl:template match="values">
<xsl:variable name="lang_view_standardtext"><xsl:value-of
select="lang_view_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="first"/>
</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>
<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>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of select="lang_id"/>
</td>
<td>
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="value_id"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
name="values[id]" value="{value_id}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_id_standardtext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="10"
name="values[descr]" wrap="virtual" 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>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_standardtext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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>
</xsl:template>
====================================================
Index: select_submodule.xsl
<!-- $Id: select_submodule.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="select_submodule">
<xsl:variable name="lang_submodule_statustext"><xsl:value-of
select="lang_submodule_statustext"/></xsl:variable>
<xsl:variable name="select_name_submodule"><xsl:value-of
select="select_name_submodule"/></xsl:variable>
<select name="{$select_name_submodule}" class="forms"
onMouseover="window.status='{$lang_submodule_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_submodule"/></option>
<xsl:apply-templates select="submodule_list"/>
</select>
</xsl:template>
<xsl:template match="submodule_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="id"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="id"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: request.xsl
<!-- $Id: request.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:when test="priority_key">
<xsl:apply-templates select="priority_key"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="priority_key">
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<div align="left">
<table width="100%" cellpadding="2" cellspacing="2"
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 valign="top">
<xsl:value-of select="lang_safety"/>
</td>
<td>
<input type="text" size="3"
name="values[safety]" value="{safety}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_safety_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_aesthetics"/>
</td>
<td>
<input type="text" size="3"
name="values[aesthetics]" value="{aesthetics}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_aesthetics_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_indoor_climate"/>
</td>
<td>
<input type="text" size="3"
name="values[indoor_climate]" value="{indoor_climate}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_indoor_climate_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_consequential_damage"/>
</td>
<td>
<input type="text" size="3"
name="values[consequential_damage]" value="{consequential_damage}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_consequential_damage_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_user_gratification"/>
</td>
<td>
<input type="text" size="3"
name="values[user_gratification]" value="{user_gratification}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_user_gratification_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_residential_environment"/>
</td>
<td>
<input type="text" size="3"
name="values[residential_environment]" value="{residential_environment}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_residential_environment_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_authorities_demands"/>
</td>
<td>
<input type="text" size="3"
name="values[authorities_demands]" value="{authorities_demands}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_authorities_demands_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
name="values[update]" value="{$lang_save}" >
</input>
</td>
</tr>
</table>
</div>
</form>
</xsl:template>
<xsl:template match="list">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<td align="left">
<xsl:call-template
name="status_filter"/>
</td>
<td align="center">
<xsl:call-template
name="user_id_filter"/>
</td>
<xsl:choose>
<xsl:when test="link_priority_key!=''">
<td valign="top" align="right">
<xsl:variable
name="link_priority_key"><xsl:value-of
select="link_priority_key"/></xsl:variable>
<xsl:variable
name="lang_priority_help"><xsl:value-of
select="lang_priority_help"/></xsl:variable>
<xsl:variable
name="lang_priority_key"><xsl:value-of
select="lang_priority_key"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_priority_key}','','width=300,height=300')"
onMouseOver="overlib('{$lang_priority_help}', CAPTION, '{$lang_priority_key}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_priority_key"/></a>
</td>
</xsl:when>
</xsl:choose>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
</tr>
<tr>
<td colspan="14" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:call-template name="table_header"/>
<xsl:choose>
<xsl:when test="project_id!=''">
<xsl:variable
name="add_to_project_action"><xsl:value-of
select="add_to_project_action"/></xsl:variable>
<form method="post"
action="{$add_to_project_action}">
<xsl:choose>
<xsl:when test="values">
<xsl:call-template name="values"/>
</xsl:when>
</xsl:choose>
<tr>
<td height="50">
<input
type="submit" name="add" value="{lang_update_project}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_add_to_project_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="values">
<xsl:call-template
name="values"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="table_add !=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:template>
<xsl:template name="values">
<xsl:for-each select="values" >
<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>
<xsl:for-each select="row" >
<xsl:choose>
<xsl:when test="link">
<td align="center">
<a
href="{link}" target="{target}"
onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
</td>
<xsl:choose>
<xsl:when test="//lookup!=''">
<xsl:if
test="position() = last()">
<td
valign="center">
<input
type="checkbox" name="add_request[request_id][]" value="{request_id}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_select_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="left">
<xsl:value-of
select="value"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:choose>
<xsl:when test="value_request_id!=''">
<td valign="top">
<xsl:variable
name="generate_project_action"><xsl:value-of
select="generate_project_action"/></xsl:variable>
<xsl:variable
name="lang_generate_project"><xsl:value-of
select="lang_generate_project"/></xsl:variable>
<form method="post"
action="{$generate_project_action}">
<input type="hidden"
name="request_id" value="{value_request_id}"></input>
<input type="hidden"
name="location_code" value="{location_code}"></input>
<input type="hidden"
name="bypass" value="true"></input>
<input type="hidden"
name="descr" value="{value_descr}"></input>
<input type="hidden"
name="tenant_id" value="{tenant_id}"></input>
<input type="hidden"
name="p_num" value="{p_num}"></input>
<input type="hidden"
name="p_entity_id" value="{p_entity_id}"></input>
<input type="hidden"
name="p_cat_id" value="{p_cat_id}"></input>
<input type="submit"
class="forms" name="generate_project" value="{$lang_generate_project}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_generate_project_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</xsl:when>
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<input type="hidden" name="values[origin]"
value="{value_origin}"></input>
<input type="hidden" name="values[origin_id]"
value="{value_origin_id}"></input>
<xsl:choose>
<xsl:when test="value_request_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_copy_request"/>
</td>
<td>
<input type="checkbox"
name="values[copy_request]" value="True" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_copy_request_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_request_id"/>
</td>
<td>
<xsl:value-of
select="value_request_id"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="value_project_id!=''">
<tr>
<td align="left" valign="top">
<xsl:value-of
select="//lang_project"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_project_id" >
<xsl:variable name="link_project"><xsl:value-of
select="//link_project"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_project}"
onMouseover="window.status='{//lang_project_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="value_origin_id!=''">
<tr>
<td>
<a href="{link_origin}"
onMouseover="window.status='{lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_origin"/></a>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_title"/>
</td>
<td>
<input type="text" name="values[title]"
value="{value_title}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_title_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="6"
name="values[descr]" wrap="virtual" 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>
<xsl:value-of
select="value_descr"/>
</textarea>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="location_type='form'">
<xsl:call-template
name="location_form"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="location_view"/>
</xsl:otherwise>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of
select="lang_power_meter"/>
</td>
<td>
<input type="text"
name="values[power_meter]" value="{value_power_meter}" size="12"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_power_meter_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_budget"/>
</td>
<td>
<input type="text"
name="values[budget]" value="{value_budget}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_budget_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<td>
<xsl:call-template
name="user_id_select"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<td>
<xsl:call-template
name="status_select"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_start_date"/>
</td>
<td>
<input type="text" id="start_date"
name="start_date" size="10" value="{value_start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_start_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="start_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_start"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_end_date"/>
</td>
<td>
<input type="text" id="end_date"
name="end_date" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_end_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="end_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_end"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_branch"/>
</td>
<td>
<xsl:variable
name="lang_branch_statustext"><xsl:value-of
select="lang_branch_statustext"/></xsl:variable>
<select
name="values[branch_id]" class="forms"
onMouseover="window.status='{$lang_branch_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_no_branch"/></option>
<xsl:apply-templates
select="branch_list"/>
</select>
</td>
</tr>
<tr>
<td class="th_text" valign="top">
<xsl:value-of select="lang_importance"/>
</td>
<td>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:apply-templates
select="table_header_importance"/>
<xsl:apply-templates
select="importance_weight"/>
</table>
</td>
</tr>
<tr>
<td align="left">
<xsl:value-of select="lang_score"/>
</td>
<td>
<xsl:value-of select="value_score"/>
</td>
</tr>
<tr>
<xsl:choose>
<xsl:when test="notify='yes'">
<td valign="top">
<xsl:value-of select="lang_notify"/>
</td>
<td>
<input type="checkbox"
name="values[notify]" value="True" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_notify_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<input type="text"
name="values[mail_address]" value="{value_notify_mail_address}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_notify_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</xsl:when>
</xsl:choose>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
<xsl:template match="importance_weight">
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_safety"/>
</td>
<td align="center">
<select name="values[d_safety]" class="forms"
onMouseover="window.status='{lang_degree_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_safety"/>
</select>
</td>
<td align="center">
<select name="values[p_safety]" class="forms"
onMouseover="window.status='{lang_probability_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_safety"/>
</select>
</td>
<td align="center">
<select name="values[c_safety]" class="forms"
onMouseover="window.status='{lang_consequence_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_safety"/>
</select>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_aesthetics"/>
</td>
<td align="center">
<select name="values[d_aesthetics]"
class="forms" onMouseover="window.status='{lang_degree_statustext}'; return
true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_aesthetics"/>
</select>
</td>
<td align="center">
<select name="values[p_aesthetics]"
class="forms" onMouseover="window.status='{lang_probability_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_aesthetics"/>
</select>
</td>
<td align="center">
<select name="values[c_aesthetics]"
class="forms" onMouseover="window.status='{lang_consequence_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_aesthetics"/>
</select>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_indoor_climate"/>
</td>
<td align="center">
<select name="values[d_indoor_climate]"
class="forms" onMouseover="window.status='{lang_degree_statustext}'; return
true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_indoor_climate"/>
</select>
</td>
<td align="center">
<select name="values[p_indoor_climate]"
class="forms" onMouseover="window.status='{lang_probability_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_indoor_climate"/>
</select>
</td>
<td align="center">
<select name="values[c_indoor_climate]"
class="forms" onMouseover="window.status='{lang_consequence_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_indoor_climate"/>
</select>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of
select="lang_consequential_damage"/>
</td>
<td align="center">
<select name="values[d_consequential_damage]"
class="forms" onMouseover="window.status='{lang_degree_statustext}'; return
true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_consequential_damage"/>
</select>
</td>
<td align="center">
<select name="values[p_consequential_damage]"
class="forms" onMouseover="window.status='{lang_probability_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_consequential_damage"/>
</select>
</td>
<td align="center">
<select name="values[c_consequential_damage]"
class="forms" onMouseover="window.status='{lang_consequence_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_consequential_damage"/>
</select>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_user_gratification"/>
</td>
<td align="center">
<select name="values[d_user_gratification]"
class="forms" onMouseover="window.status='{lang_degree_statustext}'; return
true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_user_gratification"/>
</select>
</td>
<td align="center">
<select name="values[p_user_gratification]"
class="forms" onMouseover="window.status='{lang_probability_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_user_gratification"/>
</select>
</td>
<td align="center">
<select name="values[c_user_gratification]"
class="forms" onMouseover="window.status='{lang_consequence_statustext}';
return true;" onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_user_gratification"/>
</select>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of
select="lang_residential_environment"/>
</td>
<td align="center">
<select
name="values[d_residential_environment]" class="forms"
onMouseover="window.status='{lang_degree_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="degree_list_residential_environment"/>
</select>
</td>
<td align="center">
<select
name="values[p_residential_environment]" class="forms"
onMouseover="window.status='{lang_probability_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="probability_list_residential_environment"/>
</select>
</td>
<td align="center">
<select
name="values[c_residential_environment]" class="forms"
onMouseover="window.status='{lang_consequence_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="consequence_list_residential_environment"/>
</select>
</td>
</tr>
<tr>
<td align="left">
<xsl:value-of
select="lang_authorities_demands"/>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="authorities_demands='1'">
<input type="checkbox"
name="values[authorities_demands]" value="1" checked="checked"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_authorities_demands_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox"
name="values[authorities_demands]" value="1"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_authorities_demands_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<xsl:template match="branch_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>
<xsl:template match="degree_list_safety">
<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>
<xsl:template match="degree_list_aesthetics">
<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>
<xsl:template match="degree_list_indoor_climate">
<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>
<xsl:template match="degree_list_consequential_damage">
<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>
<xsl:template match="degree_list_user_gratification">
<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>
<xsl:template match="degree_list_residential_environment">
<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>
<xsl:template match="probability_list_safety">
<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>
<xsl:template match="probability_list_aesthetics">
<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>
<xsl:template match="probability_list_indoor_climate">
<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>
<xsl:template match="probability_list_consequential_damage">
<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>
<xsl:template match="probability_list_user_gratification">
<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>
<xsl:template match="probability_list_residential_environment">
<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>
<xsl:template match="consequence_list_safety">
<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>
<xsl:template match="consequence_list_aesthetics">
<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>
<xsl:template match="consequence_list_indoor_climate">
<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>
<xsl:template match="consequence_list_consequential_damage">
<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>
<xsl:template match="consequence_list_user_gratification">
<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>
<xsl:template match="consequence_list_residential_environment">
<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>
<xsl:template match="table_header_history">
<tr class="th">
<td class="th_text" width="20%" align="left">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_user"/>
</td>
<td class="th_text" width="30%" align="left">
<xsl:value-of select="lang_action"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="record_history">
<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="value_date"/>
</td>
<td align="left">
<xsl:value-of select="value_user"/>
</td>
<td align="left">
<xsl:value-of select="value_action"/>
</td>
<td align="left">
<xsl:value-of select="value_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="table_header_importance">
<tr class="th">
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_subject"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of
select="lang_condition_degree"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of
select="lang_prob_worsening"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of
select="lang_consequence"/>
</td>
</tr>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td>
<xsl:value-of select="lang_request_id"/>
</td>
<td>
<xsl:value-of
select="value_request_id"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="value_project_id!=''">
<tr>
<td align="left" valign="top">
<xsl:value-of
select="//lang_project"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_project_id" >
<xsl:variable name="link_project"><xsl:value-of
select="//link_project"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_project}"
onMouseover="window.status='{//lang_project_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="value_origin_id!=''">
<tr>
<td>
<a href="{link_origin}"
onMouseover="window.status='{lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_origin"/></a>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_title"/>
</td>
<td>
<xsl:value-of select="value_title"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<xsl:value-of select="value_descr"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<xsl:for-each select="cat_list" >
<xsl:choose>
<xsl:when
test="selected='selected'">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<xsl:call-template name="location_view"/>
<tr>
<td valign="top">
<xsl:value-of
select="lang_power_meter"/>
</td>
<td>
<xsl:value-of
select="value_power_meter"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_budget"/>
</td>
<td>
<xsl:value-of select="value_budget"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<xsl:for-each select="user_list" >
<xsl:choose>
<xsl:when test="selected">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<xsl:for-each select="status_list" >
<xsl:choose>
<xsl:when test="selected">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_start_date"/>
</td>
<td>
<xsl:value-of
select="value_start_date"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_end_date"/>
</td>
<td>
<xsl:value-of select="value_end_date"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_branch"/>
</td>
<xsl:for-each select="branch_list" >
<xsl:choose>
<xsl:when test="selected">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td class="th_text" valign="top">
<xsl:value-of select="lang_importance"/>
</td>
<td>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:apply-templates
select="table_header_importance"/>
<xsl:apply-templates
select="importance_weight_view"/>
</table>
</td>
</tr>
<tr>
<td align="left">
<xsl:value-of select="lang_score"/>
</td>
<td>
<xsl:value-of select="value_score"/>
</td>
</tr>
<tr height="50">
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit" class="forms"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_edit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
<xsl:template match="importance_weight_view">
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_safety"/>
</td>
<td align="center">
<xsl:value-of select="degree_safety"/>
</td>
<td align="center">
<xsl:value-of select="probability_safety"/>
</td>
<td align="center">
<xsl:value-of select="consequence_safety"/>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_aesthetics"/>
</td>
<td align="center">
<xsl:value-of select="degree_aesthetics"/>
</td>
<td align="center">
<xsl:value-of select="probability_aesthetics"/>
</td>
<td align="center">
<xsl:value-of select="consequence_aesthetics"/>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_indoor_climate"/>
</td>
<td align="center">
<xsl:value-of select="degree_indoor_climate"/>
</td>
<td align="center">
<xsl:value-of
select="probability_indoor_climate"/>
</td>
<td align="center">
<xsl:value-of
select="consequence_indoor_climate"/>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of
select="lang_consequential_damage"/>
</td>
<td align="center">
<xsl:value-of
select="degree_consequential_damage"/>
</td>
<td align="center">
<xsl:value-of
select="probability_consequential_damage"/>
</td>
<td align="center">
<xsl:value-of
select="consequence_consequential_damage"/>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_on</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of select="lang_user_gratification"/>
</td>
<td align="center">
<xsl:value-of
select="degree_user_gratification"/>
</td>
<td align="center">
<xsl:value-of
select="probability_user_gratification"/>
</td>
<td align="center">
<xsl:value-of
select="consequence_user_gratification"/>
</td>
</tr>
<tr>
<xsl:attribute name="class">
<xsl:text>row_off</xsl:text>
</xsl:attribute>
<td align="left">
<xsl:value-of
select="lang_residential_environment"/>
</td>
<td align="center">
<xsl:value-of
select="degree_residential_environment"/>
</td>
<td align="center">
<xsl:value-of
select="probability_residential_environment"/>
</td>
<td align="center">
<xsl:value-of
select="consequence_residential_environment"/>
</td>
</tr>
<tr>
<td align="left">
<xsl:value-of
select="lang_authorities_demands"/>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="authorities_demands='1'">
<b>x</b>
</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:template>
====================================================
Index: preference_acl_row.tpl
<!-- $Id: preference_acl_row.tpl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<tr class="{row_color}">
<td>{user}</td>
<td align="center"><input type="checkbox" name="{read}"
value="Y"{read_selected}></td>
<td align="center"><input type="checkbox" name="{add}"
value="Y"{add_selected}></td>
<td align="center"><input type="checkbox" name="{edit}"
value="Y"{edit_selected}></td>
<td align="center"><input type="checkbox" name="{delete}"
value="Y"{delete_selected}></td>
<td align="center"><input type="checkbox" name="{private}"
value="Y"{private_selected}></td>
</tr>
====================================================
Index: owner_filter.xsl
<!-- $Id: owner_filter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="owner_filter">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="owner_name"><xsl:value-of
select="owner_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$owner_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_owner_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_show_all"/></option>
<xsl:apply-templates
select="owner_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="owner_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>
====================================================
Index: p_of_town.xsl
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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 align="left">
<xsl:call-template
name="filter_district"/>
</td>
<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>
<xsl:template match="table_header">
<xsl:variable name="sort_time_created"
select="sort_time_created"/>
<xsl:variable name="sort_part_of_town_id"
select="sort_part_of_town_id"/>
<xsl:variable name="sort_name" select="sort_name"/>
<xsl:variable name="sort_category" select="sort_category"/>
<tr class="th">
<td width="10%" align="right">
<a href="{$sort_part_of_town_id}"
class="th_text"><xsl:value-of select="lang_part_of_town_id"/></a>
</td>
<td width="40%">
<a href="{$sort_name}"
class="th_text"><xsl:value-of select="lang_name"/></a>
</td>
<td width="10%" align="center">
<a href="{$sort_category}"
class="th_text"><xsl:value-of select="lang_category"/></a>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_view"/>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_edit"/>
</td>
<td width="5%" align="center">
<xsl:value-of select="lang_delete"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values">
<xsl:variable name="lang_view_statustext"><xsl:value-of
select="lang_view_statustext"/></xsl:variable>
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
<xsl:variable name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></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="part_of_town_id"/>
</td>
<td align="left">
<xsl:value-of select="name"/>
</td>
<td align="left">
<xsl:value-of select="category"/>
</td>
<td align="center">
<xsl:variable
name="link_view"><xsl:value-of select="link_view"/></xsl:variable>
<a href="{$link_view}"
onMouseover="window.status='{$lang_view_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></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_statustext}';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_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</tr>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<xsl:variable name="edit_url"><xsl:value-of
select="edit_url"/></xsl:variable>
<div align="left">
<form name="form" method="post" action="{$edit_url}">
<table cellpadding="2" cellspacing="2" width="79%"
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>
<xsl:choose>
<xsl:when test="value_part_of_town_id!=''">
<tr >
<td width="25%" align="left">
<xsl:value-of
select="lang_part_of_town_id"/>
</td>
<td width="75%" align="left">
<xsl:value-of
select="value_part_of_town_id"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr >
<td align="left">
<xsl:value-of select="lang_district"/>
</td>
<td align="left">
<xsl:call-template
name="select_district"/>
</td>
</tr>
<tr align="left">
<td valign="top" >
<xsl:value-of select="lang_name"/>
</td>
<td align="left">
<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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr height="50">
<td valign="bottom">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td valign="bottom">
<xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
<input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_apply_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td align="right" valign="bottom">
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cancel_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
</div>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<table cellpadding="2" cellspacing="2" width="79%"
align="center">
<tr class="row_off">
<td width="19%">
<xsl:value-of select="lang_id"/>
</td>
<td width="81%">
<xsl:value-of select="value_id"/>
</td>
</tr>
<tr class="row_on">
<td>
<xsl:value-of select="lang_district"/>
</td>
<td>
<xsl:value-of select="value_district"/>
</td>
</tr>
<tr class="row_off">
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td>
<xsl:value-of select="value_name"/>
</td>
</tr>
<tr height="50">
<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="forms"
name="done" value="{$lang_done}" onMouseover="window.status='Back to the
list.';return true;" onMouseout="window.status='';return true;"/>
</form>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: filter_select.xsl
<!-- $Id: filter_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_select">
<xsl:variable name="lang_filter_statustext"><xsl:value-of
select="lang_filter_statustext"/></xsl:variable>
<xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
<select name="{$filter_name}" class="forms"
onMouseover="window.status='{$lang_filter_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_show_all"/></option>
<xsl:apply-templates select="filter_list"/>
</select>
</xsl:template>
<xsl:template match="filter_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>
====================================================
Index: preference_colspan.tpl
<tr class="th">
<td>{string}</td>
<td align="center">{read_lang}</td>
<td align="center">{add_lang}</td>
<td align="center">{edit_lang}</td>
<td align="center">{delete_lang}</td>
<td align="center">{private_lang}</td>
</tr>
====================================================
Index: owner_select.xsl
<!-- $Id: owner_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="owner_select">
<xsl:variable name="lang_owner_statustext"><xsl:value-of
select="lang_owner_statustext"/></xsl:variable>
<xsl:variable name="owner_name"><xsl:value-of
select="owner_name"/></xsl:variable>
<select name="{$owner_name}" class="forms"
onMouseover="window.status='{$lang_owner_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_show_all"/></option>
<xsl:apply-templates select="owner_list"/>
</select>
</xsl:template>
<xsl:template match="owner_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>
====================================================
Index: cat_filter.xsl
<!-- $Id: cat_filter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="cat_filter">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cat_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_cat"/></option>
<xsl:apply-templates select="cat_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="cat_list">
<xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected='selected'">
<option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: select_permission.xsl
<!-- $Id: select_permission.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="select_permission">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name_permission"><xsl:value-of
select="select_name_permission"/></xsl:variable>
<select name="{$select_name_permission}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_permission_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_permission"/></option>
<xsl:apply-templates
select="permission_list"/>
</select>
</xsl:template>
<xsl:template match="permission_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="descr"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: building_part_select.xsl
<!-- $Id: building_part_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="building_part_select">
<xsl:variable name="lang_building_part_statustext"><xsl:value-of
select="lang_building_part_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_building_part"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_building_part_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_building_part"/></option>
<xsl:apply-templates
select="building_part_list"/>
</select>
</xsl:template>
<xsl:template match="building_part_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>
====================================================
Index: choice.xsl
<!-- $Id: choice.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="choice">
<table cellpadding="2" cellspacing="2" width="80%"
align="left">
<xsl:choose>
<xsl:when test="value_choice!=''">
<tr class="th">
<td class="th_text" width="85%"
align="left">
<xsl:value-of
select="lang_value"/>
</td>
<td class="th_text" width="15%"
align="center">
<xsl:value-of
select="lang_delete_value"/>
</td>
</tr>
<xsl:for-each select="value_choice" >
<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="value"/>
<xsl:text> </xsl:text>
</td>
<td align="center">
<input type="checkbox"
name="values[delete_choice][]" value="{id}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_delete_choice_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_new_value"/>
</td>
<td>
<input type="text"
name="values[new_choice]" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_value_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: chapter_select.xsl
<!-- $Id: chapter_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="chapter_select">
<xsl:variable name="lang_chapter_statustext"><xsl:value-of
select="lang_chapter_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_chapter"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_chapter_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_chapter"/></option>
<xsl:apply-templates select="chapter_list"/>
</select>
</xsl:template>
<xsl:template match="chapter_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>
====================================================
Index: chapter_filter.xsl
<!-- $Id: chapter_filter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="chapter_filter">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_chapter"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_chapter_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_chapter"/></option>
<xsl:apply-templates
select="chapter_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="chapter_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>
====================================================
Index: calendar_info.xsl
<!-- $Id: calendar_info.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="calendar_info">
<xsl:apply-templates select="cal_info"/>
</xsl:template>
<xsl:template match="cal_info">
<!-- calendar stylesheet -->
<link rel="stylesheet" type="text/css" media="all"
href="{stylesheet}" title="win2k-cold-1" />
<!-- main calendar program -->
<script type="text/javascript"
src="{calendar_source}"></script>
<!-- language for the calendar -->
<script type="text/javascript" src="{calendar_lang}"></script>
<!-- the following script defines the Calendar.setup helper
function, which makes
adding a calendar a matter of 1 or 2 lines of code. -->
<script type="text/javascript"
src="{calendar_setup_source}"></script>
</xsl:template>
====================================================
Index: branch_select.xsl
<!-- $Id: branch_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="branch_select">
<xsl:variable name="lang_branch_statustext"><xsl:value-of
select="lang_branch_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_branch"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_branch_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_branch"/></option>
<xsl:apply-templates select="branch_list"/>
</select>
</xsl:template>
<xsl:template match="branch_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>
====================================================
Index: admin.xsl
<!-- $Id: admin.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit_id">
<xsl:apply-templates select="edit_id"/>
</xsl:when>
<xsl:when test="contact_info">
<xsl:apply-templates select="contact_info"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_permission"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list_permission">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="msgbox_data != ''">
<tr>
<td align="left" colspan="4">
<xsl:call-template
name="msgbox"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td>
<xsl:call-template
name="filter_location"/>
</td>
<td align="center">
<xsl:call-template name="cat_filter"/>
</td>
<xsl:choose>
<xsl:when test="is_admin != '' and
grant= 1">
<td align="center">
<xsl:call-template
name="group_filter"/>
</td>
</xsl:when>
</xsl:choose>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
</tr>
<tr>
<td colspan="4" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<tr class="th">
<xsl:choose>
<xsl:when test="values_groups!=''">
<td class="th_text" width="10%"
align="center">
<xsl:value-of
select="lang_groups"/>
</td>
<td>
</td>
</xsl:when>
</xsl:choose>
</tr>
<xsl:apply-templates select="values_groups"/>
<tr class="th">
<xsl:choose>
<xsl:when test="values_users!=''">
<td class="th_text" width="10%"
align="center">
<xsl:value-of
select="lang_users"/>
</td>
<td>
</td>
</xsl:when>
</xsl:choose>
</tr>
<xsl:apply-templates select="values_users"/>
<tr height="50">
<td>
<xsl:variable
name="location"><xsl:value-of select="location"/></xsl:variable>
<xsl:variable
name="processed"><xsl:value-of select="processed"/></xsl:variable>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<INPUT type="hidden" name="location"
value="{$location}" ></INPUT>
<INPUT type="hidden" name="processed"
value="{$processed}" ></INPUT>
<input type="submit"
name="set_permission" value="{$lang_save}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_save_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="values_groups">
<xsl:choose>
<xsl:when test="account_id !=''">
<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>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<tr class="th">
<xsl:call-template
name="value_header"/>
</tr>
<tr>
<xsl:call-template
name="right"/>
</tr>
<tr>
<xsl:call-template name="mask"/>
</tr>
<tr>
<xsl:call-template
name="result"/>
</tr>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="values_users">
<xsl:choose>
<xsl:when test="account_id !=''">
<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>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<tr class="th">
<xsl:call-template
name="value_header"/>
</tr>
<tr>
<xsl:call-template
name="right"/>
</tr>
<tr>
<xsl:call-template name="mask"/>
</tr>
<tr>
<xsl:call-template
name="result"/>
</tr>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="value_header">
<td>
</td>
<td class="th_text" align="center">
<xsl:value-of select="lang_read"/>
</td>
<td class="th_text" align="center">
<xsl:value-of select="lang_add"/>
</td>
<td class="th_text" align="center">
<xsl:value-of select="lang_edit"/>
</td>
<td class="th_text" align="center">
<xsl:value-of select="lang_delete"/>
</td>
<xsl:choose>
<xsl:when test="//permission= 1">
<td class="th_text"
align="center">
<xsl:value-of
select="lang_manage"/>
</td>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="//location='.invoice'
and //permission= 1 ">
<td class="th_text"
align="center">
<xsl:value-of
select="lang_janitor"/>
</td>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_supervisor"/>
</td>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_initials"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="right">
<td align="left">
<xsl:value-of select="lang_right"/>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="read_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="add_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="edit_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="delete_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<xsl:choose>
<xsl:when test="//permission= 1">
<td align="center">
<xsl:choose>
<xsl:when
test="manage_right = 'checked'">
<INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="//location='.invoice'
and //permission= 1 and type= 'users'">
<td align="center">
<xsl:choose>
<xsl:when
test="janitor_right = 'checked'">
<INPUT
type="checkbox" name="values[right][{account_id}_32]" value="32"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[right][{account_id}_32]" value="32"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="supervisor_right = 'checked'">
<INPUT
type="checkbox" name="values[right][{account_id}_64]" value="64"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[right][{account_id}_64]" value="64"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="budget_responsible_right = 'checked'">
<INPUT
type="checkbox" name="values[right][{account_id}_128]" value="128"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[right][{account_id}_128]" value="128"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<INPUT type="text"
size="4" name="initials[{account_id}]" value="{initials}"></INPUT>
</td>
</xsl:when>
<xsl:otherwise>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="mask">
<td align="left">
<xsl:value-of select="lang_mask"/>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="read_mask =
'checked'">
<INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="add_mask =
'checked'">
<INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="edit_mask =
'checked'">
<INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="delete_mask =
'checked'">
<INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<xsl:choose>
<xsl:when test="//permission= 1">
<td align="center">
<xsl:choose>
<xsl:when
test="manage_mask = 'checked'">
<INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="//location='.invoice'
and //permission= 1 and type= 'users'">
<td align="center">
<xsl:choose>
<xsl:when
test="janitor_mask = 'checked'">
<INPUT
type="checkbox" name="values[mask][{account_id}_32]" value="32"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[mask][{account_id}_32]" value="32"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="supervisor_mask = 'checked'">
<INPUT
type="checkbox" name="values[mask][{account_id}_64]" value="64"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[mask][{account_id}_64]" value="64"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="budget_responsible_mask = 'checked'">
<INPUT
type="checkbox" name="values[mask][{account_id}_128]" value="128"
checked="checked"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[mask][{account_id}_128]" value="128"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
</td>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="result">
<td align="left">
<xsl:value-of select="lang_result"/>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="read_result =
'checked'">
<INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="add_result =
'checked'">
<INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="edit_result =
'checked'">
<INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="delete_result =
'checked'">
<INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<xsl:choose>
<xsl:when test="//permission= 1">
<td align="center">
<xsl:choose>
<xsl:when
test="manage_result = 'checked'">
<INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="//location='.invoice'
and //permission= 1 and type= 'users'">
<td align="center">
<xsl:choose>
<xsl:when
test="janitor_result = 'checked'">
<INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="supervisor_result = 'checked'">
<INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="center">
<xsl:choose>
<xsl:when
test="budget_responsible_result = 'checked'">
<INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="" disabled="disabled"></INPUT>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
</td>
</xsl:when>
</xsl:choose>
</xsl:template>
<!-- edit_id -->
<xsl:template match="id_values">
<xsl:variable name="value"><xsl:value-of
select="value"/></xsl:variable>
<xsl:variable name="key_id"><xsl:value-of
select="key_id"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of
select="descr"/></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">
<INPUT type="checkbox"
name="values[select][{$key_id}]" value="true"></INPUT>
</td>
<td align="right">
<xsl:value-of select="descr"/>
</td>
<td>
<INPUT type="hidden"
name="values[field][{$key_id}]" value="{$descr}" ></INPUT>
<INPUT type="text"
name="values[{$key_id}]" value="{$value}" ></INPUT>
</td>
<td align="center">
<xsl:value-of select="remark"/>
</td>
</tr>
</xsl:template>
<xsl:template match="id_table_header">
<tr class="th">
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_select"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="40%">
<xsl:value-of select="lang_value"/>
</td>
<td class="th_text" width="20%" align="center">
<xsl:value-of select="lang_remark"/>
</td>
</tr>
</xsl:template>
<xsl:template match="edit_id">
<table cellpadding="2" cellspacing="2" width="100%"
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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<xsl:apply-templates select="id_table_header"/>
<xsl:apply-templates select="id_values"/>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="contact_info">
<div align="left">
<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 align="left">
<xsl:value-of select="lang_user"/>
</td>
<td align="left">
<xsl:call-template
name="user_id_filter"/>
</td>
</tr>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of select="lang_email"/>
</td>
<td>
<input type="hidden" name="filter"
value="{value_user_id}"></input>
<input type="hidden"
name="values[old_email]" value="{value_old_email}"></input>
<input type="text" size = "30"
name="values[email]" value="{value_email}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_email_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_phone"/>
</td>
<td>
<input type="hidden"
name="values[old_phone]" value="{value_old_phone}"></input>
<input type="text" size = "30"
name="values[phone]" value="{value_phone}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_phone_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_approval_from"/>
</td>
<td align="left">
<input type="hidden"
name="values[old_approval_from]" value="{value_old_approval_from}"></input>
<xsl:variable
name="lang_approval_from_statustext"><xsl:value-of
select="lang_approval_from_statustext"/></xsl:variable>
<select name="values[approval_from]"
class="forms" onMouseover="window.status='{$lang_approval_from_statustext}';
return true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_user"/></option>
<xsl:apply-templates
select="approval_from"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_default_vendor_category"/>
</td>
<td align="left">
<input type="hidden"
name="values[old_default_vendor_category]"
value="{value_old_default_vendor_category}"></input>
<xsl:variable
name="lang_default_vendor_category_statustext"><xsl:value-of
select="lang_default_vendor_category_statustext"/></xsl:variable>
<select
name="values[default_vendor_category]" class="forms"
onMouseover="window.status='{$lang_default_vendor_category_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_cat"/></option>
<xsl:apply-templates
select="vendor_category"/>
</select>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<xsl:template match="approval_from">
<xsl:variable name="user_id"><xsl:value-of
select="user_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$user_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$user_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="vendor_category">
<xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected='selected'">
<option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: admin_location.xsl
<!-- $Id: admin_location.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<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="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:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:call-template name="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"/>
<!-- <xsl:with-param
name="nextmatchs_params"/>
</xsl:call-template> -->
</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>
<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_attribute"/>
</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>
<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="first"/>
</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_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_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>
<xsl:template match="list_config">
<xsl:call-template name="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>
<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: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>
<!-- edit_config -->
<xsl:template match="edit_config">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<xsl:for-each select="location_list" >
<tr>
<td class="th_text"
align="left" >
<xsl:value-of
select="id"/>
<xsl:text> </xsl:text>
<xsl:value-of
select="name"/>
</td>
<td align="left">
<xsl:choose>
<xsl:when
test="selected='selected'">
<input
type="radio" name="values[{//column_name}]" value="{id}" checked="checked"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_config_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input
type="radio" name="values[{//column_name}]" value="{id}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_config_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_standardtext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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>
</xsl: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>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<tr>
<td valign="top">
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="lang_id"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="value_id"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="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="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="10"
name="values[descr]" wrap="virtual" 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>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_standardtext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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>
</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>
</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:template match="table_header_attrib">
<xsl:variable name="sort_sorting"><xsl:value-of
select="sort_sorting"/></xsl:variable>
<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="left">
<xsl:value-of select="lang_type_name"/>
</td>
<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="10%" align="left">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="1%" align="center">
<xsl:value-of select="lang_datatype"/>
</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>
<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_attribute_attribtext"><xsl:value-of
select="lang_delete_attribtext"/></xsl:variable>
<xsl:variable name="lang_edit_attribtext"><xsl:value-of
select="lang_edit_attribtext"/></xsl:variable>
<xsl:variable name="lang_delete_attribtext"><xsl:value-of
select="lang_delete_attribtext"/></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="type_name"/>
</td>
<td align="left">
<xsl:value-of select="column_name"/>
</td>
<td align="left">
<xsl:value-of select="input_text"/>
</td>
<td align="left">
<xsl:value-of select="datatype"/>
</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_attribtext}';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_attribtext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</tr>
</xsl:template>
<!-- add attribute / edit attribute -->
<xsl:template match="edit_attrib">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<tr>
<td valign="top">
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="lang_id"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="value_id"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_column_name"/>
</td>
<td>
<input type="text"
name="values[column_name]" value="{value_column_name}" maxlength="20"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_column_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_input_text"/>
</td>
<td>
<input type="text"
name="values[input_text]" value="{value_input_text}" maxlength="20"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_input_text_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_statustext"/>
</td>
<td>
<textarea cols="60" rows="10"
name="values[statustext]" wrap="virtual" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_statustext_attribtext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
<xsl:value-of
select="value_statustext"/>
</textarea>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_location_type"/>
</td>
<td valign="top">
<xsl:variable
name="lang_entity_statustext"><xsl:value-of
select="lang_entity_statustext"/></xsl:variable>
<xsl:variable
name="select_location_type"><xsl:value-of
select="select_location_type"/></xsl:variable>
<select name="{$select_location_type}"
class="forms" onMouseover="window.status='{$lang_entity_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_location_type"/></option>
<xsl:apply-templates
select="entity_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_datatype"/>
</td>
<td valign="top">
<xsl:variable
name="lang_datatype_statustext"><xsl:value-of
select="lang_datatype_statustext"/></xsl:variable>
<select
name="values[column_info][type]" class="forms"
onMouseover="window.status='{$lang_datatype_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_datatype"/></option>
<xsl:apply-templates
select="datatype_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_precision"/>
</td>
<td>
<input type="text"
name="values[column_info][precision]" value="{value_precision}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_precision_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_scale"/>
</td>
<td>
<input type="text"
name="values[column_info][scale]" value="{value_scale}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_scale_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_default"/>
</td>
<td>
<input type="text"
name="values[column_info][default]" value="{value_default}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_default_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_nullable"/>
</td>
<td valign="top">
<xsl:variable
name="lang_nullable_statustext"><xsl:value-of
select="lang_nullable_statustext"/></xsl:variable>
<select
name="values[column_info][nullable]" class="forms"
onMouseover="window.status='{$lang_nullable_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_nullable"/></option>
<xsl:apply-templates
select="nullable_list"/>
</select>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_lookup_form"/>
</td>
<td>
<xsl:choose>
<xsl:when
test="value_lookup_form = 1">
<input
type="checkbox" name="values[lookup_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_lookup_form_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="values[lookup_form]" value="1"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_lookup_form_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_list"/>
</td>
<td>
<xsl:choose>
<xsl:when
test="value_list = 1">
<input
type="checkbox" name="values[list]" value="1" checked="checked"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_list_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="values[list]" value="1"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_list_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<xsl:choose>
<xsl:when test="multiple_choice != ''">
<tr>
<td valign="top">
<xsl:value-of
select="lang_choice"/>
</td>
<td align="right">
<xsl:call-template
name="choice"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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>
</form>
<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"
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>
</xsl:template>
<!-- entity_list -->
<xsl:template match="entity_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>
<!-- datatype_list -->
<xsl:template match="datatype_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>
<!-- nullable_list -->
<xsl:template match="nullable_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>
<xsl:template name="choice">
<table cellpadding="2" cellspacing="2" width="80%"
align="left">
<xsl:choose>
<xsl:when test="value_choice!=''">
<tr class="th">
<td class="th_text" width="85%"
align="left">
<xsl:value-of
select="lang_value"/>
</td>
<td class="th_text" width="15%"
align="center">
<xsl:value-of
select="lang_delete_value"/>
</td>
</tr>
<xsl:for-each select="value_choice" >
<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="value"/>
<xsl:text> </xsl:text>
</td>
<td align="center">
<input type="checkbox"
name="values[delete_choice][]" value="{id}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_delete_choice_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_new_value"/>
</td>
<td>
<input type="text"
name="values[new_choice]" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_value_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: app_delete.xsl
<!-- $Id: app_delete.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_delete">
<xsl:apply-templates select="delete"/>
</xsl:template>
<xsl:template match="delete">
<table cellpadding="2" cellspacing="2" align="center">
<tr>
<td align="center"
colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
</tr>
<tr>
<td>
<xsl:variable
name="delete_action"><xsl:value-of select="delete_action"/></xsl:variable>
<xsl:variable
name="lang_yes"><xsl:value-of select="lang_yes"/></xsl:variable>
<form method="POST"
action="{$delete_action}">
<input type="submit"
class="forms" name="confirm" value="{$lang_yes}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_yes_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
<td align="right">
<xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
<xsl:variable
name="lang_no"><xsl:value-of select="lang_no"/></xsl:variable>
<form method="POST"
action="{$done_action}">
<input type="submit"
class="forms" name="cancel" value="{$lang_no}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_no_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: app_data.xsl
<xsl:template name="dummy">
</xsl:template>
====================================================
Index: category.xsl
<!-- $Id: category.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<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"/>
<!-- <xsl:with-param
name="nextmatchs_params"/>
</xsl:call-template> -->
</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>
<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="20%" align="center">
<xsl:value-of select="lang_descr"/>
</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>
<xsl:template match="values">
<xsl:variable name="lang_view_categorytext"><xsl:value-of
select="lang_view_categorytext"/></xsl:variable>
<xsl:variable name="lang_edit_categorytext"><xsl:value-of
select="lang_edit_categorytext"/></xsl:variable>
<xsl:variable name="lang_delete_categorytext"><xsl:value-of
select="lang_delete_categorytext"/></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="first"/>
</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_categorytext}';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_categorytext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</tr>
</xsl: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_categorytext"/>
<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_categorytext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of select="lang_id"/>
</td>
<td>
<xsl:choose>
<xsl:when test="value_id != ''">
<xsl:value-of
select="value_id"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
name="values[id]" value="{value_id}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_id_categorytext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="10"
name="values[descr]" wrap="virtual" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_descr_categorytext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
<xsl:value-of
select="value_descr"/>
</textarea>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_categorytext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_categorytext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
====================================================
Index: dim_d_select.xsl
<!-- $Id: dim_d_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="dim_d_select">
<xsl:variable name="lang_dim_d_statustext"><xsl:value-of
select="lang_dim_d_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_dim_d"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_dim_d_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_dim_d"/></option>
<xsl:apply-templates select="dim_d_list"/>
</select>
</xsl:template>
<xsl:template match="dim_d_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>
====================================================
Index: filter_member_of.xsl
<!-- $Id: filter_member_of.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_member_of">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="member_of_name"><xsl:value-of
select="member_of_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$member_of_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cat_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_member"/></option>
<xsl:apply-templates
select="member_of_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="member_of_list">
<xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected='selected'">
<option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: filter_location.xsl
<!-- $Id: filter_location.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_location">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name_location"><xsl:value-of
select="select_name_location"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<xsl:for-each select="hidden_vars" >
<xsl:variable
name="name"><xsl:value-of select="name"/></xsl:variable>
<xsl:variable
name="value"><xsl:value-of select="value"/></xsl:variable>
<INPUT type="hidden"
name="{$name}" value="{$value}" ></INPUT>
</xsl:for-each>
<select name="{$select_name_location}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_location_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_location"/></option>
<xsl:apply-templates
select="location_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="location_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="descr"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: filter_filter.xsl
<!-- $Id: filter_filter.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_filter">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$filter_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_filter_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_show_all"/></option>
<xsl:apply-templates
select="filter_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="filter_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>
====================================================
Index: filter_permission.xsl
<!-- $Id: filter_permission.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_permission">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name_permission"><xsl:value-of
select="select_name_permission"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_name_permission}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_permission_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_permission"/></option>
<xsl:apply-templates
select="permission_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="permission_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="descr"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: filter_part_of_town.xsl
<!-- $Id: filter_part_of_town.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_part_of_town">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name_part_of_town"><xsl:value-of
select="select_name_part_of_town"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_name_part_of_town}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_town_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_part_of_town"/></option>
<xsl:apply-templates
select="part_of_town_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="part_of_town_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>
====================================================
Index: filter_district.xsl
<!-- $Id: filter_district.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_district">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_district_name"><xsl:value-of
select="select_district_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$select_district_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_district_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_district"/></option>
<xsl:apply-templates
select="district_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="district_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>
====================================================
Index: date_search.xsl
<!-- $Id: date_search.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:apply-templates select="date_search"/>
</xsl:template>
<xsl:template match="date_search">
<script LANGUAGE="JavaScript">
function ExchangeDate(thisform)
{
opener.document.search.start_date.value =
thisform.elements[0].value;
opener.document.search.end_date.value =
thisform.elements[1].value;
window.close()
}
</script>
<form method="post" name="form" action="">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td valign="top">
<xsl:value-of select="lang_start_date"/>
</td>
<td>
<input type="text" id="start_date"
name="start_date" size="10" value="{value_start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_start_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="start_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_start"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_end_date"/>
</td>
<td>
<input type="text" id="end_date"
name="end_date" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_end_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="end_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_end"/>
</script>
</td>
</tr>
<tr>
<td class="small_text" valign="top">
<xsl:variable
name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<input type="button" name="convert"
value="{$lang_submit}" onClick="ExchangeDate(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_submit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
</xsl:template>
====================================================
Index: custom.xsl
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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 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:call-template name="table_header"/>
<xsl:call-template name="values"/>
<xsl:apply-templates select="table_add"/>
</table>
</xsl:template>
<xsl:template name="table_header">
<tr class="th">
<xsl:for-each select="table_header" >
<td class="th_text" width="{with}"
align="{align}">
<xsl:choose>
<xsl:when
test="sort_link!=''">
<a
href="{sort}" onMouseover="window.status='{header}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="header"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="header"/>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</tr>
</xsl:template>
<xsl:template name="values">
<xsl:for-each select="values" >
<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>
<xsl:for-each select="row" >
<xsl:choose>
<xsl:when test="link">
<td class="small_text"
align="center">
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td class="small_text"
align="left">
<xsl:value-of
select="value"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<xsl:variable name="edit_url"><xsl:value-of
select="edit_url"/></xsl:variable>
<div align="left">
<form name="form" method="post" action="{$edit_url}">
<table cellpadding="2" cellspacing="2" width="50%"
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>
<xsl:choose>
<xsl:when test="value_custom_id!=''">
<tr >
<td width="25%" align="left">
<xsl:value-of
select="lang_custom_id"/>
</td>
<td width="75%" align="left">
<xsl:value-of
select="value_custom_id"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr align="left">
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td align="left">
<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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr align="left">
<td valign="top" >
<xsl:value-of select="lang_sql"/>
</td>
<td align="left">
<textarea cols="60" rows="6"
name="values[sql]" wrap="virtual" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_sql_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
<xsl:value-of
select="value_sql"/>
</textarea>
</td>
</tr>
<xsl:choose>
<xsl:when test="value_custom_id != ''">
<tr>
<td valign="top">
<xsl:value-of
select="lang_columns"/>
</td>
<td align="right">
<xsl:call-template
name="columns"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr height="50">
<td valign="bottom">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td valign="bottom">
<xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
<input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_apply_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td align="right" valign="bottom">
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cancel_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
</div>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td class="small_text" valign="top"
align="right">
<xsl:variable
name="link_excel"><xsl:value-of select="link_excel"/></xsl:variable>
<xsl:variable
name="lang_excel_help"><xsl:value-of select="lang_excel_help"/></xsl:variable>
<xsl:variable
name="lang_excel"><xsl:value-of select="lang_excel"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_excel}','','')"
onMouseOver="overlib('{$lang_excel_help}', CAPTION, '{$lang_excel}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_excel"/></a>
</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:call-template name="table_header"/>
<xsl:call-template name="values"/>
<tr height="50">
<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="forms" name="done" value="{$lang_done}" onMouseover="window.status='Back
to the list.';return true;" onMouseout="window.status='';return true;"/>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="columns">
<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>
<table cellpadding="2" cellspacing="2" width="100%"
align="left">
<xsl:choose>
<xsl:when test="cols!=''">
<tr class="th">
<td class="th_text" width="85%"
align="left">
<xsl:value-of
select="lang_col_name"/>
</td>
<td class="th_text" width="85%"
align="left">
<xsl:value-of
select="lang_col_descr"/>
</td>
<td class="th_text" width="15%"
align="center">
<xsl:value-of
select="lang_sorting"/>
</td>
<td class="th_text" width="15%"
align="center">
<xsl:value-of
select="lang_delete_column"/>
</td>
</tr>
<xsl:for-each select="cols" >
<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"/>
<xsl:text> </xsl:text>
</td>
<td align="left">
<xsl:value-of select="descr"/>
<xsl:text> </xsl:text>
</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">
<input type="checkbox"
name="values[delete_cols][]" value="{id}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_delete_cols_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
</tr>
<tr>
<td>
<input type="text"
name="values[new_name]" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td>
<input type="text"
name="values[new_descr]" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_new_descr_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</xsl:template>
====================================================
Index: columns.xsl
<!-- $Id: columns.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="columns">
<xsl:apply-templates select="columns"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="columns">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of select="lang_columns"/>
</td>
<td>
<xsl:variable
name="lang_columns_statustext"><xsl:value-of
select="lang_columns_statustext"/></xsl:variable>
<select
name="values[columns][]" class="forms" multiple="multiple"
onMouseover="window.status='{$lang_columns_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_none"/></option>
<xsl:apply-templates
select="column_list"/>
</select>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
</table>
</div>
</xsl:template>
<xsl:template match="column_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>
====================================================
Index: drawing.xsl
<!-- $Id: drawing.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_drawing"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list_drawing">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<td align="left">
<xsl:call-template
name="status_filter"/>
</td>
<td align="center">
<xsl:call-template
name="user_id_filter"/>
</td>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
</tr>
<tr>
<td colspan="4" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:call-template name="table_header"/>
<xsl:choose>
<xsl:when test="values">
<xsl:call-template
name="values"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="table_add !=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</table>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form ENCTYPE="multipart/form-data" method="post"
name="form" action="{$form_action}">
<xsl:choose>
<xsl:when test="value_drawing_name!=''">
<tr>
<td valign="top">
<xsl:value-of
select="lang_drawing_name"/>
<input type="hidden"
name="values[drawing_name_orig]" value="{value_drawing_name}" />
</td>
<td>
<xsl:value-of
select="value_drawing_name"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_update_file"/>
</td>
<td>
<input type="file" size="50"
name="drawing_file" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_version"/>
</td>
<td>
<input type="text"
name="values[version]" value="{value_version}" size="12"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_version_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_title"/>
</td>
<td>
<input type="text" name="values[title]"
value="{value_title}" onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_title_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="6"
name="values[descr]" wrap="virtual" 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>
<xsl:value-of
select="value_descr"/>
</textarea>
</td>
</tr>
<xsl:call-template name="vendor_form"/>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="location_type='form'">
<xsl:call-template
name="location_form"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="location_view"/>
</xsl:otherwise>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_floor_id"/>
</td>
<td>
<input type="text"
name="values[floor_id]" value="{value_floor_id}" size="12"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_floor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<td>
<xsl:call-template
name="user_id_select"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<td>
<xsl:call-template
name="status_select"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_drawing_date"/>
</td>
<td>
<input type="text" id="drawing_date"
name="drawing_date" size="10" value="{value_drawing_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_drawing_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="drawing_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of select="calendar_setup"/>
</script>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_branch"/>
</td>
<td>
<xsl:variable
name="lang_branch_statustext"><xsl:value-of
select="lang_branch_statustext"/></xsl:variable>
<select
name="values[branch_id]" class="forms"
onMouseover="window.status='{$lang_branch_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_no_branch"/></option>
<xsl:apply-templates
select="branch_list"/>
</select>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
<xsl:template match="branch_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>
<xsl:template match="table_header_history">
<tr class="th">
<td class="th_text" width="20%" align="left">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_user"/>
</td>
<td class="th_text" width="30%" align="left">
<xsl:value-of select="lang_action"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="record_history">
<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="value_date"/>
</td>
<td align="left">
<xsl:value-of select="value_user"/>
</td>
<td align="left">
<xsl:value-of select="value_action"/>
</td>
<td align="left">
<xsl:value-of select="value_new_value"/>
</td>
</tr>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td valign="top">
<xsl:value-of
select="lang_drawing_name"/>
</td>
<td>
<xsl:value-of
select="value_drawing_name"/>
</td>
</tr>
<tr>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_version"/>
</td>
<td>
<xsl:value-of select="value_version"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_title"/>
</td>
<td>
<xsl:value-of select="value_title"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<xsl:value-of select="value_descr"/>
</td>
</tr>
<xsl:call-template name="vendor_view"/>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<xsl:for-each select="cat_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<xsl:call-template name="location_view"/>
<tr>
<td valign="top">
<xsl:value-of select="lang_floor_id"/>
</td>
<td>
<xsl:value-of select="value_floor_id"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<xsl:for-each select="user_list" >
<xsl:choose>
<xsl:when test="selected">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<xsl:for-each select="status_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_drawing_date"/>
</td>
<td>
<xsl:value-of
select="value_drawing_date"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_branch"/>
</td>
<xsl:for-each select="branch_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr height="50">
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit" class="forms"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_edit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
====================================================
Index: filter_submodule.xsl
<!-- $Id: filter_submodule.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="filter_submodule">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="select_name_submodule"><xsl:value-of
select="select_name_submodule"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<xsl:for-each select="hidden_vars" >
<xsl:variable
name="name"><xsl:value-of select="name"/></xsl:variable>
<xsl:variable
name="value"><xsl:value-of select="value"/></xsl:variable>
<INPUT type="hidden"
name="{$name}" value="{$value}" ></INPUT>
</xsl:for-each>
<select name="{$select_name_submodule}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_submodule_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_submodule"/></option>
<xsl:apply-templates
select="submodule_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="submodule_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="descr"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: cat_select.xsl
<!-- $Id: cat_select.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="cat_select">
<xsl:variable name="lang_cat_statustext"><xsl:value-of
select="lang_cat_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
<select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_cat_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_cat"/></option>
<xsl:apply-templates select="cat_list"/>
</select>
</xsl:template>
<xsl:template match="cat_list">
<xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected='selected'">
<option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
====================================================
Index: project.xsl
<!-- $Id: project.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_project"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list_project">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<td align="left">
<xsl:call-template
name="status_filter"/>
</td>
<td align="center">
<xsl:call-template
name="user_id_filter"/>
</td>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
<td class="small_text" valign="top"
align="left">
<xsl:variable
name="link_excel"><xsl:value-of select="link_excel"/></xsl:variable>
<xsl:variable
name="lang_excel_help"><xsl:value-of select="lang_excel_help"/></xsl:variable>
<xsl:variable
name="lang_excel"><xsl:value-of select="lang_excel"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_excel}','','')"
onMouseOver="overlib('{$lang_excel_help}', CAPTION, '{$lang_excel}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_excel"/></a>
</td>
</tr>
<tr>
<td colspan="6" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:call-template name="table_header"/>
<xsl:choose>
<xsl:when test="values">
<xsl:call-template
name="values"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="table_add !=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</table>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<!-- <xsl:call-template name="calendar_info"/> -->
<div align="left">
<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>
<xsl:choose>
<xsl:when test="value_project_id!=''">
<td valign="top">
<xsl:variable
name="add_workorder_action"><xsl:value-of
select="add_workorder_action"/>&project_id=<xsl:value-of
select="value_project_id"/></xsl:variable>
<xsl:variable
name="lang_add_workorder"><xsl:value-of
select="lang_add_workorder"/></xsl:variable>
<form method="post"
action="{$add_workorder_action}">
<input type="submit"
class="forms" name="add_workorder" value="{$lang_add_workorder}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_add_workorder_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</xsl:when>
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<xsl:choose>
<xsl:when test="value_project_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_copy_project"/>
</td>
<td>
<input type="checkbox"
name="values[copy_project]" value="True" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_copy_project_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_project_id"/>
</td>
<td>
<xsl:value-of
select="value_project_id"/>
</td>
</tr>
<tr>
<td valign="top">
<a
href="{link_select_request}"
onMouseover="window.status='{lang_select_request_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_select_request"/></a>
</td>
<td>
<xsl:choose>
<xsl:when
test="value_request_id!=''">
<table>
<xsl:for-each
select="value_request_id" >
<tr>
<td
class="th_text" align="left" >
<xsl:variable name="link_request"><xsl:value-of
select="//link_request"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a href="{$link_request}"
onMouseover="window.status='{//lang_request_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
<input type="checkbox" name="values[delete_request][]" value="{id}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="//lang_delete_request_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="value_ticket_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_ticket"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_ticket_id" >
<xsl:variable name="link_ticket"><xsl:value-of
select="//link_ticket"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_ticket}"
onMouseover="window.status='{//lang_ticket_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td>
<input type="hidden"
name="values[origin]" value="{value_origin}"></input>
<input type="hidden"
name="values[origin_id]" value="{value_origin_id}"></input>
<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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="6"
name="values[descr]" wrap="virtual" 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>
<xsl:value-of
select="value_descr"/>
</textarea>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<td>
<xsl:call-template name="cat_select"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="location_type='form'">
<xsl:call-template
name="location_form"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="location_view"/>
</xsl:otherwise>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of
select="lang_power_meter"/>
</td>
<td>
<input type="text"
name="values[power_meter]" value="{value_power_meter}" size="12"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_power_meter_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_charge_tenant"/>
</td>
<td>
<xsl:choose>
<xsl:when test="charge_tenant='1'">
<input type="checkbox"
name="values[charge_tenant]" value="1" checked="checked"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_charge_tenant_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox"
name="values[charge_tenant]" value="1" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_charge_tenant_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_budget"/>
</td>
<td>
<input type="text"
name="values[budget]" value="{value_budget}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_budget_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_reserve"/>
</td>
<td>
<input type="text"
name="values[reserve]" value="{value_reserve}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_reserve_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_reserve_remainder"/>
</td>
<td>
<xsl:value-of
select="value_reserve_remainder"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
<xsl:text> </xsl:text> ( <xsl:value-of
select="value_reserve_remainder_percent"/>
<xsl:text> % )</xsl:text>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_actual_cost"/>
</td>
<td>
<xsl:value-of
select="sum_workorder_actual_cost"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td class="th_text" valign="top">
<xsl:value-of
select="lang_workorder_id"/>
</td>
<xsl:choose>
<xsl:when
test="sum_workorder_budget=''">
<td class="th_text">
<xsl:value-of
select="lang_no_workorders"/>
</td>
</xsl:when>
<xsl:otherwise>
<td>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:apply-templates
select="table_header_workorder_budget"/>
<xsl:apply-templates
select="workorder_budget"/>
<tr class="th">
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="lang_sum"/>
</td>
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="sum_workorder_budget"/>
</td>
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="sum_workorder_calculation"/>
</td>
<td>
</td>
</tr>
</table>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<td>
<xsl:call-template
name="user_id_select"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<td>
<xsl:call-template
name="status_select"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_start_date"/>
</td>
<td>
<input type="text" id="start_date"
name="start_date" size="10" value="{value_start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_start_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="start_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_start"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_end_date"/>
</td>
<td>
<input type="text" id="end_date"
name="end_date" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_end_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="end_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_end"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_branch"/>
</td>
<td>
<xsl:variable
name="lang_branch_statustext"><xsl:value-of
select="lang_branch_statustext"/></xsl:variable>
<select name="values[branch][]"
class="forms" multiple="multiple"
onMouseover="window.status='{$lang_branch_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates
select="branch_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_other_branch"/>
</td>
<td>
<input type="text"
name="values[other_branch]" value="{value_other_branch}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_other_branch_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_key_fetch"/>
</td>
<td>
<xsl:variable
name="lang_key_fetch_statustext"><xsl:value-of
select="lang_key_fetch_statustext"/></xsl:variable>
<select
name="values[key_fetch]" class="forms"
onMouseover="window.status='{$lang_key_fetch_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_no_key_fetch"/></option>
<xsl:apply-templates
select="key_fetch_list"/>
</select>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_key_deliver"/>
</td>
<td>
<xsl:variable
name="lang_key_deliver_statustext"><xsl:value-of
select="lang_key_deliver_statustext"/></xsl:variable>
<select
name="values[key_deliver]" class="forms"
onMouseover="window.status='{$lang_key_deliver_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_no_key_deliver"/></option>
<xsl:apply-templates
select="key_deliver_list"/>
</select>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_key_responsible"/>
</td>
<td>
<xsl:variable
name="lang_key_responsible_statustext"><xsl:value-of
select="lang_key_responsible_statustext"/></xsl:variable>
<select
name="values[key_responsible]" class="forms"
onMouseover="window.status='{$lang_key_responsible_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option
value=""><xsl:value-of select="lang_no_key_responsible"/></option>
<xsl:apply-templates
select="key_responsible_list"/>
</select>
</td>
</tr>
<tr>
<xsl:choose>
<xsl:when test="need_approval='yes'">
<td valign="top">
<xsl:value-of
select="lang_ask_approval"/>
</td>
<td>
<input type="checkbox"
name="values[approval]" value="True" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_ask_approval_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<input type="text"
name="values[mail_address]" value="{value_approval_mail_address}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_ask_approval_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</xsl:when>
</xsl:choose>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="center">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
<xsl:template match="workorder_budget">
<xsl:variable name="workorder_link"><xsl:value-of
select="//workorder_link"/>&id=<xsl:value-of
select="workorder_id"/></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">
<a
href="{$workorder_link}"><xsl:value-of select="workorder_id"/></a>
</td>
<td align="right">
<xsl:value-of select="budget"/>
</td>
<td align="right">
<xsl:value-of select="calculation"/>
</td>
<td align="left">
<xsl:value-of select="vendor_name"/>
</td>
</tr>
</xsl:template>
<xsl:template match="branch_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>
<xsl:template match="key_responsible_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>
<xsl:template match="key_fetch_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>
<xsl:template match="key_deliver_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>
<xsl:template match="table_header_history">
<tr class="th">
<td class="th_text" width="20%" align="left">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_user"/>
</td>
<td class="th_text" width="30%" align="left">
<xsl:value-of select="lang_action"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="record_history">
<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="value_date"/>
</td>
<td align="left">
<xsl:value-of select="value_user"/>
</td>
<td align="left">
<xsl:value-of select="value_action"/>
</td>
<td align="left">
<xsl:value-of select="value_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="table_header_workorder_budget">
<tr class="th">
<td class="th_text" width="4%" align="right">
<xsl:value-of
select="lang_workorder_id"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_budget"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of
select="lang_calculation"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_vendor"/>
</td>
</tr>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div align="left">
<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>
<xsl:value-of select="lang_project_id"/>
</td>
<td>
<xsl:value-of
select="value_project_id"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="value_request_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_request"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_request_id" >
<xsl:variable name="link_request"><xsl:value-of
select="//link_request"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_request}"
onMouseover="window.status='{//lang_request_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="value_ticket_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_ticket"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_ticket_id" >
<xsl:variable name="link_ticket"><xsl:value-of
select="//link_ticket"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_ticket}"
onMouseover="window.status='{//lang_ticket_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of select="lang_name"/>
</td>
<td>
<xsl:value-of select="value_name"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<xsl:value-of select="value_descr"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_category"/>
</td>
<xsl:for-each select="cat_list" >
<xsl:choose>
<xsl:when
test="selected='selected'">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<xsl:call-template name="location_view"/>
<xsl:choose>
<xsl:when test="contact_phone !=''">
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_contact_phone"/>
</td>
<td align="left">
<xsl:value-of
select="contact_phone"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td valign="top">
<xsl:value-of
select="lang_power_meter"/>
</td>
<td>
<xsl:value-of
select="value_power_meter"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_charge_tenant"/>
</td>
<td>
<xsl:choose>
<xsl:when test="charge_tenant='1'">
X
</xsl:when>
</xsl:choose>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_budget"/>
</td>
<td>
<xsl:value-of select="value_budget"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_reserve"/>
</td>
<td>
<xsl:value-of select="value_reserve"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_reserve_remainder"/>
</td>
<td>
<xsl:value-of
select="value_reserve_remainder"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
<xsl:text> </xsl:text> ( <xsl:value-of
select="value_reserve_remainder_percent"/>
<xsl:text> % )</xsl:text>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_actual_cost"/>
</td>
<td>
<xsl:value-of
select="sum_workorder_actual_cost"/>
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
<tr>
<td class="th_text" valign="top">
<xsl:value-of
select="lang_workorder_id"/>
</td>
<xsl:choose>
<xsl:when
test="sum_workorder_budget=''">
<td class="th_text">
<xsl:value-of
select="lang_no_workorders"/>
</td>
</xsl:when>
<xsl:otherwise>
<td>
<table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:apply-templates
select="table_header_workorder_budget"/>
<xsl:apply-templates
select="workorder_budget"/>
<tr class="th">
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="lang_sum"/>
</td>
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="sum_workorder_budget"/>
</td>
<td class="th_text"
width="5%" align="right">
<xsl:value-of
select="sum_workorder_calculation"/>
</td>
<td>
</td>
</tr>
</table>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
</td>
<xsl:for-each select="user_list" >
<xsl:choose>
<xsl:when test="selected">
<td>
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td>
<xsl:value-of select="lang_status"/>
</td>
<xsl:for-each select="status_list" >
<xsl:choose>
<xsl:when
test="selected">
<td>
<xsl:value-of select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_start_date"/>
</td>
<td>
<xsl:value-of
select="value_start_date"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_end_date"/>
</td>
<td>
<xsl:value-of select="value_end_date"/>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_branch"/>
</td>
<td>
<xsl:for-each
select="branch_list[selected='selected']" >
<xsl:value-of select="name"/>
<xsl:if test="position() !=
last()">, </xsl:if>
</xsl:for-each>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_other_branch"/>
</td>
<td>
<xsl:value-of
select="value_other_branch"/>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_key_fetch"/>
</td>
<td>
<xsl:for-each select="key_fetch_list" >
<xsl:choose>
<xsl:when
test="selected">
<xsl:value-of
select="name"/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_key_deliver"/>
</td>
<td>
<xsl:for-each select="key_deliver_list"
>
<xsl:choose>
<xsl:when
test="selected">
<xsl:value-of
select="name"/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_key_responsible"/>
</td>
<td>
<xsl:for-each
select="key_responsible_list" >
<xsl:choose>
<xsl:when
test="selected">
<xsl:value-of
select="name"/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
<tr height="50">
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit" class="forms"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_edit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table width="80%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="record_history"/>
</xsl:otherwise>
</xsl:choose>
</table>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
</xsl:template>
====================================================
Index: values.xsl
<xsl:template name="values">
<xsl:for-each select="values" >
<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>
<xsl:for-each select="row" >
<xsl:choose>
<xsl:when test="link">
<xsl:choose>
<xsl:when
test="link='dummy'">
<td>
</td>
</xsl:when>
<xsl:otherwise>
<td
class="small_text" align="center">
<a href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="overlib">
<td class="small_text"
align="center">
<a
href="javascript:void()"
onMouseOver="overlib('{statustext}', CAPTION, '{text}')"
onMouseOut="nd()">
<xsl:value-of
select="text"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td class="small_text"
align="left">
<xsl:value-of
select="value"/>
<xsl:choose>
<xsl:when test="//lookup!=''">
<xsl:if test="position() = last()">
<!-- <td class="small_text" valign="center"> -->
<xsl:variable name="select_action"><xsl:value-of
select="lookup_action"/></xsl:variable>
<xsl:variable name="lang_select"><xsl:value-of
select="//lang_select"/></xsl:variable>
<form method="post" action="{$select_action}">
<input type="submit" class="forms" name="select"
value="{$lang_select}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_select_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
<!-- </td> -->
</xsl:if>
</xsl:when>
</xsl:choose>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:template>
====================================================
Index: location_view.xsl
<!-- $Id: location_view.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="location_view">
<xsl:apply-templates select="location_data"/>
</xsl:template>
<xsl:template match="location_data">
<xsl:for-each select="location" >
<xsl:choose>
<xsl:when test="value !=''">
<tr>
<td class="th_text"
width="{with}" align="left">
<xsl:value-of
select="name"/>
</td>
<td align="left">
<xsl:choose>
<xsl:when test="input_type !='hidden'">
<xsl:choose>
<xsl:when test="query_link !=''">
<xsl:variable name="query_link" select="query_link"/>
<a href="{$query_link}" class="th_text"><xsl:value-of
select="value"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
<xsl:for-each
select="extra" >
<xsl:choose>
<xsl:when test="input_type !='hidden'">
<xsl:text> </xsl:text>
<xsl:value-of select="value"/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
====================================================
Index: invoice.xsl
<!-- $Id: invoice.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="add">
<xsl:apply-templates select="add"/>
</xsl:when>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="import">
<xsl:apply-templates select="import"/>
</xsl:when>
<xsl:when test="export">
<xsl:apply-templates select="export"/>
</xsl:when>
<xsl:when test="rollback">
<xsl:apply-templates select="rollback"/>
</xsl:when>
<xsl:when test="debug">
<xsl:apply-templates select="debug"/>
</xsl:when>
<xsl:when test="edit_period">
<xsl:apply-templates select="edit_period"/>
</xsl:when>
<xsl:when test="list_voucher">
<xsl:apply-templates select="list_voucher"/>
</xsl:when>
<xsl:when test="list_voucher_paid">
<xsl:apply-templates
select="list_voucher_paid"/>
</xsl:when>
<xsl:when test="consume">
<xsl:apply-templates select="consume"/>
</xsl:when>
<xsl:when test="remark">
<xsl:apply-templates select="remark"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_invoice_sub"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="edit_period">
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" action="{$form_action}">
<div align="center">
<table width="100%" cellpadding="2" cellspacing="2"
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>
<xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
<select name="{$select_name}" class="forms" >
<xsl:apply-templates
select="period_list"/>
</select>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit" name="submit"
value="{$lang_save}" >
</input>
</td>
</tr>
</table>
</div>
</form>
</xsl:template>
<xsl:template match="period_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>
<xsl:template match="remark">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td colspan="2" align="center">
<xsl:value-of select="message"/>
</td>
</tr>
<tr>
<td align="center">
<textarea cols="60" rows="15"
name="remark" readonly="readonly" wrap="virtual"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_content_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
<xsl:value-of select="remark"/>
</textarea>
</td>
</tr>
</table>
</xsl:template>
<!-- list_voucher -->
<xsl:template match="list_voucher">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<xsl:variable name="check_source"><xsl:value-of
select="check_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$check_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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>
<xsl:call-template name="cat_filter"/>
</td>
<td align="center">
<xsl:call-template
name="user_lid_filter"/>
</td>
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates
select="table_header_list_voucher"/>
<xsl:choose>
<xsl:when
test="values_list_voucher[voucher_id]">
<xsl:apply-templates
select="values_list_voucher"/>
</xsl:when>
</xsl:choose>
<xsl:variable name="img_check"><xsl:value-of
select="img_check"/></xsl:variable>
<tr>
<td></td>
<td></td>
<td></td>
<td class="small_text" align="right">
<xsl:value-of select="sum"/>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td align="center">
<a
href="javascript:check_all_radio('sign_none')"><img src="{$img_check}"
border="0" height="16" width="21" alt="{lang_select_all}"/></a>
</td>
<td align="center">
<a
href="javascript:check_all_radio('sign_janitor')"><img src="{$img_check}"
border="0" height="16" width="21" alt="{lang_select_all}"/></a>
</td>
<td align="center">
<a
href="javascript:check_all_radio('sign_supervisor')"><img src="{$img_check}"
border="0" height="16" width="21" alt="{lang_select_all}"/></a>
</td>
<td align="center">
<a
href="javascript:check_all_radio('sign_budget_responsible')"><img
src="{$img_check}" border="0" height="16" width="21"
alt="{lang_select_all}"/></a>
</td>
<td align="right">
<a
href="javascript:check_all_checkbox('values[transfer]')"><img
src="{$img_check}" border="0" height="16" width="21"
alt="{lang_select_all}"/></a>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
name="values[save][0]" value="{$lang_save}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_save_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
<xsl:choose>
<xsl:when test="table_add_invoice !=''">
<xsl:apply-templates
select="table_add_invoice"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="table_add_invoice">
<table align = "left">
<tr>
<td height="50" align="left" valign="top">
<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=""
value="{$lang_add}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_add_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="table_header_list_voucher">
<xsl:variable name="sort_voucher"><xsl:value-of
select="sort_voucher"/></xsl:variable>
<xsl:variable name="sort_voucher_date"><xsl:value-of
select="sort_voucher_date"/></xsl:variable>
<xsl:variable name="sort_vendor_id"><xsl:value-of
select="sort_vendor_id"/></xsl:variable>
<tr class="th">
<td class="th_text" width="5%" align="right">
<a href="{$sort_voucher}"><xsl:value-of
select="lang_voucher"/></a>
</td>
<td class="th_text" width="2%" align="right">
<a
href="{$sort_voucher_date}"><xsl:value-of select="lang_voucher_date"/></a>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_days"/>
</td>
<td class="th_text" width="8%" align="right">
<xsl:value-of select="lang_sum"/>
</td>
<td class="th_text" width="4%" align="right">
<a
href="{$sort_vendor_id}"><xsl:value-of select="lang_vendor_id"/></a>
</td>
<td class="th_text" width="3%" align="right">
<xsl:value-of
select="lang_num_sub_invoice"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_type"/>
</td>
<td class="th_text" width="3%" align="right">
<xsl:value-of select="lang_period"/>
</td>
<td class="th_text" width="3%" align="right">
<xsl:value-of select="lang_kredit"/>
</td>
<td class="th_text" width="3%" align="right">
<xsl:value-of select="lang_none"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_janitor"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_supervisor"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_transfer"/>
</td>
<xsl:choose>
<xsl:when test="//acl_delete!=''">
<td class="th_text" width="5%"
align="center">
<xsl:value-of
select="lang_delete"/>
</td>
</xsl:when>
</xsl:choose>
</tr>
</xsl:template>
<xsl:template match="values_list_voucher">
<xsl:variable name="counter"><xsl:value-of
select="counter"/></xsl:variable>
<xsl:variable name="current_user"><xsl:value-of
select="current_user"/></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 class="small_text" align="right">
<input type="hidden"
name="values[counter][{$counter}]" value="{counter}">
</input>
<input type="hidden"
name="values[voucher_id][{$counter}]" value="{voucher_id}">
</input>
<xsl:variable
name="link_sub"><xsl:value-of select="link_sub"/>&voucher_id=<xsl:value-of
select="voucher_id"/></xsl:variable>
<xsl:variable
name="lang_sub_help"><xsl:value-of select="lang_sub_help"/></xsl:variable>
<xsl:variable
name="lang_sub"><xsl:value-of select="lang_sub"/></xsl:variable>
<a href="{$link_sub}"
onMouseOver="overlib('{$lang_sub_help}', CAPTION, '{$lang_sub}')"
onMouseOut="nd()">
<xsl:value-of select="voucher_id"/></a>
</td>
<td class="small_text" align="right">
<xsl:variable
name="lang_payment_date"><xsl:value-of
select="lang_payment_date"/></xsl:variable>
<xsl:variable
name="payment_date"><xsl:value-of select="payment_date"/></xsl:variable>
<a href="javascript:void()"
onMouseOver="overlib('{$payment_date}',
CAPTION, '{$lang_payment_date}')"
onMouseOut="nd()">
<xsl:value-of
select="voucher_date"/></a>
</td>
<td class="small_text" align="right">
<input type="hidden"
name="values[sign_orig][{$counter}]" value="{sign_orig}">
</input>
<input type="hidden"
name="values[num_days_orig][{$counter}]" value="{num_days}">
</input>
<input type="hidden"
name="values[timestamp_voucher_date][{$counter}]"
value="{timestamp_voucher_date}">
</input>
<input type="text" size="2"
name="values[num_days][{$counter}]" value="{num_days}">
</input>
</td>
<td class="small_text" align="right">
<xsl:value-of select="amount"/>
</td>
<td class="small_text" align="right">
<xsl:variable
name="vendor"><xsl:value-of select="vendor"/></xsl:variable>
<xsl:variable
name="vendor_id"><xsl:value-of select="vendor_id"/></xsl:variable>
<a href="javascript:void()"
onMouseOver="overlib('{$vendor}',
CAPTION, '{$vendor_id}')"
onMouseOut="nd()">
<xsl:value-of select="vendor_id"/></a>
</td>
<td class="small_text" align="right">
<input type="hidden"
name="values[invoice_count][{$counter}]" value="{invoice_count}">
</input>
<xsl:value-of select="invoice_count"/>
</td>
<td class="small_text" align="center">
<xsl:value-of select="type"/>
</td>
<td class="small_text" align="right">
<xsl:variable
name="link_period"><xsl:value-of
select="link_period"/>&voucher_id=<xsl:value-of
select="voucher_id"/>&period=<xsl:value-of select="period"/></xsl:variable>
<xsl:variable
name="lang_period_help"><xsl:value-of select="lang_period_help"/></xsl:variable>
<xsl:variable
name="lang_period"><xsl:value-of select="lang_period"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_period}','','width=150,height=150')"
onMouseOver="overlib('{$lang_period_help}', CAPTION, '{$lang_period}')"
onMouseOut="nd()">
<xsl:value-of select="period"/></a>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="kreditnota='1'">
<input type="checkbox"
name="values[kreditnota][{$counter}]" value="true" checked="checked"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox"
name="values[kreditnota][{$counter}]" value="true"
onMouseout="window.status='';return true;">
</input>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when test="is_janitor">
<input type="radio"
name="values[sign][{$counter}]" value="sign_none"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:when test="is_supervisor">
<input type="radio"
name="values[sign][{$counter}]" value="sign_none"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:when
test="is_budget_responsible">
<input type="radio"
name="values[sign][{$counter}]" value="sign_none"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when
test="is_janitor='32'">
<xsl:choose>
<xsl:when
test="jan_date=''">
<input
type="radio" name="values[sign][{$counter}]" value="sign_janitor"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="janitor = $current_user">
<input type="radio" name="values[sign][{$counter}]"
value="sign_janitor" checked="checked" onMouseout="window.status='';return
true;">
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="" value="" checked="checked"
disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="jan_date=''">
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="" value="" checked="checked" disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="janitor"/>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when
test="is_supervisor='64'"><xsl:value-of select="super_date"/>
<xsl:choose>
<xsl:when
test="super_date=''">
<input
type="radio" name="values[sign][{$counter}]" value="sign_supervisor"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:when
test="super_date!=''">
<xsl:choose>
<xsl:when test="supervisor = $current_user">
<input type="radio" name="values[sign][{$counter}]"
value="sign_supervisor" checked="checked" onMouseout="window.status='';return
true;">
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="" value="" checked="checked"
disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="super_date=''">
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="" value="" checked="checked" disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="supervisor"/>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when
test="is_budget_responsible='128'">
<xsl:choose>
<xsl:when
test="budget_date=''">
<input
type="radio" name="values[sign][{$counter}]" value="sign_budget_responsible"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="budget_responsible = $current_user">
<input type="radio" name="values[sign][{$counter}]"
value="sign_budget_responsible" checked="checked"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="" value="" checked="checked"
disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="budget_date=''">
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="" value="" checked="checked" disabled="disabled" ></input>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of
select="budget_responsible"/>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when
test="is_transfer='16'">
<xsl:choose>
<xsl:when
test="transfer_date=''">
<input
type="checkbox" name="values[transfer][{$counter}]" value="true"
onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<input
type="checkbox" name="values[transfer][{$counter}]" value="true"
checked="checked" onMouseout="window.status='';return true;">
</input>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="transfer_id!=''">
<input
type="checkbox" name="" value="" checked="checked" disabled="disabled" ></input>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="transfer_id"/>
</td>
<xsl:choose>
<xsl:when test="//acl_delete!=''">
<xsl:variable
name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></xsl:variable>
<td class="small_text"
align="center">
<xsl:variable
name="link_delete"><xsl:value-of select="link_delete"/></xsl:variable>
<a href="{$link_delete}"
onMouseover="window.status='{$lang_delete_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</xsl:when>
</xsl:choose>
</tr>
</xsl:template>
<!-- list_voucher_paid -->
<xsl:template match="list_voucher_paid">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<script language="JavaScript">
self.name="first_Window";
function abook()
{
Window1=window.open('<xsl:value-of
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
function property_lookup()
{
Window1=window.open('<xsl:value-of
select="property_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<xsl:call-template name="menu"/>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<div align="left">
<form method="post" name="form" action="{$form_action}">
<table width="100%" cellpadding="2" cellspacing="2"
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>
<input type="text" id="start_date"
name="start_date" size="10" value="{start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_start_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="start_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_start"/>
</script>
</td>
<td>
<input type="text" id="end_date"
name="end_date" size="10" value="{end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_end_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="end_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_end"/>
</script>
</td>
<td>
<input type="text" size="8"
name="workorder_id" value="{workorder_id}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_workorder_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:void()"
onMouseOver="overlib('{lang_workorder_statustext}', CAPTION,
'{lang_workorder}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_workorder"/></a>
</td>
<td align="left">
<input type="text" name="vendor_id"
value="{vendor_id}" size="4" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:abook()"
onMouseOver="overlib('{lang_select_vendor_statustext}', CAPTION,
'{lang_vendor}')"
onMouseOut="nd()">
<xsl:value-of select="lang_vendor"/></a>
<input type="hidden"
name="vendor_name"></input>
</td>
</tr>
<tr>
<td>
<xsl:call-template name="cat_select"/>
</td>
<td align="left">
<xsl:call-template
name="user_lid_select"/>
</td>
<td align="left">
<input type="text" name="loc1"
value="{loc1}" size="4" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_property_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:property_lookup()"
onMouseOver="overlib('{lang_select_property_statustext}', CAPTION,
'{lang_property}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_property"/></a>
<input type="hidden"
name="loc1_name"></input>
</td>
<td align="left">
<xsl:variable
name="lang_search"><xsl:value-of select="lang_search"/></xsl:variable>
<input type="submit"
name="submit_search" value="{$lang_search}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_search_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td colspan="11" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
</form>
</div>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates
select="table_header_list_voucher_paid"/>
<xsl:choose>
<xsl:when
test="values_list_voucher_paid[voucher_id]">
<xsl:apply-templates
select="values_list_voucher_paid"/>
<tr>
<td></td>
<td></td>
<td></td>
<td class="th_text"
align="right">
<xsl:value-of
select="sum"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:variable name="img_check"><xsl:value-of
select="img_check"/></xsl:variable>
</table>
</xsl:template>
<xsl:template match="table_header_list_voucher_paid">
<xsl:variable name="sort_voucher"><xsl:value-of
select="sort_voucher"/></xsl:variable>
<xsl:variable name="sort_voucher_date"><xsl:value-of
select="sort_voucher_date"/></xsl:variable>
<xsl:variable name="sort_vendor_id"><xsl:value-of
select="sort_vendor_id"/></xsl:variable>
<tr class="th">
<td class="th_text" width="5%" align="right">
<a href="{$sort_voucher}"><xsl:value-of
select="lang_voucher"/></a>
</td>
<td class="th_text" width="2%" align="right">
<a
href="{$sort_voucher_date}"><xsl:value-of select="lang_voucher_date"/></a>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_days"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_sum"/>
</td>
<td class="th_text" width="4%" align="right">
<a
href="{$sort_vendor_id}"><xsl:value-of select="lang_vendor_id"/></a>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of
select="lang_num_sub_invoice"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_type"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_janitor"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_supervisor"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_transfer"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_list_voucher_paid">
<xsl:variable name="counter"><xsl:value-of
select="counter"/></xsl:variable>
<xsl:variable name="current_user"><xsl:value-of
select="current_user"/></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:variable
name="link_sub"><xsl:value-of select="link_sub"/>&voucher_id=<xsl:value-of
select="voucher_id"/>&paid=true</xsl:variable>
<xsl:variable
name="lang_sub_help"><xsl:value-of select="lang_sub_help"/></xsl:variable>
<xsl:variable
name="lang_sub"><xsl:value-of select="lang_sub"/></xsl:variable>
<a href="{$link_sub}"
onMouseOver="overlib('{$lang_sub_help}', CAPTION, '{$lang_sub}')"
onMouseOut="nd()">
<xsl:value-of select="voucher_id"/></a>
</td>
<td align="right">
<xsl:variable
name="lang_payment_date"><xsl:value-of
select="lang_payment_date"/></xsl:variable>
<xsl:variable
name="payment_date"><xsl:value-of select="payment_date"/></xsl:variable>
<a href="javascript:void()"
onMouseOver="overlib('{$payment_date}',
CAPTION, '{$lang_payment_date}')"
onMouseOut="nd()">
<xsl:value-of
select="voucher_date"/></a>
</td>
<td align="right">
<xsl:value-of select="num_days"/>
</td>
<td align="right">
<xsl:value-of select="amount"/>
</td>
<td align="right">
<xsl:variable
name="vendor"><xsl:value-of select="vendor"/></xsl:variable>
<xsl:variable
name="vendor_id"><xsl:value-of select="vendor_id"/></xsl:variable>
<a href="javascript:void()"
onMouseOver="overlib('{$vendor}',
CAPTION, '{$vendor_id}')"
onMouseOut="nd()">
<xsl:value-of select="vendor_id"/></a>
</td>
<td align="right">
<xsl:value-of select="invoice_count"/>
</td>
<td align="center">
<xsl:value-of select="type"/>
</td>
<td align="center">
<xsl:value-of select="jan_date"/> -
<xsl:value-of select="janitor"/>
</td>
<td align="center">
<xsl:value-of select="super_date"/> -
<xsl:value-of select="supervisor"/>
</td>
<td align="center">
<xsl:value-of select="budget_date"/> -
<xsl:value-of select="budget_responsible"/>
</td>
<td align="center">
<xsl:value-of select="transfer_date"/>
- <xsl:value-of select="transfer_id"/>
</td>
</tr>
</xsl:template>
<!-- consume -->
<xsl:template match="consume">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<script language="JavaScript">
self.name="first_Window";
function abook()
{
Window1=window.open('<xsl:value-of
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
function property_lookup()
{
Window1=window.open('<xsl:value-of
select="property_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<xsl:call-template name="menu"/>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<div align="left">
<form method="post" name="form" action="{$form_action}">
<table width="100%" cellpadding="2" cellspacing="2"
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>
<input type="text" id="start_date"
name="start_date" size="10" value="{start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_start_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="start_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_start"/>
</script>
</td>
<td>
<input type="text" id="end_date"
name="end_date" size="10" value="{end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_end_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="end_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_end"/>
</script>
</td>
<td>
<input type="text" size="8"
name="workorder_id" value="{workorder_id}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_workorder_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:void()"
onMouseOver="overlib('{lang_workorder_statustext}', CAPTION,
'{lang_workorder}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_workorder"/></a>
</td>
<td align="left">
<input type="text" name="vendor_id"
onClick="abook()" value="{vendor_id}" size="4"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:abook()"
onMouseOver="overlib('{lang_select_vendor_statustext}', CAPTION,
'{lang_vendor}')"
onMouseOut="nd()">
<xsl:value-of select="lang_vendor"/></a>
<input type="hidden" name="vendor_name"
value="{vendor_name}"></input>
</td>
</tr>
<tr>
<td>
<xsl:call-template name="cat_select"/>
</td>
<td align="left">
<xsl:call-template
name="select_district"/>
</td>
<td align="left">
<xsl:variable
name="lang_account_class_statustext"><xsl:value-of
select="lang_account_class_statustext"/></xsl:variable>
<xsl:variable
name="select_account_class_name"><xsl:value-of
select="select_account_class_name"/></xsl:variable>
<select
name="{$select_account_class_name}" class="forms"
onMouseover="window.status='{$lang_account_class_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_account_class_"/></option>
<xsl:apply-templates
select="account_class_list"/>
</select>
</td>
<td align="left">
<input type="text" name="loc1"
onClick="property_lookup()" value="{loc1}" size="4"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_property_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<a href="javascript:property_lookup()"
onMouseOver="overlib('{lang_select_property_statustext}', CAPTION,
'{lang_property}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_property"/></a>
<input type="hidden"
name="loc1_name"></input>
</td>
<td align="left">
<xsl:variable
name="lang_search"><xsl:value-of select="lang_search"/></xsl:variable>
<input type="submit"
name="submit_search" value="{$lang_search}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_search_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</table>
</form>
</div>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:choose>
<xsl:when test="vendor_name!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_vendor"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="vendor_name"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="loc1!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_property"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="loc1"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="workorder_id!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_workorder"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="workorder_id"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_header_consume"/>
<xsl:choose>
<xsl:when test="values_consume[consume]">
<xsl:apply-templates
select="values_consume"/>
</xsl:when>
</xsl:choose>
<tr>
<td>
</td>
<td>
</td>
<td class="th_text" align="right">
<xsl:value-of select="lang_sum"/>
</td>
<td class="th_text" align="right">
<xsl:value-of select="sum"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="account_class_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="id"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="id"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="table_header_consume">
<tr class="th">
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_district"/>
</td>
<td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_period"/>
</td>
<td class="th_text" width="25%" align="right">
<xsl:value-of
select="lang_budget_account"/>
</td>
<td class="th_text" width="55%" align="right">
<xsl:value-of select="lang_consume"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_consume">
<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="district_id"/>
</td>
<td align="center">
<xsl:value-of select="period"/>
</td>
<td align="center">
<xsl:value-of select="account_class"/>
</td>
<td align="right">
<xsl:value-of select="consume"/>
</td>
</tr>
</xsl:template>
<!-- debug-->
<xsl:template match="debug">
<div align="left">
<table width="50%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td class="th_text">
<xsl:value-of select="lang_bilagsnr"/>
</td>
<td>
<xsl:value-of select="bilagsnr"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_type"/>
</td>
<td>
<xsl:value-of select="artid"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_vendor"/>
</td>
<td>
<xsl:value-of select="spvend_code"/>
<xsl:text> </xsl:text>
<xsl:value-of select="vendor_name"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of
select="lang_fakturadato"/>
</td>
<td>
<xsl:value-of select="fakturadato"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of
select="lang_forfallsdato"/>
</td>
<td>
<xsl:value-of select="forfallsdato"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_janitor"/>
</td>
<td>
<xsl:value-of select="oppsynsmannid"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_supervisor"/>
</td>
<td>
<xsl:value-of select="saksbehandlerid"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td>
<xsl:value-of
select="budsjettansvarligid"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_project_id"/>
</td>
<td>
<xsl:value-of select="project_id"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_sum"/>
</td>
<td>
<xsl:value-of select="sum"/>
</td>
</tr>
</table>
</div>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
<xsl:call-template name="table_header"/>
</tr>
<xsl:call-template name="values_debug"/>
<xsl:apply-templates select="table_add"/>
</table>
</xsl:template>
<xsl:template name="values_debug">
<xsl:for-each select="values" >
<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>
<xsl:for-each select="row" >
<td align="{align}">
<xsl:value-of select="value"/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
<td height="50">
<xsl:variable
name="cancel_action"><xsl:value-of select="cancel_action"/></xsl:variable>
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<form method="post"
action="{$cancel_action}">
<input type="submit"
name="cancel" value="{$lang_cancel}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cancel_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="add">
<script language="JavaScript">
self.name="first_Window";
function abook()
{
Window1=window.open('<xsl:value-of
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<xsl:call-template name="menu"/>
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td colspan="2" align="center">
<xsl:value-of select="message"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="msgbox_data != ''">
<tr>
<td align="left" colspan="3">
<xsl:call-template
name="msgbox"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td>
<xsl:value-of select="lang_auto_tax"/>
</td>
<td>
<input type="checkbox" name="auto_tax"
value="True" checked="checked" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_auto_tax_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<xsl:call-template name="location_form"/>
<xsl:call-template name="b_account_form"/>
<tr>
<td valign="top">
<xsl:variable
name="lang_vendor"><xsl:value-of select="lang_vendor"/></xsl:variable>
<input type="button" name="convert"
value="{$lang_vendor}" onClick="abook();" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_select_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td>
<input type="text" name="vendor_id"
value="{value_vendor_id}" size="4" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<input type="text" name="vendor_name"
value="{value_vendor_name}" size="20" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_janitor"/>
</td>
<td valign="top">
<xsl:variable
name="lang_janitor_statustext"><xsl:value-of
select="lang_janitor_statustext"/></xsl:variable>
<xsl:variable
name="select_janitor"><xsl:value-of select="select_janitor"/></xsl:variable>
<select name="{$select_janitor}"
class="forms" onMouseover="window.status='{$lang_janitor_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_janitor"/></option>
<xsl:apply-templates
select="janitor_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_supervisor"/>
</td>
<td valign="top">
<xsl:variable
name="lang_supervisor_statustext"><xsl:value-of
select="lang_supervisor_statustext"/></xsl:variable>
<xsl:variable
name="select_supervisor"><xsl:value-of
select="select_supervisor"/></xsl:variable>
<select name="{$select_supervisor}"
class="forms" onMouseover="window.status='{$lang_supervisor_statustext}';
return true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_supervisor"/></option>
<xsl:apply-templates
select="supervisor_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td valign="top">
<xsl:variable
name="lang_budget_responsible_statustext"><xsl:value-of
select="lang_budget_responsible_statustext"/></xsl:variable>
<xsl:variable
name="select_budget_responsible"><xsl:value-of
select="select_budget_responsible"/></xsl:variable>
<select
name="{$select_budget_responsible}" class="forms"
onMouseover="window.status='{$lang_budget_responsible_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_budget_responsible"/></option>
<xsl:apply-templates
select="budget_responsible_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_order"/>
</td>
<td>
<input type="text" name="order"
value="{value_order}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_order_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_art"/>
</td>
<td valign="top">
<xsl:variable
name="lang_art_statustext"><xsl:value-of
select="lang_art_statustext"/></xsl:variable>
<xsl:variable
name="select_art"><xsl:value-of select="select_art"/></xsl:variable>
<select name="{$select_art}"
class="forms" onMouseover="window.status='{$lang_art_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_art"/></option>
<xsl:apply-templates
select="art_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_type"/>
</td>
<td valign="top">
<xsl:variable
name="lang_type_statustext"><xsl:value-of
select="lang_type_statustext"/></xsl:variable>
<xsl:variable
name="select_type"><xsl:value-of select="select_type"/></xsl:variable>
<select name="{$select_type}"
class="forms" onMouseover="window.status='{$lang_type_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_type"/></option>
<xsl:apply-templates
select="type_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_dimb"/>
</td>
<td valign="top">
<xsl:variable
name="lang_dimb_statustext"><xsl:value-of
select="lang_dimb_statustext"/></xsl:variable>
<xsl:variable
name="select_dimb"><xsl:value-of select="select_dimb"/></xsl:variable>
<select name="{$select_dimb}"
class="forms" onMouseover="window.status='{$lang_dimb_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_dimb"/></option>
<xsl:apply-templates
select="dimb_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_invoice_number"/>
</td>
<td>
<input type="text" name="invoice_num"
value="{value_invoice_num}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_invoice_num_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_kidnr"/>
</td>
<td>
<input type="text" name="kid_nr"
value="{value_kid_nr}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_kid_nr_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_amount"/>
</td>
<td>
<input type="text" name="amount"
value="{value_amount}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_amount_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_invoice_date"/>
</td>
<td>
<input type="text" id="invoice_date"
name="invoice_date" size="10" value="{value_invoice_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_invoice_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="invoice_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_invoice"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_no_of_days"/>
</td>
<td>
<input type="text" name="num_days"
value="{value_num_days}" size="4" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_num_days_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_payment_date"/>
</td>
<td>
<input type="text" id="payment_date"
name="payment_date" size="10" value="{value_payment_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_payment_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="payment_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_payment"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_merknad"/>
</td>
<td>
<textarea cols="60" rows="10"
name="merknad" wrap="virtual" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_merknad_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
<xsl:value-of
select="value_merknad"/>
</textarea>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
<input type="submit" name="add_invoice"
value="{$lang_add}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_add_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<tr>
<td>
<xsl:variable
name="cancel_action"><xsl:value-of select="cancel_action"/></xsl:variable>
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<form method="post"
action="{$cancel_action}">
<input type="submit"
name="done" value="{$lang_cancel}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cancel_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- import -->
<xsl:template match="import">
<script language="JavaScript">
self.name="first_Window";
function abook()
{
Window1=window.open('<xsl:value-of
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
}
</script>
<xsl:call-template name="menu"/>
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<tr>
<td colspan="2" align="center">
<xsl:value-of select="message"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="msgbox_data != ''">
<tr>
<td align="left" colspan="3">
<xsl:call-template
name="msgbox"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form ENCTYPE="multipart/form-data" method="post"
name="form" action="{$form_action}">
<tr>
<td>
<xsl:value-of select="lang_auto_tax"/>
</td>
<td>
<input type="checkbox" name="auto_tax"
value="True" checked="checked" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_auto_tax_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_art"/>
</td>
<td valign="top">
<xsl:variable
name="lang_art_statustext"><xsl:value-of
select="lang_art_statustext"/></xsl:variable>
<xsl:variable
name="select_art"><xsl:value-of select="select_art"/></xsl:variable>
<select name="{$select_art}"
class="forms" onMouseover="window.status='{$lang_art_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_art"/></option>
<xsl:apply-templates
select="art_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_type"/>
</td>
<td valign="top">
<xsl:variable
name="lang_type_statustext"><xsl:value-of
select="lang_type_statustext"/></xsl:variable>
<xsl:variable
name="select_type"><xsl:value-of select="select_type"/></xsl:variable>
<select name="{$select_type}"
class="forms" onMouseover="window.status='{$lang_type_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_type"/></option>
<xsl:apply-templates
select="type_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_dimb"/>
</td>
<td valign="top">
<xsl:variable
name="lang_dimb_statustext"><xsl:value-of
select="lang_dimb_statustext"/></xsl:variable>
<xsl:variable
name="select_dimb"><xsl:value-of select="select_dimb"/></xsl:variable>
<select name="{$select_dimb}"
class="forms" onMouseover="window.status='{$lang_dimb_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_dimb"/></option>
<xsl:apply-templates
select="dimb_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_invoice_number"/>
</td>
<td>
<input type="text" name="invoice_num"
value="{value_invoice_num}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_invoice_num_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_kidnr"/>
</td>
<td>
<input type="text" name="kid_nr"
value="{value_kid_nr}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_kid_nr_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:variable
name="lang_vendor"><xsl:value-of select="lang_vendor"/></xsl:variable>
<input type="button" name="convert"
value="{$lang_vendor}" onClick="abook();" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_select_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td>
<input type="text" name="vendor_id"
value="{value_vendor_id}" size="6" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<input type="text" name="vendor_name"
value="{value_vendor_name}" size="20" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_vendor_name_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_janitor"/>
</td>
<td valign="top">
<xsl:variable
name="lang_janitor_statustext"><xsl:value-of
select="lang_janitor_statustext"/></xsl:variable>
<xsl:variable
name="select_janitor"><xsl:value-of select="select_janitor"/></xsl:variable>
<select name="{$select_janitor}"
class="forms" onMouseover="window.status='{$lang_janitor_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_janitor"/></option>
<xsl:apply-templates
select="janitor_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_supervisor"/>
</td>
<td valign="top">
<xsl:variable
name="lang_supervisor_statustext"><xsl:value-of
select="lang_supervisor_statustext"/></xsl:variable>
<xsl:variable
name="select_supervisor"><xsl:value-of
select="select_supervisor"/></xsl:variable>
<select name="{$select_supervisor}"
class="forms" onMouseover="window.status='{$lang_supervisor_statustext}';
return true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_supervisor"/></option>
<xsl:apply-templates
select="supervisor_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_budget_responsible"/>
</td>
<td valign="top">
<xsl:variable
name="lang_budget_responsible_statustext"><xsl:value-of
select="lang_budget_responsible_statustext"/></xsl:variable>
<xsl:variable
name="select_budget_responsible"><xsl:value-of
select="select_budget_responsible"/></xsl:variable>
<select
name="{$select_budget_responsible}" class="forms"
onMouseover="window.status='{$lang_budget_responsible_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_budget_responsible"/></option>
<xsl:apply-templates
select="budget_responsible_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_invoice_date"/>
</td>
<td>
<input type="text" id="invoice_date"
name="invoice_date" size="10" value="{value_invoice_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_invoice_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="invoice_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_invoice"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_no_of_days"/>
</td>
<td>
<input type="text" name="num_days"
value="{value_num_days}" size="4" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_num_days_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_payment_date"/>
</td>
<td>
<input type="text" id="payment_date"
name="payment_date" size="10" value="{value_payment_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_payment_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="payment_date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of
select="calendar_setup_payment"/>
</script>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_file"/>
</td>
<td>
<input type="file" name="tsvfile"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_file_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_conv"/>
</td>
<td valign="top">
<xsl:variable
name="lang_conv_statustext"><xsl:value-of
select="lang_conv_statustext"/></xsl:variable>
<xsl:variable
name="select_conv"><xsl:value-of select="select_conv"/></xsl:variable>
<select name="{$select_conv}"
class="forms" onMouseover="window.status='{$lang_conv_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_conversion"/></option>
<xsl:apply-templates
select="conv_list"/>
</select>
</td>
</tr>
<tr>
<td>
<xsl:value-of select="lang_debug"/>
</td>
<td>
<input type="checkbox" name="download"
value="True" checked="checked" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_debug_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_import"><xsl:value-of select="lang_import"/></xsl:variable>
<input type="submit" name="convert"
value="{$lang_import}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_import_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<tr>
<td>
<xsl:variable
name="cancel_action"><xsl:value-of select="cancel_action"/></xsl:variable>
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<form method="post"
action="{$cancel_action}">
<input type="submit"
name="done" value="{$lang_cancel}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cancel_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- art_list -->
<xsl:template match="art_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="num"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="num"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- type_list -->
<xsl:template match="type_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="num"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="num"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- dimb_list -->
<xsl:template match="dimb_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="num"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="num"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- janitor_list -->
<xsl:template match="janitor_list">
<xsl:variable name="lid"><xsl:value-of select="lid"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$lid}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="firstname"/> <xsl:value-of select="lastname"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$lid}"><xsl:value-of
disable-output-escaping="yes" select="firstname"/> <xsl:value-of
select="lastname"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- supervisor_list -->
<xsl:template match="supervisor_list">
<xsl:variable name="lid"><xsl:value-of select="lid"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$lid}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="firstname"/> <xsl:value-of select="lastname"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$lid}"><xsl:value-of
disable-output-escaping="yes" select="firstname"/> <xsl:value-of
select="lastname"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- budget_responsible_list -->
<xsl:template match="budget_responsible_list">
<xsl:variable name="lid"><xsl:value-of select="lid"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$lid}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="firstname"/> <xsl:value-of select="lastname"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$lid}"><xsl:value-of
disable-output-escaping="yes" select="firstname"/> <xsl:value-of
select="lastname"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- conv_list -->
<xsl:template match="conv_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>
<!-- rollback_file_list -->
<xsl:template match="rollback_file_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>
<!-- tax_code_list -->
<xsl:template match="tax_code_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="id"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="id"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- export -->
<xsl:template match="export">
<xsl:call-template name="menu"/>
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of
select="lang_select_conv"/>
</td>
<td valign="top">
<xsl:variable
name="lang_conv_statustext"><xsl:value-of
select="lang_conv_statustext"/></xsl:variable>
<xsl:variable
name="select_conv"><xsl:value-of select="select_conv"/></xsl:variable>
<select name="{$select_conv}"
class="forms" onMouseover="window.status='{$lang_conv_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_conv"/></option>
<xsl:apply-templates
select="conv_list"/>
</select>
</td>
</tr>
<tr>
<td>
<xsl:value-of
select="lang_export_to_file"/>
</td>
<td>
<input type="checkbox"
name="values[download]" value="on" checked="checked"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_debug_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td>
</td>
<td>
<xsl:variable
name="link_rollback_file"><xsl:value-of
select="link_rollback_file"/></xsl:variable>
<a
href="{$link_rollback_file}"><xsl:value-of select="lang_rollback_file"/></a>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<input type="submit"
name="values[submit]" value="{$lang_submit}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_import_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<tr>
<td>
<xsl:variable
name="cancel_action"><xsl:value-of select="cancel_action"/></xsl:variable>
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<form method="post"
action="{$cancel_action}">
<input type="submit"
name="done" value="{$lang_cancel}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cancel_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- rollback -->
<xsl:template match="rollback">
<xsl:call-template name="menu"/>
<div align="left">
<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>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<tr>
<td valign="top">
<xsl:value-of
select="lang_select_conv"/>
</td>
<td valign="top">
<xsl:variable
name="lang_conv_statustext"><xsl:value-of
select="lang_conv_statustext"/></xsl:variable>
<xsl:variable
name="select_conv"><xsl:value-of select="select_conv"/></xsl:variable>
<select name="{$select_conv}"
class="forms" onMouseover="window.status='{$lang_conv_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_select_conv"/></option>
<xsl:apply-templates
select="conv_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of
select="lang_select_file"/>
</td>
<td valign="top">
<xsl:variable
name="lang_file_statustext"><xsl:value-of
select="lang_file_statustext"/></xsl:variable>
<xsl:variable
name="select_file"><xsl:value-of select="select_file"/></xsl:variable>
<select name="{$select_file}"
class="forms" onMouseover="window.status='{$lang_file_statustext}'; return
true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of
select="lang_no_file"/></option>
<xsl:apply-templates
select="rollback_file_list"/>
</select>
</td>
</tr>
<tr>
<td valign="top">
<xsl:value-of select="lang_date"/>
</td>
<td>
<input type="text" id="date"
name="date" size="10" value="{value_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_date_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
<script type="text/javascript">
document.writeln('<img
id="date-trigger" src="{date_img}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;"/>');
<xsl:value-of select="calendar_setup"/>
</script>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<input type="submit"
name="values[submit]" value="{$lang_submit}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_import_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<tr>
<td>
<xsl:variable
name="cancel_action"><xsl:value-of select="cancel_action"/></xsl:variable>
<xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<form method="post"
action="{$cancel_action}">
<input type="submit"
name="done" value="{$lang_cancel}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_cancel_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!--list_invoice_sub-->
<xsl:template match="list_invoice_sub">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="{check_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<table width="80%" cellpadding="2" cellspacing="2"
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>
<xsl:choose>
<xsl:when test="vendor!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_vendor"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="vendor"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="voucher_id!=''">
<tr>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="lang_voucher_id"/>
</td>
<td width="25%" class="th_text"
align="left">
<xsl:value-of
select="voucher_id"/>
</td>
<td width="50%">
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
<xsl:apply-templates
select="table_header_list_invoice_sub"/>
<xsl:choose>
<xsl:when test="values_list_invoice_sub[id]">
<xsl:apply-templates
select="values_list_invoice_sub"/>
<xsl:variable
name="img_check"><xsl:value-of select="img_check"/></xsl:variable>
<tr>
<td></td>
<td align="center">
<a
href="javascript:check_all_checkbox('values[close_order]')"><img
src="{$img_check}" border="0" height="16" width="21"
alt="{lang_select_all}"/></a>
</td>
<td></td>
<td></td>
<td></td>
<td class="small_text"
align="right">
<xsl:value-of
select="sum"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr height="50">
<td>
<xsl:choose>
<xsl:when test="paid=''">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
name="values[save][0]" value="{$lang_save}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_save_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</xsl:when>
</xsl:choose>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="table_header_list_invoice_sub">
<xsl:variable name="sort_workorder"><xsl:value-of
select="sort_workorder"/></xsl:variable>
<xsl:variable name="sort_budget_account"><xsl:value-of
select="sort_budget_account"/></xsl:variable>
<xsl:variable name="sort_sum"><xsl:value-of
select="sort_sum"/></xsl:variable>
<xsl:variable name="sort_dima"><xsl:value-of
select="sort_dima"/></xsl:variable>
<tr class="th">
<td class="th_text" width="5%" align="right">
<a
href="{$sort_workorder}"><xsl:value-of select="lang_workorder"/></a>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of
select="lang_close_order"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of
select="lang_charge_tenant"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_invoice_id"/>
</td>
<td class="th_text" width="2%" align="right">
<a
href="{$sort_budget_account}"><xsl:value-of select="lang_budget_account"/></a>
</td>
<td class="th_text" width="5%" align="right">
<a href="{$sort_sum}"><xsl:value-of
select="lang_sum"/></a>
</td>
<td class="th_text" width="5%" align="right">
<a href="{$sort_dima}"><xsl:value-of
select="lang_dima"/></a>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_dimb"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_dimd"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_tax_code"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_remark"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_list_invoice_sub">
<xsl:variable name="counter"><xsl:value-of
select="counter"/></xsl:variable>
<xsl:variable name="current_user"><xsl:value-of
select="current_user"/></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">
<input type="hidden"
name="values[counter][{$counter}]" value="{counter}">
</input>
<input type="hidden"
name="values[id][{$counter}]" value="{id}">
</input>
<input type="hidden"
name="values[workorder_id][{$counter}]" value="{workorder_id}">
</input>
<xsl:variable
name="link_order"><xsl:value-of
select="link_order"/>&order_id=<xsl:value-of
select="workorder_id"/></xsl:variable>
<a href="{$link_order}"
target="_blank"><xsl:value-of select="workorder_id"/></a>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when
test="workorder_id=''">
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when
test="paid=''">
<input
type="hidden" name="values[close_order_orig][{$counter}]" value="{closed}">
</input>
<xsl:choose>
<xsl:when test="closed='1'">
<input type="checkbox" name="values[close_order][{$counter}]"
value="true" checked="checked" onMouseout="window.status='';return true;">
</input>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="values[close_order][{$counter}]"
value="true" onMouseout="window.status='';return true;">
</input>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="closed='1'">
<b>x</b>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when
test="charge_tenant='1'">
<b>x</b>
</xsl:when>
</xsl:choose>
</td>
<td class="small_text" align="right">
<xsl:value-of select="invoice_id"/>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when test="paid='true'">
<xsl:value-of
select="budget_account"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
size="7" name="values[budget_account][{$counter}]" value="{budget_account}">
</input>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="right">
<xsl:value-of select="amount"/>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when test="paid='true'">
<xsl:value-of
select="dima"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
size="7" name="values[dima][{$counter}]" value="{dima}">
</input>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="right">
<xsl:value-of select="dimb"/>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when test="paid='true'">
<xsl:value-of
select="dimd"/>
</xsl:when>
<xsl:otherwise>
<input type="text"
size="4" name="values[dimd][{$counter}]" value="{dimd}">
</input>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="center">
<xsl:choose>
<xsl:when test="paid='true'">
<xsl:value-of
select="tax_code"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable
name="lang_tax_code_statustext"><xsl:value-of
select="lang_tax_code_statustext"/></xsl:variable>
<select
name="values[tax_code][{$counter}]" class="forms"
onMouseover="window.status='{$lang_tax_code_statustext}'; return true;"
onMouseout="window.status='';return true;">
<xsl:apply-templates select="tax_code_list"/>
</select>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="small_text" align="right">
<xsl:choose>
<xsl:when test="remark='1'">
<xsl:variable
name="link_remark"><xsl:value-of select="link_remark"/>&id=<xsl:value-of
select="id"/>&paid=<xsl:value-of select="paid"/></xsl:variable>
<xsl:variable
name="lang_remark_help"><xsl:value-of select="lang_remark_help"/></xsl:variable>
<xsl:variable
name="lang_remark"><xsl:value-of select="lang_remark"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_remark}','','width=550,height=400,scrollbars')"
onMouseOver="overlib('{$lang_remark_help}', CAPTION, '{$lang_remark}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_remark"/></a>
</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:template>
====================================================
Index: entity.xsl
<!-- $Id: entity.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:when test="empty">
<xsl:apply-templates select="empty"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list">
<div id="overDiv" style="position:absolute;
visibility:hide;z-index:1;"></div>
<xsl:variable name="overlib_source"><xsl:value-of
select="overlib_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
<td>
<xsl:call-template
name="filter_district"/>
</td>
<xsl:choose>
<xsl:when test="status_list!=''">
<td align="left">
<xsl:call-template
name="status_filter"/>
</td>
</xsl:when>
</xsl:choose>
<td align="center">
<xsl:call-template
name="user_id_filter"/>
</td>
<td align="right">
<xsl:call-template name="search_field"/>
</td>
<td valign ="top">
<table>
<tr>
<td class="small_text" valign="top"
align="left">
<xsl:variable
name="link_excel"><xsl:value-of select="link_excel"/></xsl:variable>
<xsl:variable
name="lang_excel_help"><xsl:value-of select="lang_excel_help"/></xsl:variable>
<xsl:variable
name="lang_excel"><xsl:value-of select="lang_excel"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_excel}','','')"
onMouseOver="overlib('{$lang_excel_help}', CAPTION, '{$lang_excel}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_excel"/></a>
</td>
</tr>
<tr>
<td class="small_text" valign="top"
align="left">
<xsl:variable
name="link_columns"><xsl:value-of select="link_columns"/></xsl:variable>
<xsl:variable
name="lang_columns_help"><xsl:value-of
select="lang_columns_help"/></xsl:variable>
<xsl:variable
name="lang_columns"><xsl:value-of select="lang_columns"/></xsl:variable>
<a href="javascript:var
w=window.open('{$link_columns}','','width=300,height=600')"
onMouseOver="overlib('{$lang_columns_help}', CAPTION, '{$lang_columns}')"
onMouseOut="nd()">
<xsl:value-of
select="lang_columns"/></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="7" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:call-template name="table_header_entity"/>
<xsl:call-template name="values"/>
<xsl:choose>
<xsl:when test="table_add !=''">
<xsl:apply-templates
select="table_add"/>
</xsl:when>
</xsl:choose>
</table>
</xsl:template>
<xsl:template name="table_header_entity">
<tr class="th">
<xsl:for-each select="table_header" >
<td class="th_text" width="{with}"
align="{align}">
<xsl:choose>
<xsl:when
test="sort_link!=''">
<a
href="{sort}" onMouseover="window.status='{header}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="header"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="header"/>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</tr>
</xsl:template>
<xsl:template name="values">
<xsl:for-each select="values" >
<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>
<xsl:for-each select="row" >
<xsl:choose>
<xsl:when test="link">
<td class="small_text"
align="center">
<a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
</td>
</xsl:when>
<xsl:otherwise>
<td class="small_text"
align="left">
<xsl:value-of
select="value"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl: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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
<!-- add / edit -->
<xsl:template match="edit">
<xsl:variable name="dateformat_source"><xsl:value-of
select="dateformat_source"/></xsl:variable>
<SCRIPT LANGUAGE="JavaScript"
SRC="{$dateformat_source}"></SCRIPT>
<script language="JavaScript">
self.name="first_Window";
<xsl:value-of select="lookup_functions"/>
</script>
<div align="left">
<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>
<xsl:for-each select="origin_list" >
<xsl:variable name="link"><xsl:value-of
select="link"/>&id=<xsl:value-of select="id"/></xsl:variable>
<tr>
<td class="th_text">
<xsl:value-of select="name"/>
</td>
<td class="th_text">
<a href="{$link}"
onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
</td>
</tr>
</xsl:for-each>
<xsl:choose>
<xsl:when test="value_ticket_id!=''">
<tr>
<td>
<xsl:value-of
select="lang_ticket"/>
</td>
<td class="th_text"
align="left">
<xsl:for-each
select="value_ticket_id" >
<xsl:variable name="link_ticket"><xsl:value-of
select="//link_ticket"/>&id=<xsl:value-of select="id"/></xsl:variable>
<a
href="{$link_ticket}"
onMouseover="window.status='{//lang_ticket_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="th_text">
<xsl:value-of select="lang_entity"/>
</td>
<td class="th_text">
<xsl:value-of select="entity_name"/>
</td>
</tr>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form ENCTYPE="multipart/form-data" method="post"
name="form" action="{$form_action}">
<tr>
<td class="th_text">
<xsl:value-of select="lang_category"/>
<input type="hidden"
name="values[origin_type]" value="{value_origin_type}"></input>
<input type="hidden"
name="values[origin_id]" value="{value_origin_id}"></input>
</td>
<td class="th_text">
<xsl:choose>
<xsl:when test="cat_list=''">
<xsl:value-of
select="category_name"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name="cat_select"/>
</xsl:otherwise>
</xsl:choose>
</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_num"/>
<input type="hidden"
name="location_code" value="{location_code}"></input>
<input type="hidden"
name="lookup_tenant" value="{lookup_tenant}"></input>
<input type="hidden"
name="values[id]" value="{value_id}"></input>
<input type="hidden"
name="values[num]" value="{value_num}"></input>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="location_data!=''">
<xsl:call-template
name="location_form"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="vendor_data!=''">
<xsl:call-template name="vendor_form"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="files!=''">
<tr>
<td align="left" valign="top">
<xsl:value-of select="//lang_files"/>
</td>
<td>
<table>
<tr class="th">
<td class="th_text" width="85%"
align="left">
<xsl:value-of
select="lang_filename"/>
</td>
<td class="th_text" width="15%"
align="center">
<xsl:value-of
select="lang_delete_file"/>
</td>
</tr>
<xsl:for-each select="files" >
<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:choose>
<xsl:when
test="//link_to_files!=''">
<xsl:variable
name="link_to_file"><xsl:value-of select="//link_to_files"/>/<xsl:value-of
select="directory"/>/<xsl:value-of select="file_name"/></xsl:variable>
<a
href="{$link_to_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:variable
name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
<a
href="{$link_view_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
</td>
<td align="center">
<input type="checkbox"
name="values[delete_file][]" value="{name}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="//lang_delete_file_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="cat_list='' and fileupload = 1">
<tr>
<td valign="top">
<xsl:value-of
select="lang_upload_file"/>
</td>
<td>
<input type="file"
name="file" size="40" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_file_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:call-template
name="attributes_form"/>
</td>
</tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
<input type="submit"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</form>
<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"
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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
<xsl:choose>
<xsl:when test="start_project!=''">
<tr>
<td valign="top">
<xsl:variable
name="project_link"><xsl:value-of select="project_link"/></xsl:variable>
<form method="post"
action="{$project_link}">
<xsl:variable
name="lang_start_project"><xsl:value-of
select="lang_start_project"/></xsl:variable>
<input type="submit"
name="location" value="{$lang_start_project}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_start_project_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
</div>
</xsl:template>
<!-- view -->
<xsl:template match="view">
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<xsl:for-each select="origin_list" >
<xsl:variable name="link"><xsl:value-of
select="link"/>&id=<xsl:value-of select="id"/></xsl:variable>
<tr>
<td class="th_text">
<xsl:value-of select="name"/>
</td>
<td class="th_text">
<a href="{$link}"
onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
</td>
</tr>
</xsl:for-each>
<tr>
<td class="th_text">
<xsl:value-of select="lang_entity"/>
</td>
<td class="th_text">
<xsl:value-of select="entity_name"/>
</td>
</tr>
<tr>
<td class="th_text">
<xsl:value-of select="lang_category"/>
</td>
<td class="th_text">
<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_num"/>
<input type="hidden"
name="values[id]" value="{value_id}"></input>
<input type="hidden"
name="values[num]" value="{value_num}"></input>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:call-template name="location_view"/>
<xsl:choose>
<xsl:when test="vendor_data!=''">
<xsl:call-template name="vendor_form"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="files!=''">
<tr>
<td align="left" valign="top">
<xsl:value-of
select="//lang_files"/>
</td>
<td>
<table>
<tr class="th">
<td class="th_text"
width="85%" align="left">
<xsl:value-of
select="lang_filename"/>
</td>
</tr>
<xsl:for-each
select="files" >
<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:choose>
<xsl:when test="//link_to_files!=''">
<xsl:variable name="link_to_file"><xsl:value-of
select="//link_to_files"/>/<xsl:value-of select="directory"/>/<xsl:value-of
select="file_name"/></xsl:variable>
<a href="{$link_to_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
<a href="{$link_view_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:apply-templates
select="attributes_view"/>
</td>
</tr>
<tr height="50">
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
<xsl:variable
name="edit_action"><xsl:value-of select="edit_action"/></xsl:variable>
<xsl:variable
name="lang_edit"><xsl:value-of select="lang_edit"/></xsl:variable>
<form method="post"
action="{$edit_action}">
<input type="submit" class="forms"
name="edit" value="{$lang_edit}" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_edit_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</div>
</xsl:template>
<!-- emtpy -->
<xsl:template match="empty">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td>
<xsl:call-template name="cat_filter"/>
</td>
</tr>
<tr>
<td colspan="4" width="100%">
<xsl:call-template name="nextmatchs"/>
</td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:call-template name="table_header_entity"/>
</table>
</xsl:template>
<xsl:template match="attributes_header">
<tr class="th">
<td class="th_text" width="15%" align="left">
<xsl:value-of select="lang_name"/>
</td>
<td class="th_text" width="55%" align="right">
<xsl:value-of select="lang_value"/>
</td>
</tr>
</xsl:template>
====================================================
Index: wo_hour.xsl
<!-- $Id: wo_hour.xsl,v 1.1 2005/01/17 10:03:18 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
<xsl:when test="edit_hour">
<xsl:apply-templates select="edit_hour"/>
</xsl:when>
<xsl:when test="list_template">
<xsl:apply-templates select="list_template"/>
</xsl:when>
<xsl:when test="list_template_hour">
<xsl:apply-templates
select="list_template_hour"/>
</xsl:when>
<xsl:when test="add_template">
<xsl:apply-templates select="add_template"/>
</xsl:when>
<xsl:when test="email_data">
<xsl:apply-templates select="email_data"/>
</xsl:when>
<xsl:when test="view">
<xsl:apply-templates select="view"/>
</xsl:when>
<xsl:when test="prizebook">
<xsl:apply-templates select="prizebook"/>
</xsl:when>
<xsl:when test="list_deviation">
<xsl:apply-templates select="list_deviation"/>
</xsl:when>
<xsl:when test="edit_deviation">
<xsl:apply-templates select="edit_deviation"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_hour"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="list_deviation">
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<xsl:apply-templates select="table_header_deviation"/>
<xsl:apply-templates select="values_deviation"/>
<tr>
<td>
</td>
<td class="small_text" align="right">
<xsl:value-of select="sum_deviation"/>
</td>
</tr>
<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_statustext"/>
<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="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_statustext"/>
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="table_header_deviation">
<tr class="th">
<td class="th_text" width="1%" align="right">
<xsl:value-of select="lang_id"/>
</td>
<td class="th_text" width="6%" align="right">
<xsl:value-of select="lang_amount"/>
</td>
<td class="th_text" width="80%">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="80%">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="5%" align="left">
<xsl:value-of select="lang_edit"/>
</td>
<td class="th_text" width="5%" align="left">
<xsl:value-of select="lang_delete"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_deviation">
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
<xsl:variable name="link_edit"><xsl:value-of
select="link_edit"/></xsl:variable>
<xsl:variable name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></xsl:variable>
<xsl:variable name="link_delete"><xsl:value-of
select="link_delete"/></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 class="small_text" align="right">
<xsl:value-of select="id"/>
</td>
<td class="small_text" align="right">
<xsl:value-of select="amount"/>
</td>
<td class="small_text" align="left">
<xsl:value-of select="descr"/>
</td>
<td class="small_text" align="left">
<xsl:value-of select="entry_date"/>
</td>
<td class="small_text" align="center">
<a href="{$link_edit}"
onMouseover="window.status='{$lang_edit_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
</td>
<td class="small_text" align="center">
<a href="{$link_delete}"
onMouseover="window.status='{$lang_delete_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
</td>
</tr>
</xsl:template>
<xsl:template match="add_template">
<div align="left">
<xsl:call-template name="menu"/>
<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>
</table>
<table width="50%" cellpadding="2" cellspacing="2"
align="center">
<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}">
<tr height="50">
<td>
<xsl:value-of select="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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr >
<tr>
<td valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td>
<textarea cols="60" rows="4"
name="values[descr]" wrap="virtual" 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>
<xsl:value-of
select="value_descr"/>
</textarea>
</td>
</tr>
<tr height="50">
<td>
</td>
<td>
<input type="submit" class="forms"
name="values[save]" value="{$lang_add}" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_add_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr >
</form>
<tr height="50">
<td>
</td>
<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="forms"
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_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</form>
</td>
</tr>
</table>
<xsl:apply-templates select="workorder_data"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<hr noshade="noshade" width="100%" align="center" size="1"/>
<tr >
<td class="th_text" colspan="3" align="right">
<xsl:value-of
select="lang_total_records"/>
<xsl:text> : </xsl:text>
</td>
<td class="th_text" colspan="5" align="left">
<xsl:value-of
select="total_hours_records"/>
</td>
</tr>
<xsl:apply-templates select="table_header_hour"/>
<xsl:apply-templates select="values_hour"/>
</table>
</div>
</xsl:template>
<xsl:template match="list_hour">
<xsl:call-template name="menu"/>
<table width="100%" cellpadding="2" cellspacing="2"
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>
</table>
<xsl:apply-templates select="workorder_data"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr >
<td class="th_text" colspan="3" align="right">
<xsl:value-of
select="lang_total_records"/>
<xsl:text> : </xsl:text>
</td>
<td class="th_text" colspan="5" align="left">
<xsl:value-of
select="total_hours_records"/>
</td>
</tr>
<xsl:apply-templates select="table_header_hour"/>
<xsl:apply-templates select="values_hour"/>
<xsl:apply-templates select="table_sum"/>
</table>
<xsl:apply-templates select="table_add"/>
</xsl:template>
<xsl:template match="email_list">
<xsl:variable name="email"><xsl:value-of select="email"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$email}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="email"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$email}"><xsl:value-of
disable-output-escaping="yes" select="email"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="view">
<xsl:variable name="send_order_action"><xsl:value-of
select="send_order_action"/></xsl:variable>
<table align="left">
<form method="post" action="{$send_order_action}">
<xsl:choose>
<xsl:when test="no_email =''">
<tr><td><table width="100%" cellpadding="2"
cellspacing="2" align="left">
<xsl:choose>
<xsl:when test="msgbox_data !=
''">
<tr>
<td
align="left" colspan="3">
<xsl:call-template name="msgbox"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="email_list
!=''">
<tr>
<td
class="th_text" align="left">
<xsl:value-of select="lang_mail"/>
</td>
<td
align="left">
<xsl:variable name="lang_to_email_address_statustext"><xsl:value-of
select="lang_to_email_address_statustext"/></xsl:variable>
<select
name="to_email" class="forms"
onMouseover="window.status='{$lang_to_email_address_statustext}'; return true;"
onMouseout="window.status='';return true;">
<option value=""><xsl:value-of select="lang_select_email"/></option>
<xsl:apply-templates select="email_list"/>
</select>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td
class="th_text" align="left">
<xsl:value-of select="lang_mail"/>
</td>
<td
align="left">
<input
type="text" name="to_email" value="{to_email}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_to_email_address_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
<tr>
<td
class="th_text" align="left">
<xsl:value-of select="lang_update_email"/>
</td>
<td
align="left">
<input
type="checkbox" name="update_email" value="true"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_update_email_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</table></td></tr>
</xsl:when>
</xsl:choose>
<tr><td><xsl:apply-templates select="email_data"/></td></tr>
<tr><td><hr noshade="noshade" width="100%" align="center"
size="1"/></td></tr>
<tr><td><table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:choose>
<xsl:when test="workorder_history=''">
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_no_history"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_history"/>
</td>
</tr>
<xsl:apply-templates
select="table_header_history"/>
<xsl:apply-templates
select="workorder_history"/>
</xsl:otherwise>
</xsl:choose>
</table></td></tr>
<xsl:choose>
<xsl:when test="no_email =''">
<tr><td><xsl:apply-templates
select="table_send"/></td></tr>
</xsl:when>
</xsl:choose>
</form>
<xsl:choose>
<xsl:when test="no_email =''">
<tr><td><xsl:apply-templates
select="table_done"/></td></tr>
</xsl:when>
</xsl:choose>
</table>
</xsl:template>
<xsl:template match="table_header_history">
<tr class="th">
<td class="th_text" width="20%" align="left">
<xsl:value-of select="lang_date"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_user"/>
</td>
<td class="th_text" width="30%" align="left">
<xsl:value-of select="lang_action"/>
</td>
<td class="th_text" width="10%" align="left">
<xsl:value-of select="lang_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="workorder_history">
<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="value_date"/>
</td>
<td align="left">
<xsl:value-of select="value_user"/>
</td>
<td align="left">
<xsl:value-of select="value_action"/>
</td>
<td align="left">
<xsl:value-of select="value_new_value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="email_data">
<hr noshade="noshade" width="100%" align="center" size="1"/>
<table align="left"><tr><td>
<table width="70%" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td class="th_text" align="left" width="40%">
<xsl:value-of select="lang_date"/>
</td>
<td align="left" width="40%">
<xsl:value-of select="date"/>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_workorder"/>
</td>
<td align="left">
<xsl:value-of select="workorder_id"/>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_to"/>
</td>
<td align="left">
<xsl:value-of select="to_name"/>
</td>
</tr>
<tr>
<td class="th_text" align="left" valign="top">
<xsl:value-of select="lang_from"/>
</td>
<td align="left">
<xsl:value-of select="lang_district"/>
<xsl:text> </xsl:text>
<xsl:value-of select="district"/>
<br/>
<xsl:value-of select="from_name"/>
<xsl:text> [ </xsl:text>
<xsl:value-of select="from_phone"/>
<xsl:text> ] </xsl:text>
<xsl:value-of select="from_email"/>
</td>
</tr>
<xsl:call-template name="location_view"/>
<xsl:choose>
<xsl:when test="contact_phone !=''">
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_contact_phone"/>
</td>
<td align="left">
<xsl:value-of
select="contact_phone"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_title"/>
</td>
<td align="left">
<xsl:value-of select="title"/>
</td>
</tr>
<tr>
<td class="th_text" align="left" valign="top">
<xsl:value-of select="lang_descr"/>
</td>
<td align="left" colspan="2">
<table border="1" width="100%"
bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<xsl:value-of
select="descr"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of
select="lang_budget_account"/>
</td>
<td align="left">
<xsl:value-of select="budget_account"/>
</td>
<td align="left">
<xsl:value-of select="lang_cost_tax"/>
</td>
</tr>
<xsl:choose>
<xsl:when test="sum_calculation!=''">
<tr>
<td class="th_text"
align="left">
<xsl:value-of
select="lang_sum_calculation"/>
</td>
<td align="left">
<xsl:value-of
select="sum_calculation"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_start_date"/>
</td>
<td align="left">
<xsl:value-of select="start_date"/>
</td>
<td align="left">
<xsl:value-of select="lang_materials"/>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_end_date"/>
</td>
<td align="left">
<xsl:value-of select="end_date"/>
</td>
<td align="left">
<xsl:value-of select="lang_work"/>
</td>
</tr>
<tr>
<td class="th_text" align="left" valign="top">
<xsl:value-of select="lang_branch"/>
</td>
<td align="left">
<xsl:for-each
select="branch_list[selected='selected']" >
<xsl:value-of select="name"/>
<xsl:if test="position() !=
last()">, </xsl:if>
</xsl:for-each>
<xsl:choose>
<xsl:when
test="other_branch!=''">
<xsl:text>, </xsl:text>
<xsl:value-of
select="other_branch"/>
</xsl:when>
</xsl:choose>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of
select="lang_key_responsible"/>
</td>
<td align="left">
<xsl:for-each
select="key_responsible_list" >
<xsl:choose>
<xsl:when
test="selected">
<xsl:value-of
select="name"/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</td>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of select="lang_key_fetch"/>
</td>
<xsl:for-each select="key_fetch_list" >
<xsl:choose>
<xsl:when test="selected">
<td align="left">
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
<tr>
<td class="th_text" align="left">
<xsl:value-of
select="lang_key_deliver"/>
</td>
<xsl:for-each select="key_deliver_list" >
<xsl:choose>
<xsl:when test="selected">
<td align="left">
<xsl:value-of
select="name"/>
</td>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tr>
</table></td></tr>
<xsl:choose>
<xsl:when test="values_view_order!=''">
<tr><td><table width="100%" cellpadding="2"
cellspacing="2" align="center">
<xsl:apply-templates
select="table_header_view_order"/>
<xsl:apply-templates
select="values_view_order"/>
</table></td></tr>
</xsl:when>
</xsl:choose>
</table>
</xsl:template>
<xsl:template match="table_header_view_order">
<xsl:variable name="sort_activity_num"><xsl:value-of
select="sort_activity_num"/></xsl:variable>
<xsl:variable name="sort_descr"><xsl:value-of
select="sort_descr"/></xsl:variable>
<xsl:variable name="sort_quantity"><xsl:value-of
select="sort_quantity"/></xsl:variable>
<tr class="th">
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_post"/>
</td>
<td class="th_text" width="15%" align="left">
<xsl:value-of select="lang_code"/>
</td>
<td class="th_text" width="40%" align="left">
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="4%" align="left">
<xsl:value-of select="lang_unit"/>
</td>
<td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_quantity"/>
</td>
<td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_billperae"/>
</td>
<td class="th_text" width="15%" align="right">
<xsl:value-of select="lang_cost"/>
</td>
</tr>
</xsl:template>
<xsl:template match="values_view_order">
<xsl:variable name="lang_view_statustext"><xsl:value-of
select="lang_view_statustext"/></xsl:variable>
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
<xsl:variable name="lang_delete_statustext"><xsl:value-of
select="lang_delete_statustext"/></xsl:variable>
<xsl:choose>
<xsl:when test="new_grouping=1">
<tr>
<td class="th_text" align="center" colspan="10"
width="100%">
<xsl:value-of select="grouping_descr"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
<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="post"/>
</td>
<td align="left">
<xsl:value-of select="code"/>
</td>
<td align="left">
<xsl:value-of select="hours_descr"/>
<br/>
<xsl:value-of select="remark"/>
</td>
<td align="left">
<xsl:value-of select="unit"/>
</td>
<td align="right">
<xsl:value-of select="quantity"/>
</td>
<td align="right">
<xsl:value-of select="billperae"/>
</td>
<td align="right">
<xsl:value-of select="cost"/>
</td>
</tr>
</xsl:template>
<xsl:template match="list_template">
<xsl:call-template name="menu"/>
<xsl:apply-templates select="workorder_data"/>
<table width="100%" cellpadding="2" cellspacing="2"
align="cen