edit/content/func.popup_window.php

Go to the documentation of this file.
00001 <?php
00002   /*
00003    This file is part of DocBookWiki.  DocBookWiki is a web application
00004    that displays and edits DocBook documents.
00005 
00006    Copyright (C) 2004, 2005, 2006, 2007
00007    Dashamir Hoxha, dashohoxha@users.sourceforge.net
00008 
00009    DocBookWiki is free software; you can redistribute it and/or modify
00010    it under the  terms of the GNU General  Public License as published
00011    by the Free  Software Foundation; either version 2  of the License,
00012    or (at your option) any later version.
00013 
00014    DocBookWiki is distributed in the  hope that it will be useful, but
00015    WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
00016    MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
00017    General Public License for more details.
00018 
00019    You should have  received a copy of the  GNU General Public License
00020    along  with  DocBookWiki;  if  not,  write  to  the  Free  Software
00021    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00022    USA
00023   */
00024 
00032 function popup_window($title, $message)
00033 {
00034   $msg_Close = T_("Close");
00035   $html_content = "<html>
00036 <head>
00037   <title>$title</title>
00038   <style>
00039     body 
00040      { 
00041        background-color: #f8fff8; 
00042        margin: 10px; 
00043        font-family: sans-serif; 
00044        font-size: 10pt; 
00045        color: #000066; 
00046      } 
00047     h1 { font-size: 12pt; color: #000066; }
00048     h2 { font-size: 10pt; color: #aa0000; }
00049 
00050     .xml_line
00051     {
00052       color: #006622; 
00053       font-family: fixed;
00054     }
00055     .xml_line strong
00056     {
00057       color: #ff0000;
00058     }
00059 
00060     .err_line, .err_line strong
00061     {
00062       color: #aa0044; 
00063       font-family: sans-serif;
00064     }
00065 
00066     .button, a.button, a.button:hover
00067      {
00068        margin: 1px;
00069        border: none;
00070        padding: 1px 3px;
00071        background: #0088bb;
00072        color: #ffffff;
00073        font-weight: bold;
00074        text-decoration: none;
00075      }
00076   </style>
00077 </head>
00078 <body>
00079 <h1>$title</h1>
00080 $message
00081 <div style='text-align: center;'>
00082 <a class='button' href='javascript:window.close()'>$msg_Close</a>
00083 </div>
00084 </body>
00085 </html>";
00086   $name = 'error_window';
00087   $url = '';
00088   $features = 'width=400,height=300';
00089   WebApp::popup_window($name, $url, $html_content, $features);
00090 }
00091 ?>

Generated on Wed Jan 9 08:27:32 2008 for DokBookWiki by  doxygen 1.5.2