File: /home/barbeatleanalyti/www/m.beatleanalytics.com/application/views/beatleAdmin/feedbackdetails.php
<?php
include('include/header.php');
$this->load->model('Admin_model');
?>
<style>
.error {color:#900;}
</style>
<div class="right_col" role="main">
<div class="">
<div class="col-md-12 col-sm-12 col-xs-12">
<!-----------------------new theme--------------------------------->
<div class="new-theme">
<?php
if(isset($orgName[0]->db_Orgname)){
$OrganizationName = "[".strtoupper($orgName[0]->db_Orgname)."]";
}else{
$OrganizationName = '';
}
?>
<h1>Feedback details</h1>
<br>
<table id="datatable" class="table table-striped new-table">
<thead>
<tr>
<th>User ID</th>
<th>Organization</th>
<th>Branch</th>
<th>Industry</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
if (empty($surveydata)){
?>
<tr class="ng-hide">
<td colspan="14"><h1 class="text-center text-muted ng-scope">No any survey data found</h1><!-- end ngIf: !UsersList.ui.loading --></td>
</tr>
<?php } else {
foreach ($surveydata as $keyind=>$valind){
?>
<tr>
<td>
<?php echo $valind->db_phone; ?>
</td>
<td>
<?php echo $valind->db_Orgname;?>
</td>
<td>
<?php echo $valind->db_branchName;?>
</td>
<td>
<?php echo $valind->db_industry;?>
</td>
<td>
<?php echo date("d/m/Y",strtotime($valind->created_date));?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
<!-----------------------// new theme------------------------------------->
<div class="x_panel" style="display:none;">
<div class="x_title">
<?php
if(isset($orgName[0]->db_Orgname)){
$OrganizationName = "[".strtoupper($orgName[0]->db_Orgname)."]";
}else{
$OrganizationName = '';
}
?>
<h2>Feedback details <strong> <?php echo $OrganizationName; ?> </strong><small></small></h2>
<!-- <ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Settings 1</a>
</li>
<li><a href="#">Settings 2</a>
</li>
</ul>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul> -->
<div class="clearfix"></div>
</div>
<div class="x_content">
<table id="datatable" class="table table-striped table-bordered">
<thead>
<tr>
<th>User ID</th>
<th>Organization</th>
<th>Branch</th>
<th>Industry</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<?php
if (empty($surveydata)){
?>
<tr class="ng-hide">
<td colspan="14"><h1 class="text-center text-muted ng-scope">No any survey data found</h1><!-- end ngIf: !UsersList.ui.loading --></td>
</tr>
<?php } else {
foreach ($surveydata as $keyind=>$valind){
?>
<tr>
<td>
<?php echo $valind->db_phone; ?>
</td>
<td>
<?php echo $valind->db_Orgname;?>
</td>
<td>
<?php echo $valind->db_branchName;?>
</td>
<td>
<?php echo $valind->db_industry;?>
</td>
<td>
<?php echo date("d/m/Y",strtotime($valind->created_date));?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$(".addpagesModel").click(function(){
var addpagesModel = $(this);
var indname = addpagesModel.attr('data-indname');
var indid = addpagesModel.attr('data-indid');
$("#pageTitle").html('Add Pages For '+indname);
$("#indusId").val(indid);
})
$(function() {
$('.table-sortable tbody').sortable().bind('sortupdate', function()
{
var tablerowPos = $(this);
});
});
$(".checkpage").click(function(){
var checkpage = $(this);
var Id = checkpage.attr('data-Id');
var rId = checkpage.attr('data-rowId');
if($("#dashboard_"+Id).is(":checked"))
{
var allCheckbox = '';
var arr = [];
$(":checkbox").each(function(){
var ischeked = $(this).is(":checked");
if (ischeked)
{
allCheckbox = $(this).val();
arr.push(allCheckbox);
}
})
$("#finalvalue").val(arr);
}
else
{
//allCheckbox = $(this).val();
//arr.remove(allCheckbox);
}
});
});
</script>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="pageTitle"></h4>
</div>
<div class="modal-body">
<form action="<?php echo base_url();?>index.php/beatleAdmin/addpagesToIndustry" method="post" name="Indpageform " id="Indpageform">
<input type="hidden" name="indusId" id="indusId" >
<input type="hidden" name="finalvalue" id="finalvalue" >
<table class="table table-sortable ">
<tbody>
<?php
if (!empty($allpages))
{
foreach ($allpages as $keypage=>$valpage)
{
$countrow = $keypage+1;
?>
<tr draggable="true" class="dragmain" data-mainid="<?php echo $countrow;?>" style="display: table-row;" id="RowPos_<?php echo $countrow;?>">
<td>
<input name="dashboard_<?php echo $valpage->pageId;?>" id="dashboard_<?php echo $valpage->pageId;?>" value="<?php echo $valpage->pageId;?>" class="checkpage" data-rowId="<?php echo $countrow;?>" data-Id="<?php echo $valpage->pageId;;?>" type="checkbox">
</td>
<td><?php echo $valpage->db_pagename;?></td>
</tr>
<?php
}
}
else
{
?>
<div style="padding:5px;border:1px solid #900;font-size:14px;">Their Are No Page For Add Please Add Some Pages <a href="<?php echo base_url();?>index.php/admin/pages"></a></div>
<?php
}
?>
<tr>
<td colspan="4"><input type="submit" name="indpageSubmit" id="indpageSubmit" class="btn-sm btn btn-success btn-rounded" value="Save"></td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<?php include ('include/footer.php'); ?>