chnage count cycle function as per account type
This commit is contained in:
8
CONTENT/ROOT_URI/Admin/Agent/add_agent.php
Normal file
8
CONTENT/ROOT_URI/Admin/Agent/add_agent.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
echo "<h3>Add New Agent</h3>";
|
||||
// Your form to add new agent
|
||||
echo "<form method='POST' action='?action=save'>
|
||||
<input type='text' name='agent_name' placeholder='Agent Name'>
|
||||
<button type='submit'>Save Agent</button>
|
||||
</form>";
|
||||
?>
|
||||
8
CONTENT/ROOT_URI/Admin/Agent/deemand.php
Normal file
8
CONTENT/ROOT_URI/Admin/Agent/deemand.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="container mx-auto">
|
||||
<form action="">
|
||||
<div>
|
||||
<label for="ACCOUNT_NUMBER">Account Number</label>
|
||||
<input class="form-control" type="text" name="ACCOUNT_NUMBER" id="ACCOUNT_NUMBER" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
27
CONTENT/ROOT_URI/Admin/Agent/index.php
Normal file
27
CONTENT/ROOT_URI/Admin/Agent/index.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// Get the absolute path to Admin directory
|
||||
$admin_dir = dirname(__DIR__);
|
||||
|
||||
// Include admin files with absolute paths
|
||||
include($admin_dir . "/ADMIN_HEADER.php");
|
||||
include($admin_dir . "/ADMIN_nav.php");
|
||||
|
||||
|
||||
// Use the $lnk variable that comes from main engine.php
|
||||
// $lnk already contains 'deemand' for /Admin/Agent/deemand
|
||||
|
||||
if ($lnk == "") {
|
||||
include("list_agents.php");
|
||||
}
|
||||
// Check if the requested file exists
|
||||
elseif (file_exists(__DIR__ . "/" . $lnk . ".php")) {
|
||||
include($lnk . ".php");
|
||||
}
|
||||
// If file doesn't exist, show list or 404
|
||||
else {
|
||||
include("list_agents.php");
|
||||
// or include("404.php");
|
||||
}
|
||||
|
||||
include($admin_dir . "/ADMIN_FOOTER.php");
|
||||
?>
|
||||
6
CONTENT/ROOT_URI/Admin/Agent/list_agents.php
Normal file
6
CONTENT/ROOT_URI/Admin/Agent/list_agents.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
echo "<h3>Agent List</h3>";
|
||||
// Your code to display list of agents
|
||||
echo "<p>This will show a list of all agents</p>";
|
||||
echo "<a href='?action=add' class='btn btn-primary'>Add New Agent</a>";
|
||||
?>
|
||||
Reference in New Issue
Block a user