| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
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 21 $iso = split( '=', _ISO ); 22 // xml prolog 23 echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; 24 ?> 25 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 26 <html xmlns="http://www.w3.org/1999/xhtml"> 27 <head> 28 <title><?php echo T_('Content Preview') ?></title> 29 <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" /> 30 <link rel="stylesheet" href="../../templates/<?php echo $css;?>/css/template_css.css" type="text/css" /> 31 <script> 32 var form = window.opener.document.adminForm 33 var title = form.title.value; 34 35 var alltext = form.introtext.value; 36 if (form.fulltext) { 37 alltext += form.fulltext.value; 38 } 39 40 // do the images 41 var temp = new Array(); 42 for (var i=0, n=form.imagelist.options.length; i < n; i++) { 43 value = form.imagelist.options[i].value; 44 parts = value.split( '|' ); 45 46 temp[i] = '<img src="../../images/stories/' + parts[0] + '" align="' + parts[1] + '" border="' + parts[3] + '" alt="' + parts[2] + '" hspace="6" />'; 47 } 48 49 var temp2 = alltext.split( '{mosimage}' ); 50 51 var alltext = temp2[0]; 52 53 for (var i=0, n=temp2.length-1; i < n; i++) { 54 alltext += temp[i] + temp2[i+1]; 55 } 56 </script> 57 </head> 58 <body style="background-color:#FFFFFF"> 59 <table align="center" width="90%" cellspacing="2" cellpadding="2" border="0"> 60 <tr> 61 <td class="contentheading" colspan="2"><script>document.write(title);</script></td> 62 </tr> 63 <tr> 64 <script>document.write("<td valign=\"top\" height=\"90%\" colspan=\"2\">" + alltext + "</td>");</script> 65 </tr> 66 <tr> 67 <td align="right"><a href="#" onClick="window.close()"><?php echo T_('Close') ?></a></td> 68 <td align="left"><a href="javascript:;" onClick="window.print(); return false"><?php echo T_('Print') ?></a></td> 69 </tr> 70 </table> 71 </body> 72 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |