File manager - Edit - /home/autoph/public_html/connect/home/add_new_company.php
Back
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .loader { border: 16px solid #f3f3f3; border-radius: 50%; border-top: 16px solid blue; border-bottom: 16px solid blue; width: 120px; height: 120px; -webkit-animation: spin 2s linear infinite; animation: spin 2s linear infinite; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> <title></title> <style type="text/css"> body{ background:#fafcfc; } #wrapper{ width:50%; height:auto; margin:10px auto; border:1px solid #cbcbcb; background:white; } #comment_input_from li{ list-style-type:none; margin:5px auto; } #comment_input_from{ width:50%; margin:5px auto; background:#fafcfc; padding:10px; } #name, textarea{ width:80%; } </style> </head> <body> <h1 style='margin:0px;font-family:Verdana;font-size:22px;font-weight:normal;padding-left:5px;color:black'>New Company Setup</h1> <i style='font-family:Verdana;font-size:10px;color:gray;padding-left:5px'>Company Information will be required in every transactions moving forward. Please make sure company do exist before adding records</i> <div style='border:1px solid gray;width:99%;height:95%;min-height:540px;float:left;margin:5px;min-width:600px;background:white'> <div class='bgColor' style='vertical-align:top;height:25px;margin:0px;width:100%;border-bottom:1px solid gray;padding:5px;font-family:Verdana;font-weight:normal;color:#043062'>Check-In Vehicles <div style='float:right'> <a href='#' class='hideClick hidden' > ♲ </a> <a href='#' class='hideClick hidden' > ✉ </a> <a href='#' class='hideClick hidden' style='font-weight:bold'> ✕ </a> </div> </div> <div style='padding:0px;height:300px;min-height:150px;float:left;width:100%;text-align:left:padding:5px;border:0px solid gray'> <div style='min-width:600px;float:left;width:100%;border:0px solid red;position:relative'> <div style='width:100%;float:left;padding:15px;border:0px solid red;'> <div id="comment_input_from" style='position:relative;border:1px solid red;width:60%'> <input type="text" id="fname" placeholder="First Name"> <input type="text" id="lname" placeholder="Last Name"> <input type="text" id="bday" placeholder="birth date"><br> <textarea id="address" placeholder="Your Address"></textarea> <br><input type="submit" id="submit_name" value="POST"> </div> </div> </div> <div style='padding:10px;min-width:600px;float:left;width:100%;border:0px solid red;position:relative'> <div id="display_area" style='height:155px;border:1px solid lightgray; overflow:auto'></div> </div> </div> </div> </body> </html> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div id="wait" style="display:none;width:69px;height:89px;border:0px solid red;position:absolute;top:50%;left:50%;padding:2px;"> <img src='images/demo_wait.gif' width="64" height="64" /><br>Loading..</div> <!-- add jquery --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(document).ready(function(){ //loading gif animator during query or page load $(document).ajaxStart(function(){ $("#wait").css("display", "block"); }); $(document).ajaxComplete(function(){ $("#wait").css("display", "none"); }); //alert("Its working"); $("#submit_name").click(function(){ var fname = $("#fname").val(); var lname = $("#lname").val(); var bday = $("#bday").val(); var address = $("#address").val(); $.ajax({ url: "save.php", type: "POST", async: false, data: { "done": 1, "firstname" : fname, "lastname" : lname, "birthday" : bday, "address": address }, success: function(data){ //alert("New Record Saved."); displayFromDatabase(); $('#fname').val(fname); // declared variables $('#lname').val(''); $('#lname').val(''); } }) }); }); //retrieve and display function displayFromDatabase(){ $.ajax({ url: "save.php", type: "POST", async: false, data: { "display": 1 }, success: function(d){ $("#display_area").html(d); } }); } </script>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings