NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
include 'authorize/config.php';
?>
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">
<head>
<?php
include 'starter-section/header.php';
?>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">

<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<?php
include 'starter-section/nav.php';
?>
</nav>
<!-- /.navbar -->

<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<?php
include 'starter-section/leftsidemenu.php';
?>
</aside>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Admins's profile</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active"><a href="admin-profile.php">Admins's profile</a></li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->

<!-- Main content -->
<div class="row">
<div class="col-md-12">

<div class="card">
<div class="card-header">
<h4>Edit User</h4>
</div>
<div class="card-body">
<?php
if(isset($_GET['id'])){
$admin_id = $_GET['id'];
$admins = "SELECT * FROM admins WHERE u_id='$admin_id'";
$admins_run = mysqli_query($con, $admins);
if(mysqli_num_rows($admins_run) > 0){
foreach($admins_run as $admin){
?>

<form method="POST" action="code.php">
<input type="hidden" name="ad_id" value="<?=$admin['u_id']; ?>">
<div class="row">
<div class="col-md-12 mb-3">
<label for="">ID</label>
<input type="text" name="u_id" value="<?=$admin['u_id']; ?>" class="form-control">
</div>
<div class="col-md-12 mb-3">
<label for="">Username</label>
<input type="text" name="uname" value="<?=$admin['uname']; ?>" class="form-control">
</div>
<div class="col-md-12 mb-3">
<label for="">Email</label>
<input type="text" name="email" value="<?=$admin['email']; ?>" class="form-control">
</div>
<div class="col-md-12 mb-3">
<label for="">Password</label>
<input type="text" name="password" value="<?=$admin['password']; ?>" class="form-control">
</div>
<div class="col-md-12 mb-3">
<label for="">Permission</label>
<select name="permission" required class="form-control">
<option value="">--Select permission--</option>
<option value="1" <?=$admin['permission']=='1' ? 'selected':''?> >Admin</option>
<option value="0" <?=$admin['permission']!='1' ? 'selected':''?> >User</option>
</select>
</div>
<div class="col-md-12 mb-3">
<button type="submit" name="update_admin" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
<?php
}
}else{
?>
<h4>No record found</h4>
<?php
}
}

?>
</div>
</div>
</div>
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->

<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
<div class="p-3">
<h5>Title</h5>
<p>Sidebar content</p>
</div>
</aside>
<!-- /.control-sidebar -->

<!-- Main Footer -->
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<?php
include 'starter-section/scripts.php';
?>
</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.