- tweak the editor a bit

This commit is contained in:
james 2009-10-14 19:48:40 +00:00
parent 0d6c0610c3
commit 8737163202

View File

@ -226,18 +226,26 @@ case 'dialog_edit':
<td class="label"><?=i18n("From Address")?>:</td> <td class="label"><?=i18n("From Address")?>:</td>
<td class="input"><input type="text" name="from" size="60" value="<?=$from?>" /></td> <td class="input"><input type="text" name="from" size="60" value="<?=$from?>" /></td>
</tr><tr> </tr><tr>
<td class="label"><?=i18n("Email Body")?>:</td> <td colspan="2" class="input">
<td class="input"><? <table width="100%"><tr><td width="85%"><?
require_once("../fckeditor/fckeditor.php"); require_once("../fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor("bodyhtml") ; $oFCKeditor = new FCKeditor("bodyhtml") ;
$oFCKeditor->BasePath = "../fckeditor/"; $oFCKeditor->BasePath = "../fckeditor/";
$oFCKeditor->ToolbarSet = 'sfiab'; $oFCKeditor->ToolbarSet = 'sfiab';
$oFCKeditor->Value = $bodyhtml; $oFCKeditor->Value = $bodyhtml;
$oFCKeditor->Width="100%"; $oFCKeditor->Width="100%";
$oFCKeditor->Height=300; $oFCKeditor->Height=300;
$oFCKeditor->Create(); $oFCKeditor->Create();
// echo "<textarea name=\"bodyhtml\" rows=6 cols=80>=$bodyhtml</textarea>" // echo "<textarea name=\"bodyhtml\" rows=6 cols=80>=$bodyhtml</textarea>"
?> ?>
</td><td width="15%">
<select name="insert_field" size="20" style="height:300" >
<option value="FAIRNAME">[EMAIL]</option>
<option value="FAIRNAME">[FAIRNAME]</option>
<option value="FAIRNAME">[NAME]</option>
<option value="FAIRNAME">[PASSWORD]</option>
</select>
</td></tr></table>
</td> </td>
</tr></table> </tr></table>