<?php 
	session_start();
	include ('../config.php');
	include ('secureadmin.php');
				
	$articleid = $_GET['id'];
	
	$query = "select * from articles where id = ".$articleid.";"; 
	$result = mysql_query($query,$connection) or die(mysql_error());
	$info = mysql_fetch_assoc($result);
	// get this category's information
	$title = $info['title'];
	$problem = $info['problem'];

	$metatitle = "Problem Article - Admin Control Panel";
	include ('includes/document_head.php');
		
?>
		<div id="wrapper">
			<?php include 'includes/topbar.php'?>		
			<?php include 'includes/sidebar.php'?>
			<div class="main_container container_16 clearfix">
				
					
			<div class="flat_area grid_16">
			
			
		
	<div class="box grid_16 round_all">
		<div class="block">
			<h2>Problem for Article: '<?php echo $title; ?>'</h2>
					
	<p>When marking an article to "problem" status, you must provide the author with a reason so that <br/>they can make suggested changes. Note: keep reasons short and to the point for best results.</p><br/>
	
	<form style="padding-left: 15px;" name="submission" method="POST" action="articleproblem.php">

	<b>Enter Reason(s) for problem:</b><br/>
	<textarea id="problem" name="problem" style="width:380px; height: 120px;"><?php echo $problem; ?></textarea>
		
	<br/>
	<input name="markproblem" type="hidden" id="markproblem" />
	
	<input name="articleid" type="hidden" value="<?php echo $articleid; ?>" />
		
	<button type="submit" id="submitstyle" name="save" class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="images/icons/small/white/Bended Arrow Right.png"><span>Mark Problem</span></button>

</form>

	
			</div>
		</div>


		

	</div>
	
		
			
		</div>	
<?php include 'includes/closing_items.php'?>