📄 post.php
字号:
</td> <td class='row2'> <input type='text' name='ptitle' value='{$title}' class='form_textbox' tabindex='1' /> </td> </tr> <tr> <td class='row1'> <strong>{$icebb->lang['t_desc']}</strong> </td> <td class='row2'> <input type='text' name='pdesc' value='{$desc}' class='form_textbox' tabindex='2' /> <!--input type='checkbox' name='eltagso' value='1' onclick="_toggle_view('tagsentry')" /> <label><strong>Tags?</strong></label--> </td> <tr> <td class='row1' width='20%'> <strong>{$icebb->lang['t_tags']}</strong><br /> <em>{$icebb->lang['sep_with_space']}</em> </td> <td class='row2'> <input type='text' name='tags' value='{$tags}' class='form_textbox' tabindex='3' /> </td> </tr> <tr> <td class='row1'> <strong>Topic Icons</strong> </td> <td class='row2'> {$icons} </td> </tr>EOF;return $code;}function quick_edit_form($security_key,$pid,$ptext){global $icebb;$code .= <<<EOF<form action='{$icebb->base_url}' method='post' name='quick_edit_form_{$pid}' onsubmit="return quick_edit_save('{$pid}')"><input type='hidden' name='act' value='post' /><input type='hidden' name='edit' value='{$pid}' /><input type='hidden' name='security_key' value='{$security_key}' /><div class='quick_edit_form'> <div class='textentry-small'> <textarea id='postbox' name='post' rows='5' cols='50' class='form_textarea' style='width:100%'>{$ptext}</textarea> </div> <div style='float:left;position:relative'> <a href='{$icebb->base_url}act=post&edit={$pid}'>{$icebb->lang['go_adv']}</a> </div> <div style='text-align:right'> <input type='button' name='submit' value="{$icebb->lang['save']}" class='form_button default' onclick="return quick_edit_save('{$pid}','{$security_key}')" /> <input type='button' name='cancel' value="{$icebb->lang['cancel']}" class='form_button' onclick="return quick_edit_cancel('{$pid}')" /> </div></div></form>EOF;return $code;}function word_verification($captcha_code){global $icebb;$code .= <<<EOF <h2>{$icebb->lang['word_verification']}</h2> <div class='Subtitle'>{$icebb->lang['word_verification_desc']} (<a href='#' onclick="document.captcha_img.src='index.php?act=login&func=captcha&s={$captcha_code}&redraw='+Math.random();return false" title="{$icebb->lang['word_verification_link']}">+</a>)</div> <table width='100%' cellpadding='2' cellspacing='1'> <tr> <td class='row2' style='text-align:center'> <img src='index.php?act=login&func=captcha&s={$captcha_code}' name='captcha_img' alt='' /> </td> </tr> <tr> <td class='row1' style='text-align:center'> <input type='hidden' name='captcha_code' value='{$captcha_code}' /> <input type='text' name='captcha_word' id='captchaword' value='' class='form_textbox' style='margin-top:2px' /> </td> </tr> </table>EOF;return $code;}function post_attach_form(){global $icebb;if(!empty($icebb->input['forum'])){ $appende = "forum={$icebb->input['forum']}";}else if(!empty($icebb->input['topic'])){ $appende = "topic={$icebb->input['topic']}";}else if(!empty($icebb->input['reply'])){ $appende = "reply={$icebb->input['reply']}";}else { $appende = "edit={$icebb->input['edit']}";}$code .= <<<EOF<tr> <td class='row3' style='font-weight:bold' colspan='2'> {$icebb->lang['attach']} </td></tr><tr> <td colspan='2' style='padding:0px'> <iframe src='{$icebb->base_url}act=post&func=upload_form&{$appende}' id='upload_iframe' frameborder='0' style='border:0px;width:100%;height:150px;background:transparent;margin:0px' allowtransparency='true'> <table width='100%' cellpadding='3' cellspacing='1'> <tr> <td class='row2'> {$icebb->lang['current_up']} </td> <td width='40%' class='row2'> {$icebb->lang['up_attach']} </td> </tr> <tr> <td valign='top' class='row1' id='uploadblock'> <#MY_UPLOADS#> </td> <td valign='top' class='row1'> <label><strong>{$icebb->lang['from_file']}</strong> <input type='file' name='file' class='form_textbox' /></label><br /> <label><strong>{$icebb->lang['from_url']}</strong> <input type='text' name='upload_url' value='http://' class='form_textbox' /></label><br /> <input type='submit' name='upload' value="{$icebb->lang['upload']}" class='form_button' /> </td> </tr> </table> </iframe> </td></tr>EOF;return $code;}function post_attach_form_iframe($current_uploads='',$extra_js=''){global $icebb;if(!empty($icebb->input['forum'])){ $appende = "<input type='hidden' name='forum' value='{$icebb->input['forum']}' />";}else if(!empty($icebb->input['topic'])){ $appende = "<input type='hidden' name='topic' value='{$icebb->input['topic']}' />";}else if(!empty($icebb->input['edit'])){ $appende = "<input type='hidden' name='edit' value='{$icebb->input['edit']}' />";}else { $appende = "<input type='hidden' name='reply' value='{$icebb->input['reply']}' />";}$code .= <<<EOF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>upload form</title><link rel='stylesheet' type='text/css' href='skins/<#SKIN#>/css.css' /><style type='text/css'>body { margin:0px !important;text-align:left }</style><script type='text/javascript' src='jscripts/prototype/prototype.js'></script><script type='text/javascript' src='jscripts/scriptaculous/scriptaculous.js'></script><script type='text/javascript' src='jscripts/global.js'></script><script type='text/javascript'>icebb_base_url='{$icebb->base_url}';icebb_sessid='{$icebb->input['s']}';function smiley(att){ return window.parent.smiley(att);}function form_submit(){ document.uploadFrm.upload.disabled= true; document.uploadFrm.upload.value= "{$icebb->lang['uploading']}"; return true;}window.onload = function(){ window.parent.document.getElementById('upload_iframe').style.height= document.body.offsetHeight+'px';}</script>{$extra_js}</head><body><table width='100%' cellpadding='3' cellspacing='1'> <tr> <td class='row2'> {$icebb->lang['current_up']} </td> <td width='40%' class='row2'> {$icebb->lang['up_attach']} </td> </tr> <tr> <td valign='top' class='row1' id='uploadblock'> {$current_uploads} </td> <td valign='top' class='row1'> <form action='{$icebb->base_url}' method='post' enctype='multipart/form-data' name='uploadFrm'><!-- onsubmit='return form_submit()'--> <input type='hidden' name='act' value='post' /> <input type='hidden' name='func' value='upload_form' /> {$appende} <label><strong>{$icebb->lang['from_file']}</strong> <input type='file' name='file' class='form_textbox' /></label><br /> <label><strong>{$icebb->lang['from_url']}</strong> <input type='text' name='upload_url' value='http://' class='form_textbox' /></label><br /> <input type='submit' name='upload' value="{$icebb->lang['upload']}" class='form_button' /> </form> </td> </tr></table></body></html> EOF;return $code;}function post_attach_attachment($attachment){global $icebb;$code .= <<<EOF<a href='javascript:smiley("[attachment={$attachment['uid']}]")'>{$attachment['uname']}</a><br />EOF;return $code;}function post_attach_link(){global $icebb;$code .= <<<EOFEOF;return $code;}function post_attach_poll_form(){global $icebb;$code .= <<<EOF <div id='poll_form' style='display:none'> <table width='100%' cellpadding='3' cellspacing='1'> <tr> <td style='width:12%' class='row1'> <strong>Question:</strong> </td> <td class='row1'> <input type='text' name='pollq' value='' class='form_input' /> </td> </tr> <tr> <td style='width:12%' class='row1'> <strong>Type:</strong> </td> <td class='row1'> <input type='radio' name='polltype' value='1' class='form_input' id='ptype1' checked='checked' /><label for='ptype1'> Single</label> <input type='radio' name='polltype' value='2' class='form_input' id='ptype2' /><label for='ptype2'> Multi</label> </td> </tr> EOF;for($i=1;$i<=10;$i++){$ch = sprintf($icebb->lang['p_choice'],$i);$code .= <<<EOF <tr> <td style='width:12%' class='row1'> <strong>{$ch}</strong> </td> <td class='row1'> <input type='text' name='pollc[{$i}]' value='' class='form_input' /> </td> </tr>EOF;}$code .= <<<EOF </table> </div> </td></tr>EOF;return $code;}function post_attach_poll_link(){global $icebb;$code .= <<<EOF<tr> <td colspan='2' class='row3' style='font-weight:bold'> <label><input type='checkbox' value='1' onclick="if(this.checked) { _getbyid('poll_form').style.display=''; } else { _getbyid('poll_form').style.display='none'; }" />{$icebb->lang['p_attach']}</label> </td></tr><tr> <td colspan='2' class='row2' style='padding:0px'>EOF;return $code;}// NOT CURRENTLY USED, however feel free to use them in your skinfunction boardrules_line(){global $icebb;$code .= <<<EOF<tr><td colspan='2'><div class='border lightpadded' style='text-align:center;margin:2px 2px'>This post must follow the <a href='{$icebb->base_url}act=boardrules'>board rules</a>.<!--FORUM_RULES--></div></td></tr>EOF;return $code;}function forumrules_line($f){global $icebb;$code .= <<<EOF This forum also has some extra <a href='{$icebb->base_url}forum={$f['fid']}&rules=1'>rules</a> you should follow.EOF;return $code;}}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -