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

    r2262 r2265  
    4444  </head> 
    4545  <body> 
    46     <form action="dumpykota.cgi" method="GET"> 
    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> 
    66       <p> 
    67         %s 
    68       </p>""" 
     46    <p> 
     47      <form action="dumpykota.cgi" method="GET"> 
     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> 
     67        <p> 
     68          %s 
     69        </p>""" 
    6970     
    7071footer = """ 
    71       <table> 
    72         <tr> 
    73           <td colspan="3" align="center"> 
    74             <input type="submit" name="report" value="%s" /> 
    75           </td> 
    76         </tr> 
    77       </table>   
    78     </form> 
     72        <table> 
     73          <tr> 
     74            <td colspan="3" align="center"> 
     75              <input type="submit" name="report" value="%s" /> 
     76            </td> 
     77          </tr> 
     78        </table>   
     79      </form> 
     80    </p>   
     81    <hr width="25%%" /> 
     82    <p> 
     83      <font size="-2"> 
     84        <a href="http://www.librelogiciel.com/software/">%s</a> 
     85        &copy; 2003, 2004, 2005 %s  
     86      </font> 
     87    </p> 
    7988  </body> 
    8089</html>"""   
     
    8594        """Displays the dumper interface.""" 
    8695        global header, footer 
    87         print header % (self.getCharset(), _("PyKota Data Dumper"), self.config.getLogoURL(), version.__version__, version.__version__, _("PyKota Data Dumper"), _("Dump"), _("Please click on the above button")) 
     96        print header % (self.getCharset(), _("PyKota Data Dumper"), \ 
     97                        self.config.getLogoLink(), \ 
     98                        self.config.getLogoURL(), version.__version__, \ 
     99                        self.config.getLogoLink(), \ 
     100                        version.__version__, _("PyKota Data Dumper"), \ 
     101                        _("Dump"), _("Please click on the above button")) 
    88102        print self.htmlListDataTypes(self.options.get("data", ""))  
    89103        print "<br />" 
     
    91105        print "<br />" 
    92106        print self.htmlFilterInput(" ".join(self.arguments)) 
    93         print footer % _("Dump") 
     107        print footer % (_("Dump"), version.__doc__, version.__author__) 
    94108         
    95109    def htmlListDataTypes(self, selected="") :