/trunk/presentation/preferences.tpl.html |
---|
New file |
0,0 → 1,15 |
<form id="gestion_admin_pref" action="index.php?action=<?=GTT_ACTION_PREFERENCE_VALIDER;?>" name="gestion_admin_pref" method="post"> |
<input name="champ_nb_total_proj" value="<?=$nbre_projets;?>" type="hidden"/> |
<ul> |
<?foreach ($preferences as $categorie => $projets):?> |
<li><h2><?=$categorie;?></h2> |
<dl> |
<?foreach ($projets as $projet):?> |
<dt><?=$projet['nom'];?></dt> |
<dd><input id="pr:<?=$projet['id'];?>" name="pr:<?=$projet['id'];?>" value="<?=$projet['valeur'];?>" type="checkbox" <?=$projet['coche']?'checked="checked"':'';?>/></dd> |
<?php endforeach; ?> |
</dl></li> |
<?php endforeach; ?> |
<li><input id="btn_valider_editer" name="btn_valider_editer" value="<?=$i18n_general_valider;?>" type="submit" /></li> |
</ul> |
</form> |
/trunk/presentation/principal.tpl.html |
---|
New file |
0,0 → 1,12 |
<!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/" > |
<head> |
<meta http-equiv="Content-Style-Type" content="text/css" /> |
<link rel="stylesheet" type="text/css" href="presentation/gtt_vert.css" media="screen" title="Vert" /> |
<title>Editer Preferences</title> |
</head> |
<body> |
<h1 id="titre_principal"><?=$titre;?></h1> |
<div id="contenu_principal"><?=$contenu_principal;?></div> |
</body> |
</html> |
/trunk/presentation/gtt_vert.css |
---|
223,4 → 223,11 |
border-color: #74C054; |
border-width: 4px; |
border-style: outset; |
} |
#calendrier table {background-color: silver;} |
.selected { |
background-color: yellow; |
} |
.empty { |
color: white; |
} |
/trunk/presentation/gestion.tpl.html |
---|
New file |
0,0 → 1,41 |
<dl> |
<dt>Congés payés restants</dt> |
<dd>22 jours</dd> |
<dt>Heures supp restantes</dt> |
<dd> 2 jours 6heures </dd> |
</dl> |
<div id="calendrier"> |
<p><a href="<?=$url_mois_precedent;?>">Mois précédent</a> - <a href="<?=$url_mois_suivant;?>">Mois suivant</a></p> |
<p><a href="<?=$url_semaine_precedente;?>">Semaine précédente</a> - <a href="<?=$url_semaine_suivante;?>">Semaine suivante</a></p> |
<table> |
<caption><?=$mois_courant_nom;?></caption> |
<thead> |
<tr> |
<th>Lun</th> |
<th>Mar</th> |
<th>Mer</th> |
<th>Jeu</th> |
<th>Ven</th> |
<th>Sam</th> |
<th>Dim</th> |
</tr> |
</thead> |
<tbody> |
<?php foreach ($elements as $semaine) : ?> |
<tr> |
<?php foreach ($semaine as $jour) : ?> |
<td class="<?=$jour['class'];?>"> |
<? if ($jour['class'] == 'empty') :?> |
<?=$jour['jour'];?> |
<? else :?> |
<a href="index.php?action=<?=GTT_ACTION_GESTION;?>&annee=<?=$jour['annee'];?>&mois=<?=$jour['mois'];?>&jour=<?=$jour['jour'];?>"><?=$jour['jour'];?></a> |
<? endif;?> |
</td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
</tbody> |
</table> |
</div> |
/trunk/presentation/gtt_calendrier.class.php |
---|
24,10 → 24,7 |
// |@author ABDOOL RAHEEM shaheen <shaheenar50@hotmail.com> | |
// |@version 3 | |
include_once("HTML/Table.php"); |
include_once 'gtt_config.inc.php'; |
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php'; |
include_once "HTML/QuickForm.php"; |
include_once 'HTML/Table.php'; |
/** |
*classe calendrier pour gerer le calendrier pour un mois et une annee |
41,8 → 38,6 |
*@param liste de noms des mois |
*@param liste des jours feries du mois |
*/ |
class Calendrier |
{ |