ajout d'erreurs personalisees et du module digicode

darcs-hash:20061009172906-f46e9-390eff7e704b7cad2f6a4f3ec8a426fbef179d0b.gz
This commit is contained in:
gdetrez 2006-10-09 19:29:06 +02:00
parent 8c44cac872
commit bd9ead0d89
11 changed files with 158 additions and 23 deletions

View file

@ -1,3 +1,6 @@
#import cherrypy, sys
$sys.path.append(cherrypy.config.get('rootDir'))
#from plugins.verifdroitsfilter import verifDroits
<div class="framed_gray">
<fieldset>
<legend>Personnel</legend>
@ -18,6 +21,19 @@
<img src="/static/images/icon_info.png" alt="icon" />
<span>Informations utiles</span>
</a></li>
</ul>
</fieldset>
<div style="clear:both;"></div>
#if verifDroits($cherrypy.session['droits'],'Imprimeur')
<fieldset>
<legend>Imprimeur</legend>
<ul>
<li><a href="/digicode">
<img src="/static/images/icon_digicode.png" alt="icon" />
<span>Digicode</span>
</a></li>
</ul>
</fieldset>
<div class="visualClear"></div>
#end if
</div>

View file

@ -0,0 +1,10 @@
#import crans.impression
<div id="globalDiv">
<h1>Gestion des codes pour le local impression</h1>
</div>
<script type="text/javascript">
<!--
Digicode.init();
//-->
</script>

View file

@ -1,7 +1,9 @@
<!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / -->
<img style="float:left;clear:left;" src="/static/images/traveaux.png" alt="Traveaux" />
<div style="margin-left:200px;">
<h1 style="background:#ddd; float:left; width:50%; padding:10px 20px 10px 10px">Erreur $status</h1>
<div style="clear:both;">
<pre style="border:thin black dashed; padding:10px; margin:20px; float:left; color:gray;">$message</pre>
<form action="send_error_repport" method="POST">
<fieldset style="float:left;"><legend>Envoyer un rapport</legend>
@ -9,13 +11,12 @@
<input type="hidden" name="error_message" value="$message">
<label for="user_message">Aidez-nous &agrave; am&eacute;liorer l'intranet en nous indiquant comment l'erreur est apparue:</label><br />
<textarea style="width:40em;height:10em;" name="user_message"></textarea>
<div style="text-align:right;width:100%;border:thin red solid;">
<div style="text-align:right;width:100%;">
<button name="send" value="oui">Envoyer le rapport et retourner &agrave; la page d'accueil</button>
</div>
</fieldset>
</form>
<pre style="border:thin black dashed; padding:10px; margin:20px; float:left; color:gray;">$message</pre>
<a href="/" style="display:block;clear:both;">Retour &agrave; la page d'accueil</a>
</div>

View file

@ -0,0 +1,12 @@
<!-- img src="/static/images/petitCr@ns.png" alt="logocr@ns" / -->
<img style="float:left;clear:left;" src="/static/images/DoNotEnter.png" alt="Do Not Enter" />
<div style="margin-left:200px;">
<h1 style="background:#ddd; float:left; width:50%; padding:10px 20px 10px 10px">Acc&egrave;s interdit</h1>
<pre style="border:thin black dashed; padding:10px; margin:20px; float:left; color:gray;">$message</pre>
<a href="/" style="display:block;clear:both;">Retour &agrave; la page d'accueil</a>
</div>
<div style="clear:both;"></div>

View file

@ -0,0 +1,67 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" HTTP-EQUIV="Content-Type">
<title>Cr@ns Intranet</title>
<style type="text/css">
table.factureDetails {
padding:1%;
width:96%;
margin:0 1% 10px 1%;
}
.tdTotalDetail,
.tdTotalDetailIntitule {
border-top:thin black solid;
}
.tdTotalDetailIntitule {
text-align:right;
font-weight:bold;
}
table.factureDetails th {
border-bottom:thin black solid;
}
table.factureDetails th,
table.factureDetails td {
border-right:thin black solid;
margin:0;
padding:5px 20px;
}
</style>
</head>
<body>
<div style="background:white url(/static/images/petitCr@ns.png) top left no-repeat; padding:2em;width:21cm;border:thin black solid;">
<h1 style="margin:1em 1em 1em 50px;">Devis pour impression</h1>
<span style="font-weight:bold;">Fichier : </span> $nomFichier
<div id="facture" style="margin:2em 1em 1em 1em;">
<table cellspacing="0" border="0" class="factureDetails">
<tr>
<th width="80%">Description</th>
<th>Prix unitaire</th>
<th>Quantit&eacute;</th>
<th>total</th>
</tr>
#for anItem in $devis
<tr>
<td>$anItem[0]</td>
<td>$anItem[1]&nbsp;&euro;</td>
<td>$anItem[2]</td>
<td>
#echo str($anItem[1] * $anItem[2]) + '&nbsp;&euro;'
</td>
</tr>
#end for
<tr>
<td colspan="3" class="tdTotalDetailIntitule">
Total
</td>
<td class="tdTotalDetail">$total&nbsp;&euro;</td>
</table>
</div>
</div>
</body>
</html>