home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 December
/
PCWorld_2003-12_cd.bin
/
Software
/
komercni
/
alc
/
ep2sr51csy.msi
/
Ep.CAB
/
repx2
< prev
next >
Wrap
Extensible Markup Language
|
2002-05-22
|
13KB
|
368 lines
<?xml version='1.0' encoding="windows-1250" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:choose>
<xsl:when test=".//node[proplist/prop[kind='Druh']/value='Sestava']">
<xsl:for-each select=".//node[proplist/prop[kind='Druh']/value='Sestava']" order-by="proplist/prop[kind='Nßzev sestavy']/value">
<table width="100%"><tr>
<td>
<h1>EvidenΦnφ karta</h1>
<img style="cursor:hand" alt="zobrazit/skr²t souΦßsti">
<xsl:attribute name="id"><xsl:eval>"partsbutt"+g_repId</xsl:eval></xsl:attribute>
<xsl:attribute name="onclick">ToggleBlock("partsbutt","parts",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
<img style="cursor:hand" alt="zobrazit/skr²t software">
<xsl:attribute name="id"><xsl:eval>"softwarebutt"+g_repId</xsl:eval></xsl:attribute>
<xsl:attribute name="onclick">ToggleBlock("softwarebutt","software",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
<img style="cursor:hand" alt="zobrazit/skr²t poznßmky">
<xsl:attribute name="id"><xsl:eval>"noticesbutt"+g_repId</xsl:eval></xsl:attribute>
<xsl:attribute name="onclick">ToggleBlock("noticesbutt","notices",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
</td>
<td>
Nßzev sestavy:<br/>
<font size="+2"><b><xsl:value-of select="proplist/prop[kind='Nßzev sestavy']/value"/></b></font><br/>
</td>
<xsl:if test="proplist/prop[kind='Inventßrnφ Φφslo']/value">
<td>
Inv.Φφslo sestavy:<br/>
<font size="+2"><b><xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></font><br/>
</td>
</xsl:if>
<xsl:if test=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']/proplist/prop[kind='Inventßrnφ Φφslo']/value">
<td>
Inv.Φφslo poΦφtaΦe:<br/>
<font size="+2"><b><xsl:value-of select=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']/proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></font><br/>
</td>
</xsl:if>
</tr></table>
<xsl:eval>g_BoldProp=true,""</xsl:eval>
<table class="Frame" width="100%" border="1" cellpadding="5" cellspacing="0" frame="box">
<tr>
<td class="Frame" valign="top" width="50%">
<table cellspacing="0" cellpadding="0">
<xsl:if test="proplist/prop[kind='Nßzev organizace']">
<tr><td><b>Organizace:</b> <xsl:value-of select="proplist/prop[kind='Nßzev organizace']/value"/></td></tr>
</xsl:if>
<xsl:apply-templates select="proplist/prop[kind='Zßvod']"/>
<xsl:apply-templates select="proplist/prop[kind='Zßvod1']"/>
<xsl:apply-templates select="proplist/prop[kind='Zßvod2']"/>
<xsl:apply-templates select="proplist/prop[kind='Zßvod3']"/>
<xsl:apply-templates select="proplist/prop[kind='┌sek']"/>
<xsl:apply-templates select="proplist/prop[kind='┌sek1']"/>
<xsl:apply-templates select="proplist/prop[kind='┌sek2']"/>
<xsl:apply-templates select="proplist/prop[kind='┌sek3']"/>
<xsl:apply-templates select="proplist/prop[kind='St°edisko']"/>
<xsl:apply-templates select="proplist/prop[kind='St°edisko1']"/>
<xsl:apply-templates select="proplist/prop[kind='St°edisko2']"/>
<xsl:apply-templates select="proplist/prop[kind='St°edisko3']"/>
<xsl:apply-templates select="proplist/prop[kind='┌tvar']"/>
<xsl:apply-templates select="proplist/prop[kind='┌tvar1']"/>
<xsl:apply-templates select="proplist/prop[kind='┌tvar2']"/>
<xsl:apply-templates select="proplist/prop[kind='┌tvar3']"/>
<xsl:apply-templates select="proplist/prop[kind='Odd∞lenφ']"/>
<xsl:apply-templates select="proplist/prop[kind='U₧ivatel']"/>
<xsl:apply-templates select="proplist/prop[kind='Budova']"/>
<xsl:apply-templates select="proplist/prop[kind='Poschodφ']"/>
<xsl:apply-templates select="proplist/prop[kind='Mφstnost']"/>
<xsl:apply-templates select="proplist/prop[kind='Umφst∞nφ']"/>
<xsl:apply-templates select="proplist/prop[kind='Nßzev sφt∞']"/>
<xsl:apply-templates select="proplist/prop[kind='Nßzev podsφt∞']"/>
<xsl:apply-templates select="proplist/prop[kind='Nßzev v∞tve sφt∞']"/>
</table>
</td>
<td class="Frame" valign="top" width="50%">
<table cellspacing="0" cellpadding="0">
<xsl:for-each select=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']">
<xsl:apply-templates select="proplist/prop[kind='Dodavatel']"/>
<xsl:apply-templates select="proplist/prop[kind='Datum nßkupu']"/>
<xsl:apply-templates select="proplist/prop[kind='╚φslo faktury']"/>
<xsl:apply-templates select="proplist/prop[kind='Zßruka']"/>
<xsl:apply-templates select="proplist/prop[kind='Cena']"/>
</xsl:for-each>
</table>
</td>
</tr>
<tr>
<td class="Frame" valign="top">
<table cellspacing="0" cellpadding="0">
<xsl:for-each select=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']">
<xsl:apply-templates select="proplist/prop[kind='Popis']"/>
<xsl:apply-templates select="proplist/prop[kind='V²robce']"/>
<xsl:apply-templates select="proplist/prop[kind='TypovΘ oznaΦenφ']"/>
<xsl:apply-templates select="proplist/prop[kind='SΘriovΘ Φφslo']"/>
<xsl:apply-templates select="proplist/prop[kind='Datum p°φÜtφ servisnφ kontroly']"/>
</xsl:for-each>
</table>
</td>
<td class="Frame" valign="top" width="50%">
<table cellspacing="0" cellpadding="0">
<xsl:for-each select=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']">
<xsl:for-each select="proplist/prop[not(special) and own]" order-by="kind">
<xsl:if expr="GetPropGroup(this)==0">
<xsl:apply-templates select="."/>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</table>
</td>
</tr>
</table>
<xsl:eval>g_BoldProp=false,""</xsl:eval>
<br/>
<table>
<xsl:attribute name="id"><xsl:eval>"parts"+g_repId</xsl:eval></xsl:attribute>
<tr><td>
<h3>
SouΦßsti
<img id="closebutt" style="cursor:hand">
<xsl:attribute name="onclick">ToggleBlock("partsbutt","parts",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
</h3>
<xsl:apply-templates select="nodelist"/>
</td></tr></table>
<table>
<xsl:attribute name="id"><xsl:eval>"software"+g_repId</xsl:eval></xsl:attribute>
<tr><td>
<h3>Software
<img id="closebutt" style="cursor:hand">
<xsl:attribute name="onclick">ToggleBlock("softwarebutt","software",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
</h3>
<xsl:apply-templates select=".//swlist"/>
</td></tr></table>
<table>
<xsl:attribute name="id"><xsl:eval>"notices"+g_repId</xsl:eval></xsl:attribute>
<tr><td>
<h3>
Poznßmky
<img id="closebutt" style="cursor:hand">
<xsl:attribute name="onclick">ToggleBlock("noticesbutt","notices",<xsl:eval>g_repId</xsl:eval>)</xsl:attribute>
</img>
</h3>
<xsl:for-each select="proplist/prop[kind='Poznßmka']">
<xsl:value-of select="value"/><br/>
</xsl:for-each>
<xsl:apply-templates select="noticelist/notice" order-by="date"/>
</td></tr></table>
<xsl:if test="context()[not(end())]"><p class="page"></p></xsl:if>
<xsl:eval>g_repId++,""</xsl:eval>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
Vybran² objekt neobsahuje ₧ßdou poΦφtaΦovou Sestavu.
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="nodelist">
<table width="100%" cellspacing="0">
<tbody>
<xsl:for-each select="node" order-by="proplist/prop[kind='Druh']/value">
<xsl:if expr="TestNode(this)==0">
<xsl:apply-templates select="." />
</xsl:if>
</xsl:for-each>
</tbody>
</table>
</xsl:template>
<xsl:template match="prop">
<tr>
<td>
<xsl:choose>
<xsl:when expr="g_BoldProp">
<b><xsl:value-of select="kind"/>:</b> <xsl:value-of select="value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="kind"/>: <xsl:value-of select="value"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<xsl:template match="proplist">
<xsl:choose>
<xsl:when test="prop[own='1' and not(special) and not(objectname)]">
<table cellspacing="0" cellpadding="0"><tbody>
<tr>
<td>
<b><xsl:value-of select="prop[kind='Druh']/value"/>:
<xsl:value-of select="ancestor(node)/name"/></b>
</td>
<td align="right" valign="bottom">
<img id="togglepropclosed" onclick="ToggleProp(this)"
style="cursor:hand" alt="zobrazit/skr²t vlastnosti"/>
</td>
</tr>
<tr style="display:none">
<td colspan="2" valign="top">
<table width="100%" cellspacing="0" cellpadding="0"><tbody>
<xsl:for-each select="prop[own='1' and not(special) and not(objectname)]" order-by="kind">
<xsl:apply-templates select="."/>
</xsl:for-each>
</tbody></table>
</td>
</tr>
</tbody></table>
</xsl:when>
<xsl:otherwise>
<table cellspacing="0" cellpadding="0"><tbody>
<tr>
<td>
<b><xsl:value-of select="prop[kind='Druh']/value"/>:
<xsl:value-of select="ancestor(node)/name"/></b>
</td>
</tr>
</tbody></table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="proplist[prop[kind='Druh']/value='PoΦφtaΦ']">
<xsl:choose>
<xsl:when test="prop[own='1' and not(special) and not(objectname)]">
<table cellspacing="0" cellpadding="0" bgcolor="#F0F0F0"><tbody>
<tr>
<td>
<b><xsl:value-of select="prop[kind='Druh']/value"/>:
<xsl:value-of select="ancestor(node)/name"/></b>
</td>
<td align="right" valign="bottom">
<img id="toggleprop" onclick="ToggleProp(this)"
style="cursor:hand" alt="zobrazit/skr²t vlastnosti"/>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<table width="100%" cellspacing="0" cellpadding="0"><tbody>
<xsl:for-each select="prop[own='1' and not(special) and not(objectname)]" order-by="kind">
<xsl:apply-templates select="."/>
</xsl:for-each>
</tbody></table>
</td>
</tr>
</tbody></table>
</xsl:when>
<xsl:otherwise>
<table cellspacing="0" cellpadding="0"><tbody>
<tr>
<td>
<b><xsl:value-of select="prop[kind='Druh']/value"/>:
<xsl:value-of select="ancestor(node)/name"/></b>
</td>
</tr>
</tbody></table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="node">
<tr>
<td align="right" valign="top">
<xsl:choose>
<xsl:when test="nodelist/node">
<img id="toggle" onclick="ToggleNextRow(this)" style="cursor:hand"
alt="zobrazit/skr²t podobjekty"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td valign="top" width="100%">
<xsl:apply-templates select="proplist"/>
</td>
</tr>
<xsl:if test="nodelist/node">
<tr>
<td> </td>
<td>
<xsl:apply-templates select="nodelist"/>
</td>
</tr>
</xsl:if>
</xsl:template>
<xsl:template match="swlist">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><b>OperaΦnφ systΘm:</b> <xsl:value-of select="./sw[@cat='1']"/></td>
</tr>
<tr>
<td><b>Aplikace:</b>
<xsl:for-each select="./sw[@cat!='1']">
<xsl:value-of select="."/><xsl:if test="context()[not(end())]">, </xsl:if>
</xsl:for-each>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="notice">
<xsl:value-of select="desc"/>
(<xsl:value-of select="date"/>, <xsl:value-of select="user"/>)
<br/>
</xsl:template>
<xsl:script><![CDATA[
var g_BoldProp=false;
var g_repId=0;
function GetPropGroup(e) {
var a=new Array(
"Nßzev organizace",
"Zßvod", "Zßvod1", "Zßvod2", "Zßvod3",
"┌sek", "┌sek1", "┌sek2", "┌sek3",
"St°edisko", "St°edisko1", "St°edisko2", "St°edisko3",
"┌tvar", "┌tvar1", "┌tvar2", "┌tvar3",
"Odd∞lenφ", "U₧ivatel",
"Budova","Poschodφ","Mφstnost","Umφst∞nφ",
"Nßzev sφt∞","Nßzev podsφt∞","Nßzev v∞tve sφt∞",
"Dodavatel","Datum nßkupu","╚φslo faktury","Zßruka","Cena",
"Popis","V²robce","TypovΘ oznaΦenφ","SΘriovΘ Φφslo","Datum p°φÜtφ servisnφ kontroly",
"Druh", "Heslo", "P°ihlaÜovacφ jmΘno", "K≤d organizace",
"Poznßmka", "Nßzev sestavy", "Inventßrnφ Φφslo");
p=e.selectSingleNode("kind");
if ( !p )
return 0;
for ( i=0; i<a.length; i++ ) {
if ( p.text.toLowerCase()==a[i].toLowerCase() )
return 1;
}
return 0;
}
function TestNode(e) {
var a=new Array("Seznam instalovanΘho software");
p=e.selectSingleNode("proplist/prop[kind='Druh']/value");
if ( !p )
return 0;
for ( i=0; i<a.length; i++ ) {
if ( p.text==a[i] )
return 1;
}
return 0;
}
]]></xsl:script>
</xsl:stylesheet>