zephir.monitor.widgets

Package zephir :: Package monitor :: Module widgets |
[frames] | no frames]

# Source Code for Module zephir.monitor.widgets

     1  # -*- coding: UTF-8 -*-
     2  ###########################################################################
     3  # Eole NG - 2007
     4  # Copyright Pole de Competence Eole  (Ministere Education - Academie Dijon)
     5  # Licence CeCill  cf /root/LicenceEole.txt
     6  # eole@ac-dijon.fr
     7  #
     8  # widgets.py
     9  #
    10  # widgets permettent de structurer la maquette (design) de la page
    11  # pour les agents zephir (deprecated)
    12  #
    13  ###########################################################################
    14  from zephir.config import charset
    15
    16  PAGE_WIDGET = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    17  <html>
    18  <head>
    19      <title>%(title)s</title>
    20      <meta http-equiv="Content-Type" content="text/html; charset=%s"/>
    21      <link rel="stylesheet" type="text/css" href="style.css">
    22      <style type="text/css">
    23      @import "print.css" print;
    24      </style>
    25  </head>
    26  <body>
    27
    28  <div class="main">
    29
    30  <div style="clear:both;"></div>
    31
    32    <div class="funbanner">
    33  %(date)s
    34    </div>
    35
    36  <div class="leftcol">
    37  %(NAVIGATION_WIDGET)s
    38  </div>
    39  <div class="centraldiv">
    40  %(CENTRAL_WIDGET)s
    41  </div>
    42  <div style="clear:both; padding:6px"></div>
    43  <br>
    44  </div>
    45  </body>
    46  </html>
    47  """ % charset
    48