post.tmpl
来自「eGroupWare is a multi-user, web-based gr」· TMPL 代码 · 共 398 行
TMPL
398 行
/**************************************************************************** copyright : (C) 2001-2003 Advanced Internet Designs Inc.* email : forum@prohost.org* $Id: post.tmpl,v 1.4 2003/12/18 18:52:05 iliaa Exp $** This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or * (at your option) any later version.***************************************************************************/{PHP_FILE: input: post.php.t; output: post.php;}{REF: security.tmpl}{REF: header.tmpl}{REF: footer.tmpl}{REF: stats.tmpl}{REF: draw_select_opt.tmpl}{REF: draw_radio_opt.tmpl}{REF: rev_fmt.tmpl}{REF: post_opt.tmpl}{REF: post_proc.tmpl}{REF: replace.tmpl}{REF: wordwrap.tmpl}{REF: spell.tmpl}{REF: thread_notify.tmpl}{REF: postcheck.tmpl}{REF: ipoll.tmpl}{REF: forum.tmpl}{REF: imsg.tmpl}{REF: imsg_edt.tmpl}{REF: return.tmpl}{REF: minimsg.tmpl}{REF: allowed_user_lnk.tmpl}{REF: logaction.tmpl}{REF: post_common.tmpl}{REF: th.tmpl}{REF: is_perms.tmpl}{SECTION: apply_spell_changes}<input type="submit" class="button" name="btn_spell" value="{MSG: apply_spell_changes}"> {SECTION: END}{SECTION: signature}<p><u> </u><br />{VAR: sig}{SECTION: END}{SECTION: preview_message}<div align="center"><table border="0" cellspacing="1" cellpadding="2" class="PreviewTable"><tr><th colspan=2>{MSG: post_preview}</th></tr><tr><td class="RowStyleA"><font class="MsgSubText">{VAR: subj}</font></td></tr><tr><td class="RowStyleA"><font class="MsgBodyText">{VAR: text}{TEMPLATE-DATA: signature}</font></td></tr><tr><td align="left" class="RowStyleB">{TEMPLATE-DATA: apply_spell_changes}<input type="submit" class="button" value="{MSG: post_preview_btn}" tabindex="4" name="preview"> {TEMPLATE-DATA: spell_check_button}<input type="submit" class="button" tabindex="5" name="btn_submit" value="{VAR: label}" onClick="javascript: document.post_form.submitted.value=1;"></td></tr></table><br /></div>{SECTION: END}{SECTION: loged_in_user shows who you're logged in as and offers a logout link}<tr class="RowStyleB"><td nowrap class="GenText">{MSG: post_logedin_user}</td><td class="GenText" width="100%">{VAR-HTML: usr->login}</td></tr>{SECTION: END}{SECTION: post_password if password posting enable this allows the user to enter a password}<tr class="RowStyleB"><td class="GenText">{MSG: post_passwd}</td><td><input type="password" name="frm_passwd" value="" tabindex="1">{VAR: pass_err}</td></tr>{SECTION: END}{SECTION: create_poll}<tr class="RowStyleB"><td class="GenText">{MSG: post_poll}</td><td class="GenText"><a class="GenLink" href="javascript://" onClick="javascript: window_open(\'{TEMPLATE: create_poll_lnk1}\', \'poll_creator\', 400, 300);">[{MSG: post_create_poll}]</a></td></tr>{SECTION: END}{SECTION: edit_poll}<tr class="RowStyleB"><td class="GenText">{MSG: post_poll}</td><td class="GenText">{VAR: poll[1]} [<a class="GenLink" href="javascript://" onClick="javascript: window_open(\'{TEMPLATE: edit_poll_lnk1}\', \'poll\', 400, 300);">{MSG: post_poll_edit}</a>] <input type="hidden" name="pl_del" value="">[<a class="GenLink" href="javascript: document.post_form.pl_del.value=\'1\'; document.post_form.submit();">{MSG: post_poll_delete}</a>]</td></tr>{SECTION: END}{SECTION: admin_options options for moderators & admins to create announcements and sticky threads}<tr class="RowStyleB"><td class="GenText" nowrap>{MSG: post_mod_opt}</td><td>{MSG: post_thread_type} <select name="thr_ordertype">{TEMPLATE-DATA: thread_type_select}</select>{MSG: post_thread_expiry} <select name="thr_orderexpiry">{TEMPLATE-DATA: thread_expiry_select}</select></td></tr>{SECTION: END}{SECTION: sel_opt}{SECTION: END}{SECTION: sel_opt_selected}{SECTION: END}{SECTION: reg_user_options various options for logged in registered users}<tr><td><input type="checkbox" name="msg_poster_notif" value="Y"{VAR: msg_poster_notif_check}></td><td class="GenText"><b>{MSG: post_notification}</b></td></tr><tr><td> </td><td><font class="SmallText">{MSG: post_notification_desc}</font></td></tr><tr><td><input type="checkbox" name="msg_show_sig" value="Y"{VAR: msg_show_sig_check}></td><td class="GenText"><b>{MSG: include_sig}</b></td></tr><tr><td> </td><td><font class="SmallText">{MSG: include_sig_desc}</font></td></tr>{TEMPLATE-DATA: mod_post_opts}{SECTION: END}{SECTION: mod_post_opts}<tr><td><input type="checkbox" name="thr_locked" value="Y"{VAR: thr_locked_checked}></td><td class="GenText"><b>{MSG: post_locked}</b></td></tr>{SECTION: END}{SECTION: disable_smileys}<tr><td><input type="checkbox" name="msg_smiley_disabled" value="Y"{VAR: msg_smiley_disabled_check}></td><td class="GenText"><b>{MSG: disable_smilies}</b></td></tr>{SECTION: END}{SECTION: spell_check_button}<input type="submit" class="button" value="{MSG: spell_check_msg}" name="spell"> {SECTION: END}{SECTION: post_error an error message shown at the top of ppage if there was an error with submission}<h4 align="center"><font class="ErrorText">{MSG: post_error_generic}</font></h4>{SECTION: END}{PAGE: moderated_forum_post}{TEMPLATE: header}<div align="center"><table border="0" cellspacing="1" cellpadding="2" class="DialogTable"><tr><th>{MSG: post_moderated_forum_ttl}</th></tr><tr class="RowStyleA" align="center"> <td class="GenText"> {MSG: post_moderated_forum} <br /><br /><form action="{TEMPLATE: moderated_forum_post_lnk3}" method="post">{DEF: _hs} <input type="submit" class="button" name="proceed" value="{MSG: post_proceed}"> <input type="hidden" name="moderated_redr" value="1"> </form> </td></tr></table></div>{TEMPLATE: footer}{PAGE: END}{SECTION: post_enctype}enctype="multipart/form-data"{SECTION: END}{PAGE: POST_PAGE message posting form}{TEMPLATE: header}<form action="{TEMPLATE: POST_PAGE_lnk3}" method="post" name="post_form" {TEMPLATE-DATA: post_enctype} onSubmit="javascript: document.post_form.btn_submit.disabled = true;">{TEMPLATE-DATA: post_error}{TEMPLATE-DATA: preview_message}<table border="0" cellspacing="1" cellpadding="2" class="ContentTable"><tr><th colspan=2><a name="ptop"> </a>{MSG: post_form}</th></tr>{TEMPLATE-DATA: loged_in_user}{TEMPLATE-DATA: post_password}<tr class="RowStyleB"><td class="GenText">{MSG: post_forum}</td><td class="GenText">{VAR: frm->name}</td></tr><tr class="RowStyleB"><td class="GenText">{MSG: post_title}</td><td class="GenText"><input type="text" maxLength=100 name="msg_subject" value="{VAR: msg_subject}" size=50 tabindex="2"> {VAR: msg_subect_err}</td></tr>{TEMPLATE-DATA: poll}{TEMPLATE-DATA: admin_options}{TEMPLATE-DATA: post_icons}{TEMPLATE-DATA: post_smilies}{TEMPLATE-DATA: fud_code_icons}<tr class="RowStyleA"><td nowrap valign=top class="GenText">{MSG: post_body}<br /><br />{TEMPLATE-DATA: post_options}</td><td>{VAR: message_err}<textarea rows="20" cols="65" tabindex="3" wrap="virtual" id="txtb" name="msg_body" onKeyUp="storeCaret(this);" onClick="storeCaret(this);" onSelect="storeCaret(this);">{VAR: msg_body}</textarea></td></tr>{TEMPLATE-DATA: file_attachments}<tr class="RowStyleB" valign="top"><td class="GenText">{MSG: post_options}</td><td><table border=0 cellspacing=0 cellpadding=1>{TEMPLATE-DATA: reg_user_options}{TEMPLATE-DATA: disable_smileys}</table></td></tr><tr class="RowStyleA"><td class="GenText" align="right" colspan=2><input type="submit" class="button" value="{MSG: post_preview_btn}" tabindex="4" name="preview"> {TEMPLATE-DATA: spell_check_button}<input type="submit" class="button" tabindex="5" name="btn_submit" value="{VAR: label}" onClick="javascript: document.post_form.submitted.value=1;"></td></tr></table>{TEMPLATE-DATA: minimsg}{DEF: _hs}<input type="hidden" name="submitted" value=""><input type="hidden" name="reply_to" value="{VAR: reply_to}"><input type="hidden" name="th_id" value="{VAR: th_id}"><input type="hidden" name="frm_id" value="{VAR: frm_id}"><input type="hidden" name="start" value="{VAR: start}"><input type="hidden" name="msg_id" value="{VAR: msg_id}"><input type="hidden" name="pl_id" value="{VAR: pl_id}"><input type="hidden" name="old_subject" value="{VAR: old_subject}"><input type="hidden" name="prev_loaded" value="1"></form>{TEMPLATE-DATA: page_stats}{TEMPLATE: footer}{PAGE: END}{SECTION: post_err_notallowed_title}{MSG: post_err_notallowed_title}{SECTION: END}{SECTION: post_err_notallowed_msg}{MSG: post_err_notallowed_msg}{SECTION: END}{SECTION: post_err_lockedthread_title}{MSG: post_err_lockedthread_title}{SECTION: END}{SECTION: post_err_lockedthread_msg}{MSG: post_err_lockedthread_msg}{SECTION: END}{SECTION: post_err_notowner_title}{MSG: post_err_notowner_title}{SECTION: END}{SECTION: post_err_notowner_msg}{MSG: post_err_notowner_msg}{SECTION: END}{SECTION: post_err_edttimelimit_title}{MSG: post_err_edttimelimit_title}{SECTION: END}{SECTION: post_err_edttimelimit_msg}{MSG: post_err_edttimelimit_msg}{SECTION: END}{SECTION: post_err_noannontopics_title}{MSG: post_err_noannontopics_title}{SECTION: END}{SECTION: post_err_noannontopics_msg}{MSG: post_err_noannontopics_msg}{SECTION: END}{SECTION: post_err_noannonposts_title}{MSG: post_err_noannonposts_title}{SECTION: END}{SECTION: post_err_noannonposts_msg}{MSG: post_err_noannonposts_msg}{SECTION: END}{SECTION: post_err_noreplying_title}{MSG: post_err_noreplying_title}{SECTION: END}{SECTION: post_err_noreplying_msg}{MSG: post_err_noreplying_msg}{SECTION: END}{SECTION: post_err_floodtrig_title}{MSG: post_err_floodtrig_title}{SECTION: END}{SECTION: post_err_floodtrig_msg}{MSG: post_err_floodtrig_msg}{SECTION: END}{SECTION: post_err_attach_size}{MSG: post_err_attach_size}{SECTION: END}{SECTION: post_err_attach_ext}{MSG: post_err_attach_ext}{SECTION: END}{SECTION: post_err_attach_filelimit}{MSG: post_err_attach_filelimit}{SECTION: END}{SECTION: post_err_passwd}{MSG: post_err_passwd}{SECTION: END}{SECTION: post_reply_update}{MSG: post_reply_update}{SECTION: END}{SECTION: post_topic_update}{MSG: post_topic_update}{SECTION: END}{SECTION: post_normal}{MSG: post_normal}{SECTION: END}{SECTION: post_sticky}{MSG: post_sticky}{SECTION: END}{SECTION: post_annoncement}{MSG: post_annoncement}{SECTION: END}{SECTION: create_thread}{MSG: create_thread}{SECTION: END}{SECTION: submit_reply}{MSG: submit_reply}{SECTION: END}{SECTION: edit_message}{MSG: edit_message}{SECTION: END}{SECTION: fud_quote quote style for FUD code enabled forums}[quote title={MSG: post_quote_msg}]{VAR: msg_body}[/quote]{SECTION: END}{SECTION: html_quote quote style for html enabled forums}<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>{MSG: post_quote_msg}</b></td></tr><tr><td class="quote"><br />{VAR: msg_body}<br /></td></tr></table>{SECTION: END}{SECTION: plain_quote quoting style for plain text forums}{MSG: post_quote} {MSG: post_quote_msg}<br />----------------------------------------------------<br />{VAR: msg_body}<br />----------------------------------------------------<br />{SECTION: END}{SECTION: th_expr_never}{MSG: th_expr_never}{SECTION: END}{SECTION: th_expr_one_hr}{MSG: th_expr_one_hr}{SECTION: END}{SECTION: th_expr_two_hr}{MSG: th_expr_two_hr}{SECTION: END}{SECTION: th_expr_three_hr}{MSG: th_expr_three_hr}{SECTION: END}{SECTION: th_expr_four_hr}{MSG: th_expr_four_hr}{SECTION: END}{SECTION: th_expr_eight_hr}{MSG: th_expr_eight_hr}{SECTION: END}{SECTION: th_expr_sixteen_hr}{MSG: th_expr_sixteen_hr}{SECTION: END}{SECTION: th_expr_one_day}{MSG: th_expr_one_day}{SECTION: END}{SECTION: th_expr_two_day}{MSG: th_expr_two_day}{SECTION: END}{SECTION: th_expr_four_day}{MSG: th_expr_four_day}{SECTION: END}{SECTION: th_expr_one_week}{MSG: th_expr_one_week}{SECTION: END}{SECTION: th_expr_two_week}{MSG: th_expr_two_week}{SECTION: END}{SECTION: th_expr_one_month}{MSG: th_expr_one_month}{SECTION: END}{SECTION: th_expr_two_month}{MSG: th_expr_two_month}{SECTION: END}{SECTION: th_expr_four_month}{MSG: th_expr_four_month}{SECTION: END}{SECTION: th_expr_one_year}{MSG: th_expr_one_year}{SECTION: END}{SECTION: reply_prefix used to check if the subject needs it added}{MSG: post_re}{SECTION: END}{SECTION: post_mod_msg_notify_title}{MSG: post_mod_msg_notify_title}{SECTION: END}{SECTION: post_mod_msg_notify_msg}{MSG: post_mod_msg_notify_msg}{SECTION: END}{SECTION: create_poll_lnk1}{ROOT}?t=poll&{DEF: _rsid}&frm_id={VAR: frm->id}{SECTION: END}{SECTION: edit_poll_lnk1}{ROOT}?t=poll&{DEF: _rsid}&pl_id={VAR: poll[0]}&frm_id={VAR: frm->id}{SECTION: END}{SECTION: moderated_forum_post_lnk3}{ROOT}?t=post{SECTION: END}{SECTION: POST_PAGE_lnk3}{ROOT}?t=post{SECTION: END}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?