[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: add_agent.php
<?php include 'header.php';?> <style> .col-md-3,.col-md-2,.col-md-6{ display:inline-block !important; } </style> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Add Agent</div> </div> <form method="post" id="exampleValidation" data-toggle="validator" enctype="multipart/form-data" > <div class="card-body"> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Name <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="name" class="form-control" placeholder="Name"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Email <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="email" name="email" class="form-control" placeholder="Email"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Phone <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="phone" class="form-control" placeholder="Phone"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Address <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="address" class="form-control" placeholder="Address"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Location <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="location" class="form-control" placeholder="Location"> </div> <label for="name" class="col-lg-1 col-md-3 col-sm-4 mt-sm-2 ">Country <span class="required-label">*</span></label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="country" class="form-control" placeholder="Country"> </div> </div> <!--- <div class="form-group form-show-validation row"> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">Company Address</label> <div class="col-lg-9 col-md-12 col-sm-12"> <input type="text" name="company_address" value="<?=$row['company_address']?>" class="form-control" placeholder="Company Address"> </div> </div> <div class="form-group form-show-validation row"> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">GSTIN</label> <div class="col-lg-3 col-md-12 col-sm-12"> <input type="text" name="gstin" class="form-control" placeholder="GSTIN"> </div> <label for="name" class="col-lg-2 col-md-3 col-sm-4 mt-sm-2 ">Other Details</label> <div class="col-lg-5 col-md-12 col-sm-12"> <input type="text" name="others" class="form-control" placeholder="Other Details"> </div> </div> --> <div class="card-action"> <div class="row"> <div class="col-md-12"> <input class="btn btn-success" type="submit" name="sub" value="Submit"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ $uid=$show->getid('ids','AGT'); $data = array( 'name' =>htmlspecialchars($_POST['name']), 'phone' =>htmlspecialchars($_POST['phone']), 'email' =>htmlspecialchars($_POST['email']), 'address' =>htmlspecialchars($_POST['address']), 'country' =>htmlspecialchars($_POST['country']), 'location' =>htmlspecialchars($_POST['location']), 'agent_id' =>$uid, ); //print_r($data); if($show->insert('agent',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your AGENT has been submitted.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 678.22 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:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619