GOOGLE

aku nok ndi : /home/astwardha/public_html/admin/
File Up :
aku nok ndi : /home/astwardha/public_html/admin/manage_syllabus.php

<?php include("header.php");?>
		<!-- start: Header -->
	<div class="navbar">
		<div class="navbar-inner">
			<?php include("top_header.php");?>
		</div>
	</div>
		<div class="">
		<div class="row-fluid">
			<?php include("sidebar.php");?>
			<div id="content" class="span10">
			<ul class="breadcrumb">
				<li>
					<i class="icon-home"></i>
					<a href="dashboard.php">Home</a> 
					<i class="icon-angle-right"></i>
				</li>
				<li><a href="#">Syllabus</a></li>
			</ul>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon user"></i><span class="break">Manage Syllabus</span></h2>
						<div class="box-icon">
							<a href="#" class="btn-setting"><i class="halflings-icon wrench"></i></a>
							<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
							<a href="#" class="btn-close"><i class="halflings-icon remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>Sr.No</th>
								  <th>Heading</th>
								  <th>Department</th>
								  <th>Content</th>
								  <th>Hide / Show</th>
								  <th>Image / PDF</th>
								  <th>Actions</th>
							  </tr>
						  </thead>   
						  <tbody>
						  <?php $sql = mysql_query("SELECT * FROM `syllabus` ORDER BY id DESC");
						  $i=1;
						  		while($row = mysql_fetch_array($sql)){?>
							<tr>
								<td><?php echo $i;?></td>
								<td><?php echo $row['heading'];?></td>
								<td><?php echo $row['department'];?></td>
								<td><?php echo ucfirst($row['content']); ?></td>
								<td><?php echo ucfirst($row['status']); ?></td>
								<!-- <td>
								<select id="employee">
								<option value="" selected="selected">Select Hide / Shwo</option>
								<option value="Hide">Hide</option>
								<option value="Show">Show</option>
								</select>
							    </td> -->
								<td class="center"><?php if($row['image_pdf']!=""){ 
									$filename =$row['image_pdf'];
								$ext = pathinfo($filename, PATHINFO_EXTENSION);
								 if($ext=='pdf') {?>
								 <img src="pdf.png" width="40">
								 <?php }else{ ?>
								<img src="../uploadedImage/syllabus/<?php echo $row['image_pdf'];?>" width="40" >
								<?php } ?>
								<?php }else{?><img src="../img/imagenot.jpg"  width="50"/><?php } ?></td>
								
								<td class="center">
									<a class="btn btn-success" href="#">
										<i class="halflings-icon white zoom-in"></i>  
									</a>
									<a class="btn btn-info" href="edit_syllabus.php?id=<?php echo $row['id'];?>">
										<i class="halflings-icon white edit"></i>  
									</a>
									<a class="btn btn-danger" href="syllabus_delete.php?id=<?php echo $row['id'];?>">
										<i class="halflings-icon white trash"></i> 
									</a>
								</td>
							</tr>
							<?php $i++;} ?>
							
						  </tbody>
					  </table>            
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
	</div><!--/.fluid-container-->
	
			<!-- end: Content -->
		</div><!--/#content.span10-->
		</div><!--/fluid-row-->
	<div class="clearfix"></div>
	<?php include("footer.php");?>
	<script> $(document).ready(function(){
$("#employee").change(function() {
var id = $(this).find(":selected").val();
var ids = $(this).find("#id").val();
alert(ids);
var dataString = 'empid='+ id;
alert(dataString);
$.ajax({
url: 'gethideshow.php',
dataType: "json",
data: dataString,
cache: false,
success: function(employeeData) {
	alert(employeeData);
if(employeeData) {
$("#heading").show();
$("#no_records").hide();
$("#emp_name").text(employeeData.employee_name);
$("#emp_age").text(employeeData.employee_age);
$("#emp_salary").text(employeeData.employee_salary);
$("#records").show();
} else {
$("#heading").hide();
$("#records").hide();
$("#no_records").show();
}
}
});
})
});</script>

Copyright © 1945 - 2024 GOOGLE