Location: PHPKode > scripts > Ramui web hosting directory script > Ramui web hosting directory script/gb/bbcode/bbeditor.php
<?php
/*
Copyright (c) 2011 http://ramui.com. All right reserved.
This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.
*/
$editorID=$_GET['editor'];
$max=$_GET['max'];
if(empty($editorID)){exit;}
$path='http://'.getenv('HTTP_HOST').fw_get_docroot().'gb/';
?>
<html>
<head>
<title>BBCode Editor</title>
<script type="text/javascript" src="<?php echo $path;?>bbcode/bbcode.js"></script>
<script type="text/javascript" src="<?php echo $path;?>script/common.js"></script>
<script type="text/javascript">
var fwParentID='<?php echo $editorID;?>';
</script>
<link rel="stylesheet" type="text/css" href="<?php echo $path;?>bbcode/bbcode.css" media="screen">
</head>
<body>
<div id="menu"><div style="float:left;clear:left;"><a href="javascript:transfer()">Transfer to main window</a> | <a href="javascript:window.close()">Close</a></div>
<div style="float:right;clear:right;"><a href="javascript:viewCode()">Code</a> | <a href="javascript:previewCode(<?php echo $max;?>)">Preview</a></div></div>
<table id="container"><tr><td id="code" class="show">
<div id="fw_bbcodeeditor"><div id="fw_toolbox">
<table>
<tr>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td class="fw_tool" id="ol"><img src="<?php echo $path;?>bbcode/images/ol.gif" title="Ordered list" alt="Ordered list" /></td>
<td class="fw_tool" id="ul"><img src="<?php echo $path;?>bbcode/images/ul.gif" title="List" alt="List" /></td>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td class="fw_tool" id="b"><img src="<?php echo $path;?>bbcode/images/b.gif" title="Bold" alt="Bold" /></td>
<td class="fw_tool" id="i"><img src="<?php echo $path;?>bbcode/images/i.gif" title="Italic" alt="Italic" /></td>
<td class="fw_tool" id="u"><img src="<?php echo $path;?>bbcode/images/u.gif" title="Underline" alt="Underline" /></td>
<td class="fw_tool" id="s"><img src="<?php echo $path;?>bbcode/images/strikethrough.gif" title="Strikethrough" alt="Strikethrough" /></td>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td class="fw_tool" id="sup"><img src="<?php echo $path;?>bbcode/images/superscript.gif" title="Superscript" alt="Superscript" /></td>
<td class="fw_tool" id="sub"><img src="<?php echo $path;?>bbcode/images/subscript.gif" title="Subscript" alt="Subscript" /></td>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td class="fw_tool" id="link"><img src="<?php echo $path;?>bbcode/images/link.gif" title="Link" alt="Link" /></td>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td class="fw_tool" id="quote"><img src="<?php echo $path;?>bbcode/images/quote.gif" title="Quote" alt="Quote" /></td>
<td class="separator"><img src="<?php echo $path;?>bbcode/images/separator.gif" alt="" /></td>
<td>&nbsp;</td>
</tr></table></div>
<div style="clear:both; margin:0;padding:0;">
<textarea name="fw_editor" id="fw_editor" rows="1" cols="20"><?php echo $bbcode;?></textarea>
</div></div>
</td></tr>
<tr><td id="demo" class="hide">
<div style="clear:both;text-align:center;margin:50px;"><img src="<?php echo $path;?>bbcode/images/loder.gif" alt="Loding.." />
</td></tr></table>
</body></html>
Return current item: Ramui web hosting directory script