File "slider-add.php"
Full path: /home/fsibplc/public_html/localhost/admin/slider-add.php
File
size: 2.6 B (2.6 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
include('config/dbcon.php');
include('authentication.php');
//session_start();
include('include/header.php');
?>
<div class="container-fluid px-4">
<div class="row mt-4">
<div class="col-md-12">
<?php include('message.php'); ?>
<div class="card">
<div class="card-header">
<h4>Add Slider<a href="slider-view.php" class="btn btn-danger float-end">Back</a></h4>
</div>
<div class="card-body">
<form action="code.php" method="POST" enctype="multipart/form-data">
<div class="row">
<div class="col-md-6 md-3">
<label for="">Title</label>
<input type="text" name="name" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="">Sub Title</label>
<input type="text" name="name_bn" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="">Image</label>
<input type="file" name="image" required class="form-control">
</div>
<input type="hidden" name="author" value="<?= $_SESSION['auth_user']['user_name'];?>" />
<div class="col-md-6 md-3">
<label for="Status">Status</label>
<input type="checkbox" name="status" width="70px" height="70px" />
Checked = Hidden, Unchecked = Visible
</div>
<div class="col-md-6 md-3">
<button type="submit" class="btn btn-primary" name="slider_add">Save Slider Image</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
include('include/footer.php');
include('include/script.php');
?>