OverLord Shell
<?php session_start();
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();header("location:login.php");}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){
header("location:login.php");
}
include("db/conn.php");
include_once("headerdash.inc.php");
include("sidebar.php");
include('../Pagination.php');
$limit = 10;
$actv=$_SESSION['plans'];
$_SESSION['company_id'] = (empty($_SESSION['company_id'])) ? base64_decode($_SESSION['mid']) : $_SESSION['company_id'];
$pagename=substr(basename($_SERVER['PHP_SELF']),0,-4);
$webpagetitle="Members";
$editrowa = getData('busdir_mst_all_company','company_id',$_SESSION['company_id'],null,null);
?>
<script>
window.onload = function () {
document.onkeydown = function (e) {
return (e.which || e.keyCode) != 44;
};
}
/*$(window).on('scroll',function() {
//alert('Are you sure');
AccessClipboardData();
stopPrntScr();
// After Stuff
// $(window).off('scroll');
});*/
document.addEventListener("keyup", function (e) {
var keyCode = e.keyCode ? e.keyCode : e.which;
if (keyCode == 44) {
stopPrntScr();
}
});
function stopPrntScr() {
alert('Sorry, This Functionality not aloud MACCIA FORUM!');
var inpFld = document.createElement("input");
inpFld.setAttribute("value", ".");
inpFld.setAttribute("width", "0");
inpFld.style.height = "0px";
inpFld.style.width = "0px";
inpFld.style.border = "0px";
document.body.appendChild(inpFld);
inpFld.select();
document.execCommand("copy");
inpFld.remove(inpFld);
location.reload();
}
function AccessClipboardData() {
try {
window.clipboardData.setData('text', "Access Restricted");
} catch (err) {
}
}
setInterval("AccessClipboardData()", 300);
window.onload = function() {
document.addEventListener("contextmenu", function(e){
e.preventDefault();
if(event.keyCode == 123) {
disableEvent(e);
}
}, false);
function disableEvent(e) {
if(e.stopPropagation) {
e.stopPropagation();
} else if(window.event) {
window.event.cancelBubble = true;
}
}
jQuery(document).ready(function(){
jQuery(function() {
jQuery(this).bind("contextmenu", function(event) {
event.preventDefault();
// alert('Right click disable in this site!!')
alert('Sorry, This Functionality not aloud MACCIA FORUM!');
});
});
});
$(function () {
$(document).keydown(function (e) {
return (e.which || e.keyCode) != 116;
});
});
document.onkeypress = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
return false;
}
}
document.onmousedown = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
return false;
}
}
document.onkeydown = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
return false;
}
}
//ALT + TAB
document.onkeypress = function (event) {
event = (event || window.event);
if (event.keyCode == '0F') {
return false;
}
}
jQuery(document).ready(function($){
$(document).keydown(function(event) {
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
if (event.ctrlKey && (pressedKey == "c" || pressedKey == "u" || pressedKey == "p")) {
alert('Sorry, This Functionality not aloud MACCIA FORUM!');
//disable key press porcessing
return false;
}
});
});
}
$(document).contextmenu(function() { return false;});
</script>
<!--BEGIN CONTENT-->
<div class="page-content">
<div class="row">
<div class="col-md-8">
<div class="panel-body"
style="margin-right: -12%;
margin-left: -2%;">
<fielsdet><legend><h3 style="color: #eb2c33; padding-bottom: 3%;"><?php
echo $webpagetitle ?></h3></legend>
<?php if(!empty($_GET['msg']) && strpos($_GET['msg'],'success')!=FALSE){?>
<div class="note note-success note-dismissable" id="msg">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php if($_GET['msg']=='add_success'){?>Record added Successfully!!!<?php }?>
<?php if($_GET['msg']=='update_success'){?>Record updated Successfully!!!<?php }?>
<?php if($_GET['msg']=='delete_success'){?>Record deleted Successfully!!!<?php }?>
</div>
<?php }?>
<!-- <script>
function change_tab(asd)
{
if(asd==1){
$("#dataTables-listing").val(dataTables-listing);
}else if(asd==2)
{
$("#dataTables-listing").val(dataTables-listing);
}else
{
$("#dataTables-listing").val(dataTables-listing);
}
}
</script> -->
<table class="table table-striped table-hover" id="dataTables-listing">
<thead>
<form role="form" id="search">
<tr>
<td colspan="4">
<input class="form-control " type="text" id="keywords" placeholder="Keyword Search" required="required" /><input type="hidden" id="sortBy"/>
<input type="hidden" id="asd" value="<?php //echo $asd;?>"/>
</td>
<td>
<input class="btn btn-primary" type="button" name="Submit" value="Search" onclick="searchFilter();"/>
<!--<button type="button" class="btn btn-primary" data-loading-text="Submitting..."></button>-->
</td>
<td>
<a href="contact.php" class="btn btn-default" name="reset"/> Reset</a>
<!--<button type="button" class="btn btn-primary" data-loading-text="Submitting..."></button>-->
</td>
<td colspan="8"> </td>
</tr></form>
<tr>
<th >Member Name</th>
<th >Representative Name</th>
<th >Gender</th>
<th >Membership No.</th>
<!--<th >New Membership No.</th>-->
<th >Membership Type</th>
<!-- <th >Voting</th>-->
<th >Mobile No.</th>
<th >Email</th>
</tr>
</thead>
<tbody id="posts_content">
<?php
$myquiry="SELECT * FROM otms_mst_contact where active='y' AND su_sr_no=1";
//echo $myquiry;exit;
$queryNum = $db->query($myquiry);
$resultNum = $queryNum->fetch_assoc();
$rowCount = $queryNum->num_rows;
//initialize pagination class
$pagConfig = array(
'totalRows' => $rowCount,
'perPage' => $limit,
'link_func' => 'searchFilter'
);
$queryNum->free();
$pagination = new Pagination($pagConfig);
//get rows
$myquiry1="SELECT * FROM otms_mst_contact where active='y' AND su_sr_no=1";
$myquiry1.=" ORDER BY con_sr_no asc LIMIT $limit";
//echo $myquiry1;exit;
$query = $db->query($myquiry1);
if($query->num_rows > 0){ ?>
<?php $i=1;
while($listrow = $query->fetch_assoc()){
include("ajax-contact-list.php");
$i++;}?>
<tr>
<td colspan="12"><?php echo $pagination->createLinks();?></td>
</tr>
<?php }$query->free();?>
</tbody>
<!--<tfoot>
<tr>
<th >Member Name</th >
<th>Representative Name</th>
<th>Gender</th>
<th>Membership No.</th>
<th>Membership Type</th>
<th>Mobile No.</th>
<th>Email</th>
</tr>
</tfoot>-->
</table>
</div>
</div>
</div>
</div>
</div>
<!--END CONTENT-->
<link type="text/css" rel="stylesheet" href="css/dataTables/dataTables.bootstrap.min.css">
<script src="js/dataTables/jquery.dataTables.min.js"></script>
<script src="js/dataTables/dataTables.bootstrap.min.js"></script>
<link href="css/jquery.fancybox.css" rel="stylesheet">
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/validate.js"></script>
<script>
function searchFilter(page_num) {
page_num = page_num?page_num:0;
//alert(page_num);
var keywords = $('#keywords').val();
var sortBy = $('#sortBy').val();
var asd= $('#asd').val();
<?php if(!empty($_GET['qal'])){?>
var qal= <?php echo $_GET['qal'];?>
<?php }else {?>
var qal= "NA";
<?php }?>
<?php if(!empty($_GET['qal2'])){?>
var qal2= <?php echo $_GET['qal2'];?>
<?php }else {?>
var qal2= "NA";
<?php }?>
$.ajax({
type: 'POST',
url: 'member-list-ajax.php',
data:'page='+page_num+'&keywords='+keywords+'&sortBy='+sortBy+'&asd='+asd+'&qal='+qal+'&qal2='+qal2,
beforeSend: function () {
$('.loading-overlay').show();
},
success: function (html) {
$('#posts_content').html(html);
$('.loading-overlay').fadeOut("slow");
}
});
}
<?php $sa=1;?>
/* $('#dataTables-listing').dataTable({
stateSave: true,
'scrollX': true,
processing: true,
serverSide: true,
bSort: false,
ajax: {
url:'https://www.anjangiri.com/scripts/contact_macciab.php?su_sr_no=1®srno=<?php echo $_GET['qal'];?>',
dataType: 'jsonp'
},
data: null,
}); */
$('.fancyboxajax').fancybox({type:'ajax'});
</script>
</script>
<?php $connection->close();include("footer.inc.php")?>
xRyukZ - Copyright 2k19