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>
17 <div class="entmsg" id="entmsg">
18 <form id="theenterform" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="post">
19 <input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
20 <input type="hidden" name="return_to" value="<?BSTR("return_to")>">
21 <input type="hidden" name="nonce" value="<?NONCE>">
22 <input type="hidden" name="force_room" value="<?THISROOM:NAME("X")>">
23 <input type="hidden" name="references" value="<?BSTR("references")>">
24 <input type="hidden" name="page" value="<?BSTR("page")>">
25 <input type="hidden" name="markdown" value="1">
26 <textarea style="display:none" name="msgtext" id="submitmsgtext" cols="80" rows="15"><?MAIL:EDITWIKI("edit", "X")></textarea>
30 <select name="display_name" size=1 id="from_id">
31 <?ITERATE("PREF:VALID:EMAIL:NAME", ="prefs_section_msg_handle_select")>
32 <?!("COND:THISROOM:FLAG:QR", 3, #"QR_ANONOPT")>
33 <option <?%("COND:BSTR", 1, "__ANONYMOUS__", "selected", "")> value="__ANONYMOUS__"><?_("Anonymous")></option>
38 <div id="epiceditor" />
45 <div style="display:none" id="submit-o-matic"><ul>
47 <a href="javascript:submit_post('post');">
48 <img src="static/webcit_icons/essen/16x16/check.png" alt="">
49 <span class="navbar_link">
50 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><?_("Send message")><?!("X", 1)>
51 <??("COND:BSTR", 2, "__RCPTREQUIRED")><?_("Post message")><?!("X", 2)>
56 <a href="javascript:submit_post('draft');">
57 <img src="static/webcit_icons/essen/16x16/draft.png" alt="">
58 <span class="navbar_link">
59 <?_("Save to Drafts")>
64 <a href="javascript:show_attachments_form();">
65 <img src="static/webcit_icons/essen/16x16/attachement.png" alt="">
66 <span class="navbar_link">
68 <span id="num_attachments"><?MSG:NATTACH></span>
73 <a href="javascript:submit_post('cancel');">
74 <img src="static/webcit_icons/essen/16x16/abort.png" alt="">
75 <span class="navbar_link">
80 <?!("COND:BSTR", 1, "__RCPTREQUIRED")><li>
81 <a href="javascript:PopOpenAddressBook('recp_id|<?_("To:")>|cc_id|<?_("CC:")>|bcc_id|<?_("BCC:")>');">
82 <img src="static/webcit_icons/essen/16x16/contact.png" alt="">
83 <span class="navbar_link">
91 <script type="text/javascript">
92 $("navbar").innerHTML = $("submit-o-matic").innerHTML;
94 function submit_post(which_action) {
95 var textarea=document.getElementById('submitmsgtext');
96 textarea.value = editor.exportFile();
98 document.getElementById("theenterform").submit();
101 function hide_attachments_form() {
102 $('attachments_form').style.display = 'none';
103 update_attachment_count();
106 function show_attachments_form() {
107 $('attachments_form').style.display = 'block';
109 p = 'template=edit_message_attachments_pane&r=' + ctdlRandomString();
121 function update_attachment_count() {
122 p = 'r=' + ctdlRandomString();
125 'show_num_attachments',
133 function remove_attachment(which_one) {
134 p = 'which_attachment=' + which_one + '&r=' + ctdlRandomString();
141 onComplete: function(){
142 show_attachments_form();
143 update_attachment_count();
151 <script type="text/javascript">
152 var editor = new EpicEditor().load();
153 editor.importFile('CitadelEditBuffer', document.getElementById('submitmsgtext').value);
155 <?=("addressbook_popup")>