Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php include_once 'AdminSession.php'; $username = $_SESSION['username']; // $password = $_SESSION['password']; $chekUser = mysqli_query($con,"Select * from user where username= '$username'") or die(mysqli_error($con)); $row = mysqli_fetch_array($chekUser); $fname = $row['fname']; $lname = $row['lname']; ?> <!DOCTYPE html> <html> <head> <title>Home Page</title> <link rel="stylesheet" href="css/index.css"> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/Registration.js"></script> <script> function getPage(url){ $('#content').hide(1000,function(){ $('#content').load(url); $('#content').show(1000,function(){}); }); } </script> <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">---> </head> <body> <div id="wrap"> <div id="header"> <div id="logo"> <h1 style="text-align: center;color: green;"><!--<span><img src="image/Address Book.png" alt="logo"/></span>-->Document File Storage</h1> </div> </div> <div id="menu"> <ul> <li><a href="#" onclick="getPage('User/Registration.php')">Register</a></li> <li><a href="#">File Management</a> <ul> <li><a href="#" onclick="getPage('Upload/Upload.php')">Add New file</a></li> <li><a href="#" onclick="getPage('View/View.php')">View All file</a></li> <!--<li><a href="#">Edit file</a></li>--> </ul> </li> <li><a href="#" onclick="getPage('Folder/folder.php')">Folders</a></li> <li><a href="logout.php">Logout</a></li> <li style="margin-top: 5px;margin-left: 25em;">You login as : <?php echo $fname?></li> </ul> </div> <div id="main"> <div id="content"> <h1>Welcome to docsystem </h1> <ul style="margin-left: 5em; margin-top: 2em;"> <li>Upload files to the system</li> <li>Download your files wherever you are</li> <li>Edit your personal files</li> <li>Register new user</li> <li>Edit registered users</li> </ul> </div> <div id="side"> <h3>Dashboard</h3> <table style="border: 1px black solid;background-color: #607B8B;"> <tr> <td><li><a href="#" onclick="getPage('Upload/Upload.php')">Add New file</a></li></td> </tr> <tr> <td><li><a href="#" onclick="getPage('View/View.php')">View file</a></li></td> </tr> <tr> <td><li><a href="#" onclick="getPage('User/Registration.php')">Add user</a></li></td> </tr> <tr> <td><li><a href="#" onclick="getPage('User/ViewUser.php')">View Users</a></li></td> </tr> </table> </div> <!-- this clear class is for special purpose. this is for to clear the "float property" of the previous element, it will prevent footer to float --> <div class= "clear"></div> </div> <div id="footer"> &copy; </div> </div> </body> </html>
Copy Clear