OverLord Shell
<?php session_start();
if(!isset($_SESSION['company_id']) || !isset($_SESSION['loggedin_user'])){session_destroy();header("location:login.php");}
//if(!in_array($_SESSION['role'],array('su','op'))){header("location:404.php");}
include("db/conn.php");
include_once("headerdash.inc.php");
include("sidebar.php");
$selr=$connection_jc->query("SELECT fname,lname FROM otms_mst_contact WHERE con_sr_no=".$_SESSION['mid']);
$selrow=$selr->fetch_assoc();
//$selr->free();
$webpagetitle="Docs ";
?> <h1 class="page-header"><?php echo $webpagetitle;?> - <small><?php echo $selrow['fname']." ".$selrow['lname']?></small></h1>
</h1><a href="multicomp.php" class="btn btn-link" style="float:right;"><i class="fa fa-angle-left mrm"></i>Go Back</a>
<!--BEGIN CONTENT-->
<div class="page-content">
<div class="row">
<div class="col-md-8" style="width: 72.666667%;">
<div class="panel">
<div class="panel-body">
<?php if(!empty($_GET['msg']) && strpos($_GET['msg'],'success')!=FALSE){?>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php if($_GET['msg']=='add_success'){?>Added Successfully!!!<?php }?>
<?php if($_GET['msg']=='update_success'){?>Updated Successfully!!!<?php }?>
<?php if($_GET['msg']=='delete_success'){?>Deleted Successfully!!!<?php }?>
</div>
<?php }elseif(!empty($_GET['msg']) && $_GET['msg']=='delete_failed'){?>
<div class="alert alert-danger">Delete Failed. Please try again.</div>
<?php }?>
<div class="table-responsive">
<table class="table table-hover" id="dataTables-listing">
<thead>
<tr>
<th>Docname</th> <?php /*?> <?php if($_SESSION['role']=='su'){?>
<th class="text-center">View</th> <th class="text-center">Edit</th>
<th class="text-center">Delete</th>
<?php }?><?php */?>
</tr>
</thead>
<tbody>
<?php
$listq="SELECT * FROM otms_mst_contactdoc WHERE contype='c' AND con_sr_no=".$_SESSION['mid'];
$listr=$connection_jc->query($listq);
$i=1;
while($listrow=$listr->fetch_assoc()){
?>
<tr>
<td>
<?php echo $listrow['docname']?></td>
<td class="text-center"><?php if(!empty($listrow['docfile'])){?><a href="https://maccia.org.in/membership/oms-admin/uploads/docs/<?php echo "doc-".$_SESSION['mid']."-".$listrow['condocsrno'].".".$listrow['docfile']?>" class="btn btn-info btn-sm" title="<?php echo $listrow['docname']?>" target="_blank"><i class="fa fa-eye mlm"></i></a><?php }?></td>
</tr>
<?php
$i++;
}$listr->free();
?>
</tbody>
</table>
</div>
</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>
<script src="js/validate.js"></script>
<script>
//$('#dataTables-listing').dataTable();
$('#dataTables-listing').dataTable( {
"bSort": false
} );
</script>
<script type="text/javascript">
function confirmDelete(val){if(confirm('Really Delete "'+val+'" ?'))return true;else return false;}
</script>
<?php $connection_jc->close();?>
<?php include_once("footer.inc.php");?>
xRyukZ - Copyright 2k19