00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00032 function popup_window($title, $message)
00033 {
00034 $msg_Close = T_("Close");
00035 $message = str_replace("\n", "<br/>\n", $message);
00036 $html_content = "<html>
00037 <head>
00038 <title>$title</title>
00039 <style>
00040 body
00041 {
00042 background-color: #f8fff8;
00043 margin: 10px;
00044 font-family: sans-serif;
00045 font-size: 10pt;
00046 color: #000066;
00047 }
00048 h1 { font-size: 12pt; color: #000066; }
00049 h2 { font-size: 10pt; color: #aa0000; }
00050
00051 .button, a.button, a.button:hover
00052 {
00053 margin: 1px;
00054 border: none;
00055 padding: 1px 3px;
00056 background: #0088bb;
00057 color: #ffffff;
00058 font-weight: bold;
00059 text-decoration: none;
00060 }
00061 </style>
00062 </head>
00063 <body>
00064 <h1>$title</h1>
00065 $message
00066 <div style='text-align: center;'>
00067 <a class='button' href='javascript:window.close()'>$msg_Close</a>
00068 </div>
00069 </body>
00070 </html>";
00071 $name = 'output_window';
00072 $url = '';
00073 $features = 'width=400,height=300';
00074 WebApp::popup_window($name, $url, $html_content, $features);
00075 }
00076 ?>