893f4da173
Modification de certains chemins Ajout du framework dans l'extranet
407 lines
16 KiB
XML
407 lines
16 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
|
|
<xsl:variable name="perpage">10</xsl:variable>
|
|
<xsl:template match="*|/">
|
|
<xsl:apply-templates/>
|
|
</xsl:template>
|
|
<xsl:template match="text()|@*">
|
|
<xsl:value-of select="."/>
|
|
</xsl:template>
|
|
<xsl:template match="historiqueEvt">
|
|
<html>
|
|
<head>
|
|
<title>Historique des évènements</title>
|
|
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe_base.css" />
|
|
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe.css" />
|
|
|
|
<script type="text/javascript" src="/infogreffe/js/tools.js">
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
// Dernier script non reconnu !!!
|
|
//]]>
|
|
</script>
|
|
|
|
</head>
|
|
<body class="simple" onload="adapterDimensions('conteneur');">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function appel_action(formName) {
|
|
formName.submit();
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
<!-- cartouche information -->
|
|
<div class="fond-resultat" id="conteneur" style="padding:0px">
|
|
<table class="struct" width="550px">
|
|
<tr>
|
|
<td style="width:425px" class="struct-ligne-titre">
|
|
<div class="ficheidentite-ident" style="margin-left:10px">
|
|
<span class="text-company">
|
|
<xsl:value-of select="dossier/nom"/>
|
|
</span>
|
|
<br/>
|
|
<span class="text-rcs">
|
|
<xsl:value-of select="dossier/numident"/>
|
|
<br/>
|
|
<span style="font-weight: bolder;font-size: 11px;">Adresse : </span><xsl:value-of select="dossier/adresse"/>
|
|
<br/>
|
|
<span style="font-weight: bolder;font-size: 11px;">Activité (libellé code NAF) : </span><xsl:value-of select="dossier/activite"/>
|
|
<br/>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td style="vertical-align:top;width:125px" align="right">
|
|
<br/>
|
|
<table class="cartouche-liens" style="margin-right:5px">
|
|
<tr>
|
|
<td class="gauche">
|
|
<a style="color:#545377;" href="javascript:window.print()">Imprimer</a>
|
|
</td>
|
|
<td class="droite">
|
|
<a style="color:#545377;" href="javascript:window.print()">
|
|
<img src="/infogreffe/img/pictos/imprimer.png" alt="Imprimer la fiche"/>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:425px" class="struct-ligne">
|
|
<table class="struct" width="405px" style="margin-top:10px;margin-bottom:10px;margin-left:10px;margin-rigtht:10px">
|
|
<xsl:if test="entete">
|
|
<tr>
|
|
<td colspan="2">
|
|
<span class="texte-standard" style="font-style:italic">
|
|
L'historique des modifications au RCS HORS PROCEDURES COLLECTIVES présente les évènements survenus après le
|
|
<xsl:value-of select="@date"/>. Les informations sur les procédures collectives sont consultables dans la partie « observations » de l'extrait RCS.
|
|
<br/>
|
|
<br/>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td align="center">
|
|
<table width="325px">
|
|
<tr>
|
|
<td style="width:30%">
|
|
<div style="margin-left:10px">
|
|
<span class="texte-standard">Trier par :</span>
|
|
</div>
|
|
</td>
|
|
<td style="width:70%">
|
|
<form name="formCritere" action="/?page=greffes&vue=histo&siret=55214450300018" method="get">
|
|
<!--<form name="formCritere" action="/infogreffe/HistoriqueEvenementTri.do" method="get">-->
|
|
<div>
|
|
<select style="width:250px" name="critere" onchange="appel_action(formCritere)">
|
|
<option>
|
|
<xsl:attribute name="value">antechrono</xsl:attribute>
|
|
<xsl:if test="lstevenement/@critere='antechrono'">
|
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:text>Date d'enregistrement au greffe (de la plus récente à la plus ancienne)
|
|
</xsl:text>
|
|
</option>
|
|
<option>
|
|
<xsl:attribute name="value">chrono</xsl:attribute>
|
|
<xsl:if test="lstevenement/@critere='chrono'">
|
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:text>Date d'enregistrement au greffe (de la plus ancienne à la plus récente)
|
|
</xsl:text>
|
|
</option>
|
|
<option>
|
|
<xsl:attribute name="value">type</xsl:attribute>
|
|
<xsl:if test="lstevenement/@critere='type'">
|
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:text>Type d'inscription modificative</xsl:text>
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div style="margin-left:10px">
|
|
<span class="texte-standard">Filtrer sur : </span>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<!--<form name="filtreform" action="/infogreffe/HistoriqueEvenementTri.do?start=1" method="get">-->
|
|
<form name="filtreform" action="/?page=greffes&vue=histo&siret=55214450300018&start=1" method="get">
|
|
<div>
|
|
<select name="filtre" style="width:250px" onchange="appel_action(filtreform)">
|
|
<option value="">
|
|
<xsl:if test="@filtre=''">
|
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
|
</xsl:if>Aucun</option>
|
|
<xsl:for-each select="lstevenement/evenement[not(@code=preceding::evenement/@code)]">
|
|
<xsl:variable name="type">
|
|
<xsl:value-of select="type"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="code">
|
|
<xsl:value-of select="@code"/>
|
|
</xsl:variable>
|
|
<option>
|
|
<xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute>
|
|
<xsl:if test="ancestor::lstevenement/@filtre=$code">
|
|
<xsl:attribute name="selected">selected</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:value-of select="type"/>
|
|
</option>
|
|
</xsl:for-each>
|
|
</select>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="text-align:center">
|
|
<span class="texte-standard" style="font-style:italic">
|
|
<br/>
|
|
Ces informations sont à jour à la date du : <xsl:value-of select="@dateFraicheur"/>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td style="width:125px"/>
|
|
</tr>
|
|
<xsl:apply-templates select="lstevenement"/>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
<xsl:template match="lstevenement">
|
|
<xsl:variable name="start">
|
|
<xsl:value-of select="ancestor::historiqueEvt/@start"/>
|
|
</xsl:variable>
|
|
<xsl:variable name="totalitems" select="count(//evenement)"/>
|
|
<xsl:variable name="end">
|
|
<xsl:choose>
|
|
<xsl:when test="($start + $perpage) > $totalitems">
|
|
<xsl:value-of select="$totalitems"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$start + $perpage - 1"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<xsl:variable name="filtre">
|
|
<xsl:value-of select="@filtre"/>
|
|
</xsl:variable>
|
|
<tr>
|
|
<td colspan="2" align="right">
|
|
<br/>
|
|
<xsl:call-template name="pagination">
|
|
<xsl:with-param name="filtre" select="$filtre"/>
|
|
</xsl:call-template>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<table class="table-classic" style="width:530px;margin-top:5px;margin-bottom:5px;margin-left:10px;margin-right:10px">
|
|
<tr class="titre">
|
|
<td class="titre" style="width:70px;vertical-align: middle;">Date</td>
|
|
<td class="titre" style="width:200px;text-align: center;vertical-align: middle;">Nature de l'inscription
|
|
</td>
|
|
<td class="titre" style="width:260px;text-align: center;vertical-align: middle;">Objet de l'inscription modificative</td>
|
|
</tr>
|
|
<!-- tri sur la liste des evenements -->
|
|
<xsl:variable name="critere">
|
|
<xsl:value-of select="@critere"/>
|
|
</xsl:variable>
|
|
<!-- gestion du filtre -->
|
|
<xsl:if test="$filtre!=''">
|
|
<xsl:if test="$critere='chrono'">
|
|
<xsl:for-each select="evenement[(@code=$filtre)][position() >= $start and position() <= $end]">
|
|
<xsl:sort select="date" order="ascending"/>
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="$critere='antechrono'">
|
|
<xsl:for-each select="evenement[(@code=$filtre)][position() >= $start and position() <= $end]">
|
|
<xsl:sort select="date" order="descending"/>
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="$critere='type'">
|
|
<xsl:for-each select="evenement[(@code=$filtre)][position() >= $start and position() <= $end]">
|
|
<xsl:sort select="*[(name()=$critere)]" order="ascending"/>
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
<!-- gestion du filtre -->
|
|
<xsl:if test="$filtre=''">
|
|
<xsl:if test="$critere='chrono'">
|
|
<xsl:for-each select="evenement">
|
|
<xsl:sort select="date" order="ascending"/>
|
|
<xsl:if test="position() >= $start and position() <= $end">
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="$critere='antechrono'">
|
|
<xsl:for-each select="evenement">
|
|
<xsl:sort select="date" order="descending"/>
|
|
<xsl:if test="position() >= $start and position() <= $end">
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
<xsl:if test="$critere='type'">
|
|
<xsl:for-each select="evenement">
|
|
<xsl:sort select="*[(name()=$critere)]" order="ascending"/>
|
|
<xsl:if test="position() >= $start and position() <= $end">
|
|
<xsl:call-template name="display-list">
|
|
<xsl:with-param name="date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:if>
|
|
</xsl:for-each>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="right">
|
|
<xsl:call-template name="pagination">
|
|
<xsl:with-param name="filtre" select="$filtre"/>
|
|
</xsl:call-template>
|
|
<br/>
|
|
</td>
|
|
</tr>
|
|
</xsl:template>
|
|
<xsl:template name="format-date">
|
|
<xsl:param name="iso-date"/>
|
|
<xsl:value-of select="substring($iso-date,9,2)"/>
|
|
<xsl:text>/</xsl:text>
|
|
<xsl:value-of select="substring($iso-date,6,2)"/>
|
|
<xsl:text>/</xsl:text>
|
|
<xsl:value-of select="substring($iso-date,1,4)"/>
|
|
</xsl:template>
|
|
<xsl:template name="display-list">
|
|
<tr>
|
|
<xsl:variable name="date-out">
|
|
<xsl:call-template name="format-date">
|
|
<xsl:with-param name="iso-date" select="date"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:choose>
|
|
<xsl:when test="(position() mod $perpage=0) or (position()=last())">
|
|
<xsl:attribute name="class">last</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:attribute name="class">ligne</xsl:attribute>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<td class="titre" style="width:13%">
|
|
<xsl:value-of select="$date-out"/>
|
|
</td>
|
|
<td class="std" style="width:39%; text-align: center;">
|
|
<xsl:value-of select="type"/>
|
|
</td>
|
|
<td class="last" style="width:48%">
|
|
<xsl:value-of select="libelle"/>
|
|
<xsl:text> </xsl:text>
|
|
</td>
|
|
</tr>
|
|
</xsl:template>
|
|
<xsl:template name="pagination">
|
|
<xsl:param name="filtre"/>
|
|
<div class="pagination-page" style="width: 530px; margin-left: 10px; margin-right: 10px;">
|
|
<table class="pagination-table">
|
|
<tr>
|
|
<td class="pagination-col">
|
|
<xsl:if test="$filtre!=''">
|
|
<span class="pagination-page" style="vertical-align: middle;">
|
|
<xsl:for-each select="evenement[(@code=$filtre)]">
|
|
<xsl:call-template name="includePagination"/>
|
|
</xsl:for-each>
|
|
</span>
|
|
</xsl:if>
|
|
<xsl:if test="$filtre=''">
|
|
<span class="pagination-page" style="vertical-align: middle;">
|
|
<xsl:for-each select="evenement">
|
|
<xsl:call-template name="includePagination"/>
|
|
</xsl:for-each>
|
|
</span>
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</xsl:template>
|
|
<xsl:template name="includePagination">
|
|
<!-- affichage des pages-->
|
|
<xsl:if test="position() mod $perpage = 1 or $perpage = 1">
|
|
<xsl:variable name="pagenum">
|
|
<xsl:value-of select="ceiling(position() div $perpage)"/>
|
|
</xsl:variable>
|
|
<xsl:if test="$pagenum = 1">
|
|
<xsl:if test="ancestor::historiqueEvt/@start - $perpage > 0">
|
|
<a class="pagination-page" href="/?page=greffes&vue=histo&siret=55214450300018&start={ ancestor::historiqueEvt/@start - $perpage}">
|
|
<!--/infogreffe/HistoriqueEvenementTri.do?start={ ancestor::historiqueEvt/@start - $perpage}">-->
|
|
<img style="vertical-align:middle" src="/infogreffe/img/pictos/navigation_gauche_actif.gif" alt="Actes Précédents"/>
|
|
</a>
|
|
 
|
|
</xsl:if>
|
|
<xsl:if test="ancestor::historiqueEvt/@start - $perpage < 0">
|
|
<img style="vertical-align:middle" src="/infogreffe/img/pictos/navigation_gauche_inactif.gif" alt=""/>
|
|
 
|
|
</xsl:if>
|
|
<span style="vertical-align: middle;">Page : </span>
|
|
</xsl:if>
|
|
<xsl:if test="position() = ancestor::historiqueEvt/@start">
|
|
<span style="vertical-align: middle;"><xsl:value-of select="$pagenum"/></span>
|
|
</xsl:if>
|
|
<xsl:if test="position() != ancestor::historiqueEvt/@start">
|
|
<a class="pagination-page" href="/?page=greffes&vue=histo&siret=55214450300018&start={position()}">
|
|
<xsl:value-of select="$pagenum"/>
|
|
</a>
|
|
</xsl:if>
|
|
<!-- force whitespace in between the numbered links -->
|
|
<xsl:if test="$pagenum != ceiling(last() div $perpage)">
|
|
<span style="vertical-align: middle;">
|
|
<xsl:text>-</xsl:text>
|
|
</span>
|
|
</xsl:if>
|
|
<xsl:if test="$pagenum = ceiling(last() div $perpage)">
|
|
<xsl:if test="ancestor::historiqueEvt/@start + $perpage < last()">
|
|
 
|
|
<a class="pagination-page" href="/?page=greffes&vue=histo&siret=55214450300018&start={ancestor::historiqueEvt/@start + $perpage}">
|
|
<img style="vertical-align:middle" src="/infogreffe/img/pictos/navigation_droite_actif.gif" alt="Actes suivants"/>
|
|
</a>
|
|
</xsl:if>
|
|
<xsl:if test="ancestor::historiqueEvt/@start + $perpage > last()">
|
|
 
|
|
<img style="vertical-align:middle" src="/infogreffe/img/pictos/navigation_droite_inactif.gif" alt=""/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
<!-- affichage des pages-->
|
|
</xsl:stylesheet>
|