<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: benoitbalon</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Supprimer ces foutus fichiers Thumbs.db</title>
        <link>http://www.posteet.com/view/1218</link>
        <description>
        <![CDATA[<pre>rm `find . -name &quot;*.db&quot; -print`</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/rm">[rm]</a>  <a href="http://www.posteet.com/tags/thumbnails">[thumbnails]</a>  <a href="http://www.posteet.com/tags/thumbs.db">[thumbs.db]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Fri, 22 Aug 2008 16:33:19 +0000</pubDate>

            <category>bash</category>
            <category>find</category>
            <category>rm</category>
            <category>thumbnails</category>
            <category>thumbs.db</category>
    
    </item>

  
    <item>
        <title>Modifier la date de la prise d'une photo dans les informations EXIF</title>
        <link>http://www.posteet.com/view/1217</link>
        <description>
        <![CDATA[<pre>#! /bin/bash

for i in `ls -1 *.jpg`
do
    # Affiche la date et l'heure auxquelles la photo a ete prise (encore faut-il que l'appareil photo soit correctement configure !)
    exiv2 $i | grep Horodatage

    # Change l'annee de la prise de la photo (ici l'annee 2008)
    jhead -ds2008 $i

    # Avance l'heure de la prise de la photo (ici 1h 30m et 5s)
    jhead -ta+01:30:05 $i

    # Recule l'heure de la prise de la photo (ici 0h 20m et 0s)
    jhead -ta-00:20:00 $i
done</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/date">[date]</a>  <a href="http://www.posteet.com/tags/exif">[exif]</a>  <a href="http://www.posteet.com/tags/exiv2">[exiv2]</a>  <a href="http://www.posteet.com/tags/jhead">[jhead]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Fri, 22 Aug 2008 16:27:43 +0000</pubDate>

            <category>bash</category>
            <category>date</category>
            <category>exif</category>
            <category>exiv2</category>
            <category>jhead</category>
    
    </item>

  
    <item>
        <title>Ré-encodage d'une vidéo TS (issue de la Freebox) en XviD avec désentrelacement</title>
        <link>http://www.posteet.com/view/1104</link>
        <description>
        <![CDATA[<pre>mencoder -vf pp=ci,crop=480:560:0:8,scale=768:576 -oac mp3lame -lameopts cbr:br=128 -ovc xvid -xvidencopts bitrate=900 video_entree.ts -o video_sortie.avi</pre> <a href="http://www.posteet.com/tags/freebox">[freebox]</a>  <a href="http://www.posteet.com/tags/mencoder">[mencoder]</a>  <a href="http://www.posteet.com/tags/ts">[ts]</a>  <a href="http://www.posteet.com/tags/xvid">[xvid]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Mon, 14 Jul 2008 17:34:11 +0000</pubDate>

            <category>freebox</category>
            <category>mencoder</category>
            <category>ts</category>
            <category>xvid</category>
    
    </item>

  
    <item>
        <title>Support de la sortie de commande diff pour codepress (partie CSS)</title>
        <link>http://www.posteet.com/view/1096</link>
        <description>
        <![CDATA[<pre>/* 
* CodePress color styles for DIFF syntax highlighting 
*/ 
 
separator 
{ 
color: black; 
} 
 
before 
{ 
color: blue; 
font-size: 8pt; 
} 
 
after 
{ 
color: red; 
font-size: 8pt; 
} 
 
lines 
{ 
color: black; 
text-decoration: underline; 
font-weight: bold; 
font-size: 10pt; 
} 
 
common 
{ 
color: green; 
font-size: 10pt; 
} 
 
onlyin 
{ 
color: red; 
background-color: white; 
font-weight: bold; 
font-size: 10pt; 
} 
 
diff 
{ 
color: red; 
background-color: yellow; 
font-weight: bold; 
font-size: 10pt; 
}</pre> <a href="http://www.posteet.com/tags/codepress">[codepress]</a>  <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/diff">[diff]</a>  <a href="http://www.posteet.com/tags/expressions regulieres">[expressions regulieres]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Wed, 09 Jul 2008 17:34:11 +0000</pubDate>

            <category>codepress</category>
            <category>css</category>
            <category>diff</category>
            <category>expressions regulieres</category>
    
    </item>

  
    <item>
        <title>Support de la sortie de commande diff pour codepress (partie Javascript)</title>
        <link>http://www.posteet.com/view/1095</link>
        <description>
        <![CDATA[<pre>/* 
* CodePress regular expressions for DIFF syntax highlighting 
*/ 
 
// DIFF 
Language.syntax = [ 
{ input : /([0-9,]*)(c|d|a)([0-9,]+)(&lt;br|&lt;\/P)/g,output : '&lt;lines&gt;$1$2$3&lt;/lines&gt;$4' }, 
{ input : /(&gt;)(\-{3})(&lt;br|&lt;\/P)/g,output : '$1&lt;separator&gt;$2&lt;/separator&gt;$3'}, 
{ input : /(&gt;)(&amp;lt;.+?)(&lt;br|&lt;\/P)/g,output : '$1&lt;before&gt;$2&lt;/before&gt;$3'}, 
{ input : /(&gt;)(&amp;gt;.+?)(&lt;br|&lt;\/P)/g,output : '$1&lt;after&gt;$2&lt;/after&gt;$3' }, 
{ input : /(Common subdirectories.+?)(&lt;br|&lt;\/P)/g,output : '&lt;common&gt;$1&lt;/common&gt;$2' }, 
{ input : /(Only in )(.+?)(: )(.+?)(&lt;br|&lt;\/P)/g,output : '&lt;onlyin&gt;$1$2$3$4&lt;/onlyin&gt;$5' }, 
{ input : /(diff )(.+?)( )(.+?)(&lt;br|&lt;\/P)/g,output : '&lt;diff&gt;$1$2$3$4&lt;/diff&gt;$5' } 
] 
 
Language.snippets = [] 
 
Language.complete = [] 
 
Language.shortcuts = []</pre> <a href="http://www.posteet.com/tags/codepress">[codepress]</a>  <a href="http://www.posteet.com/tags/diff">[diff]</a>  <a href="http://www.posteet.com/tags/expressions regulieres">[expressions regulieres]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Wed, 09 Jul 2008 17:30:37 +0000</pubDate>

            <category>codepress</category>
            <category>diff</category>
            <category>expressions regulieres</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>Ré-encodage d'une vidéo avi DV en XviD avec désentrelacement</title>
        <link>http://www.posteet.com/view/1023</link>
        <description>
        <![CDATA[<pre>mencoder -vf pp=ci -oac mp3lame -lameopts cbr:br=128 -ovc xvid -xvidencopts bitrate=1200 video_en_entree.avi -o video_en_sortie.avi</pre> <a href="http://www.posteet.com/tags/mencoder">[mencoder]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Wed, 18 Jun 2008 19:28:58 +0000</pubDate>

            <category>mencoder</category>
    
    </item>

  
    <item>
        <title>Renommer des photos avec l'aide de leurs informations EXIF</title>
        <link>http://www.posteet.com/view/1021</link>
        <description>
        <![CDATA[<pre>#!/bin/bash

repertoire=$1
nomsortie=$2

# Lancement de l'outil d'ImageMagick
traite_exif ()
{
	exif=`identify -verbose -quiet &quot;$i&quot; 2&gt;&gt; /dev/null | grep 'xif:DateTime:' | tr -d ' '`
	if test &quot;$exif&quot; = &quot;&quot;;then continue;fi
	annee=`echo $exif | cut -d ':' -f3`
	mois=`echo $exif | cut -d ':' -f4`
	jour=`echo $exif | cut -d ':' -f5 | cut -c1-2`
	heure=`echo $exif | cut -d ':' -f5 | cut -c3-4`
	minute=`echo $exif | cut -d ':' -f6`
	seconde=`echo $exif | cut -d ':' -f7`
	date_complete=`printf '%s_%s_%s_%sh%sm%s_%s.jpg' $annee $mois $jour $heure $minute $seconde &quot;$nomsortie&quot;`
	echo &quot;${date_complete}&quot;
	cp $i $repertoire/$nomsortie/$date_complete
}

# On verifie qu'un repertoire a ete entre
if test &quot;$repertoire&quot; = &quot;&quot;
then
	echo &quot;Veuillez preciser le repertoire de photos a traiter !&quot;
	exit 1
fi

# On verifie qu'un nom a ete entre
if test &quot;$nomsortie&quot; = &quot;&quot;
then
	echo &quot;Veuillez preciser un nom de fichier generique a donner a vos photos !&quot;
	exit 2
fi

# On verifie que le programme identify existe
which identify &gt;&gt; /dev/null 2&gt;&gt; /dev/null
identify_exists=`echo $?`
if test $identify_exists -ne 0
then
	echo &quot;Veuillez installer ImageMagick !&quot;
	exit 1
fi

mkdir $repertoire/$nomsortie

ls -b1 $repertoire/* | while read i
do
	nb_char=`echo -n &quot;$i&quot; | wc -c`
	prem_char=`expr $nb_char - 3`
	extension=`echo &quot;$i&quot; | cut -c${prem_char}-${nb_char} | tr a-z A-Z`
	if test &quot;JPEG&quot; = &quot;$extension&quot; || test &quot;.JPG&quot; = &quot;$extension&quot;
	then
		traite_exif &quot;$i&quot;
	fi
done</pre> <a href="http://www.posteet.com/tags/exif">[exif]</a>  <a href="http://www.posteet.com/tags/identify">[identify]</a>  <a href="http://www.posteet.com/tags/ImageMagick">[ImageMagick]</a>  <a href="http://www.posteet.com/tags/photos">[photos]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Wed, 18 Jun 2008 17:13:01 +0000</pubDate>

            <category>exif</category>
            <category>identify</category>
            <category>ImageMagick</category>
            <category>photos</category>
    
    </item>

  
    <item>
        <title>Barre de progression à largeur automatique</title>
        <link>http://www.posteet.com/view/938</link>
        <description>
        <![CDATA[<pre>#!/bin/sh

# ex :
# ~$ test.sh 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||] 100.00%

barre_progression ()
{
	nb_iterations=$1
	liste_length=$2
	pourcent=`echo &quot;scale=2;($nb_iterations * 100) / $liste_length&quot; | bc`
	pourcent=`printf &quot;% 3.2f&quot; &quot;$pourcent&quot;`
	
	chaine=&quot;$pourcent&quot;
	nb_etoiles=`echo &quot;scale=0;$chaine / $diviseur_barre&quot; | bc`
	etoiles=&quot;&quot;
	while test $nb_etoiles -gt 0
	do
		etoiles=&quot;${caractere_barre}${etoiles}&quot;
		nb_etoiles=`echo &quot;$nb_etoiles - 1&quot; | bc`
	done
	etoiles=`printf &quot;[%-${largeur_barre}s]&quot; &quot;$etoiles&quot;`
	pourcentage=`printf &quot;%7s&quot; &quot;$chaine&quot;`
	#echo &quot;\r${etoiles}${pourcentage}%\r\c&quot;
	printf &quot;%b%b%b&quot; &quot;\r${etoiles}&quot; &quot;${pourcentage}&quot; &quot;%\r\c&quot;
}

# INITIALISATION DE LA BARRE DE PROGRESSION
init_progress_bar ()
{
	# caractere qui sera affiche dans la barre de progression
	caractere_barre=&quot;|&quot;
	
	# detection de l'OS
	os=`uname -s | tr [a-z] [A-Z]`
	
	# recuperation de la largeur en caracteres du terminal
	if test &quot;$os&quot; = &quot;LINUX&quot;
	then
		largeur_ecran=`stty -a | grep columns | cut -d ' ' -f7 | tr -d ';'`
	elif test &quot;$os&quot; = &quot;SUNOS&quot;
	then
		largeur_ecran=`stty | grep columns | cut -d ' ' -f6 | tr -d ';'`
	else
		echo &quot;Systeme d'exploitation incompatible, programme stoppe&quot;
		exit 1
	fi
	
	# calcul de la largeur optimale de la barre de progression 
	largeur_barre=`echo &quot;$largeur_ecran - 7 - 2 - 1&quot; | bc`
	diviseur_barre=`echo &quot;scale=2;100 / $largeur_barre&quot; | bc`
	
	# protection des variables
	readonly largeur_ecran largeur_barre diviseur_barre caractere_barre
}

# gestion de la langue de l'environnement
LC_NUMERIC=C

init_progress_bar

liste_length=$#
nb_iterations=0
if test $liste_length -gt 0
then
	for i in $@ 
	do
		nb_iterations=`echo &quot;$nb_iterations + 1&quot; | bc`
		barre_progression &quot;$nb_iterations&quot; &quot;$liste_length&quot;
		# sleep 1
	done
fi

echo &quot; &quot;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/bc">[bc]</a>  <a href="http://www.posteet.com/tags/printf">[printf]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/stty">[stty]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Wed, 07 May 2008 12:44:58 +0000</pubDate>

            <category>bash</category>
            <category>bc</category>
            <category>printf</category>
            <category>shell</category>
            <category>stty</category>
    
    </item>

  
    <item>
        <title>Renommer des fichiers pour retirer les caractères spéciaux</title>
        <link>http://www.posteet.com/view/855</link>
        <description>
        <![CDATA[<pre>for i in `ls -1`; do cd $i; rename 's/ +/_/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename &quot;s/'/-/g&quot; *; cd ..; done
for i in `ls -1`; do cd $i; rename &quot;s/[?!%]//g&quot; *; cd ..; done
for i in `ls -1`; do cd $i; rename &quot;s/[?]//g&quot; *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[!%?]//g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[àâ]/a/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[éèêë]/e/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[oöô]/o/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[ûù]/u/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[ä]/a/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[ü]/u/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[,]/-/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/[(){}]/-/g' *; cd ..; done
for i in `ls -1`; do cd $i; rename 's/traeve/treve/g' *; cd ..; done</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/rename">[rename]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Tue, 01 Apr 2008 18:05:27 +0000</pubDate>

            <category>bash</category>
            <category>rename</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Quantième jour</title>
        <link>http://www.posteet.com/view/797</link>
        <description>
        <![CDATA[<pre>#!/bin/sh

usage=&quot;Usage : $0 -q `date +'%j'` [-y `date +'%Y'`]&quot;

# gestion de la ligne de commande
if test &quot;$#&quot; -eq 2
then
	if test &quot;$1&quot; != &quot;-q&quot;
	then
		echo $usage
		exit 1
	fi
elif test &quot;$#&quot; -eq 4
then
	if test &quot;$1&quot; != &quot;-q&quot;
	then
		echo $usage
		exit 1
	fi
	if test &quot;$3&quot; != &quot;-y&quot;
	then
		echo $usage
		exit 1
	fi
else
	echo $usage
	exit 1
fi

qte=$2

if test &quot;$4&quot; != &quot;&quot;
then
	annee_act=$4
	val_y=`expr $annee_act + 1 2&gt;&gt; /dev/null`
	if test &quot;$?&quot; != &quot;0&quot;
	then
		echo $usage
		exit 1
	fi
fi

# verification des nombres
val_q=`expr $qte + 1 2&gt;&gt; /dev/null`
if test &quot;$?&quot; != &quot;0&quot;
then
	echo $usage
	exit 1
fi

# depassements de valeurs
if test &quot;$qte&quot; -gt 366
then
	echo $usage
	exit 1
fi

if test &quot;$qte&quot; -lt 1
then
	echo $usage
	exit 1
fi

# comparaison avec le quantieme actuel
if test &quot;$4&quot; = &quot;&quot;
then
	qte_act=`date +'%j'`
	annee_act=`date +'%Y'`

	if test &quot;$qte_act&quot; -gt &quot;$qte&quot;
	then
		continue
	elif test &quot;$qte_act&quot; -lt &quot;$qte&quot;
	then
		# la date recherchee est dans l'annee passee
		annee_act=`expr $annee_act - 1`
	else
		# la date recherchee est celle d'aujourd'hui
		echo `date +'%Y-%m-%d'`
		exit 0
	fi
fi


bis=`expr $annee_act % 4`
if test &quot;$bis&quot; -gt 0
then
	fin_janvier=31
	fin_fevrier=`expr 31 + 28`
	fin_mars=`expr 31 + 28 + 31`
	fin_avril=`expr 31 + 28 + 31 + 30`
	fin_mai=`expr 31 + 28 + 31 + 30 + 31`
	fin_juin=`expr 31 + 28 + 31 + 30 + 31 + 30`
	fin_juillet=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31`
	fin_aout=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31`
	fin_septembre=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30`
	fin_octobre=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31`
	fin_novembre=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30`
	#fin_decembre=`expr 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31`
else
	fin_janvier=31
	fin_fevrier=`expr 31 + 29`
	fin_mars=`expr 31 + 29 + 31`
	fin_avril=`expr 31 + 29 + 31 + 30`
	fin_mai=`expr 31 + 29 + 31 + 30 + 31`
	fin_juin=`expr 31 + 29 + 31 + 30 + 31 + 30`
	fin_juillet=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31`
	fin_aout=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31`
	fin_septembre=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30`
	fin_octobre=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31`
	fin_novembre=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30`
	#fin_decembre=`expr 31 + 29 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31`
fi

# annee non bissextile
if test &quot;$qte&quot; -eq 366 &amp;&amp; test &quot;$bis&quot; -gt 0
then
	exit 1
fi

# detection de l'annee bissextile
if test &quot;$qte&quot; -le &quot;$fin_janvier&quot;
then
	mois=&quot;01&quot;
	jour=`expr $qte + 0`
elif test &quot;$qte&quot; -le &quot;$fin_fevrier&quot;
then
	mois=&quot;02&quot;
	jour=`expr $qte - 31`
elif test &quot;$qte&quot; -le &quot;$fin_mars&quot;
then
	mois=&quot;03&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_avril&quot;
then
	mois=&quot;04&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_mai&quot;
then
	mois=&quot;05&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_juin&quot;
then
	mois=&quot;06&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_juillet&quot;
then
	mois=&quot;07&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_aout&quot;
then
	mois=&quot;08&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30 - 31`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30 - 31`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_septembre&quot;
then
	mois=&quot;09&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30 - 31 - 31`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30 - 31 - 31`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_octobre&quot;
then
	mois=&quot;10&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30 - 31 - 31 - 30`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30 - 31 - 31 - 30`&quot;
	fi
elif test &quot;$qte&quot; -le &quot;$fin_novembre&quot;
then
	mois=&quot;11&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30 - 31 - 31 - 30 - 31`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30 - 31 - 31 - 30 - 31`&quot;
	fi
else
	mois=&quot;12&quot;
	if test &quot;$bis&quot; -gt 0
	then
		jour=&quot;`expr $qte - 31 - 28 - 31 - 30 - 31 - 30 - 31 - 31 - 30 - 31 - 30`&quot;
	else
		jour=&quot;`expr $qte - 31 - 29 - 31 - 30 - 31 - 30 - 31 - 31 - 30 - 31 - 30`&quot;
	fi
fi

# affichage de la date trouvee
if test &quot;$jour&quot; -lt 10
then
	echo &quot;${annee_act}-${mois}-0${jour}&quot;
else
	echo &quot;${annee_act}-${mois}-${jour}&quot;
fi</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/date">[date]</a>  <a href="http://www.posteet.com/tags/jour">[jour]</a>  <a href="http://www.posteet.com/tags/numero jour">[numero jour]</a>  <a href="http://www.posteet.com/tags/quantieme">[quantieme]</a>  <a href="http://www.posteet.com/tags/quantieme jour">[quantieme jour]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Thu, 28 Feb 2008 12:43:59 +0000</pubDate>

            <category>bash</category>
            <category>date</category>
            <category>jour</category>
            <category>numero jour</category>
            <category>quantieme</category>
            <category>quantieme jour</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Calendrier dynamique mois par mois</title>
        <link>http://www.posteet.com/view/713</link>
        <description>
        <![CDATA[<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//FR&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;fr&quot; lang=&quot;fr&quot;&gt;
	&lt;head&gt;
		&lt;script language=&quot;javascript&quot;&gt;
			function get_mois(annee, mois, bloquer_a_date_actuelle, emplacement, bouton)
			{
				var today = new Date();
				var date_a_traiter = today;
				
				if (annee != null &amp;&amp; mois != null)
				{
					if (! bloquer_a_date_actuelle)
					{
						if (annee != today.getFullYear() || mois != today.getMonth())
						{
							date_a_traiter = new Date(annee, mois, 1);
						}
					}
					else
					{
						if (annee &lt; today.getFullYear() || mois &lt; today.getMonth())
						{
							date_a_traiter = new Date(annee, mois, 1);
						}
					}
				}
				
				var current_year = date_a_traiter.getFullYear();
				var current_month = date_a_traiter.getMonth();
				
				var debut_mois = new Date(current_year, current_month, 1);
				var premier_jour_mois = debut_mois.getDay();
				
				var fin_mois = new Date(current_year, current_month + 1, 0);
				var derniere_date_mois = fin_mois.getDate();
				
				var mon_code = &quot;&quot;;
				mon_code = &quot;\&lt;table\&gt;&quot; +
								&quot;\&lt;tr class=\&quot;deplace\&quot;\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;a id=\&quot;annee_precedente\&quot; href=\&quot;\&quot; class=\&quot;survol\&quot; title=\&quot;Ann&amp;eacute;e pr&amp;eacute;c&amp;eacute;dente\&quot;\&gt;\&lt;\&lt;\&lt;/a\&gt;\&lt;/td\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;a id=\&quot;mois_precedent\&quot; href=\&quot;\&quot; class=\&quot;survol\&quot; title=\&quot;Mois pr&amp;eacute;c&amp;eacute;dent\&quot;\&gt;\&lt;\&lt;/a\&gt;\&lt;/td\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;span id=\&quot;mois_annee\&quot;\&gt;\&lt;/span\&gt;\&lt;/td\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;a id=\&quot;mois_suivant\&quot; href=\&quot;\&quot; class=\&quot;survol\&quot; title=\&quot;Mois suivant\&quot;\&gt;\&gt;\&lt;/a\&gt;\&lt;/td\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;a id=\&quot;annee_suivante\&quot; href=\&quot;\&quot; class=\&quot;survol\&quot; title=\&quot;Ann&amp;eacute;e suivante\&quot;\&gt;\&gt;\&gt;\&lt;/a\&gt;\&lt;/td\&gt;&quot; +
									&quot;\&lt;td\&gt;\&lt;a id=\&quot;fermer_calendrier\&quot; href=\&quot;javascript: cacher_calendrier('&quot; + emplacement + &quot;', '&quot; + bouton + &quot;');\&quot; class=\&quot;survol\&quot; title=\&quot;Fermer le calendrier\&quot;\&gt;x&lt;/a\&gt;\&lt;/td\&gt;&quot; +
								&quot;\&lt;/tr\&gt;&quot; +
							&quot;\&lt;/table\&gt;&quot;;
				mon_code = mon_code + &quot;\&lt;table\&gt;\&lt;tr class=\&quot;titre\&quot;\&gt;\&lt;td\&gt;Lu\&lt;/td\&gt;\&lt;td\&gt;Ma\&lt;/td\&gt;\&lt;td\&gt;Me\&lt;/td\&gt;\&lt;td\&gt;Je\&lt;/td\&gt;\&lt;td\&gt;Ve\&lt;/td\&gt;\&lt;td\&gt;Sa\&lt;/td\&gt;\&lt;td\&gt;Di\&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
				
				for (var i = 1 ; i &lt;= derniere_date_mois ; i++)
				{
					var ma_date = new Date(current_year, current_month, i);
					
					var style_today = &quot; onclick=\&quot;javascript: alert('&quot; + i + &quot;/&quot; + current_month + &quot;/&quot; + current_year + &quot;');\&quot;&quot;;
					if (i == date_a_traiter.getDate() &amp;&amp; (ma_date.getDay() == 0 || ma_date.getDay() == 6) )
					{
						if (date_a_traiter == today)
						{
							style_today = style_today + &quot; class=\&quot;today_we\&quot;&quot;;
						}
						else
						{
							style_today = style_today + &quot; class=\&quot;not_today_we\&quot;&quot;;
						}
					}
					else if (i == date_a_traiter.getDate() &amp;&amp; (ma_date.getDay() != 0 &amp;&amp; ma_date.getDay() != 6) )
					{
						if (date_a_traiter == today)
						{
							style_today = style_today + &quot; class=\&quot;today_not_we\&quot;&quot;;
						}
						else
						{
							style_today = style_today + &quot; class=\&quot;not_today_not_we\&quot;&quot;;
						}
					}
					else if (i != date_a_traiter.getDate() &amp;&amp; (ma_date.getDay() != 0 &amp;&amp; ma_date.getDay() != 6) )
					{
						style_today = style_today + &quot; class=\&quot;not_today_not_we\&quot;&quot;;
					}
					else if (i != date_a_traiter.getDate() &amp;&amp; (ma_date.getDay() == 0 || ma_date.getDay() == 6) )
					{
						style_today = style_today + &quot; class=\&quot;not_today_we\&quot;&quot;;
					}
					
					if (i == 1)
					{
						switch (ma_date.getDay())
						{
							case 1:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 2:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 3:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 4:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 5:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 6:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;&quot;;
									break;
							case 0:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td&quot; + style_today + &quot;\&gt;1\&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
						}
					}
					else if (i == derniere_date_mois)
					{
						switch (ma_date.getDay())
						{
							case 1:
									mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 2:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 3:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 4:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 5:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 6:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;td\&gt; \&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
									break;
							case 0:
									mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;/tr\&gt;\&lt;/tr\&gt;&quot;;
									break;
						}
					}
					else
					{
						if (ma_date.getDay() == 0)
						{
							mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;\&lt;/tr\&gt;&quot;;
						}
						else if (ma_date.getDay() == 1)
						{
							mon_code = mon_code + &quot;\&lt;tr\&gt;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;&quot;;
						}
						else
						{
							mon_code = mon_code + &quot;\&lt;td&quot; + style_today + &quot;\&gt;&quot; + i + &quot;\&lt;/td\&gt;&quot;;
						}
					}
				}
				
				mon_code = mon_code + &quot;\&lt;/table\&gt;&quot;;
				document.getElementById(emplacement).innerHTML = mon_code;
				document.getElementById(&quot;mois_annee&quot;).innerHTML = get_select_month(current_month, current_year, bloquer_a_date_actuelle, emplacement) + &quot; &quot; + get_select_year(current_year, current_month, bloquer_a_date_actuelle, emplacement);
				
				var annee_precedente = new Date(current_year - 1, current_month, 1);
				var annee_suivante = new Date(current_year + 1, current_month, 1);
				var mois_precedent = new Date(current_year, current_month - 1, 1);
				var mois_suivant = new Date(current_year, current_month + 1, 1);
				document.getElementById(&quot;annee_precedente&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + annee_precedente.getFullYear() + &quot;, &quot; + annee_precedente.getMonth()  + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
				document.getElementById(&quot;mois_precedent&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + mois_precedent.getFullYear() + &quot;, &quot; + mois_precedent.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
				if (bloquer_a_date_actuelle)
				{
					if (current_year &gt;= today.getFullYear() &amp;&amp; current_month &gt;= today.getMonth())
					{
						document.getElementById(&quot;annee_suivante&quot;).setAttribute(&quot;href&quot;, &quot;javascript: alert(\&quot;Vous ne pouvez pas aller au-delà de la date actuelle\&quot;);&quot;);
						document.getElementById(&quot;mois_suivant&quot;).setAttribute(&quot;href&quot;, &quot;javascript: alert(\&quot;Vous ne pouvez pas aller au-delà de la date actuelle\&quot;);&quot;);
					}
					else if (current_year &gt;= today.getFullYear() &amp;&amp; current_month &lt; today.getMonth())
					{
						document.getElementById(&quot;annee_suivante&quot;).setAttribute(&quot;href&quot;, &quot;javascript: alert(\&quot;Vous ne pouvez pas aller au-delà de la date actuelle\&quot;);&quot;);
						document.getElementById(&quot;mois_suivant&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + mois_suivant.getFullYear() + &quot;, &quot; + mois_suivant.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
					}
					else
					{
						document.getElementById(&quot;annee_suivante&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + annee_suivante.getFullYear() + &quot;, &quot; + annee_suivante.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
						document.getElementById(&quot;mois_suivant&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + mois_suivant.getFullYear() + &quot;, &quot; + mois_suivant.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
					}
				}
				else
				{
					document.getElementById(&quot;annee_suivante&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + annee_suivante.getFullYear() + &quot;, &quot; + annee_suivante.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
					document.getElementById(&quot;mois_suivant&quot;).setAttribute(&quot;href&quot;, &quot;javascript: get_mois(&quot; + mois_suivant.getFullYear() + &quot;, &quot; + mois_suivant.getMonth() + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;', '&quot; + bouton + &quot;'&quot; + &quot;);&quot;);
				}
			}
			
			function get_nom_mois(numero)
			{
				var nom_mois = &quot;&quot;;
				
				switch (numero)
				{
					case 0:
							nom_mois = &quot;Janvier&quot;;
							break;
					case 1:
							nom_mois = &quot;F&amp;eacute;vrier&quot;;
							break;
					case 2:
							nom_mois = &quot;Mars&quot;;
							break;
					case 3:
							nom_mois = &quot;Avril&quot;;
							break;
					case 4:
							nom_mois = &quot;Mai&quot;;
							break;
					case 5:
							nom_mois = &quot;Juin&quot;;
							break;
					case 6:
							nom_mois = &quot;Juillet&quot;;
							break;
					case 7:
							nom_mois = &quot;Ao&amp;ucirc;t&quot;;
							break;
					case 8:
							nom_mois = &quot;Septembre&quot;;
							break;
					case 9:
							nom_mois = &quot;Octobre&quot;;
							break;
					case 10:
							nom_mois = &quot;Novembre&quot;;
							break;
					case 11:
							nom_mois = &quot;D&amp;eacute;cembre&quot;;
							break;
				}
				
				return nom_mois;
			}
			
			function get_select_month(mois, annee, bloquer_a_date_actuelle, emplacement)
			{
				var today = new Date();
				
				var select = &quot;\&lt;select name=\&quot;mois\&quot; onchange=\&quot;javascript: get_mois(&quot; + annee + &quot;, this.value, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;'&quot; + &quot;);\&quot;\&gt;&quot;;
				
				if (annee == today.getFullYear() &amp;&amp; bloquer_a_date_actuelle == true)
				{
					for (var i = 0 ; i &lt;= today.getMonth() ; i++)
					{
						if (i != mois)
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot;\&gt;&quot; + get_nom_mois(i) + &quot;\&lt;/option\&gt;&quot;;
						}
						else
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot; selected=\&quot;selected\&quot;\&gt;&quot; + get_nom_mois(i) + &quot;\&lt;/option\&gt;&quot;;
						}
					}
				}
				else
				{
					for (var i = 0 ; i &lt;= 11 ; i++)
					{
						if (i != mois)
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot;\&gt;&quot; + get_nom_mois(i) + &quot;\&lt;/option\&gt;&quot;;
						}
						else
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot; selected=\&quot;selected\&quot;\&gt;&quot; + get_nom_mois(i) + &quot;\&lt;/option\&gt;&quot;;
						}
					}
				}
				
				select = select + &quot;\&lt;/select\&gt;&quot;;
				
				return select;
			}
			
			function get_select_year(annee, mois, bloquer_a_date_actuelle, emplacement)
			{
				var today = new Date();
				
				var select = &quot;\&lt;select name=\&quot;annee\&quot; onchange=\&quot;javascript: get_mois(this.value, &quot; + mois + &quot;, &quot; + bloquer_a_date_actuelle + &quot;, '&quot; + emplacement + &quot;'&quot; + &quot;);\&quot;\&gt;&quot;;
				
				if (bloquer_a_date_actuelle &amp;&amp; today.getFullYear() - annee &lt;= 10)
				{
					for (var i = today.getFullYear() ; i &gt; today.getFullYear() - 20 ; i-- )
					{
						if (i == annee)
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot; selected=\&quot;selected\&quot;\&gt;&quot; + i + &quot;\&lt;/option\&gt;&quot;;
						}
						else
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot;\&gt;&quot; + i + &quot;\&lt;/option\&gt;&quot;;
						}
					}
				}
				else
				{
					for (var i = annee + 9 ; i &gt; annee - 10 ; i-- )
					{
						if (i == annee)
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot; selected=\&quot;selected\&quot;\&gt;&quot; + i + &quot;\&lt;/option\&gt;&quot;;
						}
						else
						{
							select = select + &quot;\&lt;option value=\&quot;&quot; + i + &quot;\&quot;\&gt;&quot; + i + &quot;\&lt;/option\&gt;&quot;;
						}
					}
				}
				
				select = select + &quot;\&lt;/select\&gt;&quot;;
				
				return select;
			}
			
			function afficher_calendrier(calendrier, bouton_calendrier)
			{
				document.getElementById(calendrier).setAttribute(&quot;style&quot;, &quot;display: block;&quot;);
				document.getElementById(bouton_calendrier).setAttribute(&quot;onclick&quot;, &quot;javascript: cacher_calendrier('&quot; + calendrier + &quot;', '&quot; + bouton_calendrier + &quot;');&quot;);
			}
			
			function cacher_calendrier(calendrier, bouton_calendrier)
			{
				document.getElementById(calendrier).setAttribute(&quot;style&quot;, &quot;display: none;&quot;);
				document.getElementById(bouton_calendrier).setAttribute(&quot;onclick&quot;, &quot;javascript: afficher_calendrier('&quot; + calendrier + &quot;', '&quot; + bouton_calendrier + &quot;');&quot;);
			}
		&lt;/script&gt;
		&lt;style type=&quot;text/css&quot;&gt;
			body
			{
				background-color: black;
				color: white;
				font-family: sans-serif;
				font-weight: bold;
				font-size: 12px;
			}
			
			div.calendrier
			{
				border: 1px solid grey;
				width: 250px;
				display: none;
			}
			
			td.not_today_not_we, td.today_not_we, td.not_today_we, td.today_we
			{
				text-align: right;
				border: 1px solid transparent;
			}
			
			td.not_today_not_we:hover, td.today_not_we:hover, td.not_today_we:hover, td.today_we:hover
			{
				cursor: pointer;
				border: 1px solid white;
			}
			
			td.not_today_not_we, td.today_not_we
			{
				background-color: black;
			}
			
			td.not_today_we, td.today_we
			{
				color: grey;
			}
			
			td.today_we, td.today_not_we
			{
				color: red;
			}
			
			tr.titre
			{
				text-align: center;
				color: white;
				background-color: grey;
			}
			
			table
			{
				width: 100%;
			}
			
			tr.deplace
			{
				text-align: center;
			}
			
			tr.deplace span
			{
				border: 1px solid transparent;
				padding-left: 2px;
				padding-right: 2px;
				font-size: 10px;
				margin: 0px;
				color: white;
			}
			
			tr.deplace a.survol
			{
				border: 1px solid transparent;
				padding-left: 2px;
				padding-right: 2px;
				font-size: 10px;
				margin: 0px;
				color: white;
				text-decoration: none;
			}
			
			a#fermer_calendrier
			{
				color: red;
			}
			
			tr.deplace a.survol:hover
			{
				cursor: pointer;
				border: 1px solid white;
			}
			
			select, option
			{
				background-color: black;
				color: white;
				font-family: sans-serif;
				font-weight: bold;
				font-variant: small-caps;
				font-size: 10px;
				margin: 0px;
				border: 1px solid transparent;
			}
			
			option:hover
			{
				background-color: black;
				border: 1px solid white;
			}
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body onload=&quot;javascript: get_mois(null, null, true, 'calendrier', 'bouton_calendrier');&quot;&gt;
		&lt;input type=&quot;button&quot; name=&quot;afficher_calendrier&quot; value=&quot;Calendrier&quot; onclick=&quot;javascript: afficher_calendrier('calendrier', 'bouton_calendrier');&quot; id=&quot;bouton_calendrier&quot;/&gt;
		&lt;div class=&quot;calendrier&quot; id=&quot;calendrier&quot;&gt;&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre> <a href="http://www.posteet.com/tags/calendrier">[calendrier]</a>  <a href="http://www.posteet.com/tags/Date">[Date]</a>  <a href="http://www.posteet.com/tags/getElementById">[getElementById]</a>  <a href="http://www.posteet.com/tags/innerHTML">[innerHTML]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Fri, 01 Feb 2008 20:17:23 +0000</pubDate>

            <category>calendrier</category>
            <category>Date</category>
            <category>getElementById</category>
            <category>innerHTML</category>
            <category>javascript</category>
    
    </item>

  
    <item>
        <title>Clavier virtuel</title>
        <link>http://www.posteet.com/view/693</link>
        <description>
        <![CDATA[<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//FR&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;fr&quot; lang=&quot;fr&quot;&gt;
	&lt;head&gt;
		&lt;script language=&quot;javascript&quot;&gt;
			function taper(lettre)
			{
				if (lettre == 'ECHAP')
				{
					document.getElementsByTagName(&quot;textarea&quot;)[0].value = &quot;&quot;;
				}
				else if (lettre == 'BACKSPACE')
				{
					var temp = document.getElementsByTagName(&quot;textarea&quot;)[0].value;
					temp = temp.substring(temp.length - 1, 0);
					document.getElementsByTagName(&quot;textarea&quot;)[0].value = temp;
				}
				else
				{
					var temp = document.getElementsByTagName(&quot;textarea&quot;)[0].value;
					document.getElementsByTagName(&quot;textarea&quot;)[0].value = temp + lettre;
				}
			}
			
			function clic_maj(showmaj)
			{
				if (showmaj)
				{
					var anchors = document.getElementsByTagName(&quot;span&quot;);
					for (var i=0; i&lt;anchors.length; i++) {
						var anchor = anchors[i];
						if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;none&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;inline&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;none&quot;;
					}
					document.getElementById(&quot;majg&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(false);&quot;);
					document.getElementById(&quot;majd&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(false);&quot;);
					document.getElementById(&quot;verr&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_verr(true);&quot;);
				}
				else
				{
					var anchors = document.getElementsByTagName(&quot;span&quot;);
					for (var i=0; i&lt;anchors.length; i++) {
						var anchor = anchors[i];
						if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;inline&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;none&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;none&quot;;
					}
					document.getElementById(&quot;majg&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(true);&quot;);
					document.getElementById(&quot;majd&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(true);&quot;);
				}
			}
			
			function clic_altgr()
			{
				var anchors = document.getElementsByTagName(&quot;span&quot;);
				for (var i=0; i&lt;anchors.length; i++) {
					var anchor = anchors[i];
					if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;none&quot;;
					if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;none&quot;;
					if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;inline&quot;;
				}
			}
			
			function declic_altgr()
			{
				var anchors = document.getElementsByTagName(&quot;span&quot;);
				for (var i=0; i&lt;anchors.length; i++) {
					var anchor = anchors[i];
					if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;inline&quot;;
					if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;none&quot;;
					if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;none&quot;;
				}
			}
			
			function clic_verr(verrouiller)
			{
				if (verrouiller)
				{
					var anchors = document.getElementsByTagName(&quot;span&quot;);
					for (var i=0; i&lt;anchors.length; i++) {
						var anchor = anchors[i];
						if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;none&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;inline&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;none&quot;;
					}
					document.getElementById(&quot;verr&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_verr(false);&quot;);
					document.getElementById(&quot;majg&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(true);&quot;);
					document.getElementById(&quot;majd&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_maj(true);&quot;);
				}
				else
				{
					var anchors = document.getElementsByTagName(&quot;span&quot;);
					for (var i=0; i&lt;anchors.length; i++) {
						var anchor = anchors[i];
						if (anchor.getAttribute(&quot;class&quot;) == &quot;minus&quot;) anchor.style.display = &quot;inline&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;majus&quot;) anchor.style.display = &quot;none&quot;;
						if (anchor.getAttribute(&quot;class&quot;) == &quot;altgr&quot;) anchor.style.display = &quot;none&quot;;
					}
					document.getElementById(&quot;verr&quot;).setAttribute(&quot;onclick&quot;, &quot;javascript: clic_verr(true);&quot;);
				}
			}
			
			function clic_majus()
			{
				if ( document.getElementById(&quot;verr&quot;).getAttribute(&quot;onclick&quot;) == &quot;javascript: clic_verr(true);&quot; )
				{
					clic_maj(false);
				}
			}
		&lt;/script&gt;
		&lt;style type=&quot;text/css&quot;&gt;
		span.bouton
		{
			background-color: #D4D0C8;
			border-left: 1px solid white;
			border-top: 1px solid white;
			border-right: 2px solid grey;
			border-bottom: 2px solid grey;
			padding-left: 5px;
			padding-right: 5px;
			padding-top: 3px;
			padding-bottom: 3px;
			cursor: default;
			font-family: sans-serif;
			font-size: smaller;
		}
		
		span.bouton:active
		{
			border-left: 2px solid grey;
			border-top: 2px solid grey;
			border-right: 1px solid white;
			border-bottom: 1px solid white;
			padding-left: 5px;
			padding-right: 5px;
			padding-top: 3px;
			padding-bottom: 3px;
		}

		span.touche, span.minus, span.majus, span.altgr
		{
			background-color: #E9E8E6;
			border-left: 5px solid silver;
			border-top: 2px solid silver;
			border-right: 5px solid grey;
			border-bottom: 7px solid grey;
			padding-left: 10px;
			padding-right: 10px;
			padding-top: 1px;
			padding-bottom: 3px;
			cursor: pointer;
			font-weight: bold;
			font-family: sans-serif;
		}

		span.touchetop
		{
			background-color: #E9E8E6;
			border-left: 5px solid silver;
			border-top: 2px solid silver;
			border-right: 5px solid grey;
			border-bottom: 7px solid grey;
			padding-left: 10px;
			padding-right: 10px;
			padding-top: 1px;
			padding-bottom: 3px;
			cursor: pointer;
			font-weight: bold;
			font-family: sans-serif;
			font-size: smaller;
		}

		span.touche:active, span.minus:active, span.majus:active, span.altgr:active
		{
			border-left: 4px solid grey;
			border-top: 1px solid grey;
			border-right: 4px solid silver;
			border-bottom: 6px solid silver;
			margin-left: 2px;
			margin-right: 2px;
			margin-bottom: 3px;
			padding-left: 9px;
			padding-right: 9px;
			padding-bottom: 2px;
		}
		
		span.majus
		{
			display: none;
		}
		
		span.altgr
		{
			display: none;
		}

		span.touchetop:active
		{
			border-left: 4px solid grey;
			border-top: 1px solid grey;
			border-right: 4px solid silver;
			border-bottom: 6px solid silver;
			margin-left: 2px;
			margin-right: 2px;
			margin-bottom: 3px;
			padding-left: 9px;
			padding-right: 9px;
			padding-bottom: 2px;
		}
		
		/*div
		{
			height: 250px;
		}*/
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div&gt;&lt;textarea cols=&quot;80&quot; rows=&quot;25&quot; name=&quot;saisie&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
		&lt;div&gt;
			&lt;p&gt;
			&lt;span class=&quot;touchetop&quot; onmousedown=&quot;javascript: taper('ECHAP');&quot;&gt;Esc&lt;/span&gt;&amp;#160;&lt;span class=&quot;touchetop&quot;&gt;F1 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F2 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F3 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F4 &lt;/span&gt;&amp;#160;&lt;span class=&quot;touchetop&quot;&gt;F5 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F6 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F7 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F8 &lt;/span&gt;&amp;#160;&lt;span class=&quot;touchetop&quot;&gt;F9 &lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F10&lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F11&lt;/span&gt;&lt;span class=&quot;touchetop&quot;&gt;F12&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;
			&lt;/P&gt;
			&lt;P&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#178;');&quot;&gt;&amp;#178;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;amp;');&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('1');&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#233;');&quot;&gt;&amp;#233;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('2');&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('&amp;#152;');&quot;&gt;&amp;#152;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;quot;');&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('3');&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('#');&quot;&gt;#&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('\'');&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('4');&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('{');&quot;&gt;{&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('(');&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('5');&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('[');&quot;&gt;[&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('-');&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('6');&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('|');&quot;&gt;|&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#232;');&quot;&gt;&amp;#232;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('7');&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('`');&quot;&gt;`&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('_');&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('8');&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('\\');&quot;&gt;\&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#231;');&quot;&gt;&amp;#231;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('9');&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('&amp;#136;');&quot;&gt;&amp;#136;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#224;');&quot;&gt;&amp;#224;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('0');&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('@');&quot;&gt;@&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper(')');&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#176;');&quot;&gt;&amp;#176;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper(']');&quot;&gt;]&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('=');&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('+');&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('}');&quot;&gt;}&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('BACKSPACE');&quot;&gt;Backspace&lt;/span&gt;
			&lt;/P&gt;
			&lt;P&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('\t');&quot;&gt;Tab&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('a');&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('A');&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('z');&quot;&gt;z&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('Z');&quot;&gt;Z&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('e');&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('E');&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot; onmousedown=&quot;javascript: taper('&amp;euro;');&quot;&gt;&amp;euro;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('r');&quot;&gt;r&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('R');&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('t');&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('T');&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('y');&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('Y');&quot;&gt;Y&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('u');&quot;&gt;u&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('U');&quot;&gt;U&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('i');&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('I');&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('o');&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('O');&quot;&gt;O&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('p');&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('P');&quot;&gt;P&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#136;');&quot;&gt;&amp;#136;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#168;');&quot;&gt;&amp;#168;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('$');&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#163;');&quot;&gt;&amp;#163;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;curren;&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('\n');&quot;&gt;Entr&amp;eacute;e&lt;/span&gt;
			&lt;/P&gt;
			&lt;P&gt;
			&lt;span class=&quot;touche&quot; id=&quot;verr&quot; onclick=&quot;javascript: clic_verr(true);&quot;&gt;Verr&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('q');&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('Q');&quot;&gt;Q&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('s');&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('S');&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('d');&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('D');&quot;&gt;D&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('f');&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('F');&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('g');&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('G');&quot;&gt;G&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('h');&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('H');&quot;&gt;H&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('j');&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('J');&quot;&gt;J&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('k');&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('K');&quot;&gt;K&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('l');&quot;&gt;l&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('L');&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('m');&quot;&gt;m&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('M');&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#249;');&quot;&gt;&amp;#249;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('%');&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('*');&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#181;');&quot;&gt;&amp;#181;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;/P&gt;
			&lt;P&gt;
			&lt;span class=&quot;touche&quot; id=&quot;majg&quot; onclick=&quot;javascript: clic_maj(true);&quot;&gt;Maj&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('&amp;#139;');&quot;&gt;&amp;#139;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#155;');&quot;&gt;&amp;#155;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('w');&quot;&gt;w&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('W');&quot;&gt;W&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: clic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('x');&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('X');&quot;&gt;X&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('c');&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('C');&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('v');&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('V');&quot;&gt;V&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('b');&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('B');&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('n');&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('N');&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper(',');&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('?');&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper(';');&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('.');&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper(':');&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('/');&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;minus&quot; onmousedown=&quot;javascript: taper('!');&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;majus&quot; onclick=&quot;javascript: clic_majus();&quot; onmousedown=&quot;javascript: taper('&amp;#167;');&quot;&gt;&amp;#167;&lt;/span&gt;&lt;span class=&quot;altgr&quot; onclick=&quot;javascript: declic_altgr();&quot;&gt;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;touche&quot; id=&quot;majd&quot; onclick=&quot;javascript: clic_maj(true);&quot;&gt;Maj&lt;/span&gt;
			&lt;/P&gt;
			&lt;P&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('CONTROL');&quot;&gt;Ctrl&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('SUPER');&quot;&gt;Win&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('ALT');&quot;&gt;Alt&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper(' ');&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Espace&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onclick=&quot;javascript: clic_altgr();&quot;&gt;Alt Gr&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('SUPER');&quot;&gt;Win&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('MENU');&quot;&gt;Menu&lt;/span&gt;
			&lt;span class=&quot;touche&quot; onmousedown=&quot;javascript: taper('CONTROL');&quot;&gt;Ctrl&lt;/span&gt;
			&lt;/P&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre> <a href="http://www.posteet.com/tags/clavier">[clavier]</a>  <a href="http://www.posteet.com/tags/clavier virtuel">[clavier virtuel]</a>  <a href="http://www.posteet.com/tags/css">[css]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/touche">[touche]</a>  <a href="http://www.posteet.com/tags/touches">[touches]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Fri, 25 Jan 2008 09:05:27 +0000</pubDate>

            <category>clavier</category>
            <category>clavier virtuel</category>
            <category>css</category>
            <category>javascript</category>
            <category>touche</category>
            <category>touches</category>
    
    </item>

  
    <item>
        <title>Habillage CSS pour un calendrier XML / XSLT</title>
        <link>http://www.posteet.com/view/684</link>
        <description>
        <![CDATA[<pre>body
{
	background-color: transparent;
	margin: 0px;
}

div.titrejour1, div.titrejour2, div.titrejour3, div.titrejour4, div.titrejour5, div.titrejour6, div.titrejour7
{
	width: 40px;
	height: 40px;
	float: left;
	text-align: right;
	background-color: transparent;
}

div.vide,
div.jour1, div.jour2, div.jour3, div.jour4, div.jour5, div.jour6, div.jour7
{
	width: 25px;
	height: 40px;
	float: left;
	text-align: right;
	background-color: transparent;
	padding-right: 15px;
}

div.jour6, div.jour7
{
	background-color: #DFBBF4;
}

div.titrejour1, div.titrejour2, div.titrejour3, div.titrejour4, div.titrejour5, div.titrejour6, div.titrejour7
{
	font-weight: bold;
	text-align: center;
	background-color: #6F1BA0;
	color: white;
	text-transform: uppercase;
}

div.mois
{
	width: 280px;
	height: 320px;
	margin: 10px;
	border: 3px solid #6F1BA0;
	-moz-border-radius-bottomleft: 30px;
	-moz-border-radius-topright: 30px;
	-moz-border-radius-bottomright: 30px;
	-moz-border-radius-topleft: 30px;
	float: left;
}

div.titremois
{
	text-align: center;
	font-weight: bold;
	height: 30px;
	padding-top: 10px;
	font-size: 20px;
	color: #6F1BA0;
	text-transform: uppercase;
}</pre> <a href="http://www.posteet.com/tags/calendrier">[calendrier]</a>  <a href="http://www.posteet.com/tags/css">[css]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Tue, 22 Jan 2008 08:28:13 +0000</pubDate>

            <category>calendrier</category>
            <category>css</category>
    
    </item>

  
    <item>
        <title>Affichage d'un calendrier en XML / XSLT sur son navigateur Internet</title>
        <link>http://www.posteet.com/view/683</link>
        <description>
        <![CDATA[<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;

&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;

	&lt;xsl:template match=&quot;/&quot;&gt;
		&lt;html&gt;
			&lt;head&gt;
				&lt;title&gt;Calendrier&lt;/title&gt;
				&lt;style type='text/css' media='all'&gt;@import 'calendrier.css';&lt;/style&gt;
			&lt;/head&gt;

			&lt;body xml:lang=&quot;fr&quot;&gt;
				&lt;xsl:apply-templates&gt;
					&lt;xsl:with-param name=&quot;langue&quot;&gt;fr&lt;/xsl:with-param&gt;
					&lt;xsl:with-param name=&quot;annee&quot;&gt;2008&lt;/xsl:with-param&gt;
				&lt;/xsl:apply-templates&gt;
			&lt;/body&gt;
		&lt;/html&gt;
	&lt;/xsl:template &gt;

	&lt;xsl:template name=&quot;noms_mois&quot; match=&quot;/calendrier/noms_mois&quot;&gt;
		&lt;xsl:param name=&quot;langue&quot;/&gt;
		&lt;xsl:param name=&quot;num&quot;/&gt;
		&lt;xsl:for-each select=&quot;/calendrier/noms_mois/nom[@numero = $num and @lang = $langue]&quot;&gt;
			&lt;div class=&quot;titremois&quot;&gt;&lt;xsl:value-of select=&quot;text()&quot;/&gt;&lt;/div&gt;
		&lt;/xsl:for-each&gt;
	&lt;/xsl:template &gt;

	&lt;xsl:template name=&quot;noms_jours&quot; match=&quot;/calendrier/noms_jours&quot;&gt;
		&lt;xsl:param name=&quot;langue&quot;/&gt;
		&lt;xsl:for-each select=&quot;/calendrier/noms_jours/nom[@lang = $langue]&quot;&gt;
			&lt;div class=&quot;titrejour{@numero}&quot;&gt;&lt;xsl:value-of select=&quot;substring(text(), 1, 2)&quot;/&gt;&lt;/div&gt;
		&lt;/xsl:for-each&gt;
	&lt;/xsl:template &gt;
	
	&lt;xsl:template name=&quot;principal&quot; match=&quot;calendrier&quot;&gt;
		&lt;xsl:param name=&quot;langue&quot;/&gt;
		&lt;xsl:param name=&quot;annee&quot;/&gt;
		&lt;xsl:for-each select=&quot;./annee[@numero = $annee]&quot;&gt;
			&lt;div class=&quot;annee&quot;&gt;
				&lt;xsl:for-each select=&quot;./mois&quot;&gt;
					&lt;div class=&quot;mois&quot;&gt;
						&lt;xsl:call-template name=&quot;noms_mois&quot;&gt;
							&lt;xsl:with-param name=&quot;num&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/xsl:with-param&gt;
							&lt;xsl:with-param name=&quot;langue&quot;&gt;&lt;xsl:value-of select=&quot;$langue&quot;/&gt;&lt;/xsl:with-param&gt;
						&lt;/xsl:call-template&gt;
						&lt;div class=&quot;jours&quot;&gt;
							&lt;xsl:call-template name=&quot;noms_jours&quot;&gt;
								&lt;xsl:with-param name=&quot;langue&quot;&gt;&lt;xsl:value-of select=&quot;$langue&quot;/&gt;&lt;/xsl:with-param&gt;
							&lt;/xsl:call-template&gt;
						&lt;/div&gt;
						&lt;div class=&quot;numeros&quot;&gt;
							&lt;xsl:for-each select=&quot;./jour&quot;&gt;
								&lt;xsl:if test=&quot;@nom=1 and @numero=1&quot;&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=2 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=3 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=4 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=5 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=6 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@nom=7 and @numero=1&quot;&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;vide&quot;&gt;&amp;#160;&lt;/div&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
								&lt;xsl:if test=&quot;@numero!=1&quot;&gt;
									&lt;div class=&quot;jour{@nom}&quot;&gt;&lt;xsl:value-of select=&quot;@numero&quot;/&gt;&lt;/div&gt;
								&lt;/xsl:if&gt;
							&lt;/xsl:for-each&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/xsl:for-each&gt;
			&lt;/div&gt;
		&lt;/xsl:for-each&gt;

	&lt;/xsl:template &gt;
&lt;/xsl:stylesheet&gt;</pre> <a href="http://www.posteet.com/tags/calendrier">[calendrier]</a>  <a href="http://www.posteet.com/tags/xml">[xml]</a>  <a href="http://www.posteet.com/tags/xslt">[xslt]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Tue, 22 Jan 2008 08:24:17 +0000</pubDate>

            <category>calendrier</category>
            <category>xml</category>
            <category>xslt</category>
    
    </item>

  
    <item>
        <title>Génération de données calendaires au format XML</title>
        <link>http://www.posteet.com/view/680</link>
        <description>
        <![CDATA[<pre>#!/bin/sh

annee=&quot;$1&quot;
true=1
false=0

# permet de lancer la commande cal pour un mois et une annee precis, et de traiter le decoupage des semaines
get_month ()
{
	annee=&quot;$1&quot;
	mois=&quot;$2&quot;
	numligne=&quot;0&quot;
	
	# execution de cal, et lecture de la sortie ligne par ligne
	cal -m $mois $annee | while read ligne 
	do
		numligne=$((numligne + 1))
		
		# on ne tient pas compte des lignes vides retournees par cal
		if test &quot;`echo $ligne | tr -d ' '`&quot; != &quot;&quot; 
		then
			
			# on ne tient pas compte de la premiere ligne (mois et annee en cours) et de la deuxieme ligne (noms des jours)
			if test &quot;$numligne&quot; -gt 2
			then
				
				# on tient compte de la premiere semaine du mois, afin de connaitre la position du premier jour
				if test &quot;$numligne&quot; -lt 4
				then
					set_days $true $ligne
				else
					set_days $false $ligne
				fi
				
			fi
			
		fi
		
	done
}

# permet de decouper une semaine (une ligne retournee par cal) en jours
set_days ()
{
	nb_jours=`expr $# - 1`
	is_first_line=$1
	
	# on identifie le nombre de jours du mois en cours compris dans la semaine que l'on traite
	case $nb_jours in
		1) # cette semaine ne comprend qu'un jour du mois en cours, le premier ou le dernier jour du mois
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 7 $2
			else
				set_day 1 $2
			fi
			;;
		2) # cette semaine comprend deux jours du mois en cours, les deux premiers ou les deux derniers
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 6 $2
				set_day 7 $3
			else
				set_day 1 $2
				set_day 2 $3
			fi
			;;
		3) # cette semaine comprend trois jours du mois en cours, les trois premiers ou les trois derniers
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 5 $2
				set_day 6 $3
				set_day 7 $4
			else
				set_day 1 $2
				set_day 2 $3
				set_day 3 $4
			fi
			;;
		4) # cette semaine comprend quatre jours du mois en cours, les quatre premiers ou les quatre derniers
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 4 $2
				set_day 5 $3
				set_day 6 $4
				set_day 7 $5
			else
				set_day 1 $2
				set_day 2 $3
				set_day 3 $4
				set_day 4 $5
			fi
			;;
		5) # cette semaine comprend cinq jours du mois en cours, les cinq premiers ou les cinq derniers
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 3 $2
				set_day 4 $3
				set_day 5 $4
				set_day 6 $5
				set_day 7 $6
			else
				set_day 1 $2
				set_day 2 $3
				set_day 3 $4
				set_day 4 $5
				set_day 5 $6
			fi
			;;
		6) # cette semaine comprend six jours du mois en cours, les six premiers ou les six derniers
			if test &quot;$is_first_line&quot; = &quot;$true&quot;
			then
				set_day 2 $2
				set_day 3 $3
				set_day 4 $4
				set_day 5 $5
				set_day 6 $6
				set_day 7 $7
			else
				set_day 1 $2
				set_day 2 $3
				set_day 3 $4
				set_day 4 $5
				set_day 5 $6
				set_day 6 $7
			fi
			;;
		7) # cette semaine est pleine, donc on sait que le premier numero correspondra au lundi
			set_day 1 $2
			set_day 2 $3
			set_day 3 $4
			set_day 4 $5
			set_day 5 $6
			set_day 6 $7
			set_day 7 $8
			;;
		*)
			echo &quot;Un probleme a du survenir...&quot;
			exit 1
			;;
	esac
}

# permet de recopier en sortie la correspondance entre le jour et son numero dans le mois
set_day ()
{
	echo &quot;          &lt;jour nom=\&quot;$1\&quot; numero=\&quot;$2\&quot;/&gt;&quot;
}

# lance le traitement pour le calendrier d'une annee, mois par mois
make_calendrier ()
{
	echo &quot;&lt;annee numero=\&quot;$annee\&quot;&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;1\&quot;&gt;&quot;
	get_month $annee 1
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;2\&quot;&gt;&quot;
	get_month $annee 2
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;3\&quot;&gt;&quot;
	get_month $annee 3
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;4\&quot;&gt;&quot;
	get_month $annee 4
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;5\&quot;&gt;&quot;
	get_month $annee 5
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;6\&quot;&gt;&quot;
	get_month $annee 6
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;7\&quot;&gt;&quot;
	get_month $annee 7
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;8\&quot;&gt;&quot;
	get_month $annee 8
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;9\&quot;&gt;&quot;
	get_month $annee 9
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;10\&quot;&gt;&quot;
	get_month $annee 10
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;11\&quot;&gt;&quot;
	get_month $annee 11
	echo &quot;     &lt;/mois&gt;&quot;
	
	echo &quot;     &lt;mois numero=\&quot;12\&quot;&gt;&quot;
	get_month $annee 12
	echo &quot;     &lt;/mois&gt;&quot;

	echo &quot;&lt;/annee&gt;&quot;
}

echo &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;ISO-8859-1\&quot;?&gt;&quot;
echo &quot;&lt;!--?xml-stylesheet href=\&quot;calendrier.xsl\&quot; type=\&quot;text/xsl\&quot;?--&gt;&quot;
echo &quot;&lt;calendrier&gt;&quot;
echo &quot;&lt;noms_jours&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;fr\&quot;&gt;lundi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;fr\&quot;&gt;mardi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;fr\&quot;&gt;mercredi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;fr\&quot;&gt;jeudi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;fr\&quot;&gt;vendredi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;fr\&quot;&gt;samedi&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;fr\&quot;&gt;dimanche&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;it\&quot;&gt;luned&amp;#236;&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;it\&quot;&gt;marted&amp;#236;&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;it\&quot;&gt;mercoled&amp;#236;&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;it\&quot;&gt;gioved&amp;#236;&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;it\&quot;&gt;venerd&amp;#236;&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;it\&quot;&gt;sabato&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;it\&quot;&gt;domenica&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;en\&quot;&gt;monday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;en\&quot;&gt;tuesday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;en\&quot;&gt;wednesday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;en\&quot;&gt;thursday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;en\&quot;&gt;friday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;en\&quot;&gt;saturday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;en\&quot;&gt;sunday&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;de\&quot;&gt;montag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;de\&quot;&gt;dienstag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;de\&quot;&gt;mittwoch&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;de\&quot;&gt;donnerstag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;de\&quot;&gt;freitag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;de\&quot;&gt;samstag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;de\&quot;&gt;sonntag&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;es\&quot;&gt;lunes&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;es\&quot;&gt;martes&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;es\&quot;&gt;mi&amp;#233;rcoles&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;es\&quot;&gt;jueves&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;es\&quot;&gt;viernes&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;es\&quot;&gt;s&amp;#225;bado&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;es\&quot;&gt;domingo&lt;/nom&gt;&quot;
echo &quot;&lt;/noms_jours&gt;&quot;
echo &quot;&lt;noms_mois&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;fr\&quot;&gt;janvier&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;fr\&quot;&gt;f&amp;#233;vrier&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;fr\&quot;&gt;mars&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;fr\&quot;&gt;avril&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;fr\&quot;&gt;mai&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;fr\&quot;&gt;juin&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;fr\&quot;&gt;juillet&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;8\&quot; lang=\&quot;fr\&quot;&gt;ao&amp;#251;t&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;9\&quot; lang=\&quot;fr\&quot;&gt;septembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;10\&quot; lang=\&quot;fr\&quot;&gt;octobre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;11\&quot; lang=\&quot;fr\&quot;&gt;novembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;12\&quot; lang=\&quot;fr\&quot;&gt;d&amp;#233;cembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;en\&quot;&gt;january&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;en\&quot;&gt;february&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;en\&quot;&gt;march&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;en\&quot;&gt;april&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;en\&quot;&gt;may&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;en\&quot;&gt;june&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;en\&quot;&gt;july&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;8\&quot; lang=\&quot;en\&quot;&gt;august&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;9\&quot; lang=\&quot;en\&quot;&gt;september&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;10\&quot; lang=\&quot;en\&quot;&gt;october&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;11\&quot; lang=\&quot;en\&quot;&gt;november&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;12\&quot; lang=\&quot;en\&quot;&gt;december&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;es\&quot;&gt;enero&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;es\&quot;&gt;febrero&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;es\&quot;&gt;marzo&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;es\&quot;&gt;abril&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;es\&quot;&gt;mayo&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;es\&quot;&gt;junio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;es\&quot;&gt;julio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;8\&quot; lang=\&quot;es\&quot;&gt;agosto&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;9\&quot; lang=\&quot;es\&quot;&gt;septiembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;10\&quot; lang=\&quot;es\&quot;&gt;octubre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;11\&quot; lang=\&quot;es\&quot;&gt;noviembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;12\&quot; lang=\&quot;es\&quot;&gt;diciembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;de\&quot;&gt;januar&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;de\&quot;&gt;februar&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;de\&quot;&gt;m&amp;#228;rz&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;de\&quot;&gt;april&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;de\&quot;&gt;mai&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;de\&quot;&gt;juni&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;de\&quot;&gt;juli&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;8\&quot; lang=\&quot;de\&quot;&gt;august&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;9\&quot; lang=\&quot;de\&quot;&gt;september&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;10\&quot; lang=\&quot;de\&quot;&gt;oktober&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;11\&quot; lang=\&quot;de\&quot;&gt;november&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;12\&quot; lang=\&quot;de\&quot;&gt;dezember&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;1\&quot; lang=\&quot;it\&quot;&gt;gennaio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;2\&quot; lang=\&quot;it\&quot;&gt;febbraio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;3\&quot; lang=\&quot;it\&quot;&gt;marzo&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;4\&quot; lang=\&quot;it\&quot;&gt;aprile&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;5\&quot; lang=\&quot;it\&quot;&gt;maggio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;6\&quot; lang=\&quot;it\&quot;&gt;giugno&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;7\&quot; lang=\&quot;it\&quot;&gt;luglio&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;8\&quot; lang=\&quot;it\&quot;&gt;agosto&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;9\&quot; lang=\&quot;it\&quot;&gt;settembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;10\&quot; lang=\&quot;it\&quot;&gt;ottobre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;11\&quot; lang=\&quot;it\&quot;&gt;novembre&lt;/nom&gt;&quot;
echo &quot;	&lt;nom numero=\&quot;12\&quot; lang=\&quot;it\&quot;&gt;dicembre&lt;/nom&gt;&quot;
echo &quot;&lt;/noms_mois&gt;&quot;

# lance le traitement du calendrier de chaque annee passee en parametre du script
for annee in $@
do
	make_calendrier $annee
done

echo &quot;&lt;/calendrier&gt;&quot;

exit 0</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/cal">[cal]</a>  <a href="http://www.posteet.com/tags/calendrier">[calendrier]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/xml">[xml]</a> ]]>        </description>
        <dc:creator>benoitbalon</dc:creator>
        <pubDate>Thu, 17 Jan 2008 12:50:03 +0000</pubDate>

            <category>bash</category>
            <category>cal</category>
            <category>calendrier</category>
            <category>shell</category>
            <category>xml</category>
    
    </item>


</channel>
</rss>
