<script src='./../ckeditor/ckeditor.js'></script>
<script>
CKEDITOR.config.language = '<?PHP echo $tlanguage;?>';
//CKEDITOR.dtd.$removeEmpty['span'] = false;
//CKEDITOR.dtd.$removeEmpty['&nbsp;'] = true;

CKEDITOR.config.fillEmptyBlocks = false; 
CKEDITOR.config.ignoreEmptyParagraph = false;
CKEDITOR.config.basicEntities = false;
CKEDITOR.config.extraAllowedContent = '*(*);*{*}';

CKEDITOR.config.width = '100%';
CKEDITOR.config.height = 300;
CKEDITOR.config.filebrowserWindowWidth = '275';
CKEDITOR.config.filebrowserWindowHeight = '200'
CKEDITOR.config.baseHref = '<?PHP echo @$documentbaseurl;?>';
</script>

<div class="animated fadeInLoad">
<div class="col-md-12">
<div class="box boxStyle2 infoBox">
<?PHP 
$targetedX="./../tmp/saveinfo-os-messages-send.inc.php";
if(file_exists($targetedX)){
include($targetedX);
$saveCheck=$targetedX;
include("./../function/autoX-mailsend.inc.php");
}
?>
<div class="padd10">

<?PHP 
if(file_exists("./../".$SYSD."/mails/mailing.inc.php")){}else{copy("./../".$SYSI."/".$SYSD."/mailing.inc.php" , "./../".$SYSD."/mails/mailing.inc.php");}
if(file_exists("./../".$SYSD."/mails/mailingtext.inc.php")){}else{copy("./../".$SYSI."/".$SYSD."/mailingtext.inc.php" , "./../".$SYSD."/mails/mailingtext.inc.php");}
if(file_exists("./../".$SYSD."/mails/mailing-signatur.inc.php")){}else{copy("./../".$SYSI."/".$SYSD."/mailing-signatur.inc.php" , "./../".$SYSD."/mails/mailing-signatur.inc.php");}

include("./../".$SYSD."/mails/mailing.inc.php");

echo "
<form action='$slink' method='post'>
<table class='col-md-12 table table-bordered table-condensed' style='margin-bottom:0'>
<tr class='menu-out4'>
<td class='wd100s'><div class='formtitle3'>".$messagedata8a.":</div></td>
<td>
<div class='form-container'>
<!--webbot bot='Validation' B-Value-Required='TRUE' I-Maximum-Length='255' -->
<input class='formfield1 effect-1' type='text' maxlength='255' id='sendfrom' name='sendfrom' value='$sendfrom' placeholder=''> 
<span class='focus-border'></span>
</div>
</td>
</tr>

<tr class='menu-out4'>
<td class='wd100s'><div class='formtitle3'>".$messagedata8b.":</div></td>
<td>
<div class='form-container'>
<!--webbot bot='Validation' B-Value-Required='TRUE' I-Maximum-Length='255' -->
<input class='formfield1 effect-1' type='text' maxlength='255' id='sendto' name='sendto' value='$sendto' placeholder=''> 
<span class='focus-border'></span>
</div>
</td>
</tr>

<tr class='menu-out4'>
<td class='wd100s'><div class='formtitle3'>".$messagedata8c.":</div></td>
<td>
<div class='form-container'>
<!--webbot bot='Validation' B-Value-Required='TRUE' I-Maximum-Length='150' -->
<input class='formfield1 effect-1' type='text' maxlength='150' id='sendsubject' name='sendsubject' value='$sendsubject' placeholder=''> 
<span class='focus-border'></span>
</div>
</td>
</tr>
</table>
";

$fileZcontent=file($fileXcontent);
echo "
<div>
<textarea id='editorLMs' name='editorLMs'>";
foreach($fileZcontent as $textZcontent){
echo $textZcontent;
}
echo "</textarea>
</div>

<div class='editor-btn1'>
<button type='submit' id='save' name='save' class='btn form-btn1'><i class='fa fa-arrow-circle-right'></i> ".$messagedata8."</button>
</div>
</form>
";
?>

</div><!-- ./Box -->
</div><!-- ./Box -->
</div><!-- col-12 -->
</div><!-- End animated -->
<div class="clearX"></div>

<script>
CKEDITOR.replace( 'editorLMs',{
customConfig: './../ckeditor/configM.js',
contentsCss: 'body {font-family:inherit;font-size:inherit;padding:0 10px;color:#000;background:#fff;}',
coreStyles_bold: { element: 'b' },
coreStyles_italic: { element: 'i' },
coreStyles_underline: { element: 'u' },
coreStyles_strike: { element: 'strike' },
});
</script>
