ajout de intranet dans le cvs (templates)
darcs-hash:20060713112226-f46e9-1d7c604d7edc272b6dabdf3e797f15c781a373a1.gz
This commit is contained in:
parent
6228576eee
commit
a20ab0dcf9
13 changed files with 1270 additions and 0 deletions
30
intranet/templates/MonCompteRechargePaypal1.tmpl
Normal file
30
intranet/templates/MonCompteRechargePaypal1.tmpl
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
<title>Cr@nsIntranet</title>
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++ stylesheets +++++++++++++++++++++++++++ -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/monCompte.css" />
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++++ scripts +++++++++++++++++++++++++++++ -->
|
||||||
|
<script src="/static/MochiKit/MochiKit.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/MochiKit/New.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="popupInnerBody">
|
||||||
|
<h2>Recharger son compte impression</h2>
|
||||||
|
<p> Le cr@ns te permet de recharger ton compte pour les impressions via PayPal ou en allant voir un câbleur.</p>
|
||||||
|
<p>La méthode PayPal est plus rapide mais PayPal facture des frais de transaction.</p>
|
||||||
|
<div class="liens">
|
||||||
|
<a href="./">Annuler</a>
|
||||||
|
<a href="?etape=2">Continuer avec Paypal</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body></html>
|
36
intranet/templates/MonCompteRechargePaypal2.tmpl
Normal file
36
intranet/templates/MonCompteRechargePaypal2.tmpl
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
<title>Cr@nsIntranet</title>
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++ stylesheets +++++++++++++++++++++++++++ -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/monCompte.css" />
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++++ scripts +++++++++++++++++++++++++++++ -->
|
||||||
|
<script src="/static/MochiKit/MochiKit.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/MochiKit/New.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="popupInnerBody">
|
||||||
|
<h2>Étape 1 : Choisir le montant</h2>
|
||||||
|
#if $getVar('error',False)
|
||||||
|
<div class="errorMessage">$error</div>
|
||||||
|
#end if
|
||||||
|
<form method="post" action="rechargerCompteImpression" name="FormCombien">
|
||||||
|
<input type="hidden" name="etape" value="3" />
|
||||||
|
<label for="combien">Combien souhaites-tu mettre sur ton compte impression ?<br />
|
||||||
|
<input type="text" name="combien" value="$getVar('combien','')" /> €
|
||||||
|
</label>
|
||||||
|
<p> ici, calcul des frais de transaction</p>
|
||||||
|
<div class="liens" id="liens">
|
||||||
|
<a href="./">Annuler</a>
|
||||||
|
<script type="text/JavaScript">
|
||||||
|
<!--
appendChildNodes("liens", A({'href':'#', 'onclick':"javascript:window.document.FormCombien.submit(); return false;"}, "Continuer"));
//-->
</script>
<noscript>
<input type="submit" value="Continuer"/>
</noscript>
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body></html>
|
45
intranet/templates/MonCompteRechargePaypal3.tmpl
Normal file
45
intranet/templates/MonCompteRechargePaypal3.tmpl
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
<title>Cr@nsIntranet</title>
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++ stylesheets +++++++++++++++++++++++++++ -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/monCompte.css" />
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++++ scripts +++++++++++++++++++++++++++++ -->
|
||||||
|
<script src="/static/MochiKit/MochiKit.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/MochiKit/New.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
</head><body>
|
||||||
|
<div id="popupInnerBody">
|
||||||
|
<h2>Étape 2 : Confirmer la facture</h2>
|
||||||
|
<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 unDetail in $details
|
||||||
|
<tr>
|
||||||
|
<td>$unDetail.intitule</td>
|
||||||
|
<td>$unDetail.prixUnitaire €</td>
|
||||||
|
<td>$unDetail.quantite</td>
|
||||||
|
<td>$unDetail.prixTotal €</td>
|
||||||
|
</tr>
|
||||||
|
#end for
|
||||||
|
<tr>
|
||||||
|
<td colspan="3" class="tdTotalDetailIntitule">
|
||||||
|
Total
|
||||||
|
</td>
|
||||||
|
<td class="tdTotalDetail">$total €</td>
|
||||||
|
</table>
|
||||||
|
<div class="liens">
|
||||||
|
<a href="?etape=2">Précédent</a>
|
||||||
|
<a href="./">Annuler</a>
|
||||||
|
<a href="?etape=4">Confirmer</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body></html>
|
25
intranet/templates/MonCompteRechargePaypal4.tmpl
Normal file
25
intranet/templates/MonCompteRechargePaypal4.tmpl
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
<title>Cr@nsIntranet</title>
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++ stylesheets +++++++++++++++++++++++++++ -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/monCompte.css" />
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++++ scripts +++++++++++++++++++++++++++++ -->
|
||||||
|
<script src="/static/MochiKit/MochiKit.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/MochiKit/New.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
</head><body>
|
||||||
|
<div id="popupInnerBody">
|
||||||
|
<h2>Étape 3 : Fin</h2>
|
||||||
|
<p>Ton compte impressions sera crédité dés que la facture sera réglée.</p>
|
||||||
|
<p>Tu peux régler la facture plus tard en allant dans <a href="/sous/">Mes Factures</a></p>
|
||||||
|
<div class="liens">
|
||||||
|
<a href="./">Payer plus tard</a>
|
||||||
|
<a href="$lienPaypal">Payer tout de suite</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body></html>
|
19
intranet/templates/accueil.tmpl
Normal file
19
intranet/templates/accueil.tmpl
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<div class="framed_gray">
|
||||||
|
<fieldset>
|
||||||
|
<legend>Personnel</legend>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/monCompte">
|
||||||
|
<img src="/static/images/icon_monCompte.png" alt="icon" />
|
||||||
|
<span>Mon Compte</span>
|
||||||
|
</a></li>
|
||||||
|
<li><a href="/impression">
|
||||||
|
<img src="/static/images/icon_impression.png" alt="icon" />
|
||||||
|
<span>Impression</span>
|
||||||
|
</a></li>
|
||||||
|
<li><a href="/sous">
|
||||||
|
<img src="/static/images/icon_factures.png" alt="icon" />
|
||||||
|
<span>Mes Factures</span>
|
||||||
|
</a></li>
|
||||||
|
</fieldset>
|
||||||
|
<div class="visualClear"></div>
|
||||||
|
</div>
|
37
intranet/templates/factures-historique.tmpl
Normal file
37
intranet/templates/factures-historique.tmpl
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<div id="messagePlaceHolder"></div>
|
||||||
|
|
||||||
|
<div id="globalDiv" onclick="setMessage();">
|
||||||
|
<div id="factureListDiv">
|
||||||
|
<h2>Historique</h2>
|
||||||
|
<table id="historique_sous" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Intitulé</th>
|
||||||
|
<th>Débit</th>
|
||||||
|
<th>Crédit</th>
|
||||||
|
</tr>
|
||||||
|
#for anItem in $historic_items
|
||||||
|
<tr>
|
||||||
|
<td>$anItem.date</td>
|
||||||
|
<td>$anItem.intitule</td>
|
||||||
|
#if $anItem.type=="debit"
|
||||||
|
<td>$anItem.montant</td>
|
||||||
|
#else
|
||||||
|
<td> <!-- evite que opera fasse des trucs bizarres... --></td>
|
||||||
|
#end if
|
||||||
|
#if $anItem.type=="credit"
|
||||||
|
<td>$anItem.montant</td>
|
||||||
|
#else
|
||||||
|
<td> <!-- evite que opera fasse des trucs bizarres... --></td>
|
||||||
|
#end if
|
||||||
|
</tr>
|
||||||
|
#end for
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<!-- ********************** Menu ********************** -->
|
||||||
|
</div>
|
||||||
|
<ul id="actionMenu">
|
||||||
|
<li><a href="index">Mes factures</a></li>
|
||||||
|
<li><a href="historique">Historique</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
100
intranet/templates/factures.tmpl
Normal file
100
intranet/templates/factures.tmpl
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
<div id="messagePlaceHolder"></div>
|
||||||
|
|
||||||
|
#if $message != ''
|
||||||
|
<script type="text/javascript">setMessage('$message.replace("\'","\\\'")')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
#if $error != ''
|
||||||
|
<script type="text/javascript">setMessage('$error.replace("\'","\\\'")', 'errorMessage')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function showDetail(id){
|
||||||
|
slideDown(id, {duration:0.4});
|
||||||
|
var element = document.getElementById("togglelink" + id);
|
||||||
|
element.onclick=null;
|
||||||
|
element.style.backgroundPosition='bottom left';
|
||||||
|
setTimeout("var element = document.getElementById(\'togglelink" + id + "\');element.onclick=function () {hideDetail(\'" + id + "\'); return false;};",450);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function hideDetail(id){
|
||||||
|
slideUp(id, {duration:0.4});
|
||||||
|
var element = document.getElementById("togglelink" + id);
|
||||||
|
element.onclick=null;
|
||||||
|
element.style.backgroundPosition="top left";
|
||||||
|
setTimeout("var element = document.getElementById(\'togglelink" + id + "\');element.onclick=function () {showDetail(\'" + id + "\'); return false;};",450);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="globalDiv">
|
||||||
|
<div id="factureListDiv">
|
||||||
|
<h2>Mes factures</h2>
|
||||||
|
<!-- <table id="listeFactures" cellspacing="0" border="0"> -->
|
||||||
|
#for f in $listeFactures
|
||||||
|
#if $f.payee
|
||||||
|
<div class="factureRow facturePayee">
|
||||||
|
#else
|
||||||
|
<div class="factureRow factureNonPayee">
|
||||||
|
#end if
|
||||||
|
<div class="factureSummary">
|
||||||
|
<span class="intitule">
|
||||||
|
#if $f.details.__len__() > 1
|
||||||
|
<a href="#" class="linkToggle" id="togglelinkfacture$f.no" onclick="showDetail('facture$f.no'); return false;"></a>
|
||||||
|
#end if
|
||||||
|
$f.intitule
|
||||||
|
#if not $f.payee
|
||||||
|
(non payée)
|
||||||
|
#end if
|
||||||
|
<span class="note">Crée le -</span>
|
||||||
|
</span>
|
||||||
|
<span class="montant">
|
||||||
|
$f.montant €
|
||||||
|
#if not $f.payee
|
||||||
|
<a class="note" href="$f.paypal">Payer avec PayPal</a>
|
||||||
|
#else
|
||||||
|
<span class="note">Payée</span>
|
||||||
|
#end if
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
#if $f.details.__len__() > 1
|
||||||
|
<div id="facture$f.no" style="display:none;">
|
||||||
|
<table cellspacing="0" border="0" id="facture$f.no" class="factureDetails">
|
||||||
|
<tr>
|
||||||
|
<th width="80%">Description</th>
|
||||||
|
<th>Prix unitaire</th>
|
||||||
|
<th>Quantité</th>
|
||||||
|
<th>total</th>
|
||||||
|
</tr>
|
||||||
|
#for unDetail in $f.details
|
||||||
|
<tr>
|
||||||
|
<td>$unDetail.intitule</td>
|
||||||
|
<td>$unDetail.prixUnitaire €</td>
|
||||||
|
<td>$unDetail.quantite</td>
|
||||||
|
<td>$unDetail.prixTotal €</td>
|
||||||
|
</tr>
|
||||||
|
#end for
|
||||||
|
<tr>
|
||||||
|
<td colspan="3" class="tdTotalDetailIntitule">
|
||||||
|
Total
|
||||||
|
</td>
|
||||||
|
<td class="tdTotalDetail">$f.montant €</td>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
|
#end for
|
||||||
|
|
||||||
|
#if $listeFactures == []
|
||||||
|
<div class="factureRow tdNoFactures">
|
||||||
|
VIDE
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
|
</div>
|
||||||
|
<ul id="actionMenu">
|
||||||
|
<li><a href="index">Mes factures</a></li>
|
||||||
|
<li><a href="historique">Historique</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
97
intranet/templates/impression.tmpl
Normal file
97
intranet/templates/impression.tmpl
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
<a href="javascript:Impression.popup.popupError('pas bien, c\'est cassé');">dd</a>
|
||||||
|
<a href="javascript:Impression.popup.popupImpression('123DE432');">dd</a>
|
||||||
|
<a href="javascript:Impression.popup.popupSolde();">dd</a>
|
||||||
|
<div id="globalDiv">
|
||||||
|
|
||||||
|
<form id="form_impression" name="form_impression" onsubmit="Impression.popup();return false;">
|
||||||
|
<fieldset><legend>Mise en page</legend>
|
||||||
|
<div id="leftColumn">
|
||||||
|
<div id="preview" onclick="Impression.settings.init();"></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="couleur" checked="checked" onClick="Impression.settings.fieldChanges(this);" /> Couleurs</label>
|
||||||
|
<label for="type_impression_nb" class="labelRadio compact"><input type="radio" name="type_impression" id="type_impression_nb" class="inputRadio" value="b&w" onClick="Impression.settings.fieldChanges(this);" />Noir et blanc</label>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset><legend>Copies et papier</legend>
|
||||||
|
|
||||||
|
<label for="type_papier" class="labelInput">Papier:</label>
|
||||||
|
<select name="type_papier" id="type_papier" class="selectOne" onChange="Impression.settings.fieldChanges(this);">
|
||||||
|
<option value="A4" selected="selected"> A4</option>
|
||||||
|
<option value="A4tr">A4 transparent</option>
|
||||||
|
<option value="A3">A3</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<label for="agrafes" class="labelInput">Agrafes:</label>
|
||||||
|
<select name="agrafes" id="agrafes" class="selectOne" onChange="Impression.settings.fieldChanges(this);">
|
||||||
|
<option value="non" selected="selected">Aucune agrafe</option>
<option value="diagonale">1 agrafe en diagonale</option>
<option value="haut">1 agrafe en haut</option>
<option value="reliure2">Reliure avec 2 agrafes</option>
<option value="reliure3">Reliure avec 3 agrafes</option>
<option value="stitching">Stitching (6 agrafes)</option>
</select>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<label for="nb_copies" class="labelInput">Copies:</label>
|
||||||
|
<input type="text" name="nb_copies" id="nb_copies" class="inputText" size="10" maxlength="50" value="1" />
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="clear bouttons">
|
||||||
|
#if not $getVar('fileName',False)
|
||||||
|
<input type="reset" value="Reset" onclick="Impression.settings.reset();return false;" disabled />
|
||||||
|
<input type="submit" value="Devis" disabled />
|
||||||
|
<input type="submit" value="Imprimer" disabled />
|
||||||
|
#else
|
||||||
|
<input type="reset" value="Reset" onclick="Impression.settings.reset();return false;" />
|
||||||
|
<input type="submit" value="Devis" />
|
||||||
|
<input type="submit" value="Imprimer" />
|
||||||
|
#end if
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
<ul id="actionMenu">
|
||||||
|
#if $getVar('fileName',False)
|
||||||
|
<li><div id="fileName"><span>$fileName</span></div></li>
|
||||||
|
#end if
|
||||||
|
<li><a href="index">Nouvelle impression</a></li>
|
||||||
|
<li><a href="historique">Historique</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
#if not $getVar('fileName',False)
|
||||||
|
<div id="popupFichiers">
|
||||||
|
<h1>Impression - Choix fichier</h1>
|
||||||
|
<div id="insideDiv">
|
||||||
|
<form method="post" action="./">
|
||||||
|
<h2>Mes fichiers</h2>
|
||||||
|
<select name="fileList" id="fileList"
|
||||||
|
size="5">
|
||||||
|
#for $file in $fileList
|
||||||
|
<option>$file</option>
|
||||||
|
#end for
|
||||||
|
</select>
|
||||||
|
<div class="buttons">
|
||||||
|
<input type="submit" class="button" name="submit" id="submit_chose" value="Choisir">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Envoyer un fichier</h2>
|
||||||
|
<input type="file" name="newFile" classe="file">
|
||||||
|
<input type="submit" class="button" name="submit" id="submit_send" value="Envoyer">
|
||||||
|
</form>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
roundElement("popupFichiers");
|
||||||
|
roundElement("insideDiv");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
#end if
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
Impression.settings.preloadAllImages();
|
||||||
|
Impression.settings.init();
|
||||||
|
</script>
|
||||||
|
|
202
intranet/templates/index.tmpl
Normal file
202
intranet/templates/index.tmpl
Normal file
|
@ -0,0 +1,202 @@
|
||||||
|
<!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>
|
||||||
|
<LINK href="/static/css/crans.css" TYPE="text/css" REL="stylesheet" />
|
||||||
|
<LINK href="/static/css/crans_domtab.css" TYPE="text/css" REL="stylesheet" />
|
||||||
|
<script src="/static/scripts/crans_domtab.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/scripts/crans.js" type="text/javascript"></script>
|
||||||
|
<style type="text/css">
|
||||||
|
img#logo {
|
||||||
|
width:100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
<img id="logo" src="http://tryon/logo.png" alt="logocr@ns" />
|
||||||
|
<div id="message">
|
||||||
|
$message
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="paramCompte" class="domtab">
|
||||||
|
<h1>Paramètres de mon compte</h1>
|
||||||
|
<ul class="domtabs">
|
||||||
|
<li><a href="#t1">Général</a></li>
|
||||||
|
<li><a href="#t2">Machines</a></li>
|
||||||
|
<li><a href="#t3">Mails</a></li>
|
||||||
|
</ul>
|
||||||
|
<!-- +++++++++++++++++++ Infos Utilisateur +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<a name="t1" id="t1" class="mark"></a>
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Nom :</dt>
|
||||||
|
<dd>$adherent.nom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForName('$adherent.nom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
<dt>Prénom :</dt>
|
||||||
|
<dd>$adherent.prenom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForSurname('$adherent.prenom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>Chambre :</dt>
|
||||||
|
<dd>$adherent.chambre</dd>
|
||||||
|
<dt>Solde :</dt>
|
||||||
|
<dd>$adherent.solde €</dd>
|
||||||
|
<dt>Téléphone :</dt>
|
||||||
|
<dd>$adherent.telephone
|
||||||
|
<span class="actions"><a href="#" onclick="return askForTel('$adherent.telephone')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
#if $adherent.droits
|
||||||
|
<dt>Droits :</dt>
|
||||||
|
<dd>
|
||||||
|
$adherent.droits
|
||||||
|
</dd>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
|
||||||
|
<dt>État administratif pour l'année $adherent.anneeScolaire :</dt>
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>Cotisation : </dt>
|
||||||
|
<dd>#if $adherent.cotisationOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> Non payée</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
<dt>Carte d'étudiant : </dt>
|
||||||
|
<dd>#if $adherent.carteOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> pas de carte d'étudiant</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt class="last">Changer mon mot de passe</dt>
|
||||||
|
<dd class="last">
|
||||||
|
<form action="changePasswordAdherent" name="changePasswordForm" method="POST">
|
||||||
|
<label class="textInputLabel" for="ancienPassword">Ancien mot de passe : </label>
|
||||||
|
<input type="password" id="ancienPassword" name="ancienPassword"/><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword1">Nouveau mot de passe : </label>
|
||||||
|
<input type="password" id="nouveauPassword1" name="nouveauPassword1"/><br />
|
||||||
|
<a class="textInputNote" href="#" onclick="return GeneratePassword()">Générer un nouveau mot de passe</a><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword2">Confirmation : </label>
|
||||||
|
<input type="password" id="nouveauPassword2" name="nouveauPassword2"/><br />
|
||||||
|
<input type="submit" value="Modifier" />
|
||||||
|
</form>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Machines +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<a name="t2" id="t2" class="mark"></a>
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
#for $machine in $machines
|
||||||
|
<li>
|
||||||
|
<h5>$machine.nom</h5>
|
||||||
|
<dl class="machineInfos">
|
||||||
|
<dt>Type : </dt><dd>$machine.type</dd>
|
||||||
|
<dt>MAC : </dt><dd>$machine.mac</dd>
|
||||||
|
<dt>IP : </dt><dd>$machine.ip</dd>
|
||||||
|
#if $machine.ipsec
|
||||||
|
<dt>Clef ipsec : </dt><dd>$machine.ipsec</dd>
|
||||||
|
#end if
|
||||||
|
</dl>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<span class="actions">
|
||||||
|
<a href="#" onclick="return askForMachineName('$machine.nomCourt', '$machine.mid')">renommer</a>
|
||||||
|
<a href="#" onclick="return askForMachineMac('$machine.mac', '$machine.mid')">Changer de MAC</a>
|
||||||
|
<a href="#">Supprimer</a>
|
||||||
|
</span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</li>
|
||||||
|
#end for
|
||||||
|
<li class="last">
|
||||||
|
<h5>Ajouter une machine</h5>
|
||||||
|
<form action="creerMachine" method="post">
|
||||||
|
<label class="textInputLabel" for="nomNouvelleMachine">Nom de la machine :</label>
|
||||||
|
<input type="text" id="nomNouvelleMachine" name="nomNouvelleMachine"/><br />
|
||||||
|
<label class="textInputLabel" for="MACNouvelleMachine">Adresse MAC :</label>
|
||||||
|
<input type="text" id="MACNouvelleMachine" name="MACNouvelleMachine"/><br />
|
||||||
|
<a class="textInputNote" href="#" onclick="return GeneratePassword()">Comment trouver l'adresse mac ?</a><br />
|
||||||
|
<label class="checkBoxLabel" for="isWifi"><input type="checkbox" id="estMachineWifi" name="estMachineWifi" value="1" />machine wifi</label><br />
|
||||||
|
<input type="submit" value="Ajouter" />
|
||||||
|
</form>
|
||||||
|
<p class="note"><b>Note :</b>Pour les non membres actifs, le nombre de machines fixes est limitÃé à 1</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Mails +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<a name="t3" id="t3" class="mark"></a>
|
||||||
|
<form action="saveMailPrefs" method="POST">
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Transfert:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="forwarding_address" class="labelInput">
|
||||||
|
<input type="text" name="forwarding_address" id="forwarding_address" class="inputText" value="" />
|
||||||
|
<p class="textInputNote">Laisser vide pour désactiver le transfert</p><br />
|
||||||
|
|
||||||
|
</label>
|
||||||
|
</dd>
|
||||||
|
<dt>Tri des spams:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="spanTreatment_no" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.no
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" checked /> Aucun
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" /> Aucun
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_mark" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.mark
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" checked /> Marquer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" /> Marquer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_drop" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.drop
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" checked /> Supprimer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" /> Supprimer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>Alias:</dt>
|
||||||
|
<dd>...</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="last centrer">
|
||||||
|
<input type="reset" value="Reset">
|
||||||
|
<input type="submit" nom="mailSubmit" value="Soumettre">
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
78
intranet/templates/login.tmpl
Normal file
78
intranet/templates/login.tmpl
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
<!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">
|
||||||
|
.form {
|
||||||
|
width:260px;
|
||||||
|
padding:20px;
|
||||||
|
background:#eee;
|
||||||
|
border:3px solid #ddd;
|
||||||
|
margin:30px;
|
||||||
|
}
|
||||||
|
.liens {
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
width:100px;
|
||||||
|
clear:left;
|
||||||
|
}
|
||||||
|
textInputLabel {
|
||||||
|
width:150px;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
margin:0 0 20px 0;
|
||||||
|
padding:0 0 0 0;
|
||||||
|
position:relative;
|
||||||
|
right:60px;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
float:left;
|
||||||
|
position:relative;
|
||||||
|
bottom:40px;
|
||||||
|
right:60px;
|
||||||
|
}
|
||||||
|
div#message {
|
||||||
|
background:white;
|
||||||
|
border:2px #cc0000 solid;
|
||||||
|
padding:5px;
|
||||||
|
text-align:center;
|
||||||
|
width:230px;
|
||||||
|
font-weight:bold;
|
||||||
|
margin:10px 60px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Bienvenue sur Cr@nsIntranet</h1>
|
||||||
|
|
||||||
|
#if $message
|
||||||
|
<div id="message">
|
||||||
|
$message
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
<div class="form">
|
||||||
|
<img src="/static/images/petitCr@ns.png" alt="logocr@ns" />
|
||||||
|
<h2>Connexion</h2>
|
||||||
|
<form method="post" action="do_login">
|
||||||
|
<label class="textInputLabel" for="login">Login :</label>
|
||||||
|
<input type="text" id="login" name="login" value="$login" /><br />
|
||||||
|
<label class="textInputLabel" for="password">Password :</label>
|
||||||
|
<input type="password" id="password" name="password"/><br />
|
||||||
|
<input type="hidden" name="from_page" value="$from_page">
|
||||||
|
<div class="liens">
|
||||||
|
<input type="submit" value="Login" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="liens">
|
||||||
|
<a href="#">J'ai oublié mon mot de passe.</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
45
intranet/templates/main.tmpl
Normal file
45
intranet/templates/main.tmpl
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
|
|
||||||
|
<title>Cr@ns $getVar('title', 'Intranet')</title>
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++ stylesheets +++++++++++++++++++++++++++ -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/mainInterface.css" />
|
||||||
|
#if $getVar('stylesheets',False)
|
||||||
|
#for $a_stylesheet in $stylesheets
|
||||||
|
<LINK href="/static/css/$a_stylesheet" TYPE="text/css" REL="stylesheet" />
|
||||||
|
#end for
|
||||||
|
#end if
|
||||||
|
|
||||||
|
<!-- ++++++++++++++++++++++++++++ scripts +++++++++++++++++++++++++++++ -->
|
||||||
|
<script src="/static/MochiKit/MochiKit.js" type="text/javascript"></script>
|
||||||
|
<script src="/static/MochiKit/New.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
|
||||||
|
#if $getVar('scripts',False)
|
||||||
|
#for $a_script in $scripts
|
||||||
|
<script src="/static/scripts/$a_script" type="text/javascript"></script>
|
||||||
|
#end for
|
||||||
|
#end if
|
||||||
|
|
||||||
|
</head><body>
|
||||||
|
|
||||||
|
<div id="pageContent">
|
||||||
|
<!-- ++++++++++++++++++++++++++ start page ++++++++++++++++++++++++++ -->
|
||||||
|
$page
|
||||||
|
<!-- +++++++++++++++++++++++++++ end page +++++++++++++++++++++++++++ -->
|
||||||
|
</div>
|
||||||
|
<div id="topContent">
|
||||||
|
<a href="/"><img id="logo" src="/static/images/logointranet.png" alt="logocr@ns" /></a>
|
||||||
|
<ul id="topMenu">
|
||||||
|
<li>$login</li>
|
||||||
|
<li class="last"><a href="do_logout">logout</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="mainFooter"><hr /><a href="http://www.crans.org/">Site du cr@ns</a> <a href="http://wiki.crans.org/">wiki</a><br /><a href="http://wiki/ContactsCrans">Contact Cr@ns</a></div>
|
||||||
|
#if $environment == 'development'
|
||||||
|
<script type="text/javascript">
|
||||||
|
createLoggingPane(true);
|
||||||
|
</script>
|
||||||
|
#end if
|
||||||
|
</body></html>
|
265
intranet/templates/monCompte.tmpl
Normal file
265
intranet/templates/monCompte.tmpl
Normal file
|
@ -0,0 +1,265 @@
|
||||||
|
<div id="messagePlaceHolder"></div>
|
||||||
|
|
||||||
|
#if $message != ''
|
||||||
|
<script type="text/javascript">setMessage('$message.replace("\'","\\\'")')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
#if $error != ''
|
||||||
|
<script type="text/javascript">setMessage('$error.replace("\'","\\\'")', 'errorMessage')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
|
||||||
|
<div id="loadings">
|
||||||
|
Chargement en cours...
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="globalDiv" onclick="setMessage();">
|
||||||
|
<div id="paramCompte" class="domtab">
|
||||||
|
<h1>Paramètres de mon compte</h1>
|
||||||
|
<ul class="domtabs">
|
||||||
|
<li><a href="#mainTab">Général</a></li>
|
||||||
|
<li><a href="#machinesTab">Machines</a></li>
|
||||||
|
<li><a href="#mailTab">Mails</a></li>
|
||||||
|
<li><a href="#variousTab">Divers</a></li>
|
||||||
|
</ul>
|
||||||
|
<!-- +++++++++++++++++++ Infos Utilisateur +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="mainTab" id="mainTab"></a></h2>
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Nom :</dt>
|
||||||
|
<dd>$adherent.nom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForName('$adherent.nom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
<dt>Prénom :</dt>
|
||||||
|
<dd>$adherent.prenom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForSurname('$adherent.prenom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>Chambre :</dt>
|
||||||
|
<dd>$adherent.chambre</dd>
|
||||||
|
<dt>Solde :</dt>
|
||||||
|
<dd>
|
||||||
|
$adherent.solde €
|
||||||
|
<span class="actions"><a href="rechargerCompteImpression" onclick="return paypalWindow('$adherent.telephone')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
<dt>Téléphone :</dt>
|
||||||
|
<dd>$adherent.telephone
|
||||||
|
<span class="actions"><a href="#" onclick="return askForTel('$adherent.telephone')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
#if $adherent.droits
|
||||||
|
<dt>Droits :</dt>
|
||||||
|
<dd>
|
||||||
|
$adherent.droits
|
||||||
|
</dd>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
|
||||||
|
<dt>État administratif pour l'année $adherent.anneeScolaire :</dt>
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>Cotisation : </dt>
|
||||||
|
<dd>#if $adherent.cotisationOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> Non payée</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
<dt>Carte d'étudiant : </dt>
|
||||||
|
<dd>#if $adherent.carteOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> pas de carte d'étudiant</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt class="last">Changer mon mot de passe</dt>
|
||||||
|
<dd class="last">
|
||||||
|
<form action="changePasswordAdherent" name="changePasswordForm" method="POST">
|
||||||
|
<label class="textInputLabel" for="ancienPassword">Ancien mot de passe : </label>
|
||||||
|
<input type="password" id="ancienPassword" name="ancienPassword"/><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword1">Nouveau mot de passe : </label>
|
||||||
|
<input type="password" id="nouveauPassword1" name="nouveauPassword1"/><br />
|
||||||
|
<a class="textInputNote" href="#" onclick="return GeneratePassword()">Générer un nouveau mot de passe</a><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword2">Confirmation : </label>
|
||||||
|
<input type="password" id="nouveauPassword2" name="nouveauPassword2"/><br />
|
||||||
|
<input type="submit" value="Modifier" />
|
||||||
|
</form>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Machines +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="machinesTab" id="machinesTab"></a></h2>
|
||||||
|
<ul class="tabbed_page" id="machineList">
|
||||||
|
#for $machine in $machines
|
||||||
|
<li>
|
||||||
|
<h3>$machine.nomCourt</h3>
|
||||||
|
<dl class="machineInfos">
|
||||||
|
<dt>Type : </dt><dd>$machine.type</dd>
|
||||||
|
<dt>MAC : </dt><dd>$machine.mac</dd>
|
||||||
|
<dt>IP : </dt><dd>$machine.ip</dd>
|
||||||
|
#if $machine.ipsec
|
||||||
|
<dt>Clef ipsec : </dt><dd>$machine.ipsec</dd>
|
||||||
|
#end if
|
||||||
|
</dl>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<span class="actions">
|
||||||
|
<a href="#" onclick="return askForMachineName('$machine.nomCourt', '$machine.mid')">renommer</a>
|
||||||
|
<a href="#" onclick="return askForMachineMac('$machine.mac', '$machine.mid')">Changer de MAC</a>
|
||||||
|
<a href="#" onclick="return askForDeleteMachine('$machine.mid');">Supprimer</a>
|
||||||
|
</span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</li>
|
||||||
|
#end for
|
||||||
|
</ul>
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="last">
|
||||||
|
<h3>Ajouter une machine</h3>
|
||||||
|
<form action="creerMachine" method="post" onsubmit="return creerMachine(this.nomNouvelleMachine.value, this.MACNouvelleMachine.value, this.estMachineWifi.checked)" name="addMachineForm">
|
||||||
|
<label class="textInputLabel" for="nomNouvelleMachine">Nom de la machine :</label>
|
||||||
|
<input type="text" id="nomNouvelleMachine" name="nomNouvelleMachine"/><br />
|
||||||
|
<label class="textInputLabel" for="MACNouvelleMachine">Adresse MAC :</label>
|
||||||
|
<input type="text" id="MACNouvelleMachine" name="MACNouvelleMachine"/><br />
|
||||||
|
<a class="textInputNote" href="http://wiki/VieCrans/Param%c3%a8tresConnexion/AdresseMac" target="_blanc">Comment trouver l'adresse mac ?</a><br />
|
||||||
|
<label class="checkBoxLabel" for="isWifi"><input type="checkbox" id="estMachineWifi" name="estMachineWifi" value="1" />machine wifi</label><br />
|
||||||
|
<input type="submit" value="Ajouter" />
|
||||||
|
</form>
|
||||||
|
<p class="note"><b>Note :</b>Pour les non membres actifs, le nombre de machines fixes est limité à 1</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Mails +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="mailTab" id="mailTab"></a></h2>
|
||||||
|
<form action="saveMailPrefs#mailTab" method="POST">
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Alias:</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.alias==[]
|
||||||
|
<span class="empty">Vide</span>
|
||||||
|
#else
|
||||||
|
<ul class="listeAlias">
|
||||||
|
#for $an_alias in $mailInfos.alias
|
||||||
|
<li>$an_alias<span>@crans.org</span></li>
|
||||||
|
#end for
|
||||||
|
</ul>
|
||||||
|
#end if
|
||||||
|
<div class="clear"></div>
|
||||||
|
<span class="actions">
|
||||||
|
<a href="#" onclick="return newAlias()">Nouvel alias</a>
|
||||||
|
</span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
Greylisting:
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.contourneGreylist==True
|
||||||
|
<label for="contourneGreylist" class="labelCheckbox"><input type="checkbox" name="contourneGreylist" id="contourneGreylist" class="inputCheckbox" value="oui" checked /> Contourner</label>
|
||||||
|
#else
|
||||||
|
<label for="contourneGreylist" class="labelCheckbox"><input type="checkbox" name="contourneGreylist" id="contourneGreylist" class="inputCheckbox" value="oui" /> Contourner</label>
|
||||||
|
#end if
|
||||||
|
<a class="textInputNote" href="http://wiki/CransTechnique/GreyListing?highlight=%28Greylist%29" target="_blanc">Plus d'infos</a><br />
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
Entêtes:
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.rewriteMailHeaders==True
|
||||||
|
<label for="rewriteMailHeaders" class="labelCheckbox"><input type="checkbox" name="rewriteMailHeaders" id="rewriteMailHeaders" class="contourneGreylist" value="oui" checked /> Réécriture des en-tête mails</label>
|
||||||
|
#else
|
||||||
|
<label for="rewriteMailHeaders" class="labelCheckbox"><input type="checkbox" name="rewriteMailHeaders" id="rewriteMailHeaders" class="contourneGreylist" value="oui" /> Réécriture des en-tête mails</label>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
#if $getVar('mailError', False)
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="centrer last">
|
||||||
|
<span class="errorMessage">$mailError</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
#else
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Transfert:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="forwarding_address" class="labelInput">
|
||||||
|
<input type="text" name="forwarding_address" id="forwarding_address" class="inputText" value="$mailInfos.forwarding_address" />
|
||||||
|
<p class="textInputNote">Laisser vide pour désactiver le transfert</p><br />
|
||||||
|
|
||||||
|
</label>
|
||||||
|
</dd>
|
||||||
|
<dt>Tri des spams:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="spanTreatment_no" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.no
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" checked /> Aucun
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" /> Aucun
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_mark" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.mark
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" checked /> Marquer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" /> Marquer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_drop" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.drop
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" checked /> Supprimer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" /> Supprimer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
#end if
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="centrer last">
|
||||||
|
<input type="reset" value="Reset">
|
||||||
|
<input type="submit" nom="mailSubmit" value="Soumettre">
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ divers +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="variousTab" id="variousTab"></a></h2>
|
||||||
|
<form action="saveVariousPrefs#variousTab" method="POST">
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Bittorent:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="bittorent" class="labelCheckbox"><input type="checkbox" name="bittorent" id="bittorent" class="inputCheckbox" value="1" /> Utiliser Bittorent</label>
<a class="textInputNote" href="#">Plus d'infos</a><br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="last centrer">
|
||||||
|
<input type="reset" value="Reset">
|
||||||
|
<input type="submit" nom="variousSubmit" value="Soumettre">
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
291
intranet/templates/monCompte.tmpl-Copy
Normal file
291
intranet/templates/monCompte.tmpl-Copy
Normal file
|
@ -0,0 +1,291 @@
|
||||||
|
<div id="messagePlaceHolder"></div>
|
||||||
|
|
||||||
|
#if $message != ''
|
||||||
|
<script type="text/javascript">setMessage('$message.replace("\'","\\\'")')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
#if $error != ''
|
||||||
|
<script type="text/javascript">setMessage('$error.replace("\'","\\\'")', 'errorMessage')</script>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
|
||||||
|
<div id="loadings">
|
||||||
|
Chargement en cours...
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function showDetail(id){
|
||||||
|
slideDown(id, {duration:0.4});
|
||||||
|
var element = document.getElementById("togglelink" + id);
|
||||||
|
element.onclick=null;
|
||||||
|
element.style.backgroundPosition='bottom left';
|
||||||
|
setTimeout("var element = document.getElementById(\'togglelink" + id + "\');element.onclick=function () {hideDetail(\'" + id + "\'); return false;};",450);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function hideDetail(id){
|
||||||
|
slideUp(id, {duration:0.4});
|
||||||
|
var element = document.getElementById("togglelink" + id);
|
||||||
|
element.onclick=null;
|
||||||
|
element.style.backgroundPosition="top left";
|
||||||
|
setTimeout("var element = document.getElementById(\'togglelink" + id + "\');element.onclick=function () {showDetail(\'" + id + "\'); return false;};",450);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="globalDiv" onclick="setMessage();">
|
||||||
|
<div id="paramCompte" class="domtab">
|
||||||
|
<h1>Paramètres de mon compte</h1>
|
||||||
|
<ul class="domtabs">
|
||||||
|
<li><a href="#mainTab">Général</a></li>
|
||||||
|
<li><a href="#machinesTab">Machines</a></li>
|
||||||
|
<li><a href="#mailTab">Mails</a></li>
|
||||||
|
<li><a href="#variousTab">Divers</a></li>
|
||||||
|
</ul>
|
||||||
|
<!-- +++++++++++++++++++ Infos Utilisateur +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="mainTab" id="mainTab"></a></h2>
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Nom :</dt>
|
||||||
|
<dd>$adherent.nom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForName('$adherent.nom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
<dt>Prénom :</dt>
|
||||||
|
<dd>$adherent.prenom
|
||||||
|
<span class="actions"><a href="#" onclick="return askForSurname('$adherent.prenom')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>Chambre :</dt>
|
||||||
|
<dd>$adherent.chambre</dd>
|
||||||
|
<dt>Solde :</dt>
|
||||||
|
<dd>
|
||||||
|
$adherent.solde €
|
||||||
|
<span class="actions"><a href="rechargerCompteImpression" onclick="return paypalWindow('$adherent.telephone')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
<dt>Téléphone :</dt>
|
||||||
|
<dd>$adherent.telephone
|
||||||
|
<span class="actions"><a href="#" onclick="return askForTel('$adherent.telephone')">modifier</a></span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
#if $adherent.droits
|
||||||
|
<dt>Droits :</dt>
|
||||||
|
<dd>
|
||||||
|
$adherent.droits
|
||||||
|
</dd>
|
||||||
|
#end if
|
||||||
|
|
||||||
|
|
||||||
|
<dt>État administratif pour l'année $adherent.anneeScolaire :</dt>
|
||||||
|
<dd>
|
||||||
|
<dl>
|
||||||
|
<dt>Cotisation : </dt>
|
||||||
|
<dd>#if $adherent.cotisationOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> Non payée</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
<dt>Carte d'étudiant : </dt>
|
||||||
|
<dd>#if $adherent.carteOK
|
||||||
|
<span class="valide"> OK</span>
|
||||||
|
#else
|
||||||
|
<span class="invalide"> pas de carte d'étudiant</span>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dt class="last">Changer mon mot de passe</dt>
|
||||||
|
<dd class="last">
|
||||||
|
<form action="changePasswordAdherent" name="changePasswordForm" method="POST">
|
||||||
|
<label class="textInputLabel" for="ancienPassword">Ancien mot de passe : </label>
|
||||||
|
<input type="password" id="ancienPassword" name="ancienPassword"/><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword1">Nouveau mot de passe : </label>
|
||||||
|
<input type="password" id="nouveauPassword1" name="nouveauPassword1"/><br />
|
||||||
|
<a class="textInputNote" href="#" onclick="return GeneratePassword()">Générer un nouveau mot de passe</a><br />
|
||||||
|
<label class="textInputLabel" for="nouveauPassword2">Confirmation : </label>
|
||||||
|
<input type="password" id="nouveauPassword2" name="nouveauPassword2"/><br />
|
||||||
|
<input type="submit" value="Modifier" />
|
||||||
|
</form>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Machines +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="machinesTab" id="machinesTab"></a></h2>
|
||||||
|
<dl id="machineList">
|
||||||
|
#for $machine in $machines
|
||||||
|
<dt>
|
||||||
|
<a href="#" class="linkToggle" id="togglelinkmachine$machine.id" onclick="showDetail('machine$machine.id'); return false;"></a>
|
||||||
|
$machine.nomCourt
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<div class="machineDetails" id="machine$machine.id">
|
||||||
|
<div>
|
||||||
|
<dl class="machineInfos">
|
||||||
|
<dt>Type : </dt><dd>$machine.type</dd>
|
||||||
|
<dt>MAC : </dt><dd>$machine.mac</dd>
|
||||||
|
<dt>IP : </dt><dd>$machine.ip</dd>
|
||||||
|
#if $machine.ipsec
|
||||||
|
<dt>Clef ipsec : </dt><dd>$machine.ipsec</dd>
|
||||||
|
#end if
|
||||||
|
</dl>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<span class="actions">
|
||||||
|
<a href="#" onclick="return askForMachineName('$machine.nomCourt', '$machine.mid')">renommer</a>
|
||||||
|
<a href="#" onclick="return askForMachineMac('$machine.mac', '$machine.mid')">Changer de MAC</a>
|
||||||
|
<a href="#" onclick="return askForDeleteMachine('$machine.mid');">Supprimer</a>
|
||||||
|
</span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
#end for
|
||||||
|
</dl>
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="last">
|
||||||
|
<h3>Ajouter une machine</h3>
|
||||||
|
<form action="creerMachine" method="post" onsubmit="return creerMachine(this.nomNouvelleMachine.value, this.MACNouvelleMachine.value, this.estMachineWifi.checked)" name="addMachineForm">
|
||||||
|
<label class="textInputLabel" for="nomNouvelleMachine">Nom de la machine :</label>
|
||||||
|
<input type="text" id="nomNouvelleMachine" name="nomNouvelleMachine"/><br />
|
||||||
|
<label class="textInputLabel" for="MACNouvelleMachine">Adresse MAC :</label>
|
||||||
|
<input type="text" id="MACNouvelleMachine" name="MACNouvelleMachine"/><br />
|
||||||
|
<a class="textInputNote" href="http://wiki/VieCrans/Param%c3%a8tresConnexion/AdresseMac" target="_blanc">Comment trouver l'adresse mac ?</a><br />
|
||||||
|
<label class="checkBoxLabel" for="isWifi"><input type="checkbox" id="estMachineWifi" name="estMachineWifi" value="1" />machine wifi</label><br />
|
||||||
|
<input type="submit" value="Ajouter" />
|
||||||
|
</form>
|
||||||
|
<p class="note"><b>Note :</b>Pour les non membres actifs, le nombre de machines fixes est limité à 1</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ Infos Mails +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="mailTab" id="mailTab"></a></h2>
|
||||||
|
<form action="saveMailPrefs#mailTab" method="POST">
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Alias:</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.alias==[]
|
||||||
|
<span class="empty">Vide</span>
|
||||||
|
#else
|
||||||
|
<ul class="listeAlias">
|
||||||
|
#for $an_alias in $mailInfos.alias
|
||||||
|
<li>$an_alias</li>
|
||||||
|
#end for
|
||||||
|
</ul>
|
||||||
|
#end if
|
||||||
|
<div class="clear"></div>
|
||||||
|
<span class="actions">
|
||||||
|
<a href="#" onclick="return newAlias()">Nouvel alias</a>
|
||||||
|
</span>
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
Greylisting:
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.contourneGreylist==True
|
||||||
|
<label for="contourneGreylist" class="labelCheckbox"><input type="checkbox" name="contourneGreylist" id="contourneGreylist" class="inputCheckbox" value="oui" checked /> Contourner</label>
|
||||||
|
#else
|
||||||
|
<label for="contourneGreylist" class="labelCheckbox"><input type="checkbox" name="contourneGreylist" id="contourneGreylist" class="inputCheckbox" value="oui" /> Contourner</label>
|
||||||
|
#end if
|
||||||
|
<a class="textInputNote" href="http://wiki/CransTechnique/GreyListing?highlight=%28Greylist%29" target="_blanc">Plus d'infos</a><br />
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
Entêtes:
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
#if $mailInfos.rewriteMailHeaders==True
|
||||||
|
<label for="rewriteMailHeaders" class="labelCheckbox"><input type="checkbox" name="rewriteMailHeaders" id="rewriteMailHeaders" class="contourneGreylist" value="oui" checked /> Réécriture des en-tête mails</label>
|
||||||
|
#else
|
||||||
|
<label for="rewriteMailHeaders" class="labelCheckbox"><input type="checkbox" name="rewriteMailHeaders" id="rewriteMailHeaders" class="contourneGreylist" value="oui" /> Réécriture des en-tête mails</label>
|
||||||
|
#end if
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
#if $getVar('mailError', False)
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="centrer last">
|
||||||
|
<span class="errorMessage">$mailError</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
#else
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Transfert:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="forwarding_address" class="labelInput">
|
||||||
|
<input type="text" name="forwarding_address" id="forwarding_address" class="inputText" value="$mailInfos.forwarding_address" />
|
||||||
|
<p class="textInputNote">Laisser vide pour désactiver le transfert</p><br />
|
||||||
|
|
||||||
|
</label>
|
||||||
|
</dd>
|
||||||
|
<dt>Tri des spams:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="spanTreatment_no" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.no
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" checked /> Aucun
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_no" class="inputRadio" value="no" /> Aucun
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_mark" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.mark
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" checked /> Marquer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_mark" class="inputRadio" value="mark" /> Marquer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
|
||||||
|
<label for="spanTreatment_drop" class="labelRadio">
|
||||||
|
#if $mailInfos.spam.drop
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" checked /> Supprimer
|
||||||
|
#else
|
||||||
|
<input type="radio" name="spanTreatment" id="spanTreatment_drop" class="inputRadio" value="drop" /> Supprimer
|
||||||
|
#end if
|
||||||
|
</label><br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
#end if
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="centrer last">
|
||||||
|
<input type="reset" value="Reset">
|
||||||
|
<input type="submit" nom="mailSubmit" value="Soumettre">
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- +++++++++++++++++++ divers +++++++++++++++++++ -->
|
||||||
|
<div>
|
||||||
|
<h2 class="mark"><a name="variousTab" id="variousTab"></a></h2>
|
||||||
|
<form action="saveVariousPrefs#variousTab" method="POST">
|
||||||
|
<dl class="tabbed_page">
|
||||||
|
<dt>Bittorent:</dt>
|
||||||
|
<dd>
|
||||||
|
<label for="bittorent" class="labelCheckbox"><input type="checkbox" name="bittorent" id="bittorent" class="inputCheckbox" value="1" /> Utiliser Bittorent</label>
<a class="textInputNote" href="#">Plus d'infos</a><br />
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<ul class="tabbed_page">
|
||||||
|
<li class="last centrer">
|
||||||
|
<input type="reset" value="Reset">
|
||||||
|
<input type="submit" nom="variousSubmit" value="Soumettre">
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue