[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: CustomersModal.php
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myLargeModalLabel">Add New Customer</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" data-ng-form="newcustomer"> <div class="setting-steps"> <form id="add_category_bttn"> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Phone number</label> <input type="text" class="form-control" id="validationTooltip03" name="phone_number" required> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">First Name<span class="req">*</span></label> <input type="text" class="form-control" id="customerName" name="first_name" required > </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Last Name</label> <input type="text" class="form-control" id="lastName" name="last_name" required> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">DOB</label> <div class="input-group date dobWrap cal-container"> <input type="date" class="form-control" name="DOB" data-provide="datepicker" data-date-format="d-M"> </div> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInput" class="form-label">Email ID</label> <input type="email" class="form-control" id="email" name="email"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Gender</label> <div class="inline-radio tbl"> <div class="radio"> <input type="radio" id="male" name="gender" value="male"> <label for="male">Male</label> </div> <div class="radio"> <input type="radio" id="female" name="gender" value="female"> <label for="female">Female</label> </div> </div> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Address</label> <input type="text" class="form-control" name="address"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label">Anniversary</label> <div class="input-group date anniWrap cal-container"> <input type="date" class="form-control" name="anniversary" data-provide="datepicker" data-date-format="d-M"> </div> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label for="exampleInputEmail1" class="form-label">Location</label> <input type="text" class="form-control" id="location" name="location"> </div> </div> </div> <button type="submit" class="btn btn-success">Submit</button> </form> </div> </div> </div> </div> </div> <!-- <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myLargeModalLabel">Add New Customer</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <div id="response"></div> </div> <div class="modal-body"> <form method="post" accept-charset="utf-8" id="add_category_bttn"> <div class="row"> <div class="form-group col-md-6"> <label>First name</label> <input type="text" name="first_name" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Last name</label> <input type="text" name="last_name" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Email</label> <input type="email" name="email" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Phone number</label> <input type="number" name="phone_number" class="form-control" style="height:40px"> </div> <div class="form-group col-md-12"> <label>Select Gender</label> <select class="form-control" name="gender"> <option value="">Select</option> <option value="male">Male</option> <option value="female">Female</option> </select> </div> <div class="form-group col-md-4"> <button type="submit" id="insert" class="btn btn-success form-control">Send</button> </div> </div> </form> </div> </div> </div> </div> --> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); $.ajax({ url: 'includes/modals/insertCustomer.php', type: 'post', headers: {'X-CSRF-Token': $('#csrf_token').val()}, data: $('#add_category_bttn').serialize(), dataType: 'json', success: function(response) { if (response.status == 'success') { swal("Success!", response.message, "success").then(() => { location.reload(); }); //window.location.href = response.redirect; $('#registration-form')[0].reset(); } else { swal("Error!", response.message, "error").then(() => { location.reload(); }); } } }); }); }); </script> <!-- <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn').submit(function(event) { event.preventDefault(); var form_data = $(this).serialize(); $.ajax({ url: 'includes/modals/insertEmployment.php', method: 'post', data: form_data, dataType:"html", success: function(strMessage){ $('#response').html(strMessage); $("form").trigger("reset"); } }); }); }); </script> -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002