forked from science-ation/science-ation
Remove references to 'Email' -- communication could be a snail mail generated pdf letter
Make the field list insert work :)
This commit is contained in:
parent
52b7580dcb
commit
7b4e7cd55f
@ -212,7 +212,7 @@ case 'dialog_edit':
|
||||
<input type="hidden" name="key" value="<?=$key?>" />
|
||||
<input type="hidden" name="fcid" value="<?=$fcid?>" />
|
||||
<table class="editor" style="width:95%"><tr>
|
||||
<td class="label"><?=i18n("Email Name")?>:</td>
|
||||
<td class="label"><?=i18n("Name")?>:</td>
|
||||
<td class="input"><input type="text" name="name" size="60" value="<?=$name?>" /></td>
|
||||
</tr><tr>
|
||||
<td class="label"><?=i18n("Description")?>:</td>
|
||||
@ -223,7 +223,7 @@ case 'dialog_edit':
|
||||
<td class="label"><?=i18n("From Address")?>:</td>
|
||||
<td class="input"><input type="text" name="from" size="60" value="<?=$from?>" /></td>
|
||||
</tr><tr>
|
||||
<td class="label"><?=i18n("Email Subject")?>:</td>
|
||||
<td class="label"><?=i18n("Subject")?>:</td>
|
||||
<td class="input"><input type="text" name="subject" size="60" value="<?=$subject?>" /></td>
|
||||
</tr><tr>
|
||||
<td colspan="2" class="input">
|
||||
@ -232,7 +232,7 @@ case 'dialog_edit':
|
||||
<textarea id="bodyhtml" name="bodyhtml" rows=6 cols=80><?=$bodyhtml?></textarea>
|
||||
</div>
|
||||
</td><td width="15%">
|
||||
<select name="insert_field" size="20" style="height:300" >
|
||||
<select id="comm_dialog_insert_field" name="insert_field" size="20" style="height:300" >
|
||||
<option value="EMAIL">[EMAIL]</option>
|
||||
<option value="FAIRNAME">[FAIRNAME]</option>
|
||||
<option value="FIRSTNAME">[FIRSTNAME]</option>
|
||||
@ -295,6 +295,16 @@ case 'dialog_edit':
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$("#comm_dialog_insert_field").click(function () {
|
||||
var oFCKeditor = FCKeditorAPI.GetInstance('bodyhtml') ;
|
||||
var value = oFCKeditor.GetHTML();
|
||||
oFCKeditor.InsertHtml("["+this.value+"]");
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
var oFCKeditor = new FCKeditor( 'bodyhtml' ) ;
|
||||
oFCKeditor.BasePath = "../fckeditor/" ;
|
||||
oFCKeditor.ToolbarSet = 'sfiab';
|
||||
|
Loading…
Reference in New Issue
Block a user