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/pykotme.cgi

    r2262 r2265  
    4545  </head> 
    4646  <body> 
    47     <form action="pykotme.cgi" method="POST" enctype="multipart/form-data"> 
    48       <table> 
    49         <tr> 
    50           <td> 
    51             <p> 
    52               <a href="http://www.librelogiciel.com/software/"><img src="%s?version=%s" alt="PyKota's Logo" /></a> 
    53               <br /> 
    54               <a href="http://www.librelogiciel.com/software/">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>""" 
     47    <p> 
     48      <form action="pykotme.cgi" method="POST" enctype="multipart/form-data"> 
     49        <table> 
     50          <tr> 
     51            <td> 
     52              <p> 
     53                <a href="%s"><img src="%s?version=%s" alt="PyKota's Logo" /></a> 
     54                <br /> 
     55                <a href="%s">PyKota v%s</a> 
     56              </p> 
     57            </td> 
     58            <td colspan="2"> 
     59              <h1>%s</h1> 
     60            </td> 
     61          </tr> 
     62          <tr> 
     63            <td colspan="3" align="center"> 
     64              <input type="submit" name="report" value="%s" /> 
     65            </td> 
     66          </tr> 
     67        </table>""" 
    6768     
    6869footer = """ 
    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> 
     70        <table> 
     71          <tr> 
     72            <td colspan="3" align="center"> 
     73              <input type="submit" name="report" value="%s" /> 
     74            </td> 
     75          </tr> 
     76        </table>   
     77      </form> 
     78    </p> 
     79    <hr width="25%%" /> 
     80    <p> 
     81      <font size="-2"> 
     82        <a href="http://www.librelogiciel.com/software/">%s</a> 
     83        &copy; 2003, 2004, 2005 %s  
     84      </font> 
     85    </p> 
    7786  </body> 
    7887</html>"""   
     
    8392        """Displays the administrative interface.""" 
    8493        global header, footer 
    85         print header % (self.getCharset(), _("PyKota Reports"), self.config.getLogoURL(), version.__version__, version.__version__, _("PyKota Quotes"), _("Quote")) 
     94        print header % (self.getCharset(), _("PyKota Quotes"), \ 
     95                        self.config.getLogoLink(), \ 
     96                        self.config.getLogoURL(), version.__version__, \ 
     97                        self.config.getLogoLink(), \ 
     98                        version.__version__, _("PyKota Quotes"), \ 
     99                        _("Quote")) 
    86100        print self.body 
    87         print footer % _("Quote") 
     101        print footer % (_("Quote"), version.__doc__, version.__author__) 
    88102         
    89103    def error(self, message) :