source: trunk/forum/styles/prosilver/template/posting_editor.html

Last change on this file was 702, checked in by george, 15 years ago
  • Upraveno: Aktualizace fóra.
File size: 12.5 KB
Line 
1<script type="text/javascript">
2// <![CDATA[
3 onload_functions.push('apply_onkeypress_event()');
4// ]]>
5</script>
6
7<fieldset class="fields1">
8 <!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
9
10 <!-- IF S_PRIVMSGS and not S_SHOW_DRAFTS -->
11
12 <div class="column1">
13 <!-- IF S_ALLOW_MASS_PM -->
14 <!-- IF .to_recipient -->
15 <dl>
16 <dt><label>{L_TO}:</label></dt>
17 <dd>
18 <!-- BEGIN to_recipient -->
19 <!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
20 <!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a>&nbsp;<!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
21 <!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
22 <!-- END to_recipient -->
23 </dd>
24 </dl>
25 <!-- ENDIF -->
26 <!-- IF .bcc_recipient -->
27 <dl>
28 <dt><label>{L_BCC}:</label></dt>
29 <dd>
30 <!-- BEGIN bcc_recipient -->
31 <!-- IF not bcc_recipient.S_FIRST_ROW and bcc_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
32 <!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><strong>{bcc_recipient.NAME}</strong></a><!-- ELSE -->{bcc_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
33 <!-- IF not S_EDIT_POST --><input type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
34 <!-- END bcc_recipient -->
35 </dd>
36 </dl>
37 <!-- ENDIF -->
38 <!-- IF not S_EDIT_POST -->
39 <dl class="pmlist">
40 <dt><textarea id="username_list" name="username_list" class="inputbox" cols="50" rows="2"></textarea></dt>
41 <dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
42 <dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
43 <dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
44 </dl>
45 <!-- ENDIF -->
46 <!-- ELSE -->
47 <dl>
48 <dt><label for="username_list">{L_TO}:</label><!-- IF not S_EDIT_POST --><br /><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false">{L_FIND_USERNAME}</a></span><!-- ENDIF --></dt>
49 <!-- IF .to_recipient -->
50 <dd>
51 <!-- BEGIN to_recipient -->
52 <!-- IF not to_recipient.S_FIRST_ROW and to_recipient.S_ROW_COUNT mod 2 eq 0 --></dd><dd><!-- ENDIF -->
53 <!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><strong>{to_recipient.NAME}</strong></a><!-- ELSE -->{to_recipient.NAME_FULL}&nbsp;<!-- ENDIF -->
54 <!-- IF not S_EDIT_POST --><input type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="x" class="button2" />&nbsp;<!-- ENDIF -->
55 <!-- END to_recipient -->
56 </dd>
57 <!-- ENDIF -->
58
59 <!-- IF not S_EDIT_POST -->
60 <dd><input class="inputbox" type="text" name="username_list" id="username_list" size="20" value="" /> <input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
61 <!-- ENDIF -->
62 </dl>
63 <!-- ENDIF -->
64
65 </div>
66
67 <!-- IF S_GROUP_OPTIONS -->
68 <div class="column2">
69 <dl>
70 <dd><label for="group_list">{L_USERGROUPS}:</label> <select name="group_list[]" id="group_list" multiple="multiple" size="4" class="inputbox">{S_GROUP_OPTIONS}</select></dd>
71 </dl>
72 </div>
73 <!-- ENDIF -->
74
75 <div class="clear"></div>
76
77 <!-- ENDIF -->
78
79 <!-- IF S_DELETE_ALLOWED -->
80 <dl>
81 <dt><label for="delete">{L_DELETE_POST}:</label></dt>
82 <dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
83 </dl>
84 <!-- ENDIF -->
85
86 <!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
87 <dl>
88 <dt><label for="icon">{L_ICON}:</label></dt>
89 <dd>
90 <label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
91 <!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
92 </dd>
93 </dl>
94 <!-- ENDIF -->
95
96 <!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
97 <dl style="clear: left;">
98 <dt><label for="username">{L_USERNAME}:</label></dt>
99 <dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
100 </dl>
101 <!-- ENDIF -->
102
103 <!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
104 <dl style="clear: left;">
105 <dt><label for="subject">{L_SUBJECT}:</label></dt>
106 <dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
107 </dl>
108 <!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
109 <!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
110 <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
111 <!-- ENDIF -->
112 <!-- ENDIF -->
113
114 <!-- INCLUDE posting_buttons.html -->
115
116 <div id="smiley-box">
117 <!-- IF S_SMILIES_ALLOWED and .smiley -->
118 <strong>{L_SMILIES}</strong><br />
119 <!-- BEGIN smiley -->
120 <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
121 <!-- END smiley -->
122 <!-- ENDIF -->
123 <!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
124 <br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
125 <!-- ENDIF -->
126
127 <!-- IF BBCODE_STATUS -->
128 <!-- IF .smiley --><hr /><!-- ENDIF -->
129 {BBCODE_STATUS}<br />
130 <!-- IF S_BBCODE_ALLOWED -->
131 {IMG_STATUS}<br />
132 {FLASH_STATUS}<br />
133 {URL_STATUS}<br />
134 <!-- ENDIF -->
135 {SMILIES_STATUS}
136 <!-- ENDIF -->
137 <!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
138 <!-- IF S_DISPLAY_REVIEW --><hr /><!-- ENDIF -->
139 <!-- IF S_EDIT_DRAFT --><strong><a href="{S_UCP_ACTION}">{L_BACK_TO_DRAFTS}</a></strong><!-- ENDIF -->
140 <!-- IF S_DISPLAY_REVIEW --><strong><a href="#review">{L_TOPIC_REVIEW}</a></strong><!-- ENDIF -->
141 <!-- ENDIF -->
142 </div>
143
144 <div id="message-box">
145 <textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
146 </div>
147</fieldset>
148
149<!-- IF $EXTRA_POSTING_OPTIONS eq 1 -->
150
151 <!-- IF not S_SHOW_DRAFTS -->
152 <span class="corners-bottom"><span></span></span></div>
153 </div>
154 <!-- ENDIF -->
155
156 <!-- IF S_HAS_ATTACHMENTS -->
157 <div class="panel bg2">
158 <div class="inner"><span class="corners-top"><span></span></span>
159 <h3>{L_POSTED_ATTACHMENTS}</h3>
160
161 <fieldset class="fields2">
162
163 <!-- BEGIN attach_row -->
164 <dl>
165
166 <dt><label for="comment_list_{attach_row.ASSOC_INDEX}">{L_FILE_COMMENT}:</label></dt>
167 <dd><textarea name="comment_list[{attach_row.ASSOC_INDEX}]" id="comment_list_{attach_row.ASSOC_INDEX}" rows="1" cols="35" class="inputbox">{attach_row.FILE_COMMENT}</textarea></dd>
168 <dd><a href="{attach_row.U_VIEW_ATTACHMENT}" class="{S_CONTENT_FLOW_END}">{attach_row.FILENAME}</a></dd>
169 <dd style="margin-top: 5px;">
170 <!-- IF S_INLINE_ATTACHMENT_OPTIONS --><input type="button" value="{L_PLACE_INLINE}" onclick="attach_inline({attach_row.ASSOC_INDEX}, '{attach_row.A_FILENAME}');" class="button2" />&nbsp; <!-- ENDIF -->
171 <input type="submit" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" class="button2" />
172 </dd>
173 </dl>
174 {attach_row.S_HIDDEN}
175 <!-- IF not attach_row.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
176 <!-- END attach_row -->
177
178 </fieldset>
179
180 <span class="corners-bottom"><span></span></span></div>
181 </div>
182 <!-- ENDIF -->
183
184 <!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
185 <div class="panel bg2">
186 <div class="inner"><span class="corners-top"><span></span></span>
187 <fieldset class="submit-buttons">
188 {S_HIDDEN_ADDRESS_FIELD}
189 {S_HIDDEN_FIELDS}
190 <!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
191 <!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE}" class="button2" />&nbsp; <!-- ENDIF -->
192 <input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
193 <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;
194
195 </fieldset>
196
197 <span class="corners-bottom"><span></span></span></div>
198 </div>
199 <!-- ENDIF -->
200
201 <!-- IF not S_PRIVMSGS and not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
202 <div id="tabs">
203 <ul>
204 <li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>
205 <!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
206 <!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
207 </ul>
208 </div>
209 <!-- ENDIF -->
210
211 <!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
212 <div class="panel bg3" id="options-panel">
213 <div class="inner"><span class="corners-top"><span></span></span>
214
215 <fieldset class="fields1">
216 <!-- IF S_BBCODE_ALLOWED -->
217 <div><label for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label></div>
218 <!-- ENDIF -->
219 <!-- IF S_SMILIES_ALLOWED -->
220 <div><label for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label></div>
221 <!-- ENDIF -->
222 <!-- IF S_LINKS_ALLOWED -->
223 <div><label for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label></div>
224 <!-- ENDIF -->
225 <!-- IF S_SIG_ALLOWED -->
226 <div><label for="attach_sig"><input type="checkbox" name="attach_sig" id="attach_sig"{S_SIGNATURE_CHECKED} /> {L_ATTACH_SIG}</label></div>
227 <!-- ENDIF -->
228 <!-- IF S_NOTIFY_ALLOWED -->
229 <div><label for="notify"><input type="checkbox" name="notify" id="notify"{S_NOTIFY_CHECKED} /> {L_NOTIFY_REPLY}</label></div>
230 <!-- ENDIF -->
231 <!-- IF S_LOCK_TOPIC_ALLOWED -->
232 <div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
233 <!-- ENDIF -->
234 <!-- IF S_LOCK_POST_ALLOWED -->
235 <div><label for="lock_post"><input type="checkbox" name="lock_post" id="lock_post"{S_LOCK_POST_CHECKED} /> {L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</label></div>
236 <!-- ENDIF -->
237
238 <!-- IF S_TYPE_TOGGLE or S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
239 <hr class="dashed" />
240 <!-- ENDIF -->
241
242 <!-- IF S_TYPE_TOGGLE -->
243 <dl>
244 <dt><label for="topic_type-0"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->:</label></dt>
245 <dd><!-- BEGIN topic_type --><label for="topic_type-{topic_type.VALUE}"><input type="radio" name="topic_type" id="topic_type-{topic_type.VALUE}" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}</label> <!-- END topic_type --></dd>
246 </dl>
247 <!-- ENDIF -->
248
249 <!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
250 <dl>
251 <dt><label for="topic_time_limit">{L_STICK_TOPIC_FOR}:</label></dt>
252 <dd><label for="topic_time_limit"><input type="text" name="topic_time_limit" id="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" class="inputbox autowidth" /> {L_DAYS}</label></dd>
253 <dd>{L_STICK_TOPIC_FOR_EXPLAIN}</dd>
254 </dl>
255 <!-- ENDIF -->
256
257 <!-- IF S_EDIT_REASON -->
258 <dl>
259 <dt><label for="edit_reason">{L_EDIT_REASON}:</label></dt>
260 <dd><input type="text" name="edit_reason" id="edit_reason" value="{EDIT_REASON}" class="inputbox" /></dd>
261 </dl>
262 <!-- ENDIF -->
263 </fieldset>
264 <!-- ENDIF -->
265
266<!-- ENDIF -->
Note: See TracBrowser for help on using the repository browser.