summaryrefslogtreecommitdiff
path: root/httemplate/elements/htmlarea.html
diff options
context:
space:
mode:
authorivan <ivan>2008-06-17 03:35:56 +0000
committerivan <ivan>2008-06-17 03:35:56 +0000
commit7153190ee1bfeb6d3ad9e6da270a41a949333a7e (patch)
tree4f3f13115ed182e1d219c136f559eb2fa04a1183 /httemplate/elements/htmlarea.html
parent97c8cbe1a7645ecce1192a1c3c20807e428f907c (diff)
finish adding a feature to easily list all email addresses for an agent & send them email
Diffstat (limited to 'httemplate/elements/htmlarea.html')
-rw-r--r--httemplate/elements/htmlarea.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html
new file mode 100644
index 000000000..f27c4b5e6
--- /dev/null
+++ b/httemplate/elements/htmlarea.html
@@ -0,0 +1,36 @@
+<%doc>
+
+Example:
+
+ include('/elements/htmlarea.html',
+ 'field' => 'fieldname',
+ 'curr_value' => $curr_value,
+ 'height' => 800,
+ );
+
+</%doc>
+
+% #init
+<SCRIPT TYPE="text/javascript" src="<% $p %>elements/fckeditor/fckeditor.js">
+</SCRIPT>
+
+% #editor
+<SCRIPT TYPE="text/javascript">
+
+ var oFCKeditor = new FCKeditor('<% $opt{'field'} %>');
+ oFCKeditor.Value = <% $opt{'curr_value'} |js_string %>;
+
+ oFCKeditor.BasePath = '<% $p %>elements/fckeditor/';
+ oFCKeditor.Config['SkinPath'] = '<% $p %>elements/fckeditor/editor/skins/silver/';
+ oFCKeditor.Height = '<% $opt{'height'} || 420 %>';
+ oFCKeditor.Config['StartupFocus'] = true;
+
+ oFCKeditor.Create();
+
+</SCRIPT>
+
+<%init>
+
+my %opt = @_;
+
+</%init>