PHP Classes

File: uploady/admin/users/new.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/users/new.php   Download  
File: uploady/admin/users/new.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: Code refactor
Date: 4 months ago
Size: 3,602 bytes


Class file image Download
include_once '../session.php';
<!DOCTYPE html>
<html lang="en">

    <?php include_once '../components/meta.php'; ?>
<title>Add user - <?= $st['website_name'] ?></title>
    <?php include_once '../components/css.php'; ?>

<body class="sb-nav-fixed">
    <?php include_once '../components/navbar.php' ?>
<div id="layoutSidenav">
        <?php include_once '../components/sidebar.php'; ?>
<div id="layoutSidenav_content">
                <div class="container-fluid">
                    <h1 class="mt-4">Dashboard</h1>
                    <ol class="breadcrumb mb-4">
                        <li class="breadcrumb-item active">Dashboard</li>
                    <div class="card mb-4">
                        <div class="card-header">
                            <i class="fas fa-user-plus mr-1"></i>
                            Create User
                        <div class="card-body">
                            <form method="POST" action="<?= $utils->siteUrl('/admin/users/actions/new.php'); ?>">

                                <?= $utils->input('csrf', $_SESSION['csrf']); ?>

                                <div class="form-group">
                                    <input type="text" class="form-control" name="username" placeholder="Enter Username" value="">
                                <div class="form-group">
                                    <input type="email" class="form-control" name="email" placeholder="Enter Email" value="">
                                <div class="form-group" class="text-left">
                                    <input type="password" class="form-control" name="password" placeholder="Enter Password">

                                <div class="form-group">
                                    <input hidden name="role" value="1" />
                                    <div class="form-group">
                                        <select class="form-control">
                                            <?php foreach ($roles as $role) : ?>
<option value="<?= $role->id ?>"><?= $role->title ?></option>
                                            <?php endforeach; ?>
                                <div class="form-group">
                                    <input hidden name="is_active" value="0" />
                                    <div class="custom-control custom-switch custom-control-right">
                                        <input class="custom-control-input" id="is_active" name="is_active" value="1" type="checkbox">
                                        <label class="custom-control-label" for="is_active">Active</label>
                                <button type="submit" class="btn btn-primary">
                                    Create Account
            <?php include_once '../components/footer.php'; ?>
    <?php include_once '../components/js.php'; ?>