-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git:fix unable to unlink old 'app/views/guide/find.view.php
- Loading branch information
Showing
109 changed files
with
343 additions
and
31 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
class Charts { | ||
use Controller; | ||
|
||
public function index(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/chart'); | ||
} | ||
|
||
public function item(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/chart'); | ||
}} | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
class Customers { | ||
use Controller; | ||
|
||
public function index(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/customer'); | ||
} | ||
|
||
public function item(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/customer'); | ||
}} | ||
|
||
|
||
?> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
class Guides { | ||
use Controller; | ||
|
||
public function index(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/guides'); | ||
} | ||
|
||
public function item(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/guides'); | ||
}} | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
class Item { | ||
use Controller; | ||
|
||
public function index(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/item'); | ||
} | ||
|
||
public function item(string $a = '', string $b = '', string $c = ''):void { | ||
$this->view('admin/item'); | ||
}} | ||
|
||
|
||
?> |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
require_once('../app/views/admin/layout/header.php'); | ||
require_once('../app/views/admin/layout/sidebar.php'); | ||
?> | ||
|
||
<div class="table-container"> | ||
<canvas id="myChart" style="width:100%;max-width:600px"></canvas> | ||
</div> | ||
|
||
<script> | ||
var xValues = ["Rental Services", "Guides", "Registered Customers"]; | ||
var yValues = [192, 89, 369]; | ||
var barColors = ["green","blue","orange"]; | ||
|
||
new Chart("myChart", { | ||
type: "bar", | ||
data: { | ||
labels: xValues, | ||
datasets: [{ | ||
backgroundColor: barColors, | ||
data: yValues | ||
}] | ||
}, | ||
options: { | ||
legend: {display: false}, | ||
title: { | ||
display: true, | ||
text: "Wanderlust Users - 2023" | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<?php | ||
require_once('../app/views/admin/layout/footer.php'); | ||
?> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
require_once('../app/views/admin/layout/header.php'); | ||
require_once('../app/views/admin/layout/sidebar.php'); | ||
|
||
?> | ||
|
||
<div class="table-container"> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Email</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Sandaruwan</td> | ||
<td>sandaruwan@example.com</td> | ||
<td><span class="status accepted">Accepted</span></td> | ||
<td><button class="view-button">View</button></td> | ||
</tr> | ||
<tr> | ||
<td>Sarani</td> | ||
<td>sarani@example.com</td> | ||
<td><span class="status not-accepted">Not Accepted</span></td> | ||
<td><button class="view-button">View</button></td> | ||
</tr> | ||
|
||
<!-- Add more rows as needed --> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<!-- Modal --> | ||
<div class="rental-services-modal" id="rental-services-modal"> | ||
<div class="modal-content"> | ||
<span class="close">×</span> | ||
<div class="profile-info"> | ||
<img src="<?php echo ROOT_DIR?>/assets/images/dp.jpg" alt="Profile Image" class="profile-image"> | ||
<h2 id="profile-name">Sarani Hettiarachchci</h2> | ||
<p id="profile-email">sarani@example.com</p> | ||
<p id="profile-address">Homagama</p> | ||
<p id="profile-status" class="accepted">Accepted</p> | ||
<div class="profile-links"> | ||
<a href="#" id="link-1">Link 1</a> | ||
<a href="#" id="link-2">Link 2</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<script> | ||
|
||
// Get the modal | ||
var modal = document.getElementById("rental-services-modal"); | ||
|
||
// Get the <span> element that closes the modal | ||
var span = document.getElementsByClassName("close")[0]; | ||
|
||
// Get all view buttons | ||
var viewButtons = document.querySelectorAll('.view-button'); | ||
|
||
// Function to handle modal display | ||
function openModal(content) { | ||
// document.getElementById("modal-content").innerHTML = content; | ||
modal.style.display = "block"; | ||
} | ||
|
||
// Add click event listener to view buttons | ||
viewButtons.forEach(function(button) { | ||
button.addEventListener('click', function() { | ||
|
||
var name = this.parentElement.parentElement.querySelector('td:first-child').textContent; | ||
var email = this.parentElement.parentElement.querySelector('td:nth-child(2)').textContent; | ||
openModal("Name: " + name + "<br>Email: " + email); | ||
}); | ||
}); | ||
|
||
// Close the modal when the close button is clicked | ||
span.onclick = function() { | ||
modal.style.display = "none"; | ||
} | ||
|
||
// Close the modal if the user clicks outside of it | ||
window.onclick = function(event) { | ||
if (event.target == modal) { | ||
modal.style.display = "none"; | ||
} | ||
} | ||
|
||
</script> | ||
|
||
|
||
|
||
|
||
<?php | ||
require_once('../app/views/admin/layout/footer.php'); | ||
|
||
|
||
?> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
require_once('../app/views/admin/layout/header.php'); | ||
require_once('../app/views/admin/layout/sidebar.php'); | ||
|
||
?> | ||
|
||
<div class="table-container"> | ||
<table class="data-table"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Email</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Lahiru Sandaruwan</td> | ||
<td>lahiru@example.com</td> | ||
<td><span class="status accepted">Accepted</span></td> | ||
<td><button class="view-button">View</button></td> | ||
</tr> | ||
<tr> | ||
<td>Dasun Thathsara</td> | ||
<td>dasun@example.com</td> | ||
<td><span class="status not-accepted">Not Accepted</span></td> | ||
<td><button class="view-button">View</button></td> | ||
</tr> | ||
|
||
<!-- Add more rows as needed --> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<!-- Modal --> | ||
<div class="rental-services-modal" id="rental-services-modal"> | ||
<div class="modal-content"> | ||
<span class="close">×</span> | ||
<div class="profile-info"> | ||
<img src="<?php echo ROOT_DIR?>/assets/images/dp.jpg" alt="Profile Image" class="profile-image"> | ||
<h2 id="profile-name">Lahiru Sandaruwan </h2> | ||
<p id="profile-email">lahiru@example.com</p> | ||
<p id="profile-address">Kandy</p> | ||
<p id="profile-status" class="accepted">Accepted</p> | ||
<div class="profile-links"> | ||
<a href="#" id="link-1">Link 1</a> | ||
<a href="#" id="link-2">Link 2</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<script> | ||
|
||
// Get the modal | ||
var modal = document.getElementById("rental-services-modal"); | ||
|
||
// Get the <span> element that closes the modal | ||
var span = document.getElementsByClassName("close")[0]; | ||
|
||
// Get all view buttons | ||
var viewButtons = document.querySelectorAll('.view-button'); | ||
|
||
// Function to handle modal display | ||
function openModal(content) { | ||
// document.getElementById("modal-content").innerHTML = content; | ||
modal.style.display = "block"; | ||
} | ||
|
||
// Add click event listener to view buttons | ||
viewButtons.forEach(function(button) { | ||
button.addEventListener('click', function() { | ||
|
||
var name = this.parentElement.parentElement.querySelector('td:first-child').textContent; | ||
var email = this.parentElement.parentElement.querySelector('td:nth-child(2)').textContent; | ||
openModal("Name: " + name + "<br>Email: " + email); | ||
}); | ||
}); | ||
|
||
// Close the modal when the close button is clicked | ||
span.onclick = function() { | ||
modal.style.display = "none"; | ||
} | ||
|
||
// Close the modal if the user clicks outside of it | ||
window.onclick = function(event) { | ||
if (event.target == modal) { | ||
modal.style.display = "none"; | ||
} | ||
} | ||
|
||
</script> | ||
|
||
|
||
|
||
|
||
<?php | ||
require_once('../app/views/admin/layout/footer.php'); | ||
|
||
|
||
?> |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.