File: /home/barbeatleanalyti/public_html/manage.beatleanalytics.com/site/template/organagationview.php
<script type="text/javascript">
$(document).ready(function(){
//delete attendent user
$('.delAttendent').click(function(){
var r = confirm("Would you like to delete this attendent user?");
if (r == true)
{
var atteId = $(this).attr('data-uid');
//alert(atteId);
$.ajax({
type: "POST",
url: "runajax.php",
data: {method:'deleteAttendent',data:atteId},
cache: false,
success: function(data) {
//$('#loader_image').hide();
//alert(data);
$("#row"+atteId).hide('500');
}
});
}
});
});
</script>
<?php
// Declare new object
$objorganagationview = object;
// Assing object
$objorganagationview = $objDB->objController;
// Assign all variable's value
$pg = $objorganagationview->pg;
$acn = $objorganagationview->acn;
$v = $objorganagationview->v;
$State = $objorganagationview->State;
$ReligionName = $objorganagationview->ReligionName;
$sort = $objorganagationview->sort;
$ReligionID = $objorganagationview->ReligionID;
$field = $objorganagationview->field;
$error = $objorganagationview->error;
$msg = $objorganagationview->msg;
$perpage = $objorganagationview->perpage;
$start = $objorganagationview->start;
$limit = $objorganagationview->limit;
$SearchValue = $objorganagationview->SearchValue;
$s = $objorganagationview->s;
$OrgID = $objorganagationview->OrgID;
$BranchID = $objorganagationview->BranchID;
$IndustryID = $objorganagationview->IndustryID;
$rsUserInfo = $objorganagationview->FetchAllorganagationviewData("All");
if($start == 1)
$limit = 0;
else if($start == 2)
$limit = $perpage;
else
$limit = ($start-1) * $perpage;
$objorganagationview->limit = $limit;
$nume = count($rsUserInfo);
$totalpage = @ceil(count($rsUserInfo)/$perpage);
$rsUserInfo = $objorganagationview->FetchAllorganagationviewData();
if($sort == '0'){
$sort = '1';
}
else{
$sort = '0';
}
$link = "";
if( $start != "" && $start != 0 ){
$link .= "&start={$start}";
}
if( $perpage != "" && $perpage != 0 ){
$link .= "&perpage={$perpage}";
}
if(trim($s) != ""){
$link .= "&s={$s}";
}
$Dash = "";
if($_SESSION['UserInfo']['UType'] == 'MasterAdmin'){
$Dash = "dashboardma";
}else if($_SESSION['UserInfo']['UType'] == 'Admin'){
$Dash = "dashboardadmin";
}
?>
<div class="content-wrapper cust_hight" style="height: 959px">
<?php
if( strtolower($v)=='add'|| strtolower($v)=='edit')
{}
else if($v=='list'){
?>
<section class="content-header">
<?php if(strtolower($v) == 'list'){?>
<h1> List of Organagation view </h1>
<ol class="breadcrumb">
<li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
<li><a href="organagationview.html?v=list"><i class="fa organagationview"></i>Organagation view</a></li>
</ol>
<?php } ?>
</section>
<?php
// Error or success message display
$objDB->NotificaitonForResult($msg,$error)
?>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<div class="col-md-12 col-xs-12 no-padding">
<a class="btn btn-info btn-sm" href="profilenew.html"> <i class="fa fa-long-arrow-left"></i> Back </a>
<div class="-" style="">
<div class="tree">
<center>
<ul style="display:table;">
<?php $rsUserInfo = $objorganagationview->userDetailsOfDashLevel('owner',$_SESSION['OtherInfo']['OrgID'],$BranchID,$IndustryID);
?>
<li class="org_list" style="margin:0 auto;">
<a href="#" data-toggle="modal" data-target="#profile_view">
<img class="client_img" src="documents/local/webprofileimages/<?php echo $rsUserInfo[0]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';">
<div class="client_info">
<p><?php echo $rsUserInfo[0]['db_username']?></p>
<p><?php echo $objorganagationview->FetchOrganizationName($_SESSION['OtherInfo']['OrgID']);?></p>
<p>Owner</p>
<div class="modal fade in" id="profile_view" style="display: none; padding-right: 17px;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> </span></button>
<h4 class="modal-title">Owner - <span><?php echo $rsUserInfo[0]['db_username']?></span></h4>
</div>
<div class="modal-body">
<div class="model_profile_pic col-md-3"><img class="client_img" src="documents/local/webprofileimages/<?php echo $rsUserInfo[0]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';"> </div>
<div class="basic-info col-md-9">
<p><b>Basic info</b></p>
<p>Phone No. : <span class="data"><?php echo $rsUserInfo[0]['db_phone']?></span></p>
<p>Email Id. : <span class="data"><?php echo $rsUserInfo[0]['db_email']?></span></p>
<p>About me : <span class="data"><?php echo $rsUserInfo[0]['db_aboutme']?> </span></p>
<br>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</a>
<ul>
<?php
$branchDetails = $objorganagationview->getAllBranchByOrg($_SESSION['OtherInfo']['OrgID']);
for($i = 0; $i < count($branchDetails); $i++){
?>
<li>
<a href="#" data-toggle="modal" data-target="#profile_view_b<?php echo $i;?>">
<img class="client_img" src="documents/local/webprofileimages/<?php echo $branchDetails[$i]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';">
<div class="client_info">
<p><?php echo $branchDetails[$i]['db_username'];?></p>
<p><?php echo $branchDetails[$i]['db_branchName']; ?></p>
<p>Manager</p>
<div class="modal fade in" id="profile_view_b<?php echo $i;?>" style="display: none; padding-right: 17px;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> </span></button>
<h4 class="modal-title">Branch manager - <span><?php echo $branchDetails[$i]['db_username'];?></span></h4>
</div>
<div class="modal-body">
<div class="model_profile_pic col-md-3"><img class="client_img" src="documents/local/webprofileimages/<?php echo $branchDetails[$i]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';"> </div>
<div class="basic-info col-md-9">
<p><b>Basic info</b></p>
<p>Phone No. : <span class="data"><?php echo $branchDetails[$i]['db_phone']?></span></p>
<p>Email Id. : <span class="data"><?php echo $branchDetails[$i]['db_email']?></span></p>
<p>About me : <span class="data"><?php echo $branchDetails[$i]['db_aboutme']?> </span></p>
<br>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</a>
<ul>
<?php
$rsIndustryData = $objorganagationview->getAllIndByBranch($branchDetails[$i]['branchId']);
if(count($rsIndustryData) > 0) {
for($j=0; $j<count($rsIndustryData); $j++) { ?>
<li>
<a href="#" data-toggle="modal" data-target="#profile_view_i<?php echo $j;?>">
<img class="client_img" src="documents/local/webprofileimages/<?php echo $rsIndustryData[$j]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';">
<div class="client_info">
<p><?php echo $rsIndustryData[$j]['db_username']; ?></p>
<p><?php echo $rsIndustryData[$j]['db_industry']; ?></p>
<p>Line Manager</p>
<div class="modal fade in" id="profile_view_i<?php echo $j;?>" style="display: none; padding-right: 17px;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> </span></button>
<h4 class="modal-title">Line manager - <span><?php echo $rsIndustryData[$j]['db_username'];?></span></h4>
</div>
<div class="modal-body">
<div class="model_profile_pic col-md-3"><img class="client_img" src="documents/local/webprofileimages/<?php echo $rsIndustryData[$j]['webprofileimage']?>" onerror="this.onerror=null;this.src='theme/black/images/noimage_responsive.png';"> </div>
<div class="basic-info col-md-9">
<p><b>Basic info</b></p>
<p>Phone No. : <span class="data"><?php echo $rsIndustryData[$j]['db_phone']?></span></p>
<p>Email Id. : <span class="data"><?php echo $rsIndustryData[$j]['db_email']?></span></p>
<p>About me : <span class="data"><?php echo $rsIndustryData[$j]['db_aboutme']?> </span></p>
<br>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</a>
</li>
<?php } } ?>
</ul>
</li>
<?php } ?>
</ul>
</li>
</ul>
</center>
</div>
<style>
.client_info p {
font-size: 14px !important;
}
.client_info p {
margin: 0px;
font-size: 16px
}
img.client_img {
width: 72px;
/* height: 72px; */
border-radius: 100%;
border: 2px solid #deb099;
padding: 3px;
box-shadow: 2px 4px 6px 0px #8b8b8ba6;
}
.client_info p {
font-size: 13px;
color: black;
}
.client_info {
margin-top: 7px;
}
img.client_img {
width: 72px;
}
/*Now the CSS*/
* {margin: 0; padding: 0;}
.tree ul {
padding-top: 20px; position: relative;
transition: all 0.5s;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
}
.tree li {
float: left; text-align: center;
list-style-type: none;
position: relative;
padding: 20px 25px 0 25px;
transition: all 0.5s;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
}
/*We will use ::before and ::after to draw the connectors*/
.tree li::before, .tree li::after{
content: '';
position: absolute; top: 0; right: 50%;
border-top: 1px solid #48a9d4;
width: 50%; height: 20px;
}
.tree li::after{
right: auto; left: 50%;
border-left: 1px solid #48a9d4;
}
/*We need to remove left-right connectors from elements without
any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
display: none;
}
/*Remove space from the top of single children*/
.tree li:only-child{ padding-top: 0;}
/*Remove left connector from first child and
right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after{
border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before{
border-right: 1px solid #48a9d4;
border-radius: 0 5px 0 0;
-webkit-border-radius: 0 5px 0 0;
-moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
border-radius: 5px 0 0 0;
-webkit-border-radius: 5px 0 0 0;
-moz-border-radius: 5px 0 0 0;
}
/*Time to add downward connectors from parents*/
.tree ul ul::before{
content: '';
position: absolute; top: 0; left: 50%;
border-left: 1px solid #48a9d4;
width: 0; height: 20px;
}
.tree li a{
border: 1px solid #fff;
padding: 5px 10px;
text-decoration: none;
color: #666;
font-family: arial, verdana, tahoma;
font-size: 11px;
display: inline-block;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
transition: all 0.5s;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
}
/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover, .tree li a:hover+ul li a {
background: #c8e4f8; color: #000; border: 1px solid #94a0b4;
}
/*Connector styles on hover*/
.tree li a:hover+ul li::after,
.tree li a:hover+ul li::before,
.tree li a:hover+ul::before,
.tree li a:hover+ul ul::before{
border-color: #94a0b4;
}
.modal-footer {
border-top: 0px solid #e5e5e5;
}
.model_profile_pic.col-md-3 img.client_img {
width: 82%;
}
</style>
<!-- <div class="modal fade in" id="profile_view" style="display: none; padding-right: 17px;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"> </span></button>
<h4 class="modal-title">Owner - <span>Sidharth</span></h4>
</div>
<div class="modal-body">
<div class="model_profile_pic col-md-3"><img class="client_img" src="theme/black/images/profile_img-org.png"> </div>
<div class="basic-info col-md-9">
<p><b>Basic info</b></p>
<p>Phone No. : <span class="data">1452547885</span></p>
<p>Email Id. : <span class="data">Sidharth@gmail.com</span></p>
<p>About me : <span class="data">xyz </span></p>
<br>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
<? } ?>
</section>
</div>