| 
								
							 | 
							
								<? require_once('./templates/admin/overall_header.tpl.php'); ?>
							 | 
						
						
						
							| 
								
							 | 
							
									<div id="content">
							 | 
						
						
						
							| 
								
							 | 
							
										<br>
							 | 
						
						
						
							| 
								
							 | 
							
										<a href="index.php?mode=admin&submode=addcat" class="btn" style="width: 130px; float: left">New Category</a>
							 | 
						
						
						
							| 
								
							 | 
							
										<a href="index.php?mode=admin&submode=addforum" class="btn" style="width: 130px; float: right">New Forum</a>
							 | 
						
						
						
							| 
								
							 | 
							
										<div style="clear: both"> </div>
							 | 
						
						
						
							| 
								
							 | 
							
										<? 
							 | 
						
						
						
							| 
								
							 | 
							
										for ($i=0; $i<count($this->TPL['forums_list']); $i++)
							 | 
						
						
						
							| 
								
							 | 
							
										{
							 | 
						
						
						
							| 
								
							 | 
							
											if ($i > 0)
							 | 
						
						
						
							| 
								
							 | 
							
											{
							 | 
						
						
						
							| 
								
							 | 
							
												if ($this->TPL['forums_list'][$i-1]['category_id'] != $this->TPL['forums_list'][$i]['category_id'])
							 | 
						
						
						
							| 
								
							 | 
							
													echo '</div><br><div class="forum_table">
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc1">'.$this->TPL['forums_list'][$i]['category_name'].'</div>
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc2 hcpost" style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
														<a href="index.php?mode=admin&submode=edcat&id='.$this->TPL['forums_list'][$i]['category_id'].'">
							 | 
						
						
						
							| 
								
							 | 
							
															Edit »
							 | 
						
						
						
							| 
								
							 | 
							
														</a>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc4 hcpost" style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
														<a href="index.php?mode=admin&submode=delcat&id='.$this->TPL['forums_list'][$i]['category_id'].'">
							 | 
						
						
						
							| 
								
							 | 
							
															Delete »
							 | 
						
						
						
							| 
								
							 | 
							
														</a>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>';
							 | 
						
						
						
							| 
								
							 | 
							
											}
							 | 
						
						
						
							| 
								
							 | 
							
											else
							 | 
						
						
						
							| 
								
							 | 
							
											{
							 | 
						
						
						
							| 
								
							 | 
							
												echo '<div class="forum_table">
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc1">'.$this->TPL['forums_list'][$i]['category_name'].'</div>
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc2 hcpost" style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
														<a href="index.php?mode=admin&submode=edcat&id='.$this->TPL['forums_list'][$i]['category_id'].'">
							 | 
						
						
						
							| 
								
							 | 
							
															Edit »
							 | 
						
						
						
							| 
								
							 | 
							
														</a>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
													<div class="hc4 hcpost" style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
														<a href="index.php?mode=admin&submode=delcat&id='.$this->TPL['forums_list'][$i]['category_id'].'">
							 | 
						
						
						
							| 
								
							 | 
							
															Delete »
							 | 
						
						
						
							| 
								
							 | 
							
														</a>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>
							 | 
						
						
						
							| 
								
							 | 
							
													</div>';
							 | 
						
						
						
							| 
								
							 | 
							
											}
							 | 
						
						
						
							| 
								
							 | 
							
											if ($this->TPL['forums_list'][$i]['forum_id'] != null)
							 | 
						
						
						
							| 
								
							 | 
							
											{
							 | 
						
						
						
							| 
								
							 | 
							
												echo '<div class="row">'."\n";
							 | 
						
						
						
							| 
								
							 | 
							
												echo "\t\t\t".'<div class="tc1">
							 | 
						
						
						
							| 
								
							 | 
							
															<span class="sect">'.$this->TPL['forums_list'][$i]['forum_name'].'</span><br>
							 | 
						
						
						
							| 
								
							 | 
							
															<span class="fsmall">'.$this->TPL['forums_list'][$i]['forum_desc'].'</span></div>'."\n";
							 | 
						
						
						
							| 
								
							 | 
							
												echo "\t\t\t".'<div class="tc2"  style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
															<a href="index.php?mode=admin&submode=edforum&id='.$this->TPL['forums_list'][$i]['forum_id'].'" class="btn_small">Edit</a>
							 | 
						
						
						
							| 
								
							 | 
							
														</div>'."\n";
							 | 
						
						
						
							| 
								
							 | 
							
												echo "\t\t\t".'<div class="tc4" style="width: 70px">
							 | 
						
						
						
							| 
								
							 | 
							
															<a href="index.php?mode=admin&submode=delforum&id='.$this->TPL['forums_list'][$i]['forum_id'].'" class="btn_small">Delete</a>
							 | 
						
						
						
							| 
								
							 | 
							
															</div>'."\n";
							 | 
						
						
						
							| 
								
							 | 
							
												echo "\t\t".'</div>'."\n";
							 | 
						
						
						
							| 
								
							 | 
							
											}
							 | 
						
						
						
							| 
								
							 | 
							
											else
							 | 
						
						
						
							| 
								
							 | 
							
											{
							 | 
						
						
						
							| 
								
							 | 
							
												echo '<div class="rcol">No forums in this category.</div>';
							 | 
						
						
						
							| 
								
							 | 
							
											}
							 | 
						
						
						
							| 
								
							 | 
							
										}
							 | 
						
						
						
							| 
								
							 | 
							
										?>
							 | 
						
						
						
							| 
								
							 | 
							
										<? if (count($this->TPL['forums_list']) > 0) echo '</div>'; ?>
							 | 
						
						
						
							| 
								
							 | 
							
										<br>
							 | 
						
						
						
							| 
								
							 | 
							
									</div>
							 | 
						
						
						
							| 
								
							 | 
							
									
							 | 
						
						
						
							| 
								
							 | 
							
								<? require_once('./templates/overall_footer.tpl.php'); ?>
							 |