[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/popups/ -> modulewindow.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  //$adminside = 3;
  17  //require_once('../../index.php');
  18  
  19  $css = mosGetParam( $_REQUEST, 't', '');
  20  $iso = split( '=', _ISO );
  21  // xml prolog
  22  echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
  23  ?>
  24  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  25  <html xmlns="http://www.w3.org/1999/xhtml">
  26  <head>
  27      <title><?php echo T_('Module Preview') ?></title>
  28      <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  29      <link rel="stylesheet" href="../../templates/<?php echo $css; ?>/css/template_css.css" type="text/css">
  30      <script>
  31          var content = '';
  32          var title = '';
  33  
  34          if (window.opener.document.adminForm.content) {
  35              content = window.opener.document.adminForm.content.value;
  36              if (window.opener.document.adminForm.title) {
  37                  title = window.opener.document.adminForm.title.value;
  38              }
  39          } else {
  40              content = '<?php echo T_('You can only preview typed modules.'); ?>';
  41          }
  42          content = content.replace('#', '');
  43          title = title.replace('#', '');
  44          content = content.replace('src=images', 'src=../../images');
  45          content = content.replace('src=images', 'src=../../images');
  46          title = title.replace('src=images', 'src=../../images');
  47          content = content.replace('src=images', 'src=../../images');
  48          title = title.replace('src=\"images', 'src=\"../../images');
  49          content = content.replace('src=\"images', 'src=\"../../images');
  50          title = title.replace('src=\"images', 'src=\"../../images');
  51          content = content.replace('src=\"images', 'src=\"../../images');
  52      </script>
  53  </head>
  54  
  55  <body style="background-color:#FFFFFF">
  56  <table align="center" width="160" cellspacing="2" cellpadding="2" border="0" height="100%">
  57      <tr>
  58          <td class="moduleheading"><script>document.write(title);</script></td>
  59      </tr>
  60      <tr>
  61          <td valign="top" height="90%"><script>document.write(content);</script></td>
  62      </tr>
  63      <tr>
  64          <td align="center"><a href="#" onClick="window.close()"><?php echo T_('Close') ?></a></td>
  65      </tr>
  66  </table>
  67  </body>
  68  </html>