Файловый менеджер - Редактировать - /home/d46091/gemregistrationonline.org/complaint-submit.php
Назад
<?php if (isset($_POST['submit'])){ $name = ''; if (empty($_POST['order_id'])) { $nameError = 'Please Enter Your Order Id'; } else { $name = trim(htmlspecialchars($_POST['order_id'])); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>G.e.M Registration:About Us</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="/assets/css/main.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </head> <?php require("./config.php"); if(isset($_POST['submit'])){ $order_id=$_POST['order_id']; $duplicate=mysqli_query($conn,"select * from complaint_forms where order_id='$order_id' and status=''"); if (mysqli_num_rows($duplicate)>0) { echo "<script>alert('You cannot file new complaint as your complaint id is already generated. Please use TRACK COMPLAINT Section to track your complaint status.'); location.href='./complaint-track-submit.php';</script>"; } else{ $duplicate=mysqli_query($conn,"select * from complaint_forms where order_id='$order_id' and status='true'"); $que=mysqli_query($conn,"SELECT * FROM gem_registration where order_id='$order_id' "); $row = mysqli_fetch_array($que); } ?> <body> <?php include('header.php');?> <br> <?php if(!$row) { echo '<h2 class="text-center"style="color:red">Order id not found</h2>'; } else { } //echo $row['applicant_name']; } ?> <br> <div class="container-fluid fcs-form-container" id="content" <?php if (!$row){ echo 'style="display:none;"'; } ?>> <div class="row"> <div class="col-12 col-lg-6 mx-auto my-4"> <h1 class="container-fluid fchd text-center text-uppercase p-2" style="font-size:15px">Complaint Form</h1> <form id="main-form" action="./complaint-submit-new.php" method="post"> <table style="width:100%"> <tr> <th>ORDER ID:</th> <td> <input name="order_id"type="text"class="form-control" value="<?php echo $row['order_id'];?>"readonly></td> </tr> <tr> <th>APPLICANT NAME:</th> <td> <input name="applicant_name"class="form-control"type="text" value="<?php echo $row['applicant_name'];?>"readonly></td> </tr> <tr> <th>MOBILE NUMBER:</th> <td><input name="mobile_number"class="form-control"type="text" value="<?php echo $row['mobile_number'];?>"readonly></td> </tr> <tr> <th>EMAIL ID:</th> <td><input name="email_id"class="form-control" type="text" value="<?php echo $row['email_id'];?>"readonly></td> </tr> <tr> <th>AADHAAR NUMBER:</th> <td><input name="docs"class="form-control" type="text" value="<?php echo $row['aadhaar_number'];?>"readonly></td> </tr> <tr> <th>TRANSACTION DATE:</th> <td><input name="transaction_date"class="form-control" type="text"value="<?php echo $row['form_created_on'];?>"readonly></td> </tr> <tr> <th>TRANSACTION AMOUNT:</th> <td><input name="transaction_amount"class="form-control" type="text"value="<?php echo $row['total_amount'];?>"readonly></td> </tr> </table> <br> <div class="form-group txt"> <label>DESCRIBE YOUR COMPLAINT IN DETAILS <span class="required">(Required)</span></label> <textarea class="form-control"rows="5"name="complaint_details" ></textarea> </div> <button type="submit"name="submit" class="btn btn-primary fcs-submit-button">Submit Complaint</button> </form> </div> </div> </div> </body> </html> <?php include('footer.php');?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка