File "merchant-add.php"
Full path: /home/fsibplc/public_html/localhost/admin/merchant-add.php
File
size: 4.45 B (4.45 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 Merchant<a href="merchant-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="">Merchant Name</label>
<input type="text" name="merchant_name" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="">Merchant Category</label>
<select name="merchant_category" required class="form-control">
<option value="">--Select Category--</option>
<option value="Lifestyle">Lifestyle</option>
<option value="Restaurant">Restaurant</option>
<option value="E-Commerce">E-Commerce</option>
<option value="Health Care">Health Care</option>
<option value="Travel">Travel</option>
</select>
</div>
<div class="col-md-6 md-3">
<label for="">Discount Text</label>
<input type="text" name="discount_text" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="">Merchant Website Link</label>
<input type="text" name="merchant_link" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="">Logo Image</label>
<input type="file" name="image" required class="form-control">
</div>
<div class="col-md-6 md-3">
<label for="date" class="col-sm-1 col-form-label">Expiry Date</label>
<input id="datepicker" width="276" name="date" placeholder="dd-mm-yyyy"/>
</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="merchant_add">Save Merchant</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php
include('include/footer.php');
include('include/script.php');
?>