Ajout des modules initiaux
darcs-hash:20070124114812-f46e9-171ef12f1e1b89ae005adf4aab6f6535fb9289e6.gz
This commit is contained in:
parent
8713311bc1
commit
ed3ab40ccd
80 changed files with 4852 additions and 5 deletions
67
intranet/modules/impression/templates/impression-devis.tmpl
Normal file
67
intranet/modules/impression/templates/impression-devis.tmpl
Normal 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é</th>
|
||||
|
||||
<th>total</th>
|
||||
</tr>
|
||||
#for anItem in $devis
|
||||
<tr>
|
||||
<td>$anItem[0]</td>
|
||||
<td>$anItem[1] €</td>
|
||||
<td>$anItem[2]</td>
|
||||
<td>
|
||||
#echo str($anItem[1] * $anItem[2]) + ' €'
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
#end for
|
||||
<tr>
|
||||
<td colspan="3" class="tdTotalDetailIntitule">
|
||||
Total
|
||||
</td>
|
||||
<td class="tdTotalDetail">$total €</td>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
170
intranet/modules/impression/templates/impression.tmpl
Normal file
170
intranet/modules/impression/templates/impression.tmpl
Normal file
|
@ -0,0 +1,170 @@
|
|||
#import crans.impression
|
||||
|
||||
#if $getVar('errorMsg',False)
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
Crans.messages.setMessage('$errorMsg.replace("\'","\\\'")', 'errorMessage')
|
||||
//-->
|
||||
</script>
|
||||
#end if
|
||||
|
||||
<div id="globalDiv">
|
||||
<form id="form_impression" name="form_impression" onsubmit="Impression.popup();return false;" action="index">
|
||||
<fieldset><legend>Options d'impression</legend>
|
||||
<div id="leftColumn">
|
||||
<div id="preview" onclick="Impression.settings.init();"></div>
|
||||
<div class="clear prix_impression" id="prix_placeholder"></div>
|
||||
</div>
|
||||
|
||||
<div id="rightColumn">
|
||||
<fieldset><legend>Type d'impression</legend>
|
||||
<label for="type_impression_couleur" class="labelRadio compact">
|
||||
<input type="radio" name="type_impression" id="type_impression_couleur" class="inputRadio" value="$crans.impression.IMPRESSION_COULEUR" checked="checked" onclick="Impression.settings.update(this);" />
|
||||
Couleurs
|
||||
</label>
|
||||
<label for="type_impression_nb" class="labelRadio compact"><input type="radio" name="type_impression" id="type_impression_nb" class="inputRadio" value="$crans.impression.IMPRESSION_NB" onclick="Impression.settings.update(this);" />
|
||||
Noir et blanc
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Copies et papier</legend>
|
||||
|
||||
<label for="papier" class="labelInput">Papier:</label>
|
||||
<select name="papier" id="papier" class="selectOne" onchange="Impression.settings.update(this);">
|
||||
#for type_papier in $crans.impression.PAPIER_VALEURS_POSSIBLES
|
||||
<option value="$type_papier">$crans.impression.LABELS[type_papier]</option>
|
||||
#end for
|
||||
</select>
|
||||
<br />
|
||||
<label for="agrafes" class="labelInput">Agrafes:</label>
|
||||
<select name="agrafes" id="agrafes" class="selectOne" onchange="Impression.settings.update(this);">
|
||||
#for type_agrafes in $crans.impression.AGRAPHES_VALEURS_POSSIBLES
|
||||
<option value="$type_agrafes">$crans.impression.LABELS[type_agrafes]</option>
|
||||
#end for
|
||||
</select>
|
||||
<br />
|
||||
|
||||
<label for="nb_copies" class="labelInput">Copies:</label>
|
||||
<input onkeyup="Impression.settings.update(this);" type="text" name="nb_copies" id="nb_copies" class="inputText" size="10" maxlength="50" value="1" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset><legend>Disposition</legend>
|
||||
<label for="disposition_recto" class="labelRadio compact">
|
||||
<input type="radio" name="disposition" id="disposition_recto" class="inputRadio" value="$crans.impression.IMPRESSION_RECTO" onclick="Impression.settings.update(this);" />
|
||||
Recto
|
||||
</label>
|
||||
<label for="disposition_recto_verso" class="labelRadio compact">
|
||||
<input type="radio" name="disposition" id="disposition_recto_verso" class="inputRadio" value="$crans.impression.IMPRESSION_RECTO_VERSO" checked="checked" onclick="Impression.settings.update(this);" />
|
||||
Recto-verso
|
||||
</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="clear bouttons">
|
||||
<input type="reset" value="Reset" onclick="Impression.settings.reset();return false;" />
|
||||
<input type="button" value="Devis" onclick="window.open('devis')" />
|
||||
<input type="button" value="Imprimer" onclick="Impression.AJAX.lancerImpression();"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
<ul id="actionMenu">
|
||||
#if $getVar('fileName',False)
|
||||
<li id="fileName"><span>$fileName</span></li>
|
||||
<li><span style="font-weight:bold;">pages: </span><span id="fileNbPages"></span></li>
|
||||
<hr />
|
||||
#end if
|
||||
<li id="actionNouvelleImpression"><a href="index">Nouvelle impression</a></li>
|
||||
<li id="actionMesCodes"><a href="#" onclick="Impression.mesCodes.getCodes(); return false;">Mes codes</a></li>
|
||||
<li id="actionMesCodes" onclick="Impression.AJAX.updateSolde(); return false;">
|
||||
<span style="font-weight:bold;">Solde: </span>
|
||||
<span id="soldePlaceHolder">-</span> €
|
||||
</li>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
Impression.AJAX.updateSolde();
|
||||
//-->
|
||||
</script>
|
||||
<li id="actionEtatImprimante" onclick="Impression.AJAX.getPrinterState();">
|
||||
<span style="font-weight:bold;">État imprimante:</span><br />
|
||||
<span id="etatImprimanteIci"> - </span>
|
||||
</li>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
Impression.AJAX.getPrinterState();
|
||||
//-->
|
||||
</script>
|
||||
</ul>
|
||||
|
||||
#if not $getVar('Erreur_imprimante',False)
|
||||
#if not $getVar('fileName',False)
|
||||
<div id="popupFichiers">
|
||||
<h1>Impression - Choix fichier</h1>
|
||||
<div id="insideDiv">
|
||||
#if $getVar('openError',False)
|
||||
<div style="text-align:center;width:40%;border:2px solid red;margin:5px auto;padding:5px 10px;">$openError</div>
|
||||
#end if
|
||||
<p class="crans_warning">Il semblerait que l'interface d'impression ne soit
|
||||
pas compatible avec internet explorer. Nous espérons pouvoir
|
||||
régler ce problème au plus vite. Nous vous conseillons en attendant
|
||||
d'utiliser <a href="http://www.mozilla-europe.org/fr/products/firefox/">Firefox</a>. <span class="crans_signature">Les
|
||||
nounous</span> </p>
|
||||
<form method="post" action="./" enctype="multipart/form-data">
|
||||
<h2>Mes fichiers</h2>
|
||||
<div>
|
||||
<select name="fileList" id="fileList" size="5">
|
||||
#for $file in $fileList
|
||||
<option>$file</option>
|
||||
#end for
|
||||
</select>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<input type="submit" name="submit" class="button" value="Choisir" />
|
||||
</div>
|
||||
<h2>Envoyer un fichier</h2>
|
||||
<div>
|
||||
<input type="file" name="newFile" class="file" />
|
||||
<input type="submit" name="submit" value="Envoyer" class="button">
|
||||
</div>
|
||||
</form>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
roundElement("popupFichiers");
|
||||
roundElement("insideDiv");
|
||||
</script>
|
||||
#end if
|
||||
</div>
|
||||
|
||||
#if $getVar('fileName',False)
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
Impression.settings.init();
|
||||
//Impression..AJAX.updateSolde();
|
||||
Impression.AJAX.usefile('$fileName');
|
||||
Impression.settings.preloadAllImages();
|
||||
//-->
|
||||
</script>
|
||||
#else
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
Impression.settings.init();
|
||||
//Impression..AJAX.updateSolde();
|
||||
Impression.settings.disableForm(true);
|
||||
//-->
|
||||
</script>
|
||||
#end if
|
||||
#else
|
||||
## desactivation de l'interface si l'imprimant a un probleme
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
Impression.settings.init();
|
||||
//Impression.AJAX.updateSolde();
|
||||
Impression.settings.disableForm(true);
|
||||
logError("$Erreur_imprimante");
|
||||
//-->
|
||||
</script>
|
||||
#end if
|
Loading…
Add table
Add a link
Reference in a new issue