| Current Path : /home/bolconlineco/public_html/aaaaaa/coordinator/ |
| Current File : /home/bolconlineco/public_html/aaaaaa/coordinator/forum.php |
<?php
ob_start();
session_start();
include('includes/header.php'); ?>
<script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css">
<script type="text/javascript">
var $jq = jQuery.noConflict();
</script>
<?php
if(!isset($_SESSION['coordinator']) || $_SESSION['coordinatorrole'] != 2)
{
header("location:../index.php");
exit();
} ?>
<script language="javascript" src="includes/jquery.js"></script>
<script>
$(document).ready(function() {
$('.uppers h4').click(function() {
$(this).next('.answer').slideToggle(500);
$(this).toggleClass('close');
});
$('#ch').click(function(){
if(this.checked)
{
$("input[name='check[]']").each(function(){
this.checked=true;
});
}
else
{
$("input[name='check[]']").each(function(){
this.checked=false;
});
}
})
}); // end ready
</script>
<h3 class="page-title">Forum</h3>
<ul class="page-breadcrumb breadcrumb">
<li><i class="fa fa-home"></i> <a href="dashbord.php"> Home </a> <i class="fa fa-angle-right"></i> </li>
<li class="active">Forum</li>
</ul>
<?php if(isset($_GET['msg'])) { ?>
<div class="btn btn-success">Deleted Successfully</div>
<?php } if(isset($_GET['msgs'])){ ?>
<div class="btn btn-success">Inserted Successfully</div>
<?php } ?>
<div class="row clearfix">
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div class="portlet box blue">
<div class="portlet-title clearfix" style="padding-bottom: 13px;">
<div class="col-sm-6">
<div class="caption" style="font-size: 16px;"> <i class="fa fa-globe"></i>Forum Management</div>
</div>
<div class="col-sm-6"><a href="add_topic.php" style="float: Right;margin-right: 10px; color: #fff;">Add Topic</a></div>
</div>
<div class="portlet-body clearfix">
<div class="col-sm-6 col-sm-offset-2 clearfix" style="margin-bottom: 12px;">
<form action="" method="post" style="margin-left: class=form-horizental">
<select name="course" class="cstat form-control" id="ct">
<option value="">-- SELECT --</option>
<?php
$query="select courseId,courseName from course ";
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result))
{ ?>
<option value="<?php echo $row['courseId']; ?>"><?php echo $row['courseName'];?></option>
<?php } ?>
</select>
</form>
</div>
<div id="forum"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php
/*
if(isset($_POST['Delete']))
{
$check=$_POST['check'];
print_r($check);
exit();
foreach($check as $id)
{
$qq = "delete from tbl_reply where topic_Id='$id'";
$qq = mysql_query($qq) or die(mysql_error());
$query = "delete from tbl_forum where id='$id'";
mysql_query($query) or die(mysql_error());
header("location:forum.php?msg");
exit();
}
}
*/
?>
<script>
$("document").ready(function(){
var target=$("#forum");
$("#ct").change(function(){
var val=$(this).val();
if(val=="")
{
}
else
{
$.post('gt.php',{id:val},function(data){
target.html(data);
})
}
});
})
</script>
<?php include('../includes/footer.php');?>