<?php

//Defines variables
if (! $content )
	$content = 0;

if ($content == 0)
	$val0 = "selected";

if ($content == 1)
	$val1 = "selected";

if ($content == 2)
	$val2 = "selected";

if ($content == 3)
	$val3 = "selected";

//The upper part before the actualy page content
if (! $included ) {
echo "
<html>
<head>
<title>Posting Help</title>
<base target=_blank>
</head>
<body>
<p align=center><b><font size=4>Posting help</font></b>
<table border=1 width=600px cellpadding=2 bordercolor=#000000 cellspacing=0 align=center>
  <tr>
    <td width=100%>
      <table border=0 width=100% cellspacing=0 cellpadding=0>
        <tr>
          <td width=100% bgcolor=#DDDDDD align=center>
            <b>Select topic:</b>&nbsp; <select size=1 name=TopicChoice onchange=\"help()\">
              <option value=0 $val0>Main</option>
              <option value=1 $val1>HTML</option>
              <option value=2 $val2>Replaces</option>
              <option value=3 $val3>General</option>
            </select>
            <script>
            function help() {
            var selectedurl = \"help.php?content=\" + TopicChoice.value;
            window.location = selectedurl;
            }
            </script>
          </td>
        </tr>
        <tr>
          <td width=100% bgcolor=#F7F7F7>

<!-- The Page starts here -->

";
}

// Defines the Main page
if ($content == 0) {
	echo "
<p align=center>
<br><b>Welcome to posting news help</b>
<p>
Here you can learn certain things about posting news on RuneScape Hall. Remember that only certain people can post news here and currently the people are
<ul>
<li><a href=http://pub92.ezboard.com/urithiur.showPublicProfile?language=EN>Rithiur</a>
<li><a href=http://pub92.ezboard.com/brunescapehall.showLocalUserPublicProfile?login=kingjester>kingjester</a>
</ul>
<p>
We aren't hiring any new news posters right now, and if we do, we do it from the gold board.
<p>
If you are a news poster, please look trough all the help topics to know all you need to know about NewsPHP. If you have more questions or suggestions (for replaces), don't fear to email me at:
<a href=mailto:email@example.com>email@example.com</a>
";
}

// Defines the HTML page
if ($content == 1) {
	echo "
<p align=center>
<br><b>HTML help</b>
<p>
As you might know, HTML is allowed on news posts. Not everyone know HTML though, so here is small help for those who don't know it
<p>
Italics:<br>
To make text <i>Italic</i>, use following: &lt;I&gt;Italic&lt;/I&gt;
<p>
Bold:<br>
To make text <b>Bold</b>, use following: &lt;B&gt;Bold&lt;/B&gt;
<p>
Undelined:<br>
To make text <u>Undelined</u>, use following: &lt;U&gt;Underlined&lt;/U&gt;
<p>
Strike:<br>
To make text <s>striked</s>, use following: &lt;S&gt;Striked&lt;/S&gt;
<p>
Links:<br>
To make links. Use following (remember to include http:// in the URL, or it wont work:<br>
&lt;A HREF=&quot;http://www.myhost.com&quot;&gt;This is link&lt;/A&gt;, that would print like:
<A HREF=\"http://www.myhost.com\">This is link</A>

";
}

// Defines the Replaces page
if ($content == 2) {
	echo "
<p align=center>
<br><b>The replaces on news</b>
<p>
There are certain things that are called replaces on the newsPHP. These replaces can replace certain text in your news box. In this page is displayed all the replaces on this newsphp.
<p>
<table border=1 cellpadding=1 cellspacing=0>
<tr valign=top><td><b>Replace:</b></td><td><b>Replace with:</b></td></tr>
<tr valign=top><td>runescapetips</td><td>&lt;a href=http://www.tip.it/runescape target=_blank&gt;RuneScape Tips&lt;/a&gt;</td></tr>
<tr valign=top><td>runescapenews</td><td>&lt;a href=http://runescape.webpunch.net/ target=_blank&gt;Rune News&lt;/a&gt;</td></tr>
<tr valign=top><td>ngrunescape</td><td>&lt;a href=http://www.geocities.com/ngrunescape/ target=_blank&gt;NG RuneScape&lt;/a&gt;</td></tr>
<tr valign=top><td>runescapehelp</td><td>&lt;a href=http://www.zybez.com/ target=_blank&gt;RuneScape Help&lt;/a&gt;</td></tr>
<tr valign=top><td>runescapehome</td><td>&lt;a href=http://www.runescape.com/runescape.html target=_blank&gt;RuneScape Homepage&lt;/a&gt;</td></tr>
<tr valign=top><td></td><td></td></tr>
</table>
If you have more replaces in your mind and would like them to be entered here, just email me to
<a href=mailto:email@example.com>email@example.com</a>
";
}

// Defines the Genaral page
if ($content == 3) {
	echo "
<p align=center>
<br><b>Some general help</b>
<p>
Always after posting news you must click on the \"Output News\" link to make the news appear on the news page.
<p>
You should always divide your newsposts into chapters if the post is long. And when you divide them into chapters, you should always hit 2 enters, and not one. This is not much, but looks better.
<p>
Always check your news post for typing errors and other bad grammar, because text with lots of error is hard to read.
";
}

//The HTML part after the actualy page
if (! $included ) {
	echo "

<!-- The Page ends here -->

		</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>";
}

?>
