%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"); ?> <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=view-user'; }, 2000 ); }else{ alert("can't delete the row") } } }); } }); $(document).on('click','.trash',function(){ var syncid= $(this).attr('id'); var $ele = $(this).parent().parent(); if(confirm('Are you sure to remove this record ?')) { $.ajax({ type:'POST', url:'deleteAll_record.php', data:{'syncid':syncid}, 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 col-md-6 float-left">User Detail</h3><div class="col-md-6 float-right"><button type="button" class="btn btn-primary" style="float:right;"><a href="index.php?mode=add-user" class="button btn-primary" >Add User</a></button></div> </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">User Name</th> <th width="104">Email Id</th> <th width="104">Phone No</th> <th width="104">Department</th> <th width="104">Date & Time</th> <th width="124">Access</th> <th width="124">Edit</th> <th width="124">Status</th> </tr> </thead> <tbody> <?php $queryt_synch = mysqli_query($connection,"select * from `tbl_user` where user_type='User' order by id DESC") 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['user_name'];?></td> <td><?php echo $ret['email'];?></td> <td><?php echo $ret['phone'];?> </td> <td><?php echo $ret['department'];?></td> <td><?php echo $ret['c_date'];?></td> <td><?php $newacc = $ret['access']; if($newacc=='0'){ echo "Export"; } if($newacc=='1'){ echo 'Delete';} if($newacc=='2'){ echo 'Search';} if($newacc=='0,1'){ echo 'Export'."-".'Delete';} if($newacc=='0,2'){ echo "Search"."-"."Delete"; } if($newacc=='0,1,2'){ echo 'Export'."-".'Delete'."-".'Search';} ?></td> <td><a href="index.php?mode=edit-users&sid=<?php echo $ret['id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a></td> <td><?php if($ret['status']=='1'){ ?> <button type="button" class="btn btn-default btn-sm active" id="<?php echo $ret['id'].','.$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['id'].','.$ret['status'];?>"><i class="fa fa-square text-red" id="<?php echo $ret['id'];?>"></i></button> <?php } ?></td> </tr> <?php $i++;} ?> </tbody> <tfoot> </tfoot> </table> </div> </div> </div> </div> <link rel="stylesheet" href="bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css"> <script src="bower_components/datatables.net/js/jquery.dataTables.min.js"></script> <script src="bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script> <script> $(function () { $('#example1').DataTable() $('#example2').DataTable({ 'paging' : true, 'lengthChange': false, 'searching' : false, 'ordering' : true, 'info' : true, 'autoWidth' : false }) }) </script>