chnage count cycle function as per account type

This commit is contained in:
ns77@siliconpin.com
2025-08-28 13:18:44 +00:00
parent d2c2833064
commit 527b982e84
6 changed files with 133 additions and 63 deletions

View 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>";
?>

View 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>

View 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");
?>

View 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>";
?>