382

ID382
Data2010-06-07
Symbol2010/06/07/382
InstytucjaUrząd Miasta Krakowa
NazwaWniosek ogólny
Czy Aktualny0

Ustawy (1)

  • URI://Dziennik_Ustaw/2000/98/1071
  • Ustawa z dnia 14 czerwca 1960 r. Kodeks Postępowania Administracyjnego

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/03/06/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/03/06/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/03/06/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/03/06/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/03/06/" xmlns:wnio="http://crd.gov.pl/wzor/2010/06/07/382/" version="1.0">
    	
    	<xsl:output version="4.0" method="html" indent="yes" encoding="UTF-8"/>
    	<xsl:variable name="XML" select="/"/>
    	
    	
    	<xsl:template match="/">
    		<html>
    			<head>
    				<title>
    					<xsl:text>Wniosek ogólny</xsl:text>
    				</title>
    				<style type="text/css"> body { font-family: Arial; font-size: 10pt; color: #000000; text-align: left}</style>
    				<style type="text/css"> td { font-family: Arial; font-size: 10pt; color: #000000; text-align: left}</style>
    				<style type="text/css"> .sectionHeader {font-size: 11pt; font-weight: bold;}</style>
    				<style type="text/css"> .section {width:4px; background: #aaaaaa}</style>
    				<style type="text/css"> .tableHeader {font-weight: bold;text-align:center; background: #aaaaaa}</style>
    			</head>
    			
    			<body><span class="sectionHeader">Nadawca wniosku</span><br/>
    				<xsl:for-each select="wnio:Dokument">
    					<xsl:for-each select="str:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba">
    						<xsl:value-of select="oso:Imie"/><xsl:text> </xsl:text><xsl:value-of select="oso:Nazwisko"/>
    					</xsl:for-each>
    
    					<div style="text-align:right">
    						<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:RodzajWniosku/wnio:MiejscowoscDokumentu"/>
    						<xsl:text>, </xsl:text>		
    						<xsl:value-of select="str:OpisDokumentu/meta:Data"/>
    					</div>						
    				
    					<br/>
    					<span class="sectionHeader">Wnioskodawca</span><br/><br/>
    					
    					<xsl:for-each select="wnio:TrescDokumentu/wnio:Wnioskodawcy/wnio:Wnioskodawca">
    					<table>
    					<tr>
    						<td class="section"/><td>
    						
    							<xsl:if test="wnio:Reprezentacja/wnio:Reprezentant/@typ='przedstawiciel'">
    								<br/>Przedstawiciel<br/><br/>
    							</xsl:if>
    							<xsl:if test="wnio:Reprezentacja/wnio:Reprezentant/@typ='pelnomocnik'">
    								<br/>Pełnomocnik<br/><br/>
    							</xsl:if>		
    							
    							<xsl:for-each select="wnio:Reprezentacja/wnio:Reprezentant/oso:Osoba">
    								<xsl:call-template name="Osoba">
    									<xsl:with-param name="adres" select="adr:Adres"/>
    									<xsl:with-param name="osoba" select="."/>
    								</xsl:call-template>							
    							</xsl:for-each>
    							<br/>
    													
    							<xsl:for-each select="meta:Podmiot[@typPodmiotu='Osoba']">
    								<xsl:call-template name="Osoba">
    									<xsl:with-param name="adres" select="oso:Osoba/adr:Adres"/>
    									<xsl:with-param name="osoba" select="oso:Osoba"/>
    								</xsl:call-template>
    							</xsl:for-each>
    								
    							<xsl:for-each select="meta:Podmiot[@typPodmiotu='Instytucja']">
    								<xsl:call-template name="Instytucja">
    									<xsl:with-param name="adres" select="inst:Instytucja/adr:Adres"/>
    									<xsl:with-param name="instytucja" select="inst:Instytucja"/>
    								</xsl:call-template>								
    							</xsl:for-each>	
    							
    							
    						
    							<br/>Adres do korespodnencji:<br/>
    
    							<xsl:if test="wnio:Reprezentacja/wnio:Reprezentant/wnio:DoreczenieZwrotne/wnio:AdresZwrotny/@typ='inny'">
    									<xsl:apply-templates select="wnio:Reprezentacja/wnio:Reprezentant/wnio:DoreczenieZwrotne/wnio:AdresZwrotny/adr:Adres"/><br/>
    							</xsl:if>							
    							<xsl:if test="wnio:Reprezentacja/wnio:Reprezentant/wnio:DoreczenieZwrotne/wnio:AdresZwrotny/@typ='wnioskodawcy'">
    								<xsl:apply-templates select="meta:Podmiot/*/adr:Adres"/><br/>
    							</xsl:if>		
    							
    						</td>
    					</tr>
    					</table>
    					<br/>
    					</xsl:for-each> <!-- Wnioskodawca -->
    					
    					<table width="100%">
    						<tbody>
    							<tr>
    								<td/>
    								<td style="width:300px">
    									<span class="sectionHeader">Adresat</span><br/><br/>
    									<xsl:call-template name="Instytucja">
    										<xsl:with-param name="adres" select="str:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja/adr:Adres"/>
    										<xsl:with-param name="instytucja" select="str:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja"/>
    									</xsl:call-template>										
    								</td>
    							</tr>
    						</tbody>
    					</table>
    					<br/><br/><br/>
    					
    					<xsl:for-each select="str:OpisDokumentu/meta:Grupowanie[@typGrupowania='ZnakSprawy']">
    						<xsl:for-each select="meta:KodGrupowania[text() != '']">
    							<br/><xsl:text>Znak sprawy: </xsl:text><xsl:value-of select="."/>						
    						</xsl:for-each>
    							<xsl:for-each select="meta:OpisKoduGrupowania[text() != '']">
    							<br/><xsl:text>Opis: </xsl:text><xsl:value-of select="."/>						
    						</xsl:for-each>					
    					</xsl:for-each>
    					
    					<br/><br/>
    					<center><span class="sectionHeader">Treść wniosku</span></center>
    					<br/><br/>
    					<table>
    						<tr>
    							<td class="section"/><td>
    								<xsl:value-of select="wnio:TrescDokumentu/wnio:Wartosc/wnio:TrescWniosku/wnio:ZawartoscTresci"/>	
    							</td>
    						</tr>
    					</table>			
    					<br/><br/>
    					<span class="sectionHeader">Załączniki</span><br/>
    					<xsl:apply-templates select="wnio:TrescDokumentu/wnio:Wartosc/str:Zalaczniki"/>
    					<br/>
    					<b>Potwierdzona zgodność załączników z oryginałami: </b>
    					<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalacznikiEx/@zgodnoscZOryginalem='true'">Tak</xsl:if>	
    					<xsl:if test="wnio:TrescDokumentu/wnio:Wartosc/wnio:ZalacznikiEx/@zgodnoscZOryginalem='false'">Nie</xsl:if>	
    					<br/><br/>
    					<b>Wyrażam zgodę na wymianę korespondencji drogą elektroniczną: </b>
    					<xsl:choose>
    						<xsl:when test="wnio:TrescDokumentu/wnio:Wnioskodawcy/wnio:Wnioskodawca/wnio:ZgodaNaKorespondencjeElektroniczna='true'">Tak</xsl:when>
    						<xsl:otherwise>Nie</xsl:otherwise>
    					</xsl:choose>
    				</xsl:for-each>
    			</body>
    		</html>
    	</xsl:template>
    	
    	<xsl:template name="Osoba">
    		<xsl:param name="adres"/>
    		<xsl:param name="osoba"/>
    		<b>
    			<xsl:value-of select="$osoba/oso:Imie"/><xsl:text> </xsl:text>
    			<xsl:if test="count($osoba/oso:Nazwisko) &gt; 0">
    				<xsl:if test="count($osoba/oso:Nazwisko) = 1">
    					<xsl:value-of select="$osoba/oso:Nazwisko"/><br/>
    				</xsl:if>
    				<xsl:if test="count($osoba/oso:Nazwisko) &gt; 1">
    					<xsl:value-of select="$osoba/oso:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					-
    					<xsl:value-of select="$osoba/oso:Nazwisko[@rodzajCzlonu='drugi']"/><br/>		
    				</xsl:if>
    			</xsl:if>
    		</b>
    		
    		<xsl:if test="$adres">
    			<xsl:apply-templates select="$adres"/><br/>
    		</xsl:if>
    		
    
    		<xsl:for-each select="$osoba/oso:IdOsoby/oso:PESEL[text() != '']">
    			<xsl:text>PESEL: </xsl:text><xsl:value-of select="."/><br/>
    		</xsl:for-each>
    
    		<xsl:for-each select="$osoba/oso:IdOsoby/oso:NIP[text() != '']">
    			<xsl:text> NIP: </xsl:text><xsl:value-of select="."/><br/>
    		</xsl:for-each>		
    		
    			
    		<xsl:for-each select="$osoba/adr:Kontakt[adr:Telefon != '']">
    			<xsl:text>Telefon: </xsl:text><xsl:value-of select="adr:Telefon"/><br/>
    		</xsl:for-each>		
    		
    
    		
    
    				
    
    		
    	</xsl:template>
    	
    	<xsl:template name="Instytucja">
    		<xsl:param name="adres"/>
    		<xsl:param name="instytucja"/>
    		
    		<b><xsl:value-of select="$instytucja/inst:NazwaInstytucji"/></b><br/>
    		<xsl:for-each select="$instytucja/inst:Jednostka">
    			<b><xsl:value-of select="inst:NazwaInstytucji"/></b><br/>
    		</xsl:for-each>
    		
    		<xsl:apply-templates select="$adres"/><br/>		
    				
    
    		<xsl:for-each select="$instytucja/inst:IdInstytucji/inst:NIP[text() != '']">
    			<xsl:text> NIP: </xsl:text><xsl:value-of select="."/><br/>
    		</xsl:for-each>		
    		
    		<xsl:for-each select="$instytucja/inst:IdInstytucji/inst:REGON[text() != '']">
    			<xsl:text> REGON: </xsl:text><xsl:value-of select="."/><br/>
    		</xsl:for-each>			
    
    		<xsl:for-each select="$instytucja/inst:IdInstytucji/inst:KRS[text() != '']">
    			<xsl:text>KRS: </xsl:text><xsl:value-of select="."/><br/>
    		</xsl:for-each>
    
    		
    		<xsl:for-each select="$instytucja/adr:Kontakt[adr:Telefon != '']">
    			<xsl:text>Telefon: </xsl:text><xsl:value-of select="adr:Telefon"/><br/>
    		</xsl:for-each>	
    
    				
    
    
    				
    
    		
    	</xsl:template>	
    	
    	<xsl:template match="adr:Adres">
    	
    		<xsl:if test="adr:Ulica!=''">
    			<xsl:for-each select="adr:Ulica[@rodzajUlicy != 'inna']">
    				<xsl:value-of select="@rodzajUlicy"/><xsl:text> </xsl:text>
    			</xsl:for-each>
    			
    			<xsl:value-of select="adr:Ulica"/>
    			<xsl:text> </xsl:text>
    			
    			<xsl:value-of select="adr:Budynek"/>
    			<xsl:for-each select="adr:Lokal[text() != '']">
    				<xsl:text>/</xsl:text><xsl:value-of select="."/>
    			</xsl:for-each>
    			
    			<br/>
    			<xsl:choose>
    				<xsl:when test="adr:Poczta='' or (adr:Poczta=adr:Miejscowosc)">
    					<xsl:text/><xsl:value-of select="adr:KodPocztowy"/>
    					<xsl:text> </xsl:text><xsl:value-of select="adr:Miejscowosc"/>
    				</xsl:when>
    				<xsl:otherwise>
    					<xsl:value-of select="adr:Miejscowosc"/>
    					<xsl:text>, </xsl:text><xsl:value-of select="adr:KodPocztowy"/>
    					<xsl:text> </xsl:text>
    					<xsl:value-of select="adr:Poczta"/>
    				</xsl:otherwise>
    			</xsl:choose>
    
    		</xsl:if>
    		
    		
    		<xsl:if test="adr:Ulica=''">
    			<xsl:text> </xsl:text><xsl:value-of select="adr:Miejscowosc"/>
    			<xsl:text> </xsl:text>
    			
    			<xsl:value-of select="adr:Budynek"/>
    			<xsl:for-each select="adr:Lokal[text() != '']">
    				<xsl:text>/</xsl:text><xsl:value-of select="."/>
    			</xsl:for-each>
    
    			<xsl:text>, </xsl:text><xsl:value-of select="adr:KodPocztowy"/>
    			
    			<xsl:if test="adr:Poczta/text()!=''">		
    				<xsl:text> </xsl:text>
    				<xsl:value-of select="adr:Poczta"/>
    			</xsl:if>
    		</xsl:if>		
    		
    
    	</xsl:template>
    
    	<xsl:template match="str:Zalaczniki">
    		<br/>
    		<table border="1" cellspacing="0" cellpadding="4">					
    			<tr>
    				<td class="tableHeader">L.p.</td>
    				<td class="tableHeader">Potwierdzona <br/>aktualność</td>
    				<td class="tableHeader">Nazwa</td>
    				<td class="tableHeader">Opis</td>
    				<td class="tableHeader">Plik</td>
    			</tr>		
    			<xsl:for-each select="str:Zalacznik">
    				<xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable>		
    					<tr>
    						<td><center><xsl:value-of select="$pos"/></center></td>
    						<td><center>
    							<xsl:if test="../../wnio:ZalacznikiEx/wnio:Zalacznik[$pos]/@aktualny='true'">Tak</xsl:if>
    							<xsl:if test="../../wnio:ZalacznikiEx/wnio:Zalacznik[$pos]/@aktualny='false'">Nie</xsl:if>
    						</center></td>
    						<td><xsl:value-of select="../../wnio:ZalacznikiEx/wnio:Zalacznik[$pos]/wnio:RodzajNazwa"/></td>	
    						<td> <xsl:value-of select="str:OpisZalacznika"/></td>
    						<td>
    							<xsl:choose>
    								<xsl:when test="@kodowanie='URI'">
    									<A>
    										<xsl:attribute name="HREF"><xsl:value-of select="str:DaneZalacznika"/></xsl:attribute>
    										<xsl:attribute name="TARGET">_blank</xsl:attribute>
    										<B>
    											<xsl:value-of select="@nazwaPliku"/>
    										</B>
    									</A>
    								</xsl:when>
    								<xsl:otherwise>
    									<xsl:value-of select="@nazwaPliku"/>
    								</xsl:otherwise>
    							</xsl:choose>
    						</td>	
    					</tr>
    			</xsl:for-each>
    		</table>	
    	</xsl:template>
    	
    	
    	
    </xsl:stylesheet>