<!--<?php
$fileBtn = ($db_allowupload && $_G['allowupload']) ? ' fileBtn' : '';
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="js/breeze/editor/style/style.css" />
<textarea id="textarea" name="atc_content" class="B_textarea" tabindex="200">{$atc_content}</textarea>
<script src="$db_htmdir/js/face.js"></script>
<script>var BREEZE_BASE_PATH = getBaseUrl() + 'js/breeze/';</script>
<script src="js/breeze/core/base.js"></script>
<script type="text/javascript">
var attachConfig = {
		'attachnum' : parseInt('$db_attachnum'),
		'type' : 'active',
		'list' : {{$attach}},
		'url' : 'pweditor.php?action=attach',
		'filetype' : $attachAllow
	},
	imageConfig = {
		url : 'pweditor.php?action=image',
		filetype : $imageAllow
	},
	charset = '$db_charset',
	editor,
	toolbar = [
		'fontSelector sizeSelector br boldIcon italicIcon underlineIcon strikethroughIcon foreColor backColor removeformat',
		'leftIcon centerIcon rightIcon pgformatIcon br olIcon ulIcon indentIcon outdentIcon',
		'hrIcon quoteIcon codeIcon undoIcon br linkIcon unlinkIcon tableIcon redoIcon',
		'faceBtn photoBtn{$fileBtn}'
	],
	mini = 'fontSelector sizeSelector boldIcon italicIcon underlineIcon foreColor backColor linkIcon leftIcon centerIcon rightIcon faceBtn photoBtn fileBtn';
B.require('editor.editor', 'editor.ubb', function(B){
	editor = B.editor(B.$('#textarea'), toolbar, mini, {'currentMode' : FetchCookie('editmode') == 1 ? 'default' : 'UBB', 'isSaveMode' : true});
	editor.quickpost();
});
</script>
<!--
EOT;
?>