Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/article2/preview.php
<html>
<head>
<title>Preview</title>
<style type="text/css">
<!--
        body {
                 margin-top: 0;
        }
        .text {
                  font-family: Verdana;
                  font-size: 11px;

        }
        .htmlform {
                 font-size: 11px;
                 font-family: Verdana;
        }
        a:link {
                        font-family: Verdana;
                                                  font-size: 11px;
                                                  color: #0071C6;
                                                  text-decoration: underline;
                                   }
                                   a:link:hover {
                                        font-family: Verdana;
                                                  font-size: 11px;
                                                  color: #FFBE00;
                                                  text-decoration: none;
                                   }
                                   a:link:visited {
                                        font-family: Verdana;
                                                  font-size: 11px;
                                                  color: #0071C6;
                                                  text-decoration: underline;
                                   }
                                   a:link:visited:hover {
                                        font-family: Verdana;
                                                  font-size: 11px;
                                                  color: #FFBE00;
                                                  text-decoration: none;
                                   }
-->
</style>
</head>
<body>
<table><tr><td class="text">
<script type="text/javascript" language="JavaScript">
<!--
        function replaceChars(entry,a,b) {
                         out = a; // ersetze dieses Zeichen
                         add = b; // setze dieses Zeichen ein
                         temp = "" + entry;

                         while (temp.indexOf(out)>-1) {
                                   pos= temp.indexOf(out);
                                   temp = "" + (temp.substring(0, pos) + add +
                                   temp.substring((pos + out.length), temp.length));
                                   }
                                   content = temp;
                                   }

                         var content = opener.document.box.content.value;
                                 replaceChars(content,"\r\n","\n");
                                 replaceChars(content,"\n","<br>");
                                 replaceChars(content,"[u]","<u>");
                                 replaceChars(content,"[/u]","</u>");
                                 replaceChars(content,"[b]","<b>");
                                 replaceChars(content,"[/b]","</b>");
                                 replaceChars(content,"[i]","<i>");
                                 replaceChars(content,"[/i]","</i>");
                                 replaceChars(content,"[ul]","<ul>");
                                 replaceChars(content,"[/ul]","</ul>");
                                 replaceChars(content,"[/li]","</li>");
                                 replaceChars(content,"[li]","<li>");
                                 replaceChars(content,"<ul><br><li>","<ul><li>");
                                 replaceChars(content,"</li><br><ul>","</li></ul>");
                                 replaceChars(content,"</li><br><li>","</li><li>");
                                 replaceChars(content,"</ul><br>","</ul>");

                         document.writeln("<h4>" + opener.document.box.title.value + "</h4>");
                         document.writeln("<b>" + opener.document.box.intro.value + "</b><br>");
                         document.writeln("<p>" + content + "</p>");
//-->
</script>
</td></tr></table>
</body>
</html>
Return current item: Content*Builder