mirror of
https://github.com/jakejarvis/jbb.git
synced 2025-04-26 06:45:22 -04:00
148 lines
5.6 KiB
PHP
Executable File
148 lines
5.6 KiB
PHP
Executable File
<SCRIPT type="text/javascript">
|
|
|
|
function make_bold() {var bold_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [b]" + bold_text + "[/b]";}
|
|
|
|
|
|
function make_underlined() {var u_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [u]" + u_text + "[/u]";}
|
|
|
|
|
|
function make_italics() {var italic_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [i]" + italic_text + "[/i]";}
|
|
|
|
|
|
function make_strikethrough() {var s_text = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [s]" + s_text + "[/s]";}
|
|
|
|
|
|
function make_link() {var link = prompt ("Insert the URL of the website that you would like to link to below.","Type it here");
|
|
var link_text = prompt ("Insert the text that you would like to have displayed as a link below.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [URL=" + link + ":]" + link_text + "[/URL]";}
|
|
|
|
function fontcolor() {var colortext = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
var color = prompt ("Insert the color that you would like the text to be.","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [FONT COLOR=" + color + ":]" + colortext + "[/FONT]";}
|
|
|
|
function fontsize() {var sizetext = prompt ("Insert the text that you want to be formatted below.","Type it here");
|
|
var size = prompt ("Insert the size that you would like the text to be (-3, -2, -1, +1, +2, or +3 (+3 being the largest, -3 being the smallest)).","Type it here");
|
|
javascript:new_topic.firstPost.value+=" [FONT SIZE=" + size + ":]" + sizetext + "[/FONT]";}
|
|
|
|
</SCRIPT>
|
|
|
|
<?php
|
|
if ($ck_userID == "") {
|
|
echo "<B>You cannot post</B> for one of several reasons. You need to login before posting. Please do so below. If you are logged in, then you may not have permission to post in this forum.";
|
|
} else {
|
|
echo "
|
|
<FORM ACTION=\"index.php?act=new_topic_submit&forumID=$forumID\" METHOD=\"post\" NAME=\"new_topic\">
|
|
<TABLE WIDTH=\"80%\">
|
|
<TR>
|
|
<TD>New Topic Title:</TD>
|
|
|
|
<TD><INPUT TYPE=\"text\" NAME=\"subject\" SIZE=\"40\">
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD>New Topic Description:</TD>
|
|
|
|
<TD><INPUT TYPE=\"text\" NAME=\"desc\" SIZE=\"40\">
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD COLSPAN=\"2\" ALIGN=\"center\">
|
|
|
|
|
|
<INPUT type=\"button\" style=\"font-weight:bold;\" value=\" B \" onClick=\"make_bold();\">
|
|
<INPUT type=\"button\" style=\"font-style:oblique;\" value=\" I \" onClick=\"make_italics();\">
|
|
<INPUT type=\"button\" style=\"text-decoration:underline;\" value=\" U \" onClick=\"make_underlined();\">
|
|
<INPUT type=\"button\" value=\" S \" onClick=\"make_strikethrough();\">
|
|
<INPUT type=\"button\" value=\" URL \" onClick=\"make_link();\">
|
|
<INPUT type=\"button\" value=\" FONT COLOR \" onClick=\"fontcolor();\">
|
|
<INPUT type=\"button\" value=\" FONT SIZE \" onClick=\"fontsize();\">
|
|
|
|
|
|
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD ALIGN=\"center\" VALIGN=\"top\">
|
|
<BR>
|
|
<TABLE CELLSPACING=\"10\">
|
|
<TR>
|
|
<TD COLSPAN=\"3\" ALIGN=\"center\">
|
|
<B>Emoticons</B>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :)';\"><img src=\"images/emoticons/smile.gif\" BORDER=\"0\"></a>
|
|
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :D';\"><img src=\"images/emoticons/bigsmile.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :(';\"><img src=\"images/emoticons/frown.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD ALIGN=\"center\"><a onclick=\"javascript:new_topic.firstPost.value+=' :crying:';\"><img src=\"images/emoticons/crying.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :blush:';\"><img src=\"images/emoticons/blush.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :?';\"><img src=\"images/emoticons/confused.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' B)';\"><img src=\"images/emoticons/cool.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :O';\"><img src=\"images/emoticons/surprised.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :P';\"><img src=\"images/emoticons/tongue.gif\" BORDER=\"0\"></a>
|
|
</TD></TR>
|
|
<TR>
|
|
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :angel:';\"><img src=\"images/emoticons/innocent.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' ;)';\"><img src=\"images/emoticons/wink.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
<TD ALIGN=\"center\">
|
|
<a onclick=\"javascript:new_topic.firstPost.value+=' :0';\"><img src=\"images/emoticons/whoa.gif\" BORDER=\"0\"></a>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
|
|
<TD>
|
|
<TEXTAREA ROWS=\"15\" COLS=\"70\" NAME=\"firstPost\"></TEXTAREA>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD COLSPAN=\"2\" ALIGN=\"center\">
|
|
<BR><BR><CENTER><INPUT TYPE=\"submit\" VALUE=\"Post New Topic\"><INPUT TYPE=\"hidden\" NAME=\"forumID\" VALUE=\"$forumID\"></CENTER>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
</FORM>";
|
|
}
|