<?PHP
/************************************************************************/
/* DUNE by NPDS Extend HTML Editor                                       */
/*                                                                      */
/* This version name NPDS Copyright (c) 2001-2008 by Philippe Brunier   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
$editor_mark=true;
include("../grab_globals.php");
include("../config.php");
include("../lib/multi-langue.php");
include_once("../language/editor-$language.php");
?>

<html>
<head>
<title><?PHP echo editor_translate("Editeur");?> HTML - GNU/GPL</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#CCCCCC" text="#000000" topmargin="1" leftmargin="0">
<style type="text/css">
<!--
.clsCursor {cursor: default}
//-->
</style>

<script>
   var editorvalue;
   var url = new String (document.location.href);
   if (url.indexOf('?') > -1){
      if (url.substring(0, url.indexOf('answer'))){
         editorvalue = window.opener.document.adminForm.answer.value;
      } else if(url.substring(0, url.indexOf('content'))){
         editorvalue = window.opener.document.adminForm.content.value;
      } else if (url.substring(0, url.indexOf('XeditoJ'))){
         editorvalue = window.opener.document.adminForm.XeditoJ.value;
      } else if (url.substring(0, url.indexOf('XeditoN'))){
         editorvalue = window.opener.document.adminForm.XeditoN.value;
      } else if (url.substring(0, url.indexOf('xtext'))){
         editorvalue = window.opener.document.adminForm.xtext.value;
      } else if (url.substring(0, url.indexOf('hometext'))){
         editorvalue = window.opener.document.adminForm.hometext.value;
      } else if (url.substring(0, url.indexOf('story'))){
         editorvalue = window.opener.document.adminForm.story.value;
      } else if (url.substring(0, url.indexOf('bodytext'))){
         editorvalue = window.opener.document.adminForm.bodytext.value;
      } else if (url.substring(0, url.indexOf('notes'))){
         editorvalue = window.opener.document.adminForm.notes.value;
      } else if (url.substring(0, url.indexOf('description'))){
         editorvalue = window.opener.document.adminForm.description.value;
      } else if (url.substring(0, url.indexOf('journal'))){
         editorvalue = window.opener.document.adminForm.journal.value;
      } else if (url.substring(0, url.indexOf('introc'))){
         editorvalue = window.opener.document.adminForm.introc.value;
      } else if (url.substring(0, url.indexOf('introd'))){
         editorvalue = window.opener.document.adminForm.introd.value;
      }
   } else {
      editorvalue = window.opener.document.adminForm.story.value;
   }

<!-- Add by Alatourette AddGen -->
   var str = editorvalue;
   var newstr = str.replace(/border=0/g, "border=-1");
   editorvalue = newstr;
<!-- Add by Alatourette AddGen -->

   document.write('<form name=\"fHtmlEditor\" method=\"get\" action=\"\">');
   document.write('<textarea name=\"EditorValue\" style=\"display: none;\">' + editorvalue + '</textarea>');

   var errorString = "<?PHP echo editor_translate("Désolé mais vous devez utiliser :Windows 9x, NT4, W2000 et Internet Explorer 4 ou plus.");?>"
   var Ok = "false";
   var name =  navigator.appName;
   var version =  parseFloat(navigator.appVersion);
   var platform = navigator.platform;
   if (platform == "Win32" && name == "Microsoft Internet Explorer" && version >= 4){
      Ok = "true";
   } else {
      Ok = "false";
   }
   if (Ok == "false") {
      alert(errorString);
      self.close();
   }
function banque_OpenI() {
   window.open('../modules.php?ModPath=f-manager&ModStart=f-manager&FmaRep=bank-public', 'itmp', 'width=450, height=500, resizable=yes,menubar=no,location=no,directories=no,status=no,copyhistory=no,toolbar=no,scrollbars=yes');
}
function banque_OpenP() {
   window.open('../modules.php?ModPath=f-manager&ModStart=f-manager&FmaRep=bank-membre','ptmp', 'width=450, height=500, resizable=yes,menubar=no,location=no,directories=no,status=no,copyhistory=no,toolbar=no,scrollbars=yes');
}
function banque_OpenMNS() {
   window.open('../modules.php?ModPath=upload&ModStart=include_minisite/upload_minisite2&apli=minisite','wtmpMinisite', 'menubar=no,location=no,directories=no,status=no,copyhistory=no,toolbar=no,scrollbars=yes,resizable=yes, width=700, height=500');
}
function banque_OpenB() {
   window.open('editor_plugins.php?op=plugins', 'btmp', 'width=400, height=400, resizable=yes,menubar=no,location=no,directories=no,status=no,copyhistory=no,toolbar=no,scrollbars=yes');
}
function meta_lang_OpenM() {
   window.open('../modules.php?ModPath=meta-lang&ModStart=adv-meta_lang-doc', 'mtmp', 'width=700, height=500, resizable=yes,menubar=no,location=no,directories=no,status=no,copyhistory=no,toolbar=no,scrollbars=yes');
}
function multi_langue(text) {
   document.frames("myEditor").document.frames("textEdit").document.body.innerHTML += text;
}

function ColorPalette_OnClick(colorString){
   if (document.fHtmlEditor.co.value=="fond"){
      document.all.colourp.value=colorString;
      doFormat('BackColor',colorString);
   } else if(document.fHtmlEditor.co.value=="texte") {
      document.all.colourp.value=colorString;
      doFormat('ForeColor',colorString);
   } else {
      backcolor(colorString);
   }
}

function initToolBar(ed) {
   var eb = document.all.editbar;
   if (ed!=null) {
      eb._editor = window.frames['myEditor'];
   }
}
function InStr(sChaine, sSous_Chaine) {
   sChaine = String(sChaine);
   return( sChaine.lastIndexOf( sSous_Chaine));
}

function InsertXfile() {
   var X=document.all.Xfile.value;
   Y=X.substr(InStr(X,'\\')+1);
   document.frames("myEditor").document.frames("textEdit").document.body.innerHTML=" [ <a href='File://"+document.all.Xfile.value+"'>"+Y+"</a> ] "+document.frames("myEditor").document.frames("textEdit").document.body.innerHTML;
}

function HttpFile() {
   if(document.all.btnSwapXfile.value == "<?PHP echo editor_translate("Fichiers"); ?>"){
      var sMes = "<?PHP echo editor_translate("Liens W"); ?>";
      document.all.url.size=1;
      document.all.url.style.fontSize="1pt";
      document.all.url.style.visibility='hidden';
      document.all.what.style.fontSize="1pt";
      document.all.what.style.visibility='hidden';

      document.all.Xfile.style.fontSize="7pt";
      document.all.Xfile.style.posWidth=250;
      document.all.Xfile.style.visibility='visible';
   } else {
      var sMes = "<?PHP echo editor_translate("Fichiers"); ?>"
      document.all.Xfile.size=1;
      document.all.Xfile.style.posWidth=10;
      document.all.Xfile.style.fontSize="1pt";
      document.all.Xfile.style.visibility='hidden';

      document.all.what.style.fontSize="7pt";
      document.all.what.style.visibility='visible';
      document.all.url.style.fontSize="7pt";
      document.all.url.size=32;
      document.all.url.style.visibility='visible';
   }
   document.all.btnSwapXfile.value = sMes;
}

function doFormat(what) {
   var eb = document.all.editbar;
   if(what == "FontName"){
      if(arguments[1] != 1){
         eb._editor.execCommand(what, arguments[1]);
         document.all.font.selectedIndex = 0;
      }
   } else if(what == "FontSize"){
      if(arguments[1] != ''){
         eb._editor.execCommand(what, arguments[1]);
         document.all.size.selectedIndex = 0;
      }
   } else {
      eb._editor.execCommand(what, arguments[1]);
   }
}

function swapMode() {
   var eb = document.all.editbar._editor;
   eb.swapModes();
}

function create() {
   var eb = document.all.editbar;
   eb._editor.newDocument();
}

function newFile(){
   create();
}

function makeUrl(){
  if (document.location.href.indexOf('&activ=true') > -1) {
      if (document.all.Xfile.style.visibility=="visible") {
         InsertXfile();
      } else {
         sUrl = document.all.what.value + document.all.url.value;
         doFormat('CreateLink',sUrl);
      }
   } else {
      sUrl = document.all.what.value + document.all.url.value;
      doFormat('CreateLink',sUrl);
   }
}

function copyValue() {
   var theHtml = "" + document.frames("myEditor").document.frames("textEdit").document.body.innerHTML + "";
   document.all.EditorValue.value = theHtml;
}

function SwapView_OnClick(){
   if(document.all.btnSwapView.value == "Source"){
      document.all.btnsave.style.visibility="hidden";
      var sMes = "HTML";
   } else {
      document.all.btnsave.style.visibility="visible";
      var sMes = "Source"
   }
   document.all.btnSwapView.value = sMes;
   swapMode();
}

function Help_OnClick(){
   window.open("editor_images/help_document-<?php echo $language; ?>.htm","wHelp", "toolbar=0, scrollbars=yes, width=640, height=480");
}

function OnFormSubmit(){
   swapMode();
   swapMode();
   copyValue();
<!-- Add by Alatourette AddGen -->
   var str = document.fHtmlEditor.EditorValue.value;
   var newstr = str.replace(/border=-1/g, "border=0");
   var terminalstr =newstr.replace(/http:\/\/\//g, "");
   document.fHtmlEditor.EditorValue.value = terminalstr;
<!-- Add by Alatourette AddGen -->
   var url = new String (document.location.href);
   if (url.indexOf('?') > -1){
      if (url.substring(0, url.indexOf('answer'))){
          window.opener.document.adminForm.answer.value = document.fHtmlEditor.EditorValue.value;
      } else if(url.substring(0, url.indexOf('content'))){
          window.opener.document.adminForm.content.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('XeditoJ'))){
          window.opener.document.adminForm.XeditoJ.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('XeditoN'))){
          window.opener.document.adminForm.XeditoN.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('xtext'))){
          window.opener.document.adminForm.xtext.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('hometext'))){
          window.opener.document.adminForm.hometext.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('story'))){
          window.opener.document.adminForm.story.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('bodytext'))){
          window.opener.document.adminForm.bodytext.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('notes'))){
          window.opener.document.adminForm.notes.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('description'))){
          window.opener.document.adminForm.description.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('journal'))){
          window.opener.document.adminForm.journal.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('introc'))){
          window.opener.document.adminForm.introc.value = document.fHtmlEditor.EditorValue.value;
      } else if (url.substring(0, url.indexOf('introd'))){
          window.opener.document.adminForm.introd.value = document.fHtmlEditor.EditorValue.value;
      }
   } else {
      window.opener.document.adminForm.story.value = document.fHtmlEditor.EditorValue.value;
   }
}
</script>

  <table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" width="99%" HEIGHT='100%' bordercolor="#CCCCCC">
    <tr valign="top">
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
          <tr valign="top">
            <td valign="top">
              <div id="editbar">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" align="left">
                  <tr>
                    <td>
                      <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>
                            <table border="0" cellspacing="0" cellpadding="1">
                              <tr>
                                <td nowrap="nowrap">
                                  <img class='clsCursor' src="editor_images/new.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Nouveau fichier");?>" onClick="newFile();">&nbsp
                                  <img class='clsCursor' name="btnsave" src="editor_images/save.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Enregistrer le document");?>" onClick="OnFormSubmit()";>&nbsp
                                  <img class='clsCursor' src="editor_images/Cut.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Couper");?>" onClick="doFormat('Cut')">&nbsp
                                  <img class='clsCursor' src="editor_images/Copy.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Copier");?>" onClick="doFormat('Copy')">&nbsp
                                  <img class='clsCursor' src="editor_images/Paste.gif" border="0" alt="<?PHP echo editor_translate("Coller");?>" onClick="doFormat('Paste')" width="16" height="16">&nbsp
                                </td>
                              </tr>
                            </table>
                          </td>
                          <td>
                            <table border="0" cellspacing="0" cellpadding="1" align="right">
                              <tr>
                                <td nowrap="nowrap">
                                  <img class='clsCursor' src="editor_images/para_bul.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Liste à puces");?>" onClick="doFormat('InsertUnorderedList');" >&nbsp
                                  <img class='clsCursor' src="editor_images/para_num.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Liste à numeros");?>" onClick="doFormat('InsertOrderedList');" >&nbsp
                                  <img class='clsCursor' src="editor_images/outdent.gif" width="20" height="16" alt="<?PHP echo editor_translate("Décale à gauche");?>" onClick="doFormat('Outdent')">&nbsp
                                  <img class='clsCursor' src="editor_images/indent.gif" width="20" height="16" alt="<?PHP echo editor_translate("Décale à droite");?>" onClick="doFormat('Indent')">&nbsp
                                  <img class='clsCursor' src="editor_images/hr.gif" width="16" height="18" alt="<?PHP echo editor_translate("Ligne horizontale");?>" onClick="doFormat('InsertHorizontalRule')">&nbsp
                                </td>
                              </tr>
                            </table>
                          </td>
                          <td width=100%>
                            <table border="0" width=100% nowrap="nowrap" cellspacing="0" cellpadding="1">
                              <tr>
                                <td><img src="editor_images/link.gif" border="0" alt="<?PHP echo editor_translate("Insérer un lien externe"); ?>"></td>
                                <td nowrap="nowrap">
                                  <select name="what" style="font: 7pt verdana;">
                                    <option value="http://" selected>http://</option>
                                    <option value="mailto:">mailto:</option>
                                    <option value="ftp://">ftp://</option>
                                    <option value="https://">https://</option>
                                  </select>
                                </td>
                                <td>
                                <script>
                                <!--
                                 if (document.location.href.indexOf('&activ=true') > -1) {
                                    document.write ("<input type='text' name='url' size='32' style='font: 7pt verdana;'>");
                                    document.write ("</td><td>");
                                    document.write ("<input type='file' name='Xfile' size='32' style='font: 7pt verdana;'>");
                                    document.all.Xfile.style.posWidth=10;
                                    document.all.Xfile.style.visibility='hidden';
                                    document.write ("</td>");
                                 } else {
                                    document.write ("<input type='text' name='url' size='45' style='font: 7pt verdana;'>");
                                    document.write ("</td>");
                                 }
                                //-->
                                </script>
                                <td width="80" valign="middle" align="center">
                                  <input type="button" name="button2" value="<?PHP echo editor_translate("Ajout"); ?>" onClick="makeUrl();" style="font: 7pt verdana;">&nbsp;
                                  <img class='clsCursor' src="editor_images/help.gif" width="20" height="20" align="absmiddle" alt="<?PHP echo editor_translate("Aide"); ?>" onClick="Help_OnClick();">
                                </td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <tr>
                    <td height="40">
                      <table border="0" width="100%">
                        <tr>
                          <td nowrap="nowrap">
                            <div align="left">
                              <select name="font" onChange=" doFormat('FontName',document.all.font.value);" style="font: 7pt verdana;">
                                <option value="1" selected ><?PHP echo editor_translate("Selectionez la Police..."); ?></option>
                                <option value="arial">Arial, Helvetica, sans-serif</option>
                                <option value="times" >Times New Roman, Times, serif</option>
                                <option value="courier">Courier New, Courier, mono</option>
                                <option value="georgia">Georgia, Times New Roman</option>
                                <option value="verdana">Verdana, Arial, Helvetica</option>
                              </select>
                              <select name="size" onChange="doFormat('FontSize',document.all.size.value);" style="font: 7pt verdana;">
                                <option value="None" selected><?PHP echo editor_translate("Taille"); ?></option>
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3">3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                                <option value="6">6</option>
                                <option value="7">7</option>
                                <option value="+1">+1</option>
                                <option value="+2">+2</option>
                                <option value="+3">+3</option>
                                <option value="+4">+4</option>
                                <option value="+5">+5</option>
                                <option value="+6">+6</option>
                                <option value="+7">+7</option>
                              </select>
                              <img class='clsCursor' src="editor_images/Bold.gif" width="16" height="16" border="0" align="center" alt="<?PHP echo editor_translate("Texte en gras"); ?>" onClick="doFormat('Bold')">
                              <img class='clsCursor' src="editor_images/Italics.gif" width="16" height="16" border="0" align="center" alt="<?PHP echo editor_translate("Texte en Italic"); ?>" onClick="doFormat('Italic')">
                              <img class='clsCursor' src="editor_images/underline.gif" width="16" height="16" border="0" align="center" alt="<?PHP echo editor_translate("Souligne le texte"); ?>" onClick="doFormat('Underline')">
                              <img class='clsCursor' src="editor_images/left.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Aligne à gauche"); ?>" align="center"  onClick="doFormat('JustifyLeft')">
                              <img class='clsCursor' src="editor_images/centre.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Aligne au Centre"); ?>" align="center" onClick="doFormat('JustifyCenter')">
                              <img class='clsCursor' src="editor_images/right.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Aligne à droite"); ?>" align="center"  onClick="doFormat('JustifyRight')">
                              <img class='clsCursor' src="editor_images/justify.gif" width="16" height="16" border="0" alt="<?PHP echo editor_translate("Justifie"); ?>" align="center"  onClick="doFormat('JustifyFull')">
                              <script>
                                 if (document.location.href.indexOf('&activ=true') > -1) {
                                    document.write("<img class='clsCursor' src='editor_images/gif.gif' width='16' height='16' border='0' alt='<?PHP echo editor_translate("Insérer une image"); ?>' align='middle' onClick=doFormat('insertImage',true)>");
                                 }
                              </script>
                            </div>
                          <td align="center" nowrap="nowrap">
                              <script>
                                 if (document.location.href.indexOf('&activ=true') > -1) {
                                    document.write("<input type='button' name='btnSwapXfile' value='<?PHP echo editor_translate("Fichiers"); ?>' onClick=HttpFile() style='font: 7pt verdana;'>");
                                 }
                              </script>
                          </td>
                          <td align="center" nowrap="nowrap">
                            <input type="button" name="btnSwapView" value="<?PHP echo editor_translate("Source"); ?>" onClick="SwapView_OnClick();" style="width:50px; font: 7pt verdana;">
                          </td>
                          <td align="center" nowrap="nowrap">
                            <input type="hidden" name="co" value="texte"><a onclick="document.fHtmlEditor.co.value='texte';"><input type="radio" name="dos" checked></a><span style="font: 7pt verdana;"><?PHP echo editor_translate("Texte"); ?></span>
                            <a onclick="document.fHtmlEditor.co.value='fond';"><input type="radio" name="dos"></a><span style="font: 7pt verdana;"><?PHP echo editor_translate("Fond"); ?></span>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </div>
            </td>
          </tr>
          <tr valign="top" align="left">
            <td valign="top" height=95%>
              <table width="100%" border="0" height="100%">
                <tr valign="top">
                  <td width="100%" height="100%">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                      <tr valign="top">
                        <td bgcolor="#FFFFFF"><iframe id="myEditor" src="pd_edit.htm" onFocus="initToolBar(this)" width=100% height=100%></iframe></td>
                      </tr>
                    </table>
                  </td>
                  <td width="9%" align="center">
                  <table border="0" cellpadding="0" cellspacing="1" width="92">
                   <colgroup width="12" span="7"></colgroup>
                    <tr height="20">
                        <td colspan="7" align="center"><input type="text" name="colourp" size="8" value="#000000" style="width:74px; font: 7pt verdana" readonly></td>
                    <tr>
                    <tr height="20">
                        <td colspan="3" bgcolor="#FFFFFF"><img onClick="ColorPalette_OnClick('#FFFFFF')" class="clsCursor" src="editor_images/blank.gif" height="20" width="100%" border="0"></td>
                        <td></td>
                        <td colspan="3" bgcolor="#000000"><img onClick="ColorPalette_OnClick('#000000')" class="clsCursor" src="editor_images/blank.gif" height="20" width="100%" border="0"></td>
                    </tr><tr height="12"><!-- BASE COLOR -->
                        <td bgcolor="#222222"><img onClick="ColorPalette_OnClick('#222222')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#444444"><img onClick="ColorPalette_OnClick('#444444')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#666666"><img onClick="ColorPalette_OnClick('#666666')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#888888"><img onClick="ColorPalette_OnClick('#888888')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#AAAAAA"><img onClick="ColorPalette_OnClick('#AAAAAA')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#CCCCCC"><img onClick="ColorPalette_OnClick('#CCCCCC')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#EEEEEE"><img onClick="ColorPalette_OnClick('#EEEEEE')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- RED COLOR -->
                        <td bgcolor="#FF0000"><img onClick="ColorPalette_OnClick('#FF0000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#400000"><img onClick="ColorPalette_OnClick('#400000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#800000"><img onClick="ColorPalette_OnClick('#800000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#C00000"><img onClick="ColorPalette_OnClick('#C00000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FF4040"><img onClick="ColorPalette_OnClick('#FF4040')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FF8080"><img onClick="ColorPalette_OnClick('#FF8080')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFC0C0"><img onClick="ColorPalette_OnClick('#FFC0C0')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- ORANGE COLOR -->
                        <td bgcolor="#FF7F00"><img onClick="ColorPalette_OnClick('#FF7F00')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#462300"><img onClick="ColorPalette_OnClick('#462300')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#864200"><img onClick="ColorPalette_OnClick('#864200')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#C46100"><img onClick="ColorPalette_OnClick('#C46100')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFA247"><img onClick="ColorPalette_OnClick('#FFA247')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFC185"><img onClick="ColorPalette_OnClick('#FFC185')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFE1C3"><img onClick="ColorPalette_OnClick('#FFE1C3')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- YELLOW COLOR -->
                        <td bgcolor="#FFFF00"><img onClick="ColorPalette_OnClick('#FFFF00')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#404000"><img onClick="ColorPalette_OnClick('#404000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#808000"><img onClick="ColorPalette_OnClick('#808000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#C0C000"><img onClick="ColorPalette_OnClick('#C0C000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFFF40"><img onClick="ColorPalette_OnClick('#FFFF40')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFFF80"><img onClick="ColorPalette_OnClick('#FFFF80')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFFFC0"><img onClick="ColorPalette_OnClick('#FFFFC0')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- GREEN COLOR -->
                        <td bgcolor="#00FF00"><img onClick="ColorPalette_OnClick('#00FF00')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#004000"><img onClick="ColorPalette_OnClick('#004000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#008000"><img onClick="ColorPalette_OnClick('#008000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#00C000"><img onClick="ColorPalette_OnClick('#00C000')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#40FF40"><img onClick="ColorPalette_OnClick('#40FF40')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#80FF80"><img onClick="ColorPalette_OnClick('#80FF80')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#C0FFC0"><img onClick="ColorPalette_OnClick('#C0FFC0')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- LIGHT BLUE COLOR -->
                        <td bgcolor="#00FFFF"><img onClick="ColorPalette_OnClick('#00FFFF')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#004040"><img onClick="ColorPalette_OnClick('#004040')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#008080"><img onClick="ColorPalette_OnClick('#008080')" class="clsCursor" src="editor_images/blank.gif" height="12" width="12" border="0"></td>
                        <td bgcolor="#00C0C0"><img onClick="ColorPalette_OnClick('#00C0C0')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#40FFFF"><img onClick="ColorPalette_OnClick('#40FFFF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#80FFFF"><img onClick="ColorPalette_OnClick('#80FFFF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#C0FFFF"><img onClick="ColorPalette_OnClick('#C0FFFF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- BLUE COLOR -->
                        <td bgcolor="#0000FF"><img onClick="ColorPalette_OnClick('#0000FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#000040"><img onClick="ColorPalette_OnClick('#000040')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#000080"><img onClick="ColorPalette_OnClick('#000080')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#0000C0"><img onClick="ColorPalette_OnClick('#0000C0')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#4040FF"><img onClick="ColorPalette_OnClick('#4040FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#8080FF"><img onClick="ColorPalette_OnClick('#8080FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#C0C0FF"><img onClick="ColorPalette_OnClick('#C0C0FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                    </tr><tr height="12"><!-- PURPLE COLOR -->
                        <td bgcolor="#FF00FF"><img onClick="ColorPalette_OnClick('#FF00FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#400040"><img onClick="ColorPalette_OnClick('#400040')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#800080"><img onClick="ColorPalette_OnClick('#800080')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#C000C0"><img onClick="ColorPalette_OnClick('#C000C0')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#FF40FF"><img onClick="ColorPalette_OnClick('#FF40FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#FF80FF"><img onClick="ColorPalette_OnClick('#FF80FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                        <td bgcolor="#FFC0FF"><img onClick="ColorPalette_OnClick('#FFC0FF')" class="clsCursor" src="editor_images/blank.gif"" height="12" width="12" border="0"></td>
                    </tr></table>
                    <hr noshade>
                    <input type="button" name="banque" value="<?PHP echo editor_translate("Images"); ?>" onClick="banque_OpenI();" style="width:90px; font: 7pt verdana;">
                    <br />
                    <script>
                       if (document.location.href.indexOf('&minisite=true') > -1) {
                          document.write("<input type='button' name='banque' value='<?PHP echo editor_translate("MES Documents"); ?>' onClick='banque_OpenMNS();' style='width:90px; font: 7pt verdana;'><hr noshade>");
                       } else {
                          document.write("<input type='button' name='banque' value='<?PHP echo editor_translate("MES Documents"); ?>' onClick='banque_OpenP();' style='width:90px; font: 7pt verdana;'><hr noshade>");
                       }
                    </script>
                    <input type="button" name="banque" value="PlugIns" onClick="banque_OpenB();" style="width:90px; font: 7pt verdana;">
                    <input type="button" name="banque" value="Meta-Lang" onClick="meta_lang_OpenM();" style="width:90px; font: 7pt verdana;">
                    <hr noshade>
                    <?PHP
                       global $multi_langue;
                       if ($multi_langue) {
                          global $language, $languageslist;
                          $languageslocal=str_replace($language,"",$languageslist);
                          $languageslocal=$language." ".trim(str_replace("  "," ",$languageslocal));
                          $tmp_lang=explode(" ",$languageslocal);
                          echo "<select name=\"langue\" onChange=\"multi_langue(document.all.langue.value);\" style=\"font: 7pt verdana;\">";
                          echo "<option value=\"\">".editor_translate("Choisir une langue")."</option>";
                          while (list($bidon, $langue)=each($tmp_lang)) {
                             echo "<option value=\"\">&nbsp;</option>";
                             echo "<option value=\"[$langue] [/$langue]\">".$langue."</option>";
                             echo "<option value=\"[!$langue] [/$langue]\">".editor_translate("Uniquement")." ".$langue."</option>";
                          }
                          echo "</select>";
                       }
                    ?>
                    <br /><br />
                    <span style="font: 7pt verdana;">.: <a href="http://www.npds.org" target="_blank">www.npds.org</a> :.</span>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  </form>
<script>
  initToolBar("foo");
  window.status  = "Current View: Wysiwyg";
</script>
</body>
</html>