D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
buildteksolution
/
www
/
superadmin
/
Filename :
profile.php
back
Copy
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <title>Plus Admin</title> </head> <body> <div class="container-scroller"> <!-- <div class="row p-0 m-0 proBanner" id="proBanner"> <div class="col-md-12 p-0 m-0"> <div class="card-body card-body-padding d-flex align-items-center justify-content-between"> <div class="ps-lg-1"> <div class="d-flex align-items-center justify-content-between"> <p class="mb-0 font-weight-medium me-3 buy-now-text">Free 24/7 customer support, updates, and more with this template!</p> <a href="https://www.bootstrapdash.com/product/plus-admin-template/?utm_source=organic&utm_medium=banner&utm_campaign=buynow_demo" target="_blank" class="btn me-2 buy-now-btn border-0">Get Pro</a> </div> </div> <div class="d-flex align-items-center justify-content-between"> <a href="https://www.bootstrapdash.com/product/plus-admin-template/"><i class="mdi mdi-home me-3 text-white"></i></a> <button id="bannerClose" class="btn border-0 p-0"> <i class="mdi mdi-close text-white me-0"></i> </button> </div> </div> </div> </div> --> <!-- partial:partials/_sidebar.html --> <?php include 'header.php'; ?> <!-- partial --> <div class="main-panel"> <div class="content-wrapper pb-0"> <div class="page-header flex-wrap"> <div class="header-left"> <button class="btn btn-primary mb-2 mb-md-0 me-2"> Create new document </button> <button class="btn btn-outline-primary bg-white mb-2 mb-md-0"> Import documents </button> </div> <div class="header-right d-flex flex-wrap mt-2 mt-sm-0"> <div class="d-flex align-items-center"> <a href="#"> <p class="m-0 pe-3">Dashboard</p> </a> <a class="ps-3 me-4" href="#"> <p class="m-0">ADE-00234</p> </a> </div> <button type="button" class="btn btn-primary mt-2 mt-sm-0 btn-icon-text"> <i class="mdi mdi-plus-circle"></i> Add Prodcut </button> </div> </div> <?php $conn = mysqli_connect("localhost","root","","job_portal"); // Check if the form was submitted if(isset($_POST['submit'])){ $name=$_POST['Name']; $location=$_POST['location']; $Project_Description=$_POST['Project_Description']; $Project_url=$_POST['Project_url']; $Project_Name=$_POST['Project_Name']; $language=$_POST['language']; $Certification=$_POST['Certification']; $Branch=$_POST['Branch']; $education=$_POST['education']; $gender=$_POST['gender']; $about=$_POST['about']; $country=$_POST['country']; $state=$_POST['state']; $city=$_POST['city']; $number = $_POST['number']; $allowedExts = array("pdf"); $temp = explode(".", $_FILES["pdf_file"]["name"]); $extension = end($temp); $upload_pdf=$_FILES["pdf_file"]["name"]; move_uploaded_file($_FILES["pdf_file"]["tmp_name"],"uploads/pdf/" . $_FILES["pdf_file"]["name"]); $sql="INSERT INTO `job_profile`(`full_name`,`number`,`country`, `state`, `city`, `about`, `gender`, `education`, `branch`, `certification`, `language`, `Project_name`, `project_Url`, `Project_Description`, `location`, `resume`) VALUES ('$name','$number','$country','$state','$city','$about','$gender','$education','$Branch','$Certification','$language','$Project_Name','$Project_url','$Project_Description','$location','$upload_pdf')"; $run = mysqli_query($conn,$sql); // print_r( $sql); // if($run){ // echo "Data Submit Successfully"; // } // else{ // echo "Data Submit Error!!"; // } } ?> <div class="col-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Create Your Profile</h4> <!-- <p class="card-description">Basic form elements</p> --> <form class="forms-sample" method="post" enctype="multipart/form-data"> <div class="form-group"> <label for="exampleInputName1">Name</label> <input type="text" class="form-control" name="Name" id="exampleInputName1" placeholder="Name" /> </div> <div class="form-group"> <label for="exampleInputEmail3">Number</label> <input type="text" class="form-control" name="number" id="exampleInputName1" placeholder="Number" /> </div> <div class="form-group"> <label for="exampleSelectGender">Country</label> <select class="form-control" id="country" name="country"> <option value="">Country</Option> </select> </div> <div class="form-group"> <label for="exampleSelectGender">State</label> <select class="form-control" id="state" name="state"> <option value="">State</Option> </select> </div> <div class="form-group"> <label for="exampleSelectGender">City</label> <select class="form-control" id="city" name="city"> <option value="">City</Option> </select> </div> <div class="form-group"> <label for="exampleInputPassword4">About</label> <textarea class="form-control" id="exampleTextarea1" name="about" rows="4" placeholder="About"></textarea> </div> <div class="form-group"> <label for="exampleSelectGender">Gender</label> <select class="form-control" id="exampleSelectGender" name="gender"> <option value="male">Male</option> <option value="female">Female</option> </select> </div> <div class="form-group"> <label for="exampleSelectGender">Education</label> <select class="form-control" id="exampleSelectGender" name="education"> <option value="10">10</option> <option value="12">12</option> <option value="Degree">Degree</option> <option value="master Degree">master Degree</option> <option value="Post Graduation">Post Graduation</option> <option value="Other">Other</option> </select> </div> <div class="form-group"> <label for="exampleInputName1">Branch</label> <input type="text" class="form-control" id="exampleInputName1" name="Branch" placeholder="Branch" /> </div> <div class="form-group"> <label for="exampleInputName1">Certification</label> <input type="text" class="form-control" id="exampleInputName1" name="Certification" placeholder="Certification" /> </div> <div class="form-group"> <label for="exampleInputName1">language</label> <input type="text" class="form-control" id="exampleInputName1" name="language" placeholder="language" /> </div> <div class="form-group"> <label for="exampleInputName1">Project Name</label> <input type="text" class="form-control" id="exampleInputName1" name="Project_Name" placeholder="Project Name" /> </div> <div class="form-group"> <label for="exampleInputName1">project Url</label> <input type="text" class="form-control" id="exampleInputName1"name="Project_url" placeholder="project Url" /> </div> <div class="form-group"> <label for="exampleInputPassword4">Project Description</label> <textarea class="form-control" id="exampleTextarea1" rows="4" name="Project_Description" placeholder="About"></textarea> </div> <div class="form-group"> <label for="exampleInputName1">Location Prefrence</label> <input type="text" class="form-control" id="exampleInputName1" name="location" laceholder="Location Prefrences" /> </div> <div class="form-group"> <label>Resume upload</label> <!-- <input type="file" name="img[]" class="file-upload-default" /> --> <div class="input-group col-xs-12"> <!-- <input type="text" class="form-control file-upload-info" placeholder="Upload Resume" name="anyfile" id="anyfile" /> --> <input type="file" name="pdf_file" id="pdf_file" accept="application/pdf" /> <span class="input-group-append"> <!-- <button class="file-upload-browse btn btn-primary" type="button"> Upload Resume</button> --> </span> </div> </div> <button type="submit" class="btn btn-primary me-2" name="submit"> Submit </button> <button class="btn btn-light">Cancel</button> </form> </div> </div> </div> </div> <!-- content-wrapper ends --> <!-- partial:partials/_footer.html --> <?php include'footer.php'; ?> <!-- partial --> </div> <!-- main-panel ends --> </div> <!-- page-body-wrapper ends --> </div> <!-- container-scroller --> </body> <script type="text/javascript"> let auth_token; $(document).ready(function(){ $.ajax({ type: 'get', url:'https://www.universal-tutorial.com/api/getaccesstoken', success:function(data) { auth_token = data.auth_token; getcontry(data.auth_token); }, error:function(error) { console.log(error); }, headers: { "Accept": "application/json", "api-token": "kCx_1pg9DAixSRJ21SIyJ9NgMAKdjOQmbGT_0fMTNqhP1jNUFBP9PQSFz4UNXciJS4M", "user-email": "adarshjack007@gmail.com" } }); $('#country').change(function(){ getstate(); }); $('#state').change(function(){ getcity(); }); }); function getcontry(auth_token){ $.ajax({ type: 'get', url:'https://www.universal-tutorial.com/api/countries/', success:function(data) { data.forEach(element=>{ $('#country').append('<option value="'+element.country_name+'">'+element.country_name+'</option>'); }); // getstate(auth_token); }, error:function(error) { console.log(error); }, headers: { "Authorization": "Bearer "+ auth_token, "Accept": "application/json" } }); } function getstate(){ let country_name= $('#country').val(); $.ajax({ type: 'get', url:'https://www.universal-tutorial.com/api/states/'+country_name , success:function(data) { $('#state').empty(); data.forEach(element=>{ $('#state').append('<option value="'+element.state_name+'">'+element.state_name+'</option>'); }); }, error:function(error) { console.log(error); }, headers: { "Authorization": "Bearer "+ auth_token, "Accept": "application/json" } }) ; } function getcity(){ let state_name=$('#state').val(); $.ajax({ type: 'get', url:'https://www.universal-tutorial.com/api/cities/'+state_name , success:function(data) { $('#city').empty(); data.forEach(element=>{ $('#city').append('<option value="'+element.city_name+'">'+element.city_name+'</option>'); }); // getcountry(data.auth_token); }, error:function(error) { console.log(error); }, headers: { "Authorization": "Bearer "+ auth_token, "Accept": "application/json" } }) ; } </script> </html>