%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
include("secure/db_config.php");
?>
<style>
.alert-box {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.success {
color: #3c763d;
background-color: #dff0d8;
border-color: #d6e9c6;
display: none;
}
</style>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="application/javascript">
$(function(){
$(document).on('click','.btn-sm',function(){
var stid= $(this).attr('id');
var ret = stid.split(" ");
if(confirm('Are you sure you want to change status?'))
{
$.ajax({
type:'POST',
url:'status_change.php',
data:{'stid':stid},
success: function(data){
if(data){
$( "div.success" ).fadeIn( 300 ).delay( 1500 ).fadeOut( 400 );
setTimeout(function() {
window.location='index.php?mode=content-manage';
}, 2000 );
}else{
alert("can't delete the row")
}
}
});
}
});
$(document).on('click','.trash',function(){
var del_id= $(this).attr('id');
var $ele = $(this).parent().parent();
if(confirm('Are you sure to remove this record ?'))
{
$.ajax({
type:'POST',
url:'delete_content.php',
data:{'del_id':del_id},
success: function(data){
if(data){
$ele.fadeOut().remove();
}else{
alert("can't delete the row")
}
}
});
}
});
});
</script>
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Vision Management <div class="alert-box success">Successful Alert !!!</div></h3>
</div>
<div class="box-body">
<div ng-app="sa_app" ng-controller="controller" ng-init="show_data()">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th width="77">Sr.No</th>
<th width="77">Heading</th>
<th width="104">Content</th>
<th width="104">Status</th>
<th width="31"> Edit </th>
<th width="49"> Delete </th>
</tr>
</thead>
<tbody>
<?php $queryt_synch = mysqli_query($connection,"select * from `tbl_page_content` order by pid ASC") or die(mysqli_error());
$i=1;
while($ret = mysqli_fetch_array($queryt_synch)){
?>
<tr ng-repeat="x in names">
<td><?php echo $i;?></td>
<td><?php echo $ret['heading'];?></td>
<td><?php echo $ret['content'];?> </td>
<td><?php if($ret['status']=='1'){ ?> <button type="button" class="btn btn-default btn-sm active" id="<?php echo $ret['pid'].','.$ret['status'];?>"><i class="fa fa-square text-green"></i></button><?php } else { ?> <button type="button" class="btn btn-default btn-sm" id="<?php echo $ret['pid'].','.$ret['status'];?>"><i class="fa fa-square text-red" id="<?php echo $ret['pid'];?>"></i></button> <?php } ?></td>
<td><a href="index.php?mode=edit-content-manage&sid=<?php echo $ret['pid'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a></td>
<td><i class="fa fa-bitbucket trash" aria-hidden="true" id="<?php echo $ret['pid'];?>"></i></td>
</tr>
<?php $i++;} ?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
</div>
</div>