2 <script type="text/javascript">
5 <script type="text/javascript" src="markdown/js/epiceditor.js"></script>
6 <?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
10 <div id="attachments_form">
12 <p><img src="static/webcit_icons/throbber.gif" alt=""></p>
13 <p><?_("Loading")></p>
18 <select name="display_name" size=1 id="from_id">
19 <?ITERATE("PREF:VALID:EMAIL:NAME", ="prefs_section_msg_handle_select")>
20 <?!("COND:THISROOM:FLAG:QR", 3, #"QR_ANONOPT")>
21 <option <?%("COND:BSTR", 1, "__ANONYMOUS__", "selected", "")> value="__ANONYMOUS__"><?_("Anonymous")></option>
28 <textarea id="msgtext" cols="80" rows="15"><?MAIL:EDITWIKI("edit", "X")></textarea>
34 <div style="display:none" id="submit-o-matic"><ul>
36 <a href="javascript:submit_post('post');">
37 <img src="static/webcit_icons/essen/16x16/check.png" alt="">
38 <span class="navbar_link">
39 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><?_("Send message")><?!("X", 1)>
40 <??("COND:BSTR", 2, "__RCPTREQUIRED")><?_("Post message")><?!("X", 2)>
45 <a href="javascript:submit_post('draft');">
46 <img src="static/webcit_icons/essen/16x16/draft.png" alt="">
47 <span class="navbar_link">
48 <?_("Save to Drafts")>
53 <a href="javascript:show_attachments_form();">
54 <img src="static/webcit_icons/essen/16x16/attachement.png" alt="">
55 <span class="navbar_link">
57 <span id="num_attachments"><?MSG:NATTACH></span>
62 <a href="javascript:submit_post('cancel');">
63 <img src="static/webcit_icons/essen/16x16/abort.png" alt="">
64 <span class="navbar_link">
69 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><li>
70 <a href="javascript:PopOpenAddressBook('recp_id|<?_("To:")>|cc_id|<?_("CC:")>|bcc_id|<?_("BCC:")>');">
71 <img src="static/webcit_icons/essen/16x16/contact.png" alt="">
72 <span class="navbar_link">
80 <script type="text/javascript">
82 $("navbar").innerHTML = $("submit-o-matic").innerHTML;
85 function submit_post(which_action) {
87 var p = { "postseq":"<?DATE:NOW:NO>",
88 "return_to":"<?BSTR("return_to")>",
90 "force_room":"<?THISROOM:NAME("X")>",
91 "references":"<?BSTR("references")>",
92 "page":"<?BSTR("page")>",
93 "display_name":"willi",
96 "msgtext" : editor.exportFile()
99 new Ajax.Request('post', {
102 onComplete: function(transport) { ajax_important_message(transport.responseText.substr(4));}
106 function hide_attachments_form() {
107 $('attachments_form').style.display = 'none';
108 update_attachment_count();
111 function show_attachments_form() {
112 $('attachments_form').style.display = 'block';
114 p = 'template=edit_message_attachments_pane&r=' + CtdlRandomString();
126 function update_attachment_count() {
127 p = 'r=' + CtdlRandomString();
130 'show_num_attachments',
138 function remove_attachment(which_one) {
139 p = 'which_attachment=' + which_one + '&r=' + CtdlRandomString();
146 onComplete: function(){
147 show_attachments_form();
148 update_attachment_count();
156 <script type="text/javascript">
157 var editor = new EpicEditor().load();
159 <?=("addressbook_popup")>