| Current Path : /home/bolconlineco/public_html/aaaaaa/demo/coordinator/ |
| Current File : /home/bolconlineco/public_html/aaaaaa/demo/coordinator/topic_reply.php |
<?php
ob_start();
session_start();
?>
<?php include('includes/header.php'); ?>
<?php
if(!isset($_SESSION['coordinator']) || $_SESSION['coordinatorrole'] != 2)
{
header("location:../index.php");
exit();
}
?>
<script language="javascript" src="includes/jquery.js"></script>
<div id="content">
<div id="frm" style="width:885px">
<h2> Forum Managments</h2>
<?php
if(isset($_GET['fid']))
{
$id= $_GET['fid'];
}
?>
<form action="" method="post" >
<ul class="col" style="width:800px" >
<li>
<label for="newpassword" style="float:none">Description</label>
<textarea class="ckeditor" name="description" id="description" rows="10" cols="50"></textarea>
</li>
<li>
<label for="newpassword" style="float:none">Status</label>
<select name="status">
<option value="1">Enable</option>
<option value="0">Disable</option>
</select>
</li>
<li>
<div id="btn">
<input class="add2" type="submit" name="submit" value="Add " />
</div>
</li>
</ul>
</form>
</div>
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php
if(isset($_POST['submit']))
{
$description = $_POST['description'];
$status = $_POST['status'];
$date=date('Y-m-d');
$query = "insert into tbl_reply values ('','$id','$description','$fullname','$date','$status')";
$result=mysql_query($query) or die(mysql_error());
header("location:forum_reply.php?fid=$id");
exit();
}
?>
<?php include('../includes/footer.php');?>
<script>
CKEDITOR.replace( 'description',
{
filebrowserBrowseUrl : '<?php echo $url;?>combine/cms/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : '<?php echo $url;?>combine/cms/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : '<?php echo $url;?>combine/cms/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : '<?php echo $url;?>combine/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : '<?php echo $url;?>combine/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : '<?php echo $url;?>combine/cms/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
</script>