| 
								
							 | 
							
								<? require_once('./templates/overall_header.tpl.php'); ?>
							 | 
						
						
						
							| 
								
							 | 
							
								<script type="text/javascript" src="templates/scripts/posting.js">
							 | 
						
						
						
							| 
								
							 | 
							
								</script>
							 | 
						
						
						
							| 
								
							 | 
							
									<div id="content">
							 | 
						
						
						
							| 
								
							 | 
							
										<? if ($this->TPL['error_msg'] != '') { ?>
							 | 
						
						
						
							| 
								
							 | 
							
										<div class="error_form">
							 | 
						
						
						
							| 
								
							 | 
							
											<?= $this->TPL['error_msg']; ?>
							 | 
						
						
						
							| 
								
							 | 
							
										</div>
							 | 
						
						
						
							| 
								
							 | 
							
										<? } ?>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
										<? if (isset($this->TPL['preview']))  { ?>
							 | 
						
						
						
							| 
								
							 | 
							
										<div class="forum_table">
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="hc1 hc4">Post preview</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 post_content tc4" style="height: 150px">
							 | 
						
						
						
							| 
								
							 | 
							
													<?= BBCode($this->TPL['preview']); ?>
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										</div>
							 | 
						
						
						
							| 
								
							 | 
							
										<br>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
										<? } ?>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
										<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
							 | 
						
						
						
							| 
								
							 | 
							
										<? if (isset($this->TPL['topic']))  { ?>
							 | 
						
						
						
							| 
								
							 | 
							
										<div class="forum_table">
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="hc1">Topic information</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="hc4"> </div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 lc">
							 | 
						
						
						
							| 
								
							 | 
							
													Title:
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc4 rc">
							 | 
						
						
						
							| 
								
							 | 
							
													<input type="text" maxlength="100" name="topic" id="topic" value="<?= $this->TPL['topic']; ?>" required pattern=".{3,}" required title="3 characters minimum" style="width: 490px"> 
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										</div>
							 | 
						
						
						
							| 
								
							 | 
							
										<br>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
										<? } ?>
							 | 
						
						
						
							| 
								
							 | 
							
										<div class="forum_table">
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="hc1">Post information</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="hc4"> </div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 tc2">
							 | 
						
						
						
							| 
								
							 | 
							
													Emoticons:
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc4 rc">
							 | 
						
						
						
							| 
								
							 | 
							
													<p id="js_msg" style="color: red; font-weight: bold">
							 | 
						
						
						
							| 
								
							 | 
							
														Turn on JavaScript to enable BBCode and emoticons buttons.
							 | 
						
						
						
							| 
								
							 | 
							
													</p> 
							 | 
						
						
						
							| 
								
							 | 
							
													<div id="bbcode_buttons" style="display:none">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" style="font-weight: bold" onClick="bbTag(0)" value="B">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" style="font-style: italic"onClick="bbTag(2)" value="I">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" style="text-decoration: underline"onClick="bbTag(4)" value="U">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" style="text-decoration: line-through" onClick="bbTag(6)" value="S">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(8)" value="URL">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(10)" value="Center">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(12)" value="Quote">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(14)" value="Code">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(16)" value="List">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="button" onClick="bbTag(18)" value="Color">
							 | 
						
						
						
							| 
								
							 | 
							
														 <input type="color" id="text_color">
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 tc2">
							 | 
						
						
						
							| 
								
							 | 
							
													<div id="emoticons_buttons" style="display: none">
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/smile.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':)')"  alt=":)"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/cry.png" onmouseover="this.style.cursor='hand';" onclick="insertSmile(';(')"  alt=";("> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/sad.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':(')"  alt=":("> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/curve.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':curve:')"  alt=":/"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<br>
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/neutral.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':|')"  alt=":|"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/lol.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':lol:')"  alt=":lol:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/wink.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(';)')"  alt=";)"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/cool.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':cool:')"  alt=":cool:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<br>
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/exclaim.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':!:')"  alt=":!:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/tongue.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':P')"  alt=":P"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/roll.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':roll:')" alt=":roll:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/big_smile.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':D')" alt=":>"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<br>
							 | 
						
						
						
							| 
								
							 | 
							
								
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/evil.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':evil:')" alt=":evil:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/yikes.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':o')" alt=":o"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/mad.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':mad:')" alt=":mad:"> 
							 | 
						
						
						
							| 
								
							 | 
							
														<img src="images/smiles/redface.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':redface:')" alt=":redface:"> 
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc4 rc">
							 | 
						
						
						
							| 
								
							 | 
							
													<textarea name="post" id="post" maxlength="5000" required title="3 characters minimum"><?= $this->TPL['post']; ?></textarea>
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 lc">
							 | 
						
						
						
							| 
								
							 | 
							
													 
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc4 rc">
							 | 
						
						
						
							| 
								
							 | 
							
													<input type="reset" value="Reset">
							 | 
						
						
						
							| 
								
							 | 
							
													<input type="submit" name="preview" value="Preview">
							 | 
						
						
						
							| 
								
							 | 
							
													<input type="submit" value="Submit">
							 | 
						
						
						
							| 
								
							 | 
							
												</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										</div>
							 | 
						
						
						
							| 
								
							 | 
							
										
							 | 
						
						
						
							| 
								
							 | 
							
										</form>
							 | 
						
						
						
							| 
								
							 | 
							
									</div>
							 | 
						
						
						
							| 
								
							 | 
							
									<script type="text/javascript">
							 | 
						
						
						
							| 
								
							 | 
							
									document.getElementById('js_msg').style.display = 'none';
							 | 
						
						
						
							| 
								
							 | 
							
									document.getElementById('bbcode_buttons').style.display = 'block';
							 | 
						
						
						
							| 
								
							 | 
							
									document.getElementById('emoticons_buttons').style.display = 'block';
							 | 
						
						
						
							| 
								
							 | 
							
									</script>
							 | 
						
						
						
							| 
								
							 | 
							
								<? require_once('./templates/overall_footer.tpl.php'); ?>
							 |