File: edit_message.html

package info (click to toggle)
webcit 8.24-dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,888 kB
  • ctags: 4,214
  • sloc: ansic: 33,336; sh: 4,468; makefile: 340; xml: 90; sed: 9
file content (185 lines) | stat: -rw-r--r-- 5,841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?=("head")>
<?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
<?ROOMBANNER>
<div id="content">

<div id="attachments_form" style="display:none">
<?=("edit_message_attachments_pane")>
</div>

<div class="entmsg" id="entmsg"><form name="enterform" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="post">
<input type="hidden" name="postseq" value="<?DATE:NOW:NO>">
<input type="hidden" name="return_to" value="<?BSTR("return_to")>">
<input type="hidden" name="nonce" value="<?NONCE>">
<input type="hidden" name="force_room" value="<?THISROOM:NAME("X")>">
<input type="hidden" name="references" value="<?BSTR("references")>">
<input type="hidden" name="page" value="<?BSTR("page")>">
<input type="hidden" name="submit_action" value="">

<table width="100%" class="edit_msg_table">
<tr><th><label for="from_id"><i><?_("from")></i></label></th><td>

<??("COND:BSTR", 4, "__RCPTREQUIRED")>
<select name="display_name" size=1 id="from_id">
<?ITERATE("PREF:VALID:EMAIL:NAME", ="prefs_section_msg_handle_select")>
<?!("COND:THISROOM:FLAG:QR", 3, #"QR_ANONOPT")>
<option <?%("COND:BSTR", 1, "__ANONYMOUS__", "selected", "")> value="__ANONYMOUS__"><?_("Anonymous")></option>
<?!("X", 3)>
</select>
<??("X", 4)>

<?!("COND:BSTR", 5, "__RCPTREQUIRED")>
<select name="display_name" size=1 id="from_id">
<?ITERATE("PREF:VALID:EMAIL:NAME", ="prefs_section_msg_sender_name_select")>
<?!("COND:THISROOM:FLAG:QR", 3, #"QR_ANONOPT")>
<option <?%("COND:BSTR", 1, "__ANONYMOUS__", "selected", "")> value="__ANONYMOUS__"><?_("Anonymous")></option>
<?!("X", 3)>
</select>

<select name="my_email_addr" size=1>
<?ITERATE("PREF:VALID:EMAIL:ADDR", ="prefs_section_msg_sender_from_select")>
</select>
<?!("X", 4)>

 <i><?_("in")></i> <?THISROOM:NAME></td></tr>

<?!("COND:BSTR", 5, "__RCPTREQUIRED")>
<tr>
  <th><label for="recp_id"> <?_("To:")></label></th>
  <td><input autocomplete="off" type="text" name="recp" id="recp_id" value="<?BSTR("recp", "H")>" size=45 maxlength=1000 />
     <div class="auto_complete" id="recp_name_choices"></div>
  </td>
</tr>
<tr>
  <th><label for="cc_id"><?_("CC:")></label></th>
  <td><input autocomplete="off" type="text" name="cc" id="cc_id" value="<?BSTR("cc", "H")>" size=45 maxlength=1000 />
    <div class="auto_complete" id="cc_name_choices"></div>
  </td>
</tr>
<tr>
  <th><label for="bcc_id"><?_("BCC:")></label></th>
  <td><input autocomplete="off" type="text" name="bcc" id="bcc_id" value="<?BSTR("bcc", "H")>" size=45 maxlength=1000 />
   <div class="auto_complete" id="bcc_name_choices"></div>
  </td>
</tr>
<??("X", 5)>		
<tr>
  <th><label for="subject_id" > 
      <?%("COND:BSTR", 6, "__SUBJREQUIRED", 0, _("Subject (optional):"), _("Subject:")>
  </label></th>
  <td>
    <input type="text" name="subject" id="subject_id" value="<?BSTR("subject", "H")>" size=45 maxlength=70>
  </td>
</tr>
</td></tr>
</table>

<input type="hidden" name="sig_inserted" value="yes">

<textarea name="msgtext" id="msgtext" cols="80" rows="15">
<?BSTR("msgtext", "X")><?!("COND:BSTR", 1, "fwdquote")>&lt;br /&gt;
  &lt;div align=center&gt;
    &lt;i&gt;
      <?_("--- forwarded message ---")>
    &lt;/i&gt;
  &lt;/div&gt;
  <?MAIL:QUOTETEXT("fwdquote", "X")>
&lt;br /&gt;<?!("X", 1)><?!("COND:BSTR", 2, "replyquote")>
&lt;br /&gt;
    <?MAIL:QUOTETEXT("replyquote", "X")>
&lt;br /&gt;<?!("X", 2)><?!("COND:BSTR", 3, "edit")><?MAIL:EDITTEXT("edit", "X")><?!("X", 3)>
<??("COND:BSTR", 4, "edit")><??("COND:BSTR", 5, "sig_inserted", "yes")><?!("COND:PREF", 6, "use_sig", "yes")>
&lt;br&gt;&lt;p&gt;--&nbsp;&lt;br&gt;<?PREF:VALUE("signature","H")>
      &lt;/p&gt;
<?!("X", 6)><??("X", 5)><?!("X", 4)><?!("COND:ROOM:TYPE_IS", 7, #"VIEW_WIKI")><?MAIL:EDITWIKI("X")><?!("X", 7)>
</textarea>

<?=("richedit")>

</form>

<div style="display:none" id="submit-o-matic"><ul>
<li>
	<a href="javascript:submit_post('post');">
		<img src="static/webcit_icons/essen/16x16/check.png" alt=""">
		<span class="navbar_link">
		<?!("COND:BSTR", 1, "__RCPTREQUIRED")><?_("Send message")><?!("X", 1)>
		<??("COND:BSTR", 2, "__RCPTREQUIRED")><?_("Post message")><?!("X", 2)>
		</span>
	</a>
</li>
<li>
	<a href="javascript:submit_post('draft');">
		<img src="static/webcit_icons/essen/16x16/draft.png" alt=""">
		<span class="navbar_link">
		<?_("Save to Drafts")>
		</span>
	</a>
</li>
<li>
	<a href="javascript:show_attachments_form();">
		<img src="static/webcit_icons/essen/16x16/attachement.png" alt=""">
		<span class="navbar_link">
		<?_("Attachments:")>
		<span id="num_attachments"><?MSG:NATTACH></span>
		</span>
	</a>
</li>
<li>
	<a href="javascript:submit_post('cancel');">
		<img src="static/webcit_icons/essen/16x16/abort.png" alt="">
		<span class="navbar_link">
		<?_("Cancel")>
		</span>
	</a>
</li>
<?!("COND:BSTR", 1, "__RCPTREQUIRED")><li>
	<a href="javascript:PopOpenAddressBook('recp_id|<?_("To:")>|cc_id|<?_("CC:")>|bcc_id|<?_("BCC:")>');">
		<img src="static/webcit_icons/essen/16x16/contact.png" alt=""">
		<span class="navbar_link">
		<?_("Contacts")>
		</span>
	</a>
</li><?!("X", 1)>
</div>
<script type="text/javascript">	

	$("navbar").innerHTML = $("submit-o-matic").innerHTML;
	<?!("COND:BSTR", 1, "__RCPTREQUIRED")>
		activate_entmsg_autocompleters();
	<?!("X", 1)>

	function submit_post(which_action) {
		document.enterform.submit_action.value = which_action;
		document.enterform.submit();
	}

	function hide_attachments_form() {
		$('attachments_form').style.display = 'none';
		update_attachment_count();
	}

	function show_attachments_form() {
		$('attachments_form').style.display = 'block';
		update_attachment_count();
	}

	function update_attachment_count() {
		p = 'r=' + CtdlRandomString();
		new Ajax.Updater(
			'num_attachments',
			'show_num_attachments',
			{
				method: 'get',
				parameters: p
			}
		);
	}

</script>
</div>
</div>
</div>
<?=("addressbook_popup")>

<?=("trailing")>