| posting_body - phần 1
- Code:
<script src="{JS_DIR}extendedview.js" type="text/javascript"></script> <script type="text/javascript"> var hltab = "Tabs: [table class=fmvitab][tr][td][list][*][b]text[/b]text[*][b]text[/b]text[/list][/td][/tr][/table]"; var hlcolumn = "Column: [table class=fmvicolumn][tr][td]text[/td][td]text[/td][/tr][/table]"; var hln = "Random number: [rand]number,number[/rand] or [rand]number[/rand]"; var hlh = "BBCode Guide"; var hls = "Search user link"; </script> {ERROR_BOX}
<div class="main"> <form action="{S_POST_ACTION}" class="frm-form" method="post" name="post" onsubmit="return vB_Editor['text_editor'].prepare_submit(0,0)" enctype="multipart/form-data">
{POST_PREVIEW_BOX}
<!-- BEGIN switch_forum_rules --> <div id="forum_rules"> <div class="main-head clearfix"> <p class="h2">{L_FORUM_RULES}</p> </div> <table class="main-content frm"> <tr> <!-- BEGIN switch_forum_rule_image --> <td class="logo"> <img src="{RULE_IMG_URL}" /> </td> <!-- END switch_forum_rule_image --> <td class="rules entry-content"> {RULE_MSG} </td> </tr> </table> </div> <!-- END switch_forum_rules -->
<!-- BEGIN switch_quote_limit --> <div class="main"> <div class="main-head"></div> <div class="main-content warning"> <p class="center">{switch_quote_limit.L_QUOTE_LIMIT_WARNING}</p> <br /> </div> </div> <!-- END switch_quote_limit -->
<div class="main-head clearfix"> <p class="h2"><!-- BEGIN switch_post_a -->{L_POST_A}<!-- END switch_post_a --></p> <p class="options"> <a class="exthelp" title="{L_HELP}" href="http://{URL_FORUM}{U_FAQ}" target="_blank">{L_BBCODE_GUIDE}</a> </p> </div>
<div class="main-content frm"> <fieldset class="frm-set multi"> <!-- BEGIN switch_username_select --> <dl> <dt><label>{L_USERNAME}</label></dt> <dd><input type="text" name="username" maxlength="8" value="{USERNAME}" /></dd> </dl> <!-- END switch_username_select -->
<!-- BEGIN switch_reasons --> <dl> <dt><label>{L_REASON}</label></dt> <dd>{REASON_NEW}</dd> </dl> <!-- END switch_reasons -->
<!-- BEGIN switch_privmsg --> <dl> <dt><label>{L_USERNAME}</label></dt> <dd> <!-- BEGIN switch_username --> <input style="margin-top:2px" type="text" name="username[]" value="{switch_privmsg.switch_username.USERNAME}" /><br /> <!-- END switch_username --> <input style="margin-top:2px" type="text" id="username" name="username[]" value="{USERNAME}" tabindex="1" /> <img id="add_username" src="{ADD_USERNAME_IMG}" class="selectHover" alt="" /> <input type="button" id="find_user" value="{L_FIND_USERNAME}" /> </dd> </dl> <!-- BEGIN switch_privmsg_friend --> <dl> <dt><label>{switch_privmsg.switch_privmsg_friend.L_OR_FRIEND}</label></dt> <dd>{switch_privmsg.switch_privmsg_friend.FRIEND_PM}</dd> </dl> <!-- END switch_privmsg_friend --> <!-- BEGIN switch_privmsg_group --> <dl> <dt><label>{switch_privmsg.switch_privmsg_group.L_OR_GROUP}</label></dt> <dd>{switch_privmsg.switch_privmsg_group.MASS_PM}</dd> </dl> <!-- END switch_privmsg_group --> <!-- END switch_privmsg -->
<!-- BEGIN switch_icon_checkbox --> <dl> <dt style="padding-top:14px"><label>{L_ICON_TITLE}</label></dt> <dd> <!-- BEGIN row --> <!-- BEGIN cell --> <label style="vertical-align:bottom">
<input type="radio" name="post_icon" tabindex="2" value="{switch_icon_checkbox.row.cell.ICON_ID}" {switch_icon_checkbox.row.cell.ICON_CHECKED} id="post_icon_{switch_icon_checkbox.row.cell.ICON_ID}" /> <span onclick="document.forms['post'].post_icon_{switch_icon_checkbox.row.cell.ICON_ID}.checked=true">{switch_icon_checkbox.row.cell.ICON_IMG}</span> </label> <!-- END cell --> <!-- END row --> </dd> </dl> <!-- END switch_icon_checkbox -->
<!-- BEGIN switch_subject --> <dl> <dt><label>{L_SUBJECT}</label></dt> <dd class="frm-input"> <input type="text" name="subject" value="{SUBJECT}" maxlength="{TOPIC_TITLE_MAXLENGTH}" title="{TOPIC_TITLE_LENGTH_EXPLAIN}" onkeypress="if (event.keyCode==13){return false}" />
<!-- BEGIN switch_subject_color --> <script type="text/javascript"> //<![CDATA[ input = document.getElementsByName('subject'); //]]> </script> <select name="topic_color" onchange="input[0].style.color = topic_color.value" style="margin-left:10px">
{switch_subject.switch_subject_color.TOPIC_TITLE_COLOR_OPTIONS}
</select> <script type="text/javascript"> //<![CDATA[ input[0].style.color = '{switch_subject.switch_subject_color.TOPIC_TITLE_COLOR_DEFAULT}'; //]]> </script> <!-- END switch_subject_color --> </dd> </dl> <!-- END switch_subject -->
<!-- BEGIN switch_description --> <dl> <dt><label>{L_DESCRIPTION}</label></dt> <dd class="frm-input"> <input type="text" name="description" value="{DESCRIPTION}" maxlength="{TOPIC_DESCRIPTION_MAXLENGTH}" onkeypress="if (event.keyCode==13){return false}" /> </dd> </dl> <!-- END switch_description -->
<div id="text_editor_select_controls"> <div style="visibility:hidden" class="select" id="fmvidegree"> <p><img src="{PATH_IMG_FA}wysiwyg/width.png" alt="{L_WIDTH}" title="{L_WIDTH}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox medium" id="degree_w" maxlength="3" style="width:20px" title="Width" onkeypress="if (event.keyCode==13){ fmvidegree();selectWysiwyg(this,'fmvidegree');return false}" /> <img src="{PATH_IMG_FA}wysiwyg/height.png" alt="{L_HEIGHT}" title="{L_HEIGHT}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox medium" id="degree_h" maxlength="3" style="width:20px" title="Height" onkeypress="if (event.keyCode==13){ fmvidegree();selectWysiwyg(this,'fmvidegree');return false}" /> <img src="http://i12.servimg.com/u/f12/17/70/81/78/rotate10.png" alt="Degree" title="Degree" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox medium" id="degree_d" maxlength="4" style="width:27px" title="Degree" onkeypress="if (event.keyCode==13){ fmvidegree();selectWysiwyg(this,'fmvidegree');return false}" /> </p> <p style="text-align:center"><input type="button" class="button2" onclick="fmvidegree();selectWysiwyg(this,'fmvidegree')" value="{L_OK}" /></p> </div> <div style="display:inline!important" id="text_editor_select_controls"> <div style="visibility:hidden" class="select" id="notes"> <button onclick="bbfontstyle('[table class=noteclassic][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="/users/2611/10/63/87/album/note10.png" />Classic note</button> <button onclick="bbfontstyle('[table class=notetip][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="/users/2611/10/63/87/album/tip10.png" />Tip note</button> <button onclick="bbfontstyle('[table class=notewarning][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="/users/2611/10/63/87/album/warn10.png" />Warning note</button> <button onclick="bbfontstyle('[table class=noteimportant][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="/users/2611/10/63/87/album/imp10.png" />Important note</button> <button onclick="bbfontstyle('[table class=notehelp][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="/users/2611/10/63/87/album/help10.png" />Help note</button> <hr /> <button onclick="bbfontstyle('[table class=noteinfo][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k11.png" />Info note</button> <button onclick="bbfontstyle('[table class=notesuccess][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k13.png" />Success note</button> <button onclick="bbfontstyle('[table class=noteerror][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k12.png" />Error note</button> <button onclick="bbfontstyle('[table class=notevalidation][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="http://i48.servimg.com/u/f48/16/28/30/49/rsz_kn10.png" />Validation note</button> <button onclick="bbfontstyle('[table class=notesuggest][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false"> <img src="http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k10.png" />Suggest note</button> </div> </div> <div style="visibility:hidden" class="select" id="tiplink"> <p><img src="http://2img.net/i/fa/wysiwyg/font.png" alt="tooltip" title="tooltip" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="stooltiplink" title="tooltip" onkeypress="if (event.keyCode==13){fmvitiplink();selectWysiwyg(this,'tiplink');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="fmvitiplink();selectWysiwyg(this,'tiplink')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="ulink"> <p><img src="http://2img.net/i/fa/wysiwyg/font.png" alt="Search user" title="Search user" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="sUser" title="Search user" onkeypress="if (event.keyCode==13){fmvisuer();selectWysiwyg(this,'ulink');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="fmvisuer();selectWysiwyg(this,'ulink')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="table_gui" style="display:''"> <p><img src="{PATH_IMG_FA}wysiwyg/height.png" alt="{L_HEIGHT}" title="{L_HEIGHT}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox medium" id="table_gui_lines" maxlength="3" style="width:20px" title="{L_ROWS}" onkeypress="if (event.keyCode==13){ bbstyle_table();selectWysiwyg(this,'table_gui');return false}" /> x <img src="{PATH_IMG_FA}wysiwyg/width.png" alt="{L_WIDTH}" title="{L_WIDTH}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox medium" id="table_gui_cols" maxlength="3" style="width:20px" title="{L_COLS}" onkeypress="if (event.keyCode==13){ bbstyle_table();selectWysiwyg(this,'table_gui');return false}" /> <input type="button" class="button2" onclick="bbstyle_table();selectWysiwyg(this,'table_gui')" value="{L_OK}" /></p> <p style="text-align:center;display:''"> <button class="button2" onclick="bbstyle(54)" id="addbbcode54" onmouseover="helpline('tab')" type="button" id="addbbcode54" accesskey="" title="{L_BBCODE_TAB}"><img src="{PATH_IMG_FA}wysiwyg/table_add.png" alt="{L_BBCODE_TAB}" style="display:''" /></button> <button class="button2" onclick="bbstyle(58)" id="addbbcode58" onmouseover="helpline('tab')" type="button" id="addbbcode54" accesskey="" title="{L_BBCODE_TAB_ROW}"><img src="{PATH_IMG_FA}wysiwyg/table_row_insert.png" alt="{L_BBCODE_TAB_ROW}" style="display:''" /></button> <button class="button2" onclick="bbstyle(60)" id="addbbcode60" onmouseover="helpline('tab')" type="button" id="addbbcode54" accesskey="" title="{L_BBCODE_TAB_CELL}"><img src="{PATH_IMG_FA}wysiwyg/table_add_cell.png" alt="{L_BBCODE_TAB_CELL}" style="display:''" /></button> </p> </div> <div style="visibility:hidden" class="select" id="img"> <p><img src="{PATH_IMG_FA}wysiwyg/link.png" alt="{L_URL}" title="{L_URL}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="img_url" title="{L_URL}" onkeypress="if (event.keyCode==13){constructBBcode('img','','img_url');selectWysiwyg(this,'img');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="constructBBcode('img','','img_url');selectWysiwyg(this,'img')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="url"> <p><img src="{PATH_IMG_FA}wysiwyg/link.png" alt="{L_URL}" title="{L_URL}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="link_url" title="{L_URL}" onkeypress="if (event.keyCode==13){constructBBcode('url',new Array('link_url'),'name_url');selectWysiwyg(this,'url');return false}" /></p> <p><img src="{PATH_IMG_FA}wysiwyg/link_text.png" alt="{L_LABEL}" title="{L_LABEL}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="name_url" title="{L_LABEL}" onkeypress="if (event.keyCode==13){constructBBcode('url',new Array('link_url'),'name_url');selectWysiwyg(this,'url');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="constructBBcode('url',new Array('link_url'),'name_url');selectWysiwyg(this,'url')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="video"> <p style="text-align:center"><a href="http://youtube.com/" target="_blank"><img src="{PATH_IMG_FA}wysiwyg/logo_youtube.gif" alt="YouTube" title="YouTube" style="vertical-align:middle" />YouTube</a> <a href="http://www.dailymotion.com/" target="_blank"><img src="{PATH_IMG_FA}wysiwyg/dailymotion.gif" alt="Dailymotion" title="Dailymotion" style="vertical-align:middle" />Dailymotion</a> <a href="http://www.video.google.com/" target="_blank"><img src="{PATH_IMG_FA}wysiwyg/googlevideo.gif" alt="Google Video" title="Google Video" style="vertical-align:middle" />Google Video</a></p> <p id="inv_url" class="gensmall" style="text-align:center"></p> <p><img src="{PATH_IMG_FA}wysiwyg/link.png" alt="{L_URL}" title="{L_URL}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:300px" id="video_url" title="{L_URL}" onkeypress="if (event.keyCode==13){BBcodeVideo('video_url');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="BBcodeVideo('video_url')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="flash"> <p><img src="{PATH_IMG_FA}wysiwyg/width.png" alt="{L_WIDTH}" title="{L_WIDTH}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:25px" id="flash_width" title="{L_WIDTH}" onkeypress="if (event.keyCode==13){constructBBcode('flash',new Array('flash_width','flash_height'),'flash_url');selectWysiwyg(this,'flash');return false}" /> x <img src="{PATH_IMG_FA}wysiwyg/height.png" alt="{L_HEIGHT}" title="{L_HEIGHT}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:25px" id="flash_height" title="{L_HEIGHT}" onkeypress="if (event.keyCode==13){constructBBcode('flash',new Array('flash_width','flash_height'),'flash_url');selectWysiwyg(this,'flash');return false}" /> px</p> <p><img src="{PATH_IMG_FA}wysiwyg/link.png" alt="{L_URL}" title="{L_URL}" style="vertical-align:middle" /> <input type="text" autocomplete="off" class="inputbox" style="width:150px" id="flash_url" title="{L_URL}" onkeypress="if (event.keyCode==13){constructBBcode('flash',new Array('flash_width','flash_height'),'flash_url');selectWysiwyg(this,'flash');return false}" /></p> <p style="text-align:center"><input type="button" class="button2" onclick="constructBBcode('flash',new Array('flash_width','flash_height'),'flash_url');selectWysiwyg(this,'flash')" value="{L_OK}" /></p> </div> <div style="visibility:hidden" class="select" id="px"> <button style="font-size:7px" onclick="bbfontstyle('[size=7]','[/size]');selectWysiwyg(this,'px');return false">{L_FONT_TINY}</button><br /> <button style="font-size:9px" onclick="bbfontstyle('[size=9]','[/size]');selectWysiwyg(this,'px');return false">{L_FONT_SMALL}</button><br /> <button style="font-size:12px" onclick="bbfontstyle('[size=12]','[/size]');selectWysiwyg(this,'px');return false">{L_FONT_NORMAL}</button><br /> <button style="font-size:18px" onclick="bbfontstyle('[size=18]','[/size]');selectWysiwyg(this,'px');return false">{L_FONT_LARGE}</button><br /> <button style="font-size:24px" onclick="bbfontstyle('[size=24]','[/size]');selectWysiwyg(this,'px');return false">{L_FONT_HUGE}</button><br /> </div> <div style="visibility:hidden" class="select" id="servimg_upload_gui"></div> <div style="visibility:hidden" class="select" id="color"> <button style="color:darkred" onclick="bbfontstyle('[color=darkred]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_DARK_RED}</button><br /> <button style="color:red" onclick="bbfontstyle('[color=red]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_RED}</button><br /> <button style="color:orange" onclick="bbfontstyle('[color=orange]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_ORANGE}</button><br /> <button style="color:brown" onclick="bbfontstyle('[color=brown]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BROWN}</button><br /> <button style="color:yellow" onclick="bbfontstyle('[color=yellow]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_YELLOW}</button><br /> <button style="color:green" onclick="bbfontstyle('[color=green]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_GREEN}</button><br /> <button style="color:olive" onclick="bbfontstyle('[color=olive]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_OLIVE}</button><br /> <button style="color:cyan" onclick="bbfontstyle('[color=cyan]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_CYAN}</button><br /> <button style="color:blue" onclick="bbfontstyle('[color=blue]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BLUE}</button><br /> <button style="color:darkblue" onclick="bbfontstyle('[color=darkblue]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_DARK_BLUE}</button><br /> <button style="color:indigo" onclick="bbfontstyle('[color=indigo]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_INDIGO}</button><br /> <button style="color:violet" onclick="bbfontstyle('[color=violet]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_VIOLET}</button><br /> <button style="color:white" onclick="bbfontstyle('[color=white]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_WHITE}</button><br /> <button style="color:black" onclick="bbfontstyle('[color=black]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BLACK}</button><br /> </div> <div style="visibility:hidden" class="select" id="font"> <button style="font-family:Arial" onclick="bbfontstyle('[font=Arial]','[/font]');selectWysiwyg(this,'font');return false">Arial</button><br /> <button style="font-family:'Arial Black'" onclick="bbfontstyle('[font=Arial Black]','[/font]');selectWysiwyg(this,'font');return false">Arial Black</button><br /> <button style="font-family:'Comic Sans Ms'" onclick="bbfontstyle('[font=Comic Sans Ms]','[/font]');selectWysiwyg(this,'font');return false">Comic Sans Ms</button><br /> <button style="font-family:'Courier New'" onclick="bbfontstyle('[font=Courier New]','[/font]');selectWysiwyg(this,'font');return false">Courier New</button><br /> <button style="font-family:Georgia" onclick="bbfontstyle('[font=Georgia]','[/font]');selectWysiwyg(this,'font');return false">Georgia</button><br /> <button style="font-family:'Impact'" onclick="bbfontstyle('[font=Impact]','[/font]');selectWysiwyg(this,'font');return false">Impact</button><br /> <button style="font-family:'Times New Roman'" onclick="bbfontstyle('[font=Times New Roman]','[/font]');selectWysiwyg(this,'font');return false">Times New Roman</button><br /> <button style="font-family:'Trebuchet MS'" onclick="bbfontstyle('[font=Trebuchet MS]','[/font]');selectWysiwyg(this,'font');return false">Trebuchet MS</button><br /> <button style="font-family:Verdana" onclick="bbfontstyle('[font=Verdana]','[/font]');selectWysiwyg(this,'font');return false">Verdana</button><br /> <!-- BEGIN switch_specials_fonts --> {switch_specials_fonts.OTHERS_SPECIFICS_FONTS} <!-- END switch_specials_fonts --> </div> <!-- BEGIN switch_roll_dice_old --> <div style="visibility:hidden" class="select" id="dices"> <!-- BEGIN row_replace --> <button onclick="bbfontstyle('[roll="{switch_roll_dice_old.row_replace.DICE_NAME}"]','[/roll]');selectWysiwyg(this,'dices');return false">{switch_roll_dice_old.row_replace.DICE_NAME}</button><br /> <!-- END row_replace --> </div> <!-- END switch_roll_dice_old --> </div>
| |