Comment: | Bilan comptable |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f08392923e0ef4cf0cb0688d02cf25c8 |
User & Date: | bohwaz on 2012-10-15 04:38:01 |
Other Links: | manifest | tags |
2012-10-15
| ||
04:40 | Ergonomie pour l'IBAN check-in: de1e5db19c user: bohwaz tags: trunk | |
04:38 | Bilan comptable check-in: f08392923e user: bohwaz tags: trunk | |
03:11 | Fix mise à jour check-in: 6a1adb26dc user: bohwaz tags: trunk | |
Modified include/class.compta_exercices.php from [302aa40b6d] to [150fc9b8a4].
︙ | ︙ | |||
268 269 270 271 272 273 274 | $res->finalize(); $resultat = $produits['total'] - $charges['total']; return array('charges' => $charges, 'produits' => $produits, 'resultat' => $resultat); } | | > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 | $res->finalize(); $resultat = $produits['total'] - $charges['total']; return array('charges' => $charges, 'produits' => $produits, 'resultat' => $resultat); } public function getBilan($exercice) { $db = Garradin_DB::getInstance(); require_once GARRADIN_ROOT . '/include/class.compta_comptes.php'; $include = array(Garradin_Compta_Comptes::ACTIF, Garradin_Compta_Comptes::PASSIF, Garradin_Compta_Comptes::PASSIF | Garradin_Compta_Comptes::ACTIF); $actif = array('comptes' => array(), 'total' => 0.0); $passif = array('comptes' => array(), 'total' => 0.0); $resultat = $this->getCompteResultat($exercice); if ($resultat['resultat'] > 0) { $passif['comptes']['12'] = array( 'comptes' => array('120' => $resultat['resultat']), 'solde' => $resultat['resultat'] ); $passif['total'] = $resultat['resultat']; } else { $passif['comptes']['12'] = array( 'comptes' => array('121' => $resultat['resultat']), 'solde' => $resultat['resultat'] ); $passif['total'] = $resultat['resultat']; } // Y'a sûrement moyen d'améliorer tout ça pour que le maximum de travail // soit fait au niveau du SQL, mais pour le moment ça marche $res = $db->prepare('SELECT compte, debit, credit, (SELECT position FROM compta_comptes WHERE id = compte) AS position FROM (SELECT compte_debit AS compte, SUM(montant) AS debit, NULL AS credit FROM compta_journal WHERE id_exercice = 1 GROUP BY compte_debit UNION SELECT compte_credit AS compte, NULL AS debit, SUM(montant) AS credit FROM compta_journal WHERE id_exercice = 1 GROUP BY compte_credit) WHERE compte IN (SELECT id FROM compta_comptes WHERE position IN ('.implode(', ', $include).')) ORDER BY base64(compte) COLLATE BINARY ASC;' )->execute(); while ($row = $res->fetchArray(SQLITE3_NUM)) { list($compte, $debit, $credit, $position) = $row; $parent = substr($compte, 0, 2); if ($position & Garradin_Compta_Comptes::ACTIF) { if (!isset($actif['comptes'][$parent])) { $actif['comptes'][$parent] = array('comptes' => array(), 'solde' => 0.0); } $solde = $debit - $credit; if (!isset($actif['comptes'][$parent]['comptes'][$compte])) { $actif['comptes'][$parent]['comptes'][$compte] = 0.0; } $actif['comptes'][$parent]['comptes'][$compte] += $solde; $actif['total'] += $solde; $actif['comptes'][$parent]['solde'] += $solde; } if ($position & Garradin_Compta_Comptes::PASSIF) { if (!isset($passif['comptes'][$parent])) { $passif['comptes'][$parent] = array('comptes' => array(), 'solde' => 0.0); } $solde = $credit - $debit; if (!isset($passif['comptes'][$parent]['comptes'][$compte])) { $passif['comptes'][$parent]['comptes'][$compte] = 0.0; } $passif['comptes'][$parent]['comptes'][$compte] += $solde; $passif['total'] += $solde; $passif['comptes'][$parent]['solde'] += $solde; } } $res->finalize(); return array('actif' => $actif, 'passif' => $passif); } } ?> |
Modified templates/admin/_head.tpl from [b292a4a743] to [d05ea277a4].
1 2 3 4 5 6 | <!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="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>{$title|escape}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!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="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>{$title|escape}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="{$www_url}admin/static/admin.css" media="screen,projection,handheld,print" /> {if isset($custom_js)} {foreach from=$custom_js item="js"} <script type="text/javascript" src="{$www_url}admin/static/{$js|escape}"></script> {/foreach} {/if} </head> <body{if !empty($body_id)} id="{$body_id|escape}"{/if}> {if empty($is_popup)} <div class="header"> <h1>{$title|escape}</h1> {if $is_logged} <ul class="menu"> |
︙ | ︙ |
Added templates/admin/compta/exercices/bilan.tpl version [c2322ae634].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | {include file="admin/_head.tpl" title="Bilan" current="compta/exercices" body_id="rapport"} <div class="exercice"> <h2>{$config.nom_asso|escape}</h2> <p>Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}</p> </div> <table> <colgroup> <col width="50%" /> <col width="50%" /> </colgroup> <tbody> <tr> <td> <table> <caption><h3>Actif</h3></caption> <tbody> {foreach from=$bilan.actif.comptes key="parent_code" item="parent"} <tr class="parent"> <th>{$parent_code|get_nom_compte|escape}</th> <td>{$parent.solde|escape_money}</td> </tr> {foreach from=$parent.comptes item="solde" key="compte"} <tr class="compte"> <th>{$compte|get_nom_compte|escape}</th> <td>{$solde|escape_money}</td> </tr> {/foreach} {/foreach} </tbody> </table> </td> <td> <table> <caption><h3>Passif</h3></caption> <tbody> {foreach from=$bilan.passif.comptes key="parent_code" item="parent"} <tr class="parent"> <th>{$parent_code|get_nom_compte|escape}</th> <td>{$parent.solde|escape_money}</td> </tr> {foreach from=$parent.comptes item="solde" key="compte"} <tr class="compte"> <th>{$compte|get_nom_compte|escape}</th> <td>{$solde|escape_money}</td> </tr> {/foreach} {/foreach} </tbody> </table> </td> </tr> </tbody> <tfoot> <tr> <td> <table> <tfoot> <tr> <th>Total actif</th> <td>{$bilan.actif.total|escape_money}</td> </tr> </tfoot> </table> </td> <td> <table> <tfoot> <tr> <th>Total passif</th> <td>{$bilan.passif.total|escape_money}</td> </tr> </tfoot> </table> </td> </tr> </tfoot> </table> <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p> {include file="admin/_foot.tpl"} |
Modified templates/admin/compta/exercices/compte_resultat.tpl from [5f66d0c98d] to [401ed137cb].
|
| | | > > | > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | {include file="admin/_head.tpl" title="Compte de résultat" current="compta/exercices" body_id="rapport"} <div class="exercice"> <h2>{$config.nom_asso|escape}</h2> <p>Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}</p> </div> <table> <colgroup> <col width="50%" /> <col width="50%" /> </colgroup> <tbody> <tr> <td> <table> <caption><h3>Charges</h3></caption> <tbody> {foreach from=$compte_resultat.charges.comptes key="parent_code" item="parent"} <tr class="parent"> <th>{$parent_code|get_nom_compte|escape}</th> <td>{$parent.solde|escape_money}</td> </tr> {foreach from=$parent.comptes item="solde" key="compte"} <tr class="compte"> <th>{$compte|get_nom_compte|escape}</th> <td>{$solde|escape_money}</td> </tr> {/foreach} {/foreach} </tbody> </table> </td> <td> <table> <caption><h3>Produits</h3></caption> <tbody> {foreach from=$compte_resultat.produits.comptes key="parent_code" item="parent"} <tr class="parent"> <th>{$parent_code|get_nom_compte|escape}</th> <td>{$parent.solde|escape_money}</td> </tr> {foreach from=$parent.comptes item="solde" key="compte"} <tr class="compte"> <th>{$compte|get_nom_compte|escape}</th> <td>{$solde|escape_money}</td> </tr> {/foreach} {/foreach} </tbody> </table> </td> </tr> </tbody> <tfoot> <tr> <td> <table> <tfoot> <tr> <th>Total charges</th> <td>{$compte_resultat.charges.total|escape_money}</td> </tr> </tfoot> </table> </td> <td> <table> <tfoot> <tr> <th>Total produits</th> <td>{$compte_resultat.produits.total|escape_money}</td> </tr> </tfoot> </table> </td> </tr> <tr> <td> </td> <td> <table> <tfoot> <tr> <th>Résultat</th> <td>{$compte_resultat.resultat|escape_money}</td> </tr> </tfoot> </table> </td> </tr> </tfoot> </table> <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p> {include file="admin/_foot.tpl"} |
Modified templates/admin/compta/exercices/grand_livre.tpl from [e1e128b579] to [9b0516d806].
|
| | | > > > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | < < < < < < < < < < < < < < < < < < < > > > > > > > > > > > > > > > > > > > | | | | | | | | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | {include file="admin/_head.tpl" title="Grand livre" current="compta/exercices" body_id="rapport"} <div class="exercice"> <h2>{$config.nom_asso|escape}</h2> <p>Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}</p> </div> {foreach from=$livre.classes key="classe" item="comptes"} <h3>{$classe|get_nom_compte|escape}</h3> {foreach from=$comptes item="compte" key="code"} {foreach from=$compte.comptes item="souscompte" key="souscode"} <table class="list"> <caption><h4>{$souscode|escape} — {$souscode|get_nom_compte|escape}</h4></caption> <colgroup> <col width="15%" /> <col width="65%" /> <col width="10%" /> <col width="10%" /> </colgroup> <thead> <tr> <td>Date</td> <th>Intitulé</th> <td>Débit</td> <td>Crédit</td> </tr> </thead> <tbody> {foreach from=$souscompte.journal item="ligne"} <tr> <td>{$ligne.date|date_fr:'d/m/Y'|escape}</td> <th>{$ligne.libelle|escape}</th> <td>{if $ligne.compte_debit == $souscode}{$ligne.montant|escape_money}{/if}</td> <td>{if $ligne.compte_credit == $souscode}{$ligne.montant|escape_money}{/if}</td> </tr> {/foreach} </tbody> <tfoot> <tr> <td></td> <th>Solde final</th> <td>{if $souscompte.debit > 0}{$souscompte.debit|escape_money}{/if}</td> <td>{if $souscompte.credit > 0}{$souscompte.credit|escape_money}{/if}</td> </tr> </tfoot> </table> {/foreach} <table class="list"> <colgroup> <col width="15%" /> <col width="65%" /> <col width="10%" /> <col width="10%" /> </colgroup> <tfoot> <tr> <td>Total</td> <th>{$code|get_nom_compte|escape}</th> <td>{if $compte.total > 0}{$compte.total|abs|escape_money}{/if}</td> <td>{if $compte.total < 0}{$compte.total|abs|escape_money}{/if}</td> </tr> </tfoot> </table> {/foreach} {/foreach} <table class="list"> <colgroup> <col width="15%" /> <col width="65%" /> <col width="10%" /> <col width="10%" /> </colgroup> <tfoot> <tr> <td><strong>Total</strong></td> <th></th> <td>{$livre.debit|escape_money}</td> <td>{$livre.credit|escape_money}</td> </tr> </tfoot> </table> <p class="help">Toutes les opérations sont libellées en {$config.monnaie|escape}.</p> {include file="admin/_foot.tpl"} |
Modified templates/admin/compta/exercices/journal.tpl from [422a5e4888] to [ee7cc03357].
|
| | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | {include file="admin/_head.tpl" title="Journal général" current="compta/exercices" body_id="rapport"} <div class="exercice"> <h2>{$config.nom_asso|escape}</h2> <p>Exercice comptable {if $exercice.cloture}clôturé{else}en cours{/if} du {$exercice.debut|date_fr:'d/m/Y'} au {$exercice.fin|date_fr:'d/m/Y'}, généré le {$cloture|date_fr:'d/m/Y'}</p> </div> <table class="list multi"> <thead> <tr> <td>Date</td> <th>Intitulé</th> <td>Comptes</td> |
︙ | ︙ |
Modified templates/admin/wiki/_chercher_parent.tpl from [d632d8f3ff] to [8f5769baca].
|
| | | 1 2 3 4 5 6 7 8 | {include file="admin/_head.tpl" title="Choisir la page parent" current="wiki" body_id="popup" is_popup=true} <div class="wikiTree"> <p class="choice"> <input type="button" onclick="chooseParent();" value="Choisir la page sélectionnée" /> </p> {display_tree tree=$list} |
︙ | ︙ |
Added www/admin/compta/exercices/bilan.php version [fb00a50299].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?php require_once __DIR__ . '/../_inc.php'; require_once GARRADIN_ROOT . '/include/class.compta_exercices.php'; $exercices = new Garradin_Compta_Exercices; $exercice = $exercices->get((int)utils::get('id')); if (!$exercice) { throw new UserException('Exercice inconnu.'); } $liste_comptes = $comptes->getListAll(); function get_nom_compte($compte) { global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('bilan', $exercices->getBilan($exercice['id'])); $tpl->assign('cloture', $exercice['cloture'] ? $exercice['fin'] : time()); $tpl->assign('exercice', $exercice); $tpl->display('admin/compta/exercices/bilan.tpl'); ?> |
Modified www/admin/compta/exercices/compte_resultat.php from [b90134370c] to [5f95d64742].
︙ | ︙ | |||
19 20 21 22 23 24 25 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('compte_resultat', $exercices->getCompteResultat($exercice['id'])); | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('compte_resultat', $exercices->getCompteResultat($exercice['id'])); $tpl->assign('cloture', $exercice['cloture'] ? $exercice['fin'] : time()); $tpl->assign('exercice', $exercice); $tpl->display('admin/compta/exercices/compte_resultat.tpl'); ?> |
Modified www/admin/compta/exercices/grand_livre.php from [11189fa73c] to [45472657f2].
︙ | ︙ | |||
19 20 21 22 23 24 25 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('livre', $exercices->getGrandLivre($exercice['id'])); | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('livre', $exercices->getGrandLivre($exercice['id'])); $tpl->assign('cloture', $exercice['cloture'] ? $exercice['fin'] : time()); $tpl->assign('exercice', $exercice); $tpl->display('admin/compta/exercices/grand_livre.tpl'); ?> |
Modified www/admin/compta/exercices/journal.php from [856d2e1f2e] to [76b24a8693].
︙ | ︙ | |||
19 20 21 22 23 24 25 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('journal', $exercices->getJournal($exercice['id'])); | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 | global $liste_comptes; return $liste_comptes[$compte]; } $tpl->register_modifier('get_nom_compte', 'get_nom_compte'); $tpl->assign('journal', $exercices->getJournal($exercice['id'])); $tpl->assign('cloture', $exercice['cloture'] ? $exercice['fin'] : time()); $tpl->assign('exercice', $exercice); $tpl->display('admin/compta/exercices/journal.tpl'); ?> |
Modified www/admin/compta/operations/voir.php from [c2f023c4b1] to [37d6bd592e].
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | $operation = $journal->get(utils::get('id')); if (!$operation) { throw new UserException("L'opération demandée n'existe pas."); } require_once GARRADIN_ROOT . '/include/class.compta_exercices.php'; $exercices = new Garradin_Compta_Exercices; $tpl->assign('operation', $operation); $credit = $comptes->get($operation['compte_credit']); $tpl->assign('nom_compte_credit', $credit['libelle']); $debit = $comptes->get($operation['compte_debit']); $tpl->assign('nom_compte_debit', $debit['libelle']); $tpl->assign('exercice', $exercices->get($operation['id_exercice'])); if ($operation['id_categorie']) { | > < | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | $operation = $journal->get(utils::get('id')); if (!$operation) { throw new UserException("L'opération demandée n'existe pas."); } require_once GARRADIN_ROOT . '/include/class.compta_categories.php'; require_once GARRADIN_ROOT . '/include/class.compta_exercices.php'; $exercices = new Garradin_Compta_Exercices; $tpl->assign('operation', $operation); $credit = $comptes->get($operation['compte_credit']); $tpl->assign('nom_compte_credit', $credit['libelle']); $debit = $comptes->get($operation['compte_debit']); $tpl->assign('nom_compte_debit', $debit['libelle']); $tpl->assign('exercice', $exercices->get($operation['id_exercice'])); if ($operation['id_categorie']) { $cats = new Garradin_Compta_Categories; $categorie = $cats->get($operation['id_categorie']); $tpl->assign('categorie', $categorie); if ($categorie['type'] == Garradin_Compta_Categories::RECETTES) { |
︙ | ︙ |
Modified www/admin/static/admin.css from [4273ea187d] to [c11d27ca8a].
︙ | ︙ | |||
361 362 363 364 365 366 367 | } table.list .actions { text-align: right; } | | | | | | | | | | | | > > > > > > > > > > > | 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | } table.list .actions { text-align: right; } #rapport h3 { text-align: center; margin-bottom: .5em; } #rapport table { width: 100%; border-collapse: collapse; } #rapport tr { vertical-align: top; } #rapport table table { border: 1px solid rgba(217, 134, 40, 0.5); } #rapport table table tr th { width: 80%; } #rapport td, #rapport th { padding: 0.2em 0.5em; text-align: left; } #rapport .compte th { font-weight: normal; } #rapport table table td { text-align: right; } #rapport .parent { font-weight: bold; background: rgba(217, 134, 40, 0.2); } #rapport table table tfoot tr { background: rgba(217, 134, 40, 0.1); color: rgb(156, 79, 21); } #rapport .exercice { text-align: center; margin-bottom: .8em; padding-bottom: .5em; border-bottom: 1pt solid #999; } #rapport h1 { text-align: center; } .actions .icn { text-decoration: none; border-radius: 1em; width: 16px; display: inline-block; text-align: center; |
︙ | ︙ | |||
839 840 841 842 843 844 845 | margin-bottom: .5em; } dl.describe > dd { margin-bottom: .5em; margin-left: 15em; } | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 | margin-bottom: .5em; } dl.describe > dd { margin-bottom: .5em; margin-left: 15em; } @media print { body { background: #fff; } .header .menu { display: none; } .page { margin: 0; } .header h1 { margin: 0; text-align: center; } table.list thead { background: #000; color: #fff; } table.list tfoot tr { background: #666; color: #fff; } table.list tr { border: 1px solid #666; } table.list tr:nth-child(even) { background: #ddd; } table.list.multi tr:nth-child(even) { background: inherit; } table.list.multi tr:nth-child(4n+1), table.list.multi tr:nth-child(4n+2) { background: #ddd; } #rapport table table { border: 1px solid #666; } #rapport .parent { background: #ccc; } #rapport table table tfoot tr { background: #666; color: #fff; } |