fix
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
$show_manage = true;
|
||||
if ($what_page == "DEFAULT") {
|
||||
$show_manage = false;
|
||||
}
|
||||
<?
|
||||
//print_r($page_card);
|
||||
?>
|
||||
|
||||
<!-- BEGIN: Content-->
|
||||
<div class="app-content content">
|
||||
<div class="content-overlay"></div>
|
||||
@@ -12,79 +10,122 @@ if ($what_page == "DEFAULT") {
|
||||
<div class="content-header row">
|
||||
</div>
|
||||
<div class="content-body">
|
||||
<!-- Dashboard Analytics Start -->
|
||||
<section id="dashboard-analytics">
|
||||
|
||||
|
||||
<!-- Nav Centered And Nav End Starts -->
|
||||
<section id="nav-tabs-centered">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="card overflow-hidden">
|
||||
<input type="hidden" name="page_key" value="<?= $page_key ?>" >
|
||||
<input type="hidden" id='member_id' name='member_id' value="<?= $_SESSION["member_id"] ?>" />
|
||||
<input type="hidden" id='page_id' name='page_id' value="<?= $page_id ?>" />
|
||||
|
||||
<div class="card-content">
|
||||
<div class="card-body">
|
||||
<ul class="nav nav-tabs justify-content-center" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" id="home-tab-center" data-toggle="tab" href="#home-center" aria-controls="home-center" role="tab" aria-selected="true"><h4 class="card-title"><?= $title ?></h4></a>
|
||||
</li>
|
||||
<?php
|
||||
if (true == $show_manage) {
|
||||
?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="service-tab-center" data-toggle="tab" href="#service-center" aria-controls="service-center" role="tab" aria-selected="false">Manage</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="col-xl-4 col-md-12 col-sm-12">
|
||||
|
||||
<!-- Basic Tables start -->
|
||||
<div class="row" id="basic-table">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title">Room</h4>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<!-- Table with no outer spacing -->
|
||||
<div class="table-responsive">
|
||||
<table class="table mb-0">
|
||||
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="home-center" aria-labelledby="home-tab-center" role="tabpanel">
|
||||
<?php
|
||||
if ($what_page == "DEFAULT") {
|
||||
$show_manage = false;
|
||||
include("pages/pages_DEFAULT.php");
|
||||
} else {
|
||||
include("pages/pages_OTHER.php");
|
||||
}
|
||||
?>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td><a href="#" onclick="viewRoom('student');" >Student / Subscribers</a> </td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td><a href="#" onclick="viewRoom('room');" >Group / Classroom</a> </td>
|
||||
|
||||
</tr>
|
||||
<!-- tr>
|
||||
|
||||
<td><a href="#" onclick="viewRoom('');" >Clementine Bauch</a> </td>
|
||||
|
||||
</tr -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="service-center" aria-labelledby="service-tab-center" role="tabpane1">
|
||||
<?php
|
||||
include 'pages/manage_contents.php';
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Basic Tables end -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Nav Centered And Nav End Ends -->
|
||||
|
||||
|
||||
<!-- Dashboard Analytics Start -->
|
||||
<section id="dashboard-analytics">
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-xl-8 col-md-6 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
|
||||
<div id="share_detail">
|
||||
|
||||
</div>
|
||||
<!-- div class="embed-responsive embed-responsive-item embed-responsive-16by9">
|
||||
<iframe class="img-thumbnail" src="https://www.youtube.com/embed/vTlSEMdC5qw" allowfullscreen></iframe>
|
||||
</div-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<!-- Dashboard Analytics end -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END: Content-->
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function viewRoom( page_id ) {
|
||||
|
||||
$('#share_detail').html('Processing...');
|
||||
$('#acc' + page_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/member/viewRoom?proc=PROCESS&page_id=" + page_id + "&mid=" + page_id
|
||||
}).done(function (data) {
|
||||
$('#share_detail').html(data);
|
||||
$('#acc' + page_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function deletePageAction(member_id, page_id) {
|
||||
|
||||
var x = confirm("Are you sure you want to delete?");
|
||||
if (!x)
|
||||
return true;
|
||||
|
||||
|
||||
$('#acc' + page_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/member/deletePageAction?proc=PROCESS&page_id=" + page_id + "&member_id=" + member_id
|
||||
}).done(function (data) {
|
||||
$('#line_detail' + page_id).html(data);
|
||||
$('#acc' + page_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
//initMap();
|
||||
// -->
|
||||
</script>
|
||||
Reference in New Issue
Block a user