dashboard

Once you have completed creating all the operation files, you need to create a backend application controller file from where you can use all the files via links. It's basically a display page where links for all the available forms and tables will appear. A demo file might look like the one shown below.

// demo main.php file
<html>
	<head>
		<title>Backend Admin Panel</title>
		// links fro all the css and js files
		<link href="." rel="stylesheet" type="text/css" />
		<script src=""></script>
	</head>
	<body>

	<div class="col-sm-12">
		<h3>ADMIN PANEL</h3>
	</div>

	<div class="col-sm-2">
		<ul>
			<li><a href="user-info.php">ADD USER</a></li>
			<li><a href="posts.php">ADD POST</a></li>
			<li><a href="display-user.php">DISPLAY USER</a></li>
			<li><a href="display-post.php">DISPLAY POST</a></li>
		</ul>
	</div>

	<div class="col-sm-10">


	</body>  
	</html>  

The last div is left opened intentionally to allow the selected file to appear in that space and take as much height as needed. Links are given to each menu and their names also suggest what they are for. You can add any data from here to the database, view any data tables, delete or edit data easily.

Now, you need to link this backend file to all of your insert, delete, update and display files to get those files opened here by adding a command line on top of all those files.

<?php
include('main.php');
?>  

Since there is no index file to display as the landing page, you can create one named index.php. Then, you can execute all the database operations from here.


0 Like 0 Dislike 0 Comment Share

Leave a comment