Show
Ignore:
Timestamp:
05/20/05 22:15:17 (19 years ago)
Author:
jerome
Message:

The destination URL for a click on the logos in CGI scripts is now
configurable.
A copyright message was added to the page's footer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r2262 r2265  
    4444  </head> 
    4545  <body> 
    46     <form action="printquota.cgi" method="POST"> 
    47       <table> 
    48         <tr> 
    49           <td> 
    50             <p> 
    51               <a href="http://www.librelogiciel.com/software/"><img src="%s?version=%s" alt="PyKota's Logo" /></a> 
    52               <br /> 
    53               <a href="http://www.librelogiciel.com/software/">PyKota v%s</a> 
    54             </p> 
    55           </td> 
    56           <td colspan="2"> 
    57             <h1>%s</h1> 
    58           </td> 
    59         </tr> 
    60         <tr> 
    61           <td colspan="3" align="center"> 
    62             <input type="submit" name="report" value="%s" /> 
    63           </td> 
    64         </tr> 
    65       </table>""" 
     46    <p> 
     47      <form action="printquota.cgi" method="POST"> 
     48        <table> 
     49          <tr> 
     50            <td> 
     51              <p> 
     52                <a href="%s"><img src="%s?version=%s" alt="PyKota's Logo" /></a> 
     53                <br /> 
     54                <a href="%s">PyKota v%s</a> 
     55              </p> 
     56            </td> 
     57            <td colspan="2"> 
     58              <h1>%s</h1> 
     59            </td> 
     60          </tr> 
     61          <tr> 
     62            <td colspan="3" align="center"> 
     63              <input type="submit" name="report" value="%s" /> 
     64            </td> 
     65          </tr> 
     66        </table>""" 
    6667     
    6768footer = """ 
    68       <table> 
    69         <tr> 
    70           <td colspan="3" align="center"> 
    71             <input type="submit" name="report" value="%s" /> 
    72           </td> 
    73         </tr> 
    74       </table>   
    75     </form> 
     69        <table> 
     70          <tr> 
     71            <td colspan="3" align="center"> 
     72              <input type="submit" name="report" value="%s" /> 
     73            </td> 
     74          </tr> 
     75        </table>   
     76      </form> 
     77    </p> 
     78    <hr width="25%%" /> 
     79    <p> 
     80      <font size="-2"> 
     81        <a href="http://www.librelogiciel.com/software/">%s</a> 
     82        &copy; 2003, 2004, 2005 %s  
     83      </font> 
     84    </p> 
    7685  </body> 
    7786</html>"""   
     
    8291        """Displays the administrative interface.""" 
    8392        global header, footer 
    84         print header % (self.getCharset(), _("PyKota Reports"), self.config.getLogoURL(), version.__version__, version.__version__, _("PyKota Reports"), _("Report")) 
     93        print header % (self.getCharset(), _("PyKota Reports"), \ 
     94                        self.config.getLogoLink(), \ 
     95                        self.config.getLogoURL(), version.__version__, \ 
     96                        self.config.getLogoLink(), \ 
     97                        version.__version__, _("PyKota Reports"), \ 
     98                        _("Report")) 
    8599        print self.body 
    86         print footer % _("Report") 
     100        print footer % (_("Report"), version.__doc__, version.__author__) 
    87101         
    88102    def error(self, message) :